2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.7svn.
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
257 CONFIG_SHELL=$as_shell
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
284 as_func_ret_success () {
287 as_func_ret_failure () {
292 if as_func_success; then
296 echo as_func_success failed.
299 if as_func_failure; then
301 echo as_func_failure succeeded.
304 if as_func_ret_success; then
308 echo as_func_ret_success failed.
311 if as_func_ret_failure; then
313 echo as_func_ret_failure succeeded.
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 echo positional parameters were not saved.
323 test $exitcode = 0) || { (exit 1); exit 1; }
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
364 (eval "as_func_return () {
373 as_func_ret_success () {
376 as_func_ret_failure () {
381 if as_func_success; then
385 echo as_func_success failed.
388 if as_func_failure; then
390 echo as_func_failure succeeded.
393 if as_func_ret_success; then
397 echo as_func_ret_success failed.
400 if as_func_ret_failure; then
402 echo as_func_ret_failure succeeded.
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 echo positional parameters were not saved.
412 test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 chmod +x "$as_me.lineno" ||
452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 ECHO_C= ECHO_N= ECHO_T=
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
504 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
515 test -d ./-p && rmdir ./-p
519 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
526 if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
541 exec 7<&0 </dev/null 6>&1
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
551 ac_default_prefix=/usr/local
553 ac_config_libobj_dir=.
559 SHELL=${CONFIG_SHELL-/bin/sh}
561 # Identity of this package.
563 PACKAGE_TARNAME='-llvm-'
564 PACKAGE_VERSION='2.7svn'
565 PACKAGE_STRING='llvm 2.7svn'
566 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
568 ac_unique_file="lib/VMCore/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
573 # include <sys/types.h>
576 # include <sys/stat.h>
587 # if !STDC_HEADERS && HAVE_MEMORY_H
593 # include <strings.h>
596 # include <inttypes.h>
614 program_transform_name
683 ENABLE_EXPENSIVE_CHECKS
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/sample
807 projects/llvm-stacker
814 projects/llvm-poolalloc
816 projects/llvm-kernel'
818 # Initialize some variables set by options.
820 ac_init_version=false
821 # The variables have the same names as the options, with
822 # dashes changed to underlines.
830 program_transform_name=s,x,x,
838 # Installation directory options.
839 # These are left unexpanded so users can "make install exec_prefix=/foo"
840 # and all the variables that are supposed to be based on exec_prefix
841 # by default will actually change.
842 # Use braces instead of parens because sh, perl, etc. also accept them.
843 # (The list follows the same order as the GNU Coding Standards.)
844 bindir='${exec_prefix}/bin'
845 sbindir='${exec_prefix}/sbin'
846 libexecdir='${exec_prefix}/libexec'
847 datarootdir='${prefix}/share'
848 datadir='${datarootdir}'
849 sysconfdir='${prefix}/etc'
850 sharedstatedir='${prefix}/com'
851 localstatedir='${prefix}/var'
852 includedir='${prefix}/include'
853 oldincludedir='/usr/include'
854 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
855 infodir='${datarootdir}/info'
860 libdir='${exec_prefix}/lib'
861 localedir='${datarootdir}/locale'
862 mandir='${datarootdir}/man'
868 # If the previous option needs an argument, assign it.
869 if test -n "$ac_prev"; then
870 eval $ac_prev=\$ac_option
876 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
880 # Accept the important Cygnus configure options, so we can diagnose typos.
882 case $ac_dashdash$ac_option in
886 -bindir | --bindir | --bindi | --bind | --bin | --bi)
888 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
891 -build | --build | --buil | --bui | --bu)
892 ac_prev=build_alias ;;
893 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
894 build_alias=$ac_optarg ;;
896 -cache-file | --cache-file | --cache-fil | --cache-fi \
897 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
898 ac_prev=cache_file ;;
899 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
900 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
901 cache_file=$ac_optarg ;;
904 cache_file=config.cache ;;
906 -datadir | --datadir | --datadi | --datad)
908 -datadir=* | --datadir=* | --datadi=* | --datad=*)
909 datadir=$ac_optarg ;;
911 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
912 | --dataroo | --dataro | --datar)
913 ac_prev=datarootdir ;;
914 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
915 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
916 datarootdir=$ac_optarg ;;
918 -disable-* | --disable-*)
919 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
920 # Reject names that are not valid shell variable names.
921 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
922 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
923 { (exit 1); exit 1; }; }
924 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
925 eval enable_$ac_feature=no ;;
927 -docdir | --docdir | --docdi | --doc | --do)
929 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
932 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
934 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
937 -enable-* | --enable-*)
938 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
939 # Reject names that are not valid shell variable names.
940 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
941 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
942 { (exit 1); exit 1; }; }
943 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
944 eval enable_$ac_feature=\$ac_optarg ;;
946 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
947 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
948 | --exec | --exe | --ex)
949 ac_prev=exec_prefix ;;
950 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
951 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
952 | --exec=* | --exe=* | --ex=*)
953 exec_prefix=$ac_optarg ;;
955 -gas | --gas | --ga | --g)
956 # Obsolete; use --with-gas.
959 -help | --help | --hel | --he | -h)
961 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
962 ac_init_help=recursive ;;
963 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
964 ac_init_help=short ;;
966 -host | --host | --hos | --ho)
967 ac_prev=host_alias ;;
968 -host=* | --host=* | --hos=* | --ho=*)
969 host_alias=$ac_optarg ;;
971 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
973 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
975 htmldir=$ac_optarg ;;
977 -includedir | --includedir | --includedi | --included | --include \
978 | --includ | --inclu | --incl | --inc)
979 ac_prev=includedir ;;
980 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
981 | --includ=* | --inclu=* | --incl=* | --inc=*)
982 includedir=$ac_optarg ;;
984 -infodir | --infodir | --infodi | --infod | --info | --inf)
986 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
987 infodir=$ac_optarg ;;
989 -libdir | --libdir | --libdi | --libd)
991 -libdir=* | --libdir=* | --libdi=* | --libd=*)
994 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
995 | --libexe | --libex | --libe)
996 ac_prev=libexecdir ;;
997 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
998 | --libexe=* | --libex=* | --libe=*)
999 libexecdir=$ac_optarg ;;
1001 -localedir | --localedir | --localedi | --localed | --locale)
1002 ac_prev=localedir ;;
1003 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1004 localedir=$ac_optarg ;;
1006 -localstatedir | --localstatedir | --localstatedi | --localstated \
1007 | --localstate | --localstat | --localsta | --localst | --locals)
1008 ac_prev=localstatedir ;;
1009 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1010 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1011 localstatedir=$ac_optarg ;;
1013 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1015 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1016 mandir=$ac_optarg ;;
1018 -nfp | --nfp | --nf)
1019 # Obsolete; use --without-fp.
1022 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1023 | --no-cr | --no-c | -n)
1026 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1027 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1030 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1031 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1032 | --oldin | --oldi | --old | --ol | --o)
1033 ac_prev=oldincludedir ;;
1034 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1035 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1036 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1037 oldincludedir=$ac_optarg ;;
1039 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1041 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1042 prefix=$ac_optarg ;;
1044 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1045 | --program-pre | --program-pr | --program-p)
1046 ac_prev=program_prefix ;;
1047 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1048 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1049 program_prefix=$ac_optarg ;;
1051 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1052 | --program-suf | --program-su | --program-s)
1053 ac_prev=program_suffix ;;
1054 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1055 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1056 program_suffix=$ac_optarg ;;
1058 -program-transform-name | --program-transform-name \
1059 | --program-transform-nam | --program-transform-na \
1060 | --program-transform-n | --program-transform- \
1061 | --program-transform | --program-transfor \
1062 | --program-transfo | --program-transf \
1063 | --program-trans | --program-tran \
1064 | --progr-tra | --program-tr | --program-t)
1065 ac_prev=program_transform_name ;;
1066 -program-transform-name=* | --program-transform-name=* \
1067 | --program-transform-nam=* | --program-transform-na=* \
1068 | --program-transform-n=* | --program-transform-=* \
1069 | --program-transform=* | --program-transfor=* \
1070 | --program-transfo=* | --program-transf=* \
1071 | --program-trans=* | --program-tran=* \
1072 | --progr-tra=* | --program-tr=* | --program-t=*)
1073 program_transform_name=$ac_optarg ;;
1075 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1077 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1078 pdfdir=$ac_optarg ;;
1080 -psdir | --psdir | --psdi | --psd | --ps)
1082 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1085 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1086 | -silent | --silent | --silen | --sile | --sil)
1089 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1091 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1093 sbindir=$ac_optarg ;;
1095 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1096 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1097 | --sharedst | --shareds | --shared | --share | --shar \
1099 ac_prev=sharedstatedir ;;
1100 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1101 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1102 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1104 sharedstatedir=$ac_optarg ;;
1106 -site | --site | --sit)
1108 -site=* | --site=* | --sit=*)
1111 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1113 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1114 srcdir=$ac_optarg ;;
1116 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1117 | --syscon | --sysco | --sysc | --sys | --sy)
1118 ac_prev=sysconfdir ;;
1119 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1120 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1121 sysconfdir=$ac_optarg ;;
1123 -target | --target | --targe | --targ | --tar | --ta | --t)
1124 ac_prev=target_alias ;;
1125 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1126 target_alias=$ac_optarg ;;
1128 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1131 -version | --version | --versio | --versi | --vers | -V)
1132 ac_init_version=: ;;
1135 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1136 # Reject names that are not valid shell variable names.
1137 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1138 { echo "$as_me: error: invalid package name: $ac_package" >&2
1139 { (exit 1); exit 1; }; }
1140 ac_package=`echo $ac_package| sed 's/-/_/g'`
1141 eval with_$ac_package=\$ac_optarg ;;
1143 -without-* | --without-*)
1144 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1145 # Reject names that are not valid shell variable names.
1146 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1147 { echo "$as_me: error: invalid package name: $ac_package" >&2
1148 { (exit 1); exit 1; }; }
1149 ac_package=`echo $ac_package | sed 's/-/_/g'`
1150 eval with_$ac_package=no ;;
1153 # Obsolete; use --with-x.
1156 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1157 | --x-incl | --x-inc | --x-in | --x-i)
1158 ac_prev=x_includes ;;
1159 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1160 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1161 x_includes=$ac_optarg ;;
1163 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1164 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1165 ac_prev=x_libraries ;;
1166 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1167 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1168 x_libraries=$ac_optarg ;;
1170 -*) { echo "$as_me: error: unrecognized option: $ac_option
1171 Try \`$0 --help' for more information." >&2
1172 { (exit 1); exit 1; }; }
1176 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1177 # Reject names that are not valid shell variable names.
1178 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1179 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1180 { (exit 1); exit 1; }; }
1181 eval $ac_envvar=\$ac_optarg
1182 export $ac_envvar ;;
1185 # FIXME: should be removed in autoconf 3.0.
1186 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1187 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1188 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1189 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1195 if test -n "$ac_prev"; then
1196 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1197 { echo "$as_me: error: missing argument to $ac_option" >&2
1198 { (exit 1); exit 1; }; }
1201 # Be sure to have absolute directory names.
1202 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1203 datadir sysconfdir sharedstatedir localstatedir includedir \
1204 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1205 libdir localedir mandir
1207 eval ac_val=\$$ac_var
1209 [\\/$]* | ?:[\\/]* ) continue;;
1210 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1212 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1213 { (exit 1); exit 1; }; }
1216 # There might be people who depend on the old broken behavior: `$host'
1217 # used to hold the argument of --host etc.
1218 # FIXME: To remove some day.
1221 target=$target_alias
1223 # FIXME: To remove some day.
1224 if test "x$host_alias" != x; then
1225 if test "x$build_alias" = x; then
1226 cross_compiling=maybe
1227 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1228 If a cross compiler is detected then cross compile mode will be used." >&2
1229 elif test "x$build_alias" != "x$host_alias"; then
1235 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1237 test "$silent" = yes && exec 6>/dev/null
1240 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1241 ac_ls_di=`ls -di .` &&
1242 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1243 { echo "$as_me: error: Working directory cannot be determined" >&2
1244 { (exit 1); exit 1; }; }
1245 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1246 { echo "$as_me: error: pwd does not report name of working directory" >&2
1247 { (exit 1); exit 1; }; }
1250 # Find the source files, if location was not specified.
1251 if test -z "$srcdir"; then
1252 ac_srcdir_defaulted=yes
1253 # Try the directory containing this script, then the parent directory.
1254 ac_confdir=`$as_dirname -- "$0" ||
1255 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1256 X"$0" : 'X\(//\)[^/]' \| \
1257 X"$0" : 'X\(//\)$' \| \
1258 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1260 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1278 if test ! -r "$srcdir/$ac_unique_file"; then
1282 ac_srcdir_defaulted=no
1284 if test ! -r "$srcdir/$ac_unique_file"; then
1285 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1286 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1287 { (exit 1); exit 1; }; }
1289 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1291 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1292 { (exit 1); exit 1; }; }
1294 # When building in place, set srcdir=.
1295 if test "$ac_abs_confdir" = "$ac_pwd"; then
1298 # Remove unnecessary trailing slashes from srcdir.
1299 # Double slashes in file names in object file debugging info
1300 # mess up M-x gdb in Emacs.
1302 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1304 for ac_var in $ac_precious_vars; do
1305 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1306 eval ac_env_${ac_var}_value=\$${ac_var}
1307 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1308 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1312 # Report the --help message.
1314 if test "$ac_init_help" = "long"; then
1315 # Omit some internal or obsolete options to make the list less imposing.
1316 # This message is too long to be a string in the A/UX 3.1 sh.
1318 \`configure' configures llvm 2.7svn to adapt to many kinds of systems.
1320 Usage: $0 [OPTION]... [VAR=VALUE]...
1322 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1323 VAR=VALUE. See below for descriptions of some of the useful variables.
1325 Defaults for the options are specified in brackets.
1328 -h, --help display this help and exit
1329 --help=short display options specific to this package
1330 --help=recursive display the short help of all the included packages
1331 -V, --version display version information and exit
1332 -q, --quiet, --silent do not print \`checking...' messages
1333 --cache-file=FILE cache test results in FILE [disabled]
1334 -C, --config-cache alias for \`--cache-file=config.cache'
1335 -n, --no-create do not create output files
1336 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1338 Installation directories:
1339 --prefix=PREFIX install architecture-independent files in PREFIX
1340 [$ac_default_prefix]
1341 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1344 By default, \`make install' will install all the files in
1345 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1346 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1347 for instance \`--prefix=\$HOME'.
1349 For better control, use the options below.
1351 Fine tuning of the installation directories:
1352 --bindir=DIR user executables [EPREFIX/bin]
1353 --sbindir=DIR system admin executables [EPREFIX/sbin]
1354 --libexecdir=DIR program executables [EPREFIX/libexec]
1355 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1356 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1357 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1358 --libdir=DIR object code libraries [EPREFIX/lib]
1359 --includedir=DIR C header files [PREFIX/include]
1360 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1361 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1362 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1363 --infodir=DIR info documentation [DATAROOTDIR/info]
1364 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1365 --mandir=DIR man documentation [DATAROOTDIR/man]
1366 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1367 --htmldir=DIR html documentation [DOCDIR]
1368 --dvidir=DIR dvi documentation [DOCDIR]
1369 --pdfdir=DIR pdf documentation [DOCDIR]
1370 --psdir=DIR ps documentation [DOCDIR]
1376 --build=BUILD configure for building on BUILD [guessed]
1377 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1378 --target=TARGET configure for building compilers for TARGET [HOST]
1382 if test -n "$ac_init_help"; then
1383 case $ac_init_help in
1384 short | recursive ) echo "Configuration of llvm 2.7svn:";;
1389 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1390 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1391 --enable-optimized Compile with optimizations enabled (default is NO)
1392 --enable-profiling Compile with profiling enabled (default is NO)
1393 --enable-assertions Compile with assertion checks enabled (default is
1395 --enable-expensive-checks
1396 Compile with expensive debug checks enabled (default
1398 --enable-debug-runtime Build runtime libs with debug symbols (default is
1400 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1401 optimization is on and YES if it's off)
1402 --enable-jit Enable Just In Time Compiling (default is YES)
1403 --enable-doxygen Build doxygen documentation (default is NO)
1404 --enable-threads Use threads if available (default is YES)
1405 --enable-pic Build LLVM with Position Independent Code (default
1407 --enable-shared Link LLVM tools shared (default is NO)
1408 --enable-targets Build specific host targets: all or
1409 target1,target2,... Valid targets are: host, x86,
1410 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1411 pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1412 and cpp (default=all)
1413 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1415 --enable-bindings Build specific language bindings:
1416 all,auto,none,{binding-name} (default=auto)
1417 --enable-libffi Check for the presence of libffi (default is NO)
1418 --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on
1420 --enable-llvmc-dynamic-plugins
1421 Enable dynamic LLVMC plugins (default is YES)
1422 --enable-ltdl-install install libltdl
1425 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1426 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1427 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1429 --with-llvmgcc Specify location of llvm-gcc driver (default
1431 --with-llvmgxx Specify location of llvm-g++ driver (default
1433 --with-clang Specify location of clang compiler (default is
1435 --with-built-clang Use the compiled Clang as the LLVM compiler
1437 --with-optimize-option Select the compiler options to use for optimized
1439 --with-extra-options Specify additional options to compile LLVM with
1440 --with-ocaml-libdir Specify install location for ocaml bindings (default
1442 --with-c-include-dirs Colon separated list of directories clang will
1444 --with-cxx-include-root Directory with the libstdc++ headers.
1445 --with-cxx-include-arch Architecture of the libstdc++ headers.
1446 --with-cxx-include-32bit-dir
1447 32 bit multilib dir.
1448 --with-cxx-include-64bit-dir
1449 64 bit multilib directory.
1450 --with-binutils-include Specify path to binutils/include/ containing
1451 plugin-api.h file for gold plugin.
1452 --with-tclinclude directory where tcl headers are
1453 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1454 clang, or none; default=check)
1455 --with-udis86=<path> Use udis86 external x86 disassembler library
1456 --with-oprofile=<prefix>
1457 Tell OProfile >= 0.9.4 how to symbolize JIT output
1459 Some influential environment variables:
1460 CC C compiler command
1461 CFLAGS C compiler flags
1462 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1463 nonstandard directory <lib dir>
1464 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1465 you have headers in a nonstandard directory <include dir>
1467 CXX C++ compiler command
1468 CXXFLAGS C++ compiler flags
1470 Use these variables to override the choices made by `configure' or to help
1471 it to find libraries and programs with nonstandard names/locations.
1473 Report bugs to <llvmbugs@cs.uiuc.edu>.
1478 if test "$ac_init_help" = "recursive"; then
1479 # If there are subdirs, report their specific --help.
1480 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1481 test -d "$ac_dir" || continue
1485 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1487 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1488 # A ".." for each directory in $ac_dir_suffix.
1489 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1490 case $ac_top_builddir_sub in
1491 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1492 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1495 ac_abs_top_builddir=$ac_pwd
1496 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1497 # for backward compatibility:
1498 ac_top_builddir=$ac_top_build_prefix
1501 .) # We are building in place.
1503 ac_top_srcdir=$ac_top_builddir_sub
1504 ac_abs_top_srcdir=$ac_pwd ;;
1505 [\\/]* | ?:[\\/]* ) # Absolute name.
1506 ac_srcdir=$srcdir$ac_dir_suffix;
1507 ac_top_srcdir=$srcdir
1508 ac_abs_top_srcdir=$srcdir ;;
1510 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1511 ac_top_srcdir=$ac_top_build_prefix$srcdir
1512 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1514 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1516 cd "$ac_dir" || { ac_status=$?; continue; }
1517 # Check for guested configure.
1518 if test -f "$ac_srcdir/configure.gnu"; then
1520 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1521 elif test -f "$ac_srcdir/configure"; then
1523 $SHELL "$ac_srcdir/configure" --help=recursive
1525 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1527 cd "$ac_pwd" || { ac_status=$?; break; }
1531 test -n "$ac_init_help" && exit $ac_status
1532 if $ac_init_version; then
1534 llvm configure 2.7svn
1535 generated by GNU Autoconf 2.60
1537 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1538 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1539 This configure script is free software; the Free Software Foundation
1540 gives unlimited permission to copy, distribute and modify it.
1542 Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
1546 cat >config.log <<_ACEOF
1547 This file contains any messages produced by compilers while
1548 running configure, to aid debugging if configure makes a mistake.
1550 It was created by llvm $as_me 2.7svn, which was
1551 generated by GNU Autoconf 2.60. Invocation command line was
1563 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1564 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1565 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1566 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1567 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1569 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1570 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1572 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1573 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1574 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1575 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1576 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1577 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1578 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1586 test -z "$as_dir" && as_dir=.
1587 echo "PATH: $as_dir"
1603 # Keep a trace of the command line.
1604 # Strip out --no-create and --no-recursion so they do not pile up.
1605 # Strip out --silent because we don't want to record it for future runs.
1606 # Also quote any args containing shell meta-characters.
1607 # Make two passes to allow for proper duplicate-argument suppression.
1611 ac_must_keep_next=false
1617 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1618 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1619 | -silent | --silent | --silen | --sile | --sil)
1622 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1625 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1627 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1628 if test $ac_must_keep_next = true; then
1629 ac_must_keep_next=false # Got value, back to normal.
1632 *=* | --config-cache | -C | -disable-* | --disable-* \
1633 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1634 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1635 | -with-* | --with-* | -without-* | --without-* | --x)
1636 case "$ac_configure_args0 " in
1637 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1640 -* ) ac_must_keep_next=true ;;
1643 ac_configure_args="$ac_configure_args '$ac_arg'"
1648 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1649 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1651 # When interrupted or exit'd, cleanup temporary files, and complete
1652 # config.log. We remove comments because anyway the quotes in there
1653 # would cause problems or look ugly.
1654 # WARNING: Use '\'' to represent an apostrophe within the trap.
1655 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1656 trap 'exit_status=$?
1657 # Save into config.log some information that might help in debugging.
1662 ## ---------------- ##
1663 ## Cache variables. ##
1664 ## ---------------- ##
1667 # The following way of writing the cache mishandles newlines in values,
1669 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1670 eval ac_val=\$$ac_var
1674 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1675 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1678 _ | IFS | as_nl) ;; #(
1679 *) $as_unset $ac_var ;;
1684 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1685 *${as_nl}ac_space=\ *)
1687 "s/'\''/'\''\\\\'\'''\''/g;
1688 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1691 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1699 ## ----------------- ##
1700 ## Output variables. ##
1701 ## ----------------- ##
1704 for ac_var in $ac_subst_vars
1706 eval ac_val=\$$ac_var
1708 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1710 echo "$ac_var='\''$ac_val'\''"
1714 if test -n "$ac_subst_files"; then
1716 ## ------------------- ##
1717 ## File substitutions. ##
1718 ## ------------------- ##
1721 for ac_var in $ac_subst_files
1723 eval ac_val=\$$ac_var
1725 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1727 echo "$ac_var='\''$ac_val'\''"
1732 if test -s confdefs.h; then
1742 test "$ac_signal" != 0 &&
1743 echo "$as_me: caught signal $ac_signal"
1744 echo "$as_me: exit $exit_status"
1746 rm -f core *.core core.conftest.* &&
1747 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1750 for ac_signal in 1 2 13 15; do
1751 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1755 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1756 rm -f -r conftest* confdefs.h
1758 # Predefined preprocessor variables.
1760 cat >>confdefs.h <<_ACEOF
1761 #define PACKAGE_NAME "$PACKAGE_NAME"
1765 cat >>confdefs.h <<_ACEOF
1766 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1770 cat >>confdefs.h <<_ACEOF
1771 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1775 cat >>confdefs.h <<_ACEOF
1776 #define PACKAGE_STRING "$PACKAGE_STRING"
1780 cat >>confdefs.h <<_ACEOF
1781 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1785 # Let the site file select an alternate cache file if it wants to.
1786 # Prefer explicitly selected file to automatically selected ones.
1787 if test -n "$CONFIG_SITE"; then
1788 set x "$CONFIG_SITE"
1789 elif test "x$prefix" != xNONE; then
1790 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1792 set x "$ac_default_prefix/share/config.site" \
1793 "$ac_default_prefix/etc/config.site"
1798 if test -r "$ac_site_file"; then
1799 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1800 echo "$as_me: loading site script $ac_site_file" >&6;}
1801 sed 's/^/| /' "$ac_site_file" >&5
1806 if test -r "$cache_file"; then
1807 # Some versions of bash will fail to source /dev/null (special
1808 # files actually), so we avoid doing that.
1809 if test -f "$cache_file"; then
1810 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1811 echo "$as_me: loading cache $cache_file" >&6;}
1813 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1814 *) . "./$cache_file";;
1818 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1819 echo "$as_me: creating cache $cache_file" >&6;}
1823 # Check that the precious variables saved in the cache have kept the same
1825 ac_cache_corrupted=false
1826 for ac_var in $ac_precious_vars; do
1827 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1828 eval ac_new_set=\$ac_env_${ac_var}_set
1829 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1830 eval ac_new_val=\$ac_env_${ac_var}_value
1831 case $ac_old_set,$ac_new_set in
1833 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1834 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1835 ac_cache_corrupted=: ;;
1837 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1838 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1839 ac_cache_corrupted=: ;;
1842 if test "x$ac_old_val" != "x$ac_new_val"; then
1843 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1844 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1845 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1846 echo "$as_me: former value: $ac_old_val" >&2;}
1847 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1848 echo "$as_me: current value: $ac_new_val" >&2;}
1849 ac_cache_corrupted=:
1852 # Pass precious variables to config.status.
1853 if test "$ac_new_set" = set; then
1855 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1856 *) ac_arg=$ac_var=$ac_new_val ;;
1858 case " $ac_configure_args " in
1859 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1860 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1864 if $ac_cache_corrupted; then
1865 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1866 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1867 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1868 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1869 { (exit 1); exit 1; }; }
1897 ac_cpp='$CPP $CPPFLAGS'
1898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1904 LLVM_COPYRIGHT="Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign."
1913 for ac_dir in autoconf "$srcdir"/autoconf; do
1914 if test -f "$ac_dir/install-sh"; then
1916 ac_install_sh="$ac_aux_dir/install-sh -c"
1918 elif test -f "$ac_dir/install.sh"; then
1920 ac_install_sh="$ac_aux_dir/install.sh -c"
1922 elif test -f "$ac_dir/shtool"; then
1924 ac_install_sh="$ac_aux_dir/shtool install -c"
1928 if test -z "$ac_aux_dir"; then
1929 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1930 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1931 { (exit 1); exit 1; }; }
1934 # These three variables are undocumented and unsupported,
1935 # and are intended to be withdrawn in a future Autoconf release.
1936 # They can cause serious problems if a builder's source tree is in a directory
1937 # whose full name contains unusual characters.
1938 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1939 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1940 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1944 if test ${srcdir} != "." ; then
1945 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1946 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1947 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1948 { (exit 1); exit 1; }; }
1952 for i in `ls ${srcdir}/projects`
1954 if test -d ${srcdir}/projects/${i} ; then
1957 sample) subdirs="$subdirs projects/sample"
1959 privbracket) subdirs="$subdirs projects/privbracket"
1961 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
1963 # llvm-test is the old name of the test-suite, kept here for backwards
1965 llvm-test) subdirs="$subdirs projects/llvm-test"
1967 test-suite) subdirs="$subdirs projects/test-suite"
1969 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
1971 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
1973 llvm-java) subdirs="$subdirs projects/llvm-java"
1975 llvm-tv) subdirs="$subdirs projects/llvm-tv"
1977 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
1979 poolalloc) subdirs="$subdirs projects/poolalloc"
1981 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
1984 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1985 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1992 # Make sure we can run config.sub.
1993 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1994 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1995 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1996 { (exit 1); exit 1; }; }
1998 { echo "$as_me:$LINENO: checking build system type" >&5
1999 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2000 if test "${ac_cv_build+set}" = set; then
2001 echo $ECHO_N "(cached) $ECHO_C" >&6
2003 ac_build_alias=$build_alias
2004 test "x$ac_build_alias" = x &&
2005 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2006 test "x$ac_build_alias" = x &&
2007 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2008 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2009 { (exit 1); exit 1; }; }
2010 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2011 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2012 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2013 { (exit 1); exit 1; }; }
2016 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2017 echo "${ECHO_T}$ac_cv_build" >&6; }
2018 case $ac_cv_build in
2020 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2021 echo "$as_me: error: invalid value of canonical build" >&2;}
2022 { (exit 1); exit 1; }; };;
2025 ac_save_IFS=$IFS; IFS='-'
2031 # Remember, the first character of IFS is used to create $*,
2032 # except with old shells:
2035 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2038 { echo "$as_me:$LINENO: checking host system type" >&5
2039 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2040 if test "${ac_cv_host+set}" = set; then
2041 echo $ECHO_N "(cached) $ECHO_C" >&6
2043 if test "x$host_alias" = x; then
2044 ac_cv_host=$ac_cv_build
2046 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2047 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2048 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2049 { (exit 1); exit 1; }; }
2053 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2054 echo "${ECHO_T}$ac_cv_host" >&6; }
2057 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2058 echo "$as_me: error: invalid value of canonical host" >&2;}
2059 { (exit 1); exit 1; }; };;
2062 ac_save_IFS=$IFS; IFS='-'
2068 # Remember, the first character of IFS is used to create $*,
2069 # except with old shells:
2072 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2075 { echo "$as_me:$LINENO: checking target system type" >&5
2076 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2077 if test "${ac_cv_target+set}" = set; then
2078 echo $ECHO_N "(cached) $ECHO_C" >&6
2080 if test "x$target_alias" = x; then
2081 ac_cv_target=$ac_cv_host
2083 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2084 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2085 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2086 { (exit 1); exit 1; }; }
2090 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2091 echo "${ECHO_T}$ac_cv_target" >&6; }
2092 case $ac_cv_target in
2094 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2095 echo "$as_me: error: invalid value of canonical target" >&2;}
2096 { (exit 1); exit 1; }; };;
2098 target=$ac_cv_target
2099 ac_save_IFS=$IFS; IFS='-'
2105 # Remember, the first character of IFS is used to create $*,
2106 # except with old shells:
2109 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2112 # The aliases save the names the user supplied, while $host etc.
2113 # will get canonicalized.
2114 test -n "$target_alias" &&
2115 test "$program_prefix$program_suffix$program_transform_name" = \
2117 program_prefix=${target_alias}-
2119 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2120 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2121 if test "${llvm_cv_os_type+set}" = set; then
2122 echo $ECHO_N "(cached) $ECHO_C" >&6
2126 llvm_cv_link_all_option="-Wl,--whole-archive"
2127 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2128 llvm_cv_os_type="AIX"
2129 llvm_cv_platform_type="Unix" ;;
2131 llvm_cv_link_all_option="-Wl,--whole-archive"
2132 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2133 llvm_cv_os_type="IRIX"
2134 llvm_cv_platform_type="Unix" ;;
2136 llvm_cv_link_all_option="-Wl,--whole-archive"
2137 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2138 llvm_cv_os_type="Cygwin"
2139 llvm_cv_platform_type="Unix" ;;
2141 llvm_cv_link_all_option="-Wl,-all_load"
2142 llvm_cv_no_link_all_option="-Wl,-noall_load"
2143 llvm_cv_os_type="Darwin"
2144 llvm_cv_platform_type="Unix" ;;
2146 llvm_cv_link_all_option="-Wl,--whole-archive"
2147 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2148 llvm_cv_os_type="FreeBSD"
2149 llvm_cv_platform_type="Unix" ;;
2151 llvm_cv_link_all_option="-Wl,--whole-archive"
2152 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2153 llvm_cv_os_type="OpenBSD"
2154 llvm_cv_platform_type="Unix" ;;
2156 llvm_cv_link_all_option="-Wl,--whole-archive"
2157 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2158 llvm_cv_os_type="NetBSD"
2159 llvm_cv_platform_type="Unix" ;;
2161 llvm_cv_link_all_option="-Wl,--whole-archive"
2162 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2163 llvm_cv_os_type="DragonFly"
2164 llvm_cv_platform_type="Unix" ;;
2166 llvm_cv_link_all_option="-Wl,--whole-archive"
2167 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2168 llvm_cv_os_type="HP-UX"
2169 llvm_cv_platform_type="Unix" ;;
2171 llvm_cv_link_all_option="-Wl,--whole-archive"
2172 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2173 llvm_cv_os_type="Interix"
2174 llvm_cv_platform_type="Unix" ;;
2176 llvm_cv_link_all_option="-Wl,--whole-archive"
2177 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2178 llvm_cv_os_type="Linux"
2179 llvm_cv_platform_type="Unix" ;;
2181 llvm_cv_link_all_option="-Wl,-z,allextract"
2182 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2183 llvm_cv_os_type="SunOS"
2184 llvm_cv_platform_type="Unix" ;;
2186 llvm_cv_link_all_option="-Wl,-z,allextract"
2187 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2188 llvm_cv_os_type="AuroraUX"
2189 llvm_cv_platform_type="Unix" ;;
2191 llvm_cv_link_all_option="-Wl,--whole-archive"
2192 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2193 llvm_cv_os_type="Win32"
2194 llvm_cv_platform_type="Win32" ;;
2196 llvm_cv_link_all_option="-Wl,--whole-archive"
2197 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2198 llvm_cv_os_type="MingW"
2199 llvm_cv_platform_type="Win32" ;;
2201 llvm_cv_link_all_option="-Wl,--whole-archive"
2202 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2203 llvm_cv_os_type="Haiku"
2204 llvm_cv_platform_type="Unix" ;;
2206 llvm_cv_link_all_option="-Wl,--whole-archive"
2207 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2208 llvm_cv_os_type="Freestanding"
2209 llvm_cv_platform_type="Unix" ;;
2211 llvm_cv_link_all_option="-Wl,--whole-archive"
2212 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2213 llvm_cv_os_type="Freestanding"
2214 llvm_cv_platform_type="Unix" ;;
2216 llvm_cv_link_all_option=""
2217 llvm_cv_no_link_all_option=""
2218 llvm_cv_os_type="Unknown"
2219 llvm_cv_platform_type="Unknown" ;;
2222 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2223 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2225 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2226 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2227 if test "${llvm_cv_target_os_type+set}" = set; then
2228 echo $ECHO_N "(cached) $ECHO_C" >&6
2232 llvm_cv_target_os_type="AIX" ;;
2234 llvm_cv_target_os_type="IRIX" ;;
2236 llvm_cv_target_os_type="Cygwin" ;;
2238 llvm_cv_target_os_type="Darwin" ;;
2240 llvm_cv_target_os_type="FreeBSD" ;;
2242 llvm_cv_target_os_type="OpenBSD" ;;
2244 llvm_cv_target_os_type="NetBSD" ;;
2246 llvm_cv_target_os_type="DragonFly" ;;
2248 llvm_cv_target_os_type="HP-UX" ;;
2250 llvm_cv_target_os_type="Interix" ;;
2252 llvm_cv_target_os_type="Linux" ;;
2254 llvm_cv_target_os_type="SunOS" ;;
2256 llvm_cv_target_os_type="AuroraUX" ;;
2258 llvm_cv_target_os_type="Win32" ;;
2260 llvm_cv_target_os_type="MingW" ;;
2262 llvm_cv_target_os_type="Haiku" ;;
2264 llvm_cv_target_os_type="Freestanding" ;;
2266 llvm_cv_target_os_type="Unknown" ;;
2269 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2270 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2272 if test "$llvm_cv_os_type" = "Unknown" ; then
2273 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2274 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2275 { (exit 1); exit 1; }; }
2280 HOST_OS=$llvm_cv_os_type
2282 TARGET_OS=$llvm_cv_target_os_type
2285 LINKALL=$llvm_cv_link_all_option
2287 NOLINKALL=$llvm_cv_no_link_all_option
2290 case $llvm_cv_platform_type in
2293 cat >>confdefs.h <<\_ACEOF
2294 #define LLVM_ON_UNIX 1
2304 cat >>confdefs.h <<\_ACEOF
2305 #define LLVM_ON_WIN32 1
2315 { echo "$as_me:$LINENO: checking target architecture" >&5
2316 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2317 if test "${llvm_cv_target_arch+set}" = set; then
2318 echo $ECHO_N "(cached) $ECHO_C" >&6
2321 i?86-*) llvm_cv_target_arch="x86" ;;
2322 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2323 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2324 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2325 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2326 arm*-*) llvm_cv_target_arch="ARM" ;;
2327 mips-*) llvm_cv_target_arch="Mips" ;;
2328 pic16-*) llvm_cv_target_arch="PIC16" ;;
2329 xcore-*) llvm_cv_target_arch="XCore" ;;
2330 msp430-*) llvm_cv_target_arch="MSP430" ;;
2331 s390x-*) llvm_cv_target_arch="SystemZ" ;;
2332 bfin-*) llvm_cv_target_arch="Blackfin" ;;
2333 *) llvm_cv_target_arch="Unknown" ;;
2336 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2337 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2339 if test "$llvm_cv_target_arch" = "Unknown" ; then
2340 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2341 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2344 # Determine the LLVM native architecture for the target
2345 case "$llvm_cv_target_arch" in
2346 x86) LLVM_NATIVE_ARCH="X86" ;;
2347 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2348 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2351 ARCH=$llvm_cv_target_arch
2355 ac_cpp='$CPP $CPPFLAGS'
2356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2359 if test -n "$ac_tool_prefix"; then
2360 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2361 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2362 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2364 if test "${ac_cv_prog_CC+set}" = set; then
2365 echo $ECHO_N "(cached) $ECHO_C" >&6
2367 if test -n "$CC"; then
2368 ac_cv_prog_CC="$CC" # Let the user override the test.
2370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2374 test -z "$as_dir" && as_dir=.
2375 for ac_exec_ext in '' $ac_executable_extensions; do
2376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2377 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2388 if test -n "$CC"; then
2389 { echo "$as_me:$LINENO: result: $CC" >&5
2390 echo "${ECHO_T}$CC" >&6; }
2392 { echo "$as_me:$LINENO: result: no" >&5
2393 echo "${ECHO_T}no" >&6; }
2398 if test -z "$ac_cv_prog_CC"; then
2400 # Extract the first word of "gcc", so it can be a program name with args.
2401 set dummy gcc; ac_word=$2
2402 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2404 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2405 echo $ECHO_N "(cached) $ECHO_C" >&6
2407 if test -n "$ac_ct_CC"; then
2408 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2414 test -z "$as_dir" && as_dir=.
2415 for ac_exec_ext in '' $ac_executable_extensions; do
2416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2417 ac_cv_prog_ac_ct_CC="gcc"
2418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2427 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2428 if test -n "$ac_ct_CC"; then
2429 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2430 echo "${ECHO_T}$ac_ct_CC" >&6; }
2432 { echo "$as_me:$LINENO: result: no" >&5
2433 echo "${ECHO_T}no" >&6; }
2436 if test "x$ac_ct_CC" = x; then
2439 case $cross_compiling:$ac_tool_warned in
2441 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2442 whose name does not start with the host triplet. If you think this
2443 configuration is useful to you, please write to autoconf@gnu.org." >&5
2444 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2445 whose name does not start with the host triplet. If you think this
2446 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2447 ac_tool_warned=yes ;;
2455 if test -z "$CC"; then
2456 if test -n "$ac_tool_prefix"; then
2457 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2458 set dummy ${ac_tool_prefix}cc; ac_word=$2
2459 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2461 if test "${ac_cv_prog_CC+set}" = set; then
2462 echo $ECHO_N "(cached) $ECHO_C" >&6
2464 if test -n "$CC"; then
2465 ac_cv_prog_CC="$CC" # Let the user override the test.
2467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2471 test -z "$as_dir" && as_dir=.
2472 for ac_exec_ext in '' $ac_executable_extensions; do
2473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2474 ac_cv_prog_CC="${ac_tool_prefix}cc"
2475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2485 if test -n "$CC"; then
2486 { echo "$as_me:$LINENO: result: $CC" >&5
2487 echo "${ECHO_T}$CC" >&6; }
2489 { echo "$as_me:$LINENO: result: no" >&5
2490 echo "${ECHO_T}no" >&6; }
2496 if test -z "$CC"; then
2497 # Extract the first word of "cc", so it can be a program name with args.
2498 set dummy cc; ac_word=$2
2499 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2501 if test "${ac_cv_prog_CC+set}" = set; then
2502 echo $ECHO_N "(cached) $ECHO_C" >&6
2504 if test -n "$CC"; then
2505 ac_cv_prog_CC="$CC" # Let the user override the test.
2508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2512 test -z "$as_dir" && as_dir=.
2513 for ac_exec_ext in '' $ac_executable_extensions; do
2514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2515 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2516 ac_prog_rejected=yes
2520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2527 if test $ac_prog_rejected = yes; then
2528 # We found a bogon in the path, so make sure we never use it.
2529 set dummy $ac_cv_prog_CC
2531 if test $# != 0; then
2532 # We chose a different compiler from the bogus one.
2533 # However, it has the same basename, so the bogon will be chosen
2534 # first if we set CC to just the basename; use the full file name.
2536 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2542 if test -n "$CC"; then
2543 { echo "$as_me:$LINENO: result: $CC" >&5
2544 echo "${ECHO_T}$CC" >&6; }
2546 { echo "$as_me:$LINENO: result: no" >&5
2547 echo "${ECHO_T}no" >&6; }
2552 if test -z "$CC"; then
2553 if test -n "$ac_tool_prefix"; then
2554 for ac_prog in cl.exe
2556 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2557 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2560 if test "${ac_cv_prog_CC+set}" = set; then
2561 echo $ECHO_N "(cached) $ECHO_C" >&6
2563 if test -n "$CC"; then
2564 ac_cv_prog_CC="$CC" # Let the user override the test.
2566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2570 test -z "$as_dir" && as_dir=.
2571 for ac_exec_ext in '' $ac_executable_extensions; do
2572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2573 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2584 if test -n "$CC"; then
2585 { echo "$as_me:$LINENO: result: $CC" >&5
2586 echo "${ECHO_T}$CC" >&6; }
2588 { echo "$as_me:$LINENO: result: no" >&5
2589 echo "${ECHO_T}no" >&6; }
2593 test -n "$CC" && break
2596 if test -z "$CC"; then
2598 for ac_prog in cl.exe
2600 # Extract the first word of "$ac_prog", so it can be a program name with args.
2601 set dummy $ac_prog; ac_word=$2
2602 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2604 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2605 echo $ECHO_N "(cached) $ECHO_C" >&6
2607 if test -n "$ac_ct_CC"; then
2608 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2614 test -z "$as_dir" && as_dir=.
2615 for ac_exec_ext in '' $ac_executable_extensions; do
2616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2617 ac_cv_prog_ac_ct_CC="$ac_prog"
2618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2627 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2628 if test -n "$ac_ct_CC"; then
2629 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2630 echo "${ECHO_T}$ac_ct_CC" >&6; }
2632 { echo "$as_me:$LINENO: result: no" >&5
2633 echo "${ECHO_T}no" >&6; }
2637 test -n "$ac_ct_CC" && break
2640 if test "x$ac_ct_CC" = x; then
2643 case $cross_compiling:$ac_tool_warned in
2645 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2646 whose name does not start with the host triplet. If you think this
2647 configuration is useful to you, please write to autoconf@gnu.org." >&5
2648 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2649 whose name does not start with the host triplet. If you think this
2650 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2651 ac_tool_warned=yes ;;
2660 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2661 See \`config.log' for more details." >&5
2662 echo "$as_me: error: no acceptable C compiler found in \$PATH
2663 See \`config.log' for more details." >&2;}
2664 { (exit 1); exit 1; }; }
2666 # Provide some information about the compiler.
2667 echo "$as_me:$LINENO: checking for C compiler version" >&5
2668 ac_compiler=`set X $ac_compile; echo $2`
2669 { (ac_try="$ac_compiler --version >&5"
2671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2672 *) ac_try_echo=$ac_try;;
2674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2675 (eval "$ac_compiler --version >&5") 2>&5
2677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678 (exit $ac_status); }
2679 { (ac_try="$ac_compiler -v >&5"
2681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2682 *) ac_try_echo=$ac_try;;
2684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2685 (eval "$ac_compiler -v >&5") 2>&5
2687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688 (exit $ac_status); }
2689 { (ac_try="$ac_compiler -V >&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 -V >&5") 2>&5
2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); }
2700 cat >conftest.$ac_ext <<_ACEOF
2703 cat confdefs.h >>conftest.$ac_ext
2704 cat >>conftest.$ac_ext <<_ACEOF
2705 /* end confdefs.h. */
2715 ac_clean_files_save=$ac_clean_files
2716 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2717 # Try to create an executable without -o first, disregard a.out.
2718 # It will help us diagnose broken compilers, and finding out an intuition
2720 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2721 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2722 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2724 # List of possible output files, starting from the most likely.
2725 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2726 # only as a last resort. b.out is created by i960 compilers.
2727 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2729 # The IRIX 6 linker writes into existing files which may not be
2730 # executable, retaining their permissions. Remove them first so a
2731 # subsequent execution test works.
2733 for ac_file in $ac_files
2736 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2737 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2742 if { (ac_try="$ac_link_default"
2744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2745 *) ac_try_echo=$ac_try;;
2747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2748 (eval "$ac_link_default") 2>&5
2750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751 (exit $ac_status); }; then
2752 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2753 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2754 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2755 # so that the user can short-circuit this test for compilers unknown to
2757 for ac_file in $ac_files
2759 test -f "$ac_file" || continue
2761 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2764 # We found the default executable, but exeext='' is most
2768 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2770 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2772 # We set ac_cv_exeext here because the later test for it is not
2773 # safe: cross compilers may not add the suffix if given an `-o'
2774 # argument, so we may need to know it at that point already.
2775 # Even if this section looks crufty: it has the advantage of
2782 test "$ac_cv_exeext" = no && ac_cv_exeext=
2785 echo "$as_me: failed program was:" >&5
2786 sed 's/^/| /' conftest.$ac_ext >&5
2788 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2789 See \`config.log' for more details." >&5
2790 echo "$as_me: error: C compiler cannot create executables
2791 See \`config.log' for more details." >&2;}
2792 { (exit 77); exit 77; }; }
2795 ac_exeext=$ac_cv_exeext
2796 { echo "$as_me:$LINENO: result: $ac_file" >&5
2797 echo "${ECHO_T}$ac_file" >&6; }
2799 # Check that the compiler produces executables we can run. If not, either
2800 # the compiler is broken, or we cross compile.
2801 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2802 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2803 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2804 # If not cross compiling, check that we can run a simple program.
2805 if test "$cross_compiling" != yes; then
2806 if { ac_try='./$ac_file'
2807 { (case "(($ac_try" in
2808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2809 *) ac_try_echo=$ac_try;;
2811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2812 (eval "$ac_try") 2>&5
2814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815 (exit $ac_status); }; }; then
2818 if test "$cross_compiling" = maybe; then
2821 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2822 If you meant to cross compile, use \`--host'.
2823 See \`config.log' for more details." >&5
2824 echo "$as_me: error: cannot run C compiled programs.
2825 If you meant to cross compile, use \`--host'.
2826 See \`config.log' for more details." >&2;}
2827 { (exit 1); exit 1; }; }
2831 { echo "$as_me:$LINENO: result: yes" >&5
2832 echo "${ECHO_T}yes" >&6; }
2834 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2835 ac_clean_files=$ac_clean_files_save
2836 # Check that the compiler produces executables we can run. If not, either
2837 # the compiler is broken, or we cross compile.
2838 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2839 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2840 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2841 echo "${ECHO_T}$cross_compiling" >&6; }
2843 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2844 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2845 if { (ac_try="$ac_link"
2847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2848 *) ac_try_echo=$ac_try;;
2850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2851 (eval "$ac_link") 2>&5
2853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854 (exit $ac_status); }; then
2855 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2856 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2857 # work properly (i.e., refer to `conftest.exe'), while it won't with
2859 for ac_file in conftest.exe conftest conftest.*; do
2860 test -f "$ac_file" || continue
2862 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2863 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2869 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2870 See \`config.log' for more details." >&5
2871 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2872 See \`config.log' for more details." >&2;}
2873 { (exit 1); exit 1; }; }
2876 rm -f conftest$ac_cv_exeext
2877 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2878 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2880 rm -f conftest.$ac_ext
2881 EXEEXT=$ac_cv_exeext
2883 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2884 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2885 if test "${ac_cv_objext+set}" = set; then
2886 echo $ECHO_N "(cached) $ECHO_C" >&6
2888 cat >conftest.$ac_ext <<_ACEOF
2891 cat confdefs.h >>conftest.$ac_ext
2892 cat >>conftest.$ac_ext <<_ACEOF
2893 /* end confdefs.h. */
2903 rm -f conftest.o conftest.obj
2904 if { (ac_try="$ac_compile"
2906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2907 *) ac_try_echo=$ac_try;;
2909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2910 (eval "$ac_compile") 2>&5
2912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913 (exit $ac_status); }; then
2914 for ac_file in conftest.o conftest.obj conftest.*; do
2915 test -f "$ac_file" || continue;
2917 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2918 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2923 echo "$as_me: failed program was:" >&5
2924 sed 's/^/| /' conftest.$ac_ext >&5
2926 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2927 See \`config.log' for more details." >&5
2928 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2929 See \`config.log' for more details." >&2;}
2930 { (exit 1); exit 1; }; }
2933 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2935 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2936 echo "${ECHO_T}$ac_cv_objext" >&6; }
2937 OBJEXT=$ac_cv_objext
2939 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2940 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2941 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2942 echo $ECHO_N "(cached) $ECHO_C" >&6
2944 cat >conftest.$ac_ext <<_ACEOF
2947 cat confdefs.h >>conftest.$ac_ext
2948 cat >>conftest.$ac_ext <<_ACEOF
2949 /* end confdefs.h. */
2962 rm -f conftest.$ac_objext
2963 if { (ac_try="$ac_compile"
2965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2966 *) ac_try_echo=$ac_try;;
2968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2969 (eval "$ac_compile") 2>conftest.er1
2971 grep -v '^ *+' conftest.er1 >conftest.err
2973 cat conftest.err >&5
2974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975 (exit $ac_status); } &&
2976 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2977 { (case "(($ac_try" in
2978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2979 *) ac_try_echo=$ac_try;;
2981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2982 (eval "$ac_try") 2>&5
2984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985 (exit $ac_status); }; } &&
2986 { ac_try='test -s conftest.$ac_objext'
2987 { (case "(($ac_try" in
2988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2989 *) ac_try_echo=$ac_try;;
2991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2992 (eval "$ac_try") 2>&5
2994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995 (exit $ac_status); }; }; then
2998 echo "$as_me: failed program was:" >&5
2999 sed 's/^/| /' conftest.$ac_ext >&5
3004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3005 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3008 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3009 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3010 GCC=`test $ac_compiler_gnu = yes && echo yes`
3011 ac_test_CFLAGS=${CFLAGS+set}
3012 ac_save_CFLAGS=$CFLAGS
3013 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3014 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3015 if test "${ac_cv_prog_cc_g+set}" = set; then
3016 echo $ECHO_N "(cached) $ECHO_C" >&6
3018 ac_save_c_werror_flag=$ac_c_werror_flag
3019 ac_c_werror_flag=yes
3022 cat >conftest.$ac_ext <<_ACEOF
3025 cat confdefs.h >>conftest.$ac_ext
3026 cat >>conftest.$ac_ext <<_ACEOF
3027 /* end confdefs.h. */
3037 rm -f conftest.$ac_objext
3038 if { (ac_try="$ac_compile"
3040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3041 *) ac_try_echo=$ac_try;;
3043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3044 (eval "$ac_compile") 2>conftest.er1
3046 grep -v '^ *+' conftest.er1 >conftest.err
3048 cat conftest.err >&5
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); } &&
3051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3052 { (case "(($ac_try" in
3053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3054 *) ac_try_echo=$ac_try;;
3056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3057 (eval "$ac_try") 2>&5
3059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060 (exit $ac_status); }; } &&
3061 { ac_try='test -s conftest.$ac_objext'
3062 { (case "(($ac_try" in
3063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3064 *) ac_try_echo=$ac_try;;
3066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3067 (eval "$ac_try") 2>&5
3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); }; }; then
3073 echo "$as_me: failed program was:" >&5
3074 sed 's/^/| /' conftest.$ac_ext >&5
3077 cat >conftest.$ac_ext <<_ACEOF
3080 cat confdefs.h >>conftest.$ac_ext
3081 cat >>conftest.$ac_ext <<_ACEOF
3082 /* end confdefs.h. */
3092 rm -f conftest.$ac_objext
3093 if { (ac_try="$ac_compile"
3095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096 *) ac_try_echo=$ac_try;;
3098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3099 (eval "$ac_compile") 2>conftest.er1
3101 grep -v '^ *+' conftest.er1 >conftest.err
3103 cat conftest.err >&5
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); } &&
3106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3107 { (case "(($ac_try" in
3108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3109 *) ac_try_echo=$ac_try;;
3111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3112 (eval "$ac_try") 2>&5
3114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115 (exit $ac_status); }; } &&
3116 { ac_try='test -s conftest.$ac_objext'
3117 { (case "(($ac_try" in
3118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3119 *) ac_try_echo=$ac_try;;
3121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3122 (eval "$ac_try") 2>&5
3124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125 (exit $ac_status); }; }; then
3128 echo "$as_me: failed program was:" >&5
3129 sed 's/^/| /' conftest.$ac_ext >&5
3131 ac_c_werror_flag=$ac_save_c_werror_flag
3133 cat >conftest.$ac_ext <<_ACEOF
3136 cat confdefs.h >>conftest.$ac_ext
3137 cat >>conftest.$ac_ext <<_ACEOF
3138 /* end confdefs.h. */
3148 rm -f conftest.$ac_objext
3149 if { (ac_try="$ac_compile"
3151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152 *) ac_try_echo=$ac_try;;
3154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3155 (eval "$ac_compile") 2>conftest.er1
3157 grep -v '^ *+' conftest.er1 >conftest.err
3159 cat conftest.err >&5
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); } &&
3162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3163 { (case "(($ac_try" in
3164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3165 *) ac_try_echo=$ac_try;;
3167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3168 (eval "$ac_try") 2>&5
3170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171 (exit $ac_status); }; } &&
3172 { ac_try='test -s conftest.$ac_objext'
3173 { (case "(($ac_try" in
3174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3175 *) ac_try_echo=$ac_try;;
3177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3178 (eval "$ac_try") 2>&5
3180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181 (exit $ac_status); }; }; then
3184 echo "$as_me: failed program was:" >&5
3185 sed 's/^/| /' conftest.$ac_ext >&5
3190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3197 ac_c_werror_flag=$ac_save_c_werror_flag
3199 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3200 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3201 if test "$ac_test_CFLAGS" = set; then
3202 CFLAGS=$ac_save_CFLAGS
3203 elif test $ac_cv_prog_cc_g = yes; then
3204 if test "$GCC" = yes; then
3210 if test "$GCC" = yes; then
3216 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3217 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3218 if test "${ac_cv_prog_cc_c89+set}" = set; then
3219 echo $ECHO_N "(cached) $ECHO_C" >&6
3221 ac_cv_prog_cc_c89=no
3223 cat >conftest.$ac_ext <<_ACEOF
3226 cat confdefs.h >>conftest.$ac_ext
3227 cat >>conftest.$ac_ext <<_ACEOF
3228 /* end confdefs.h. */
3231 #include <sys/types.h>
3232 #include <sys/stat.h>
3233 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3234 struct buf { int x; };
3235 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3236 static char *e (p, i)
3242 static char *f (char * (*g) (char **, int), char **p, ...)
3247 s = g (p, va_arg (v,int));
3252 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3253 function prototypes and stuff, but not '\xHH' hex character constants.
3254 These don't provoke an error unfortunately, instead are silently treated
3255 as 'x'. The following induces an error, until -std is added to get
3256 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3257 array size at least. It's necessary to write '\x00'==0 to get something
3258 that's true only with -std. */
3259 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3261 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3262 inside strings and character constants. */
3264 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3266 int test (int i, double x);
3267 struct s1 {int (*f) (int a);};
3268 struct s2 {int (*f) (double a);};
3269 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3275 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3280 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3281 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3283 CC="$ac_save_CC $ac_arg"
3284 rm -f conftest.$ac_objext
3285 if { (ac_try="$ac_compile"
3287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3288 *) ac_try_echo=$ac_try;;
3290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3291 (eval "$ac_compile") 2>conftest.er1
3293 grep -v '^ *+' conftest.er1 >conftest.err
3295 cat conftest.err >&5
3296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297 (exit $ac_status); } &&
3298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3299 { (case "(($ac_try" in
3300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3301 *) ac_try_echo=$ac_try;;
3303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3304 (eval "$ac_try") 2>&5
3306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307 (exit $ac_status); }; } &&
3308 { ac_try='test -s conftest.$ac_objext'
3309 { (case "(($ac_try" in
3310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3311 *) ac_try_echo=$ac_try;;
3313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3314 (eval "$ac_try") 2>&5
3316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3317 (exit $ac_status); }; }; then
3318 ac_cv_prog_cc_c89=$ac_arg
3320 echo "$as_me: failed program was:" >&5
3321 sed 's/^/| /' conftest.$ac_ext >&5
3326 rm -f core conftest.err conftest.$ac_objext
3327 test "x$ac_cv_prog_cc_c89" != "xno" && break
3329 rm -f conftest.$ac_ext
3334 case "x$ac_cv_prog_cc_c89" in
3336 { echo "$as_me:$LINENO: result: none needed" >&5
3337 echo "${ECHO_T}none needed" >&6; } ;;
3339 { echo "$as_me:$LINENO: result: unsupported" >&5
3340 echo "${ECHO_T}unsupported" >&6; } ;;
3342 CC="$CC $ac_cv_prog_cc_c89"
3343 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3344 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3349 ac_cpp='$CPP $CPPFLAGS'
3350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3356 ac_cpp='$CPP $CPPFLAGS'
3357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3360 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3361 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3362 # On Suns, sometimes $CPP names a directory.
3363 if test -n "$CPP" && test -d "$CPP"; then
3366 if test -z "$CPP"; then
3367 if test "${ac_cv_prog_CPP+set}" = set; then
3368 echo $ECHO_N "(cached) $ECHO_C" >&6
3370 # Double quotes because CPP needs to be expanded
3371 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3374 for ac_c_preproc_warn_flag in '' yes
3376 # Use a header file that comes with gcc, so configuring glibc
3377 # with a fresh cross-compiler works.
3378 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3379 # <limits.h> exists even on freestanding compilers.
3380 # On the NeXT, cc -E runs the code through the compiler's parser,
3381 # not just through cpp. "Syntax error" is here to catch this case.
3382 cat >conftest.$ac_ext <<_ACEOF
3385 cat confdefs.h >>conftest.$ac_ext
3386 cat >>conftest.$ac_ext <<_ACEOF
3387 /* end confdefs.h. */
3389 # include <limits.h>
3391 # include <assert.h>
3395 if { (ac_try="$ac_cpp conftest.$ac_ext"
3397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3398 *) ac_try_echo=$ac_try;;
3400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3401 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3403 grep -v '^ *+' conftest.er1 >conftest.err
3405 cat conftest.err >&5
3406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407 (exit $ac_status); } >/dev/null; then
3408 if test -s conftest.err; then
3409 ac_cpp_err=$ac_c_preproc_warn_flag
3410 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3417 if test -z "$ac_cpp_err"; then
3420 echo "$as_me: failed program was:" >&5
3421 sed 's/^/| /' conftest.$ac_ext >&5
3423 # Broken: fails on valid input.
3427 rm -f conftest.err conftest.$ac_ext
3429 # OK, works on sane cases. Now check whether nonexistent headers
3430 # can be detected and how.
3431 cat >conftest.$ac_ext <<_ACEOF
3434 cat confdefs.h >>conftest.$ac_ext
3435 cat >>conftest.$ac_ext <<_ACEOF
3436 /* end confdefs.h. */
3437 #include <ac_nonexistent.h>
3439 if { (ac_try="$ac_cpp conftest.$ac_ext"
3441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3442 *) ac_try_echo=$ac_try;;
3444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3445 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3447 grep -v '^ *+' conftest.er1 >conftest.err
3449 cat conftest.err >&5
3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451 (exit $ac_status); } >/dev/null; then
3452 if test -s conftest.err; then
3453 ac_cpp_err=$ac_c_preproc_warn_flag
3454 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3461 if test -z "$ac_cpp_err"; then
3462 # Broken: success on invalid input.
3465 echo "$as_me: failed program was:" >&5
3466 sed 's/^/| /' conftest.$ac_ext >&5
3468 # Passes both tests.
3473 rm -f conftest.err conftest.$ac_ext
3476 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3477 rm -f conftest.err conftest.$ac_ext
3478 if $ac_preproc_ok; then
3490 { echo "$as_me:$LINENO: result: $CPP" >&5
3491 echo "${ECHO_T}$CPP" >&6; }
3493 for ac_c_preproc_warn_flag in '' yes
3495 # Use a header file that comes with gcc, so configuring glibc
3496 # with a fresh cross-compiler works.
3497 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3498 # <limits.h> exists even on freestanding compilers.
3499 # On the NeXT, cc -E runs the code through the compiler's parser,
3500 # not just through cpp. "Syntax error" is here to catch this case.
3501 cat >conftest.$ac_ext <<_ACEOF
3504 cat confdefs.h >>conftest.$ac_ext
3505 cat >>conftest.$ac_ext <<_ACEOF
3506 /* end confdefs.h. */
3508 # include <limits.h>
3510 # include <assert.h>
3514 if { (ac_try="$ac_cpp conftest.$ac_ext"
3516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3517 *) ac_try_echo=$ac_try;;
3519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3520 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3522 grep -v '^ *+' conftest.er1 >conftest.err
3524 cat conftest.err >&5
3525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); } >/dev/null; then
3527 if test -s conftest.err; then
3528 ac_cpp_err=$ac_c_preproc_warn_flag
3529 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3536 if test -z "$ac_cpp_err"; then
3539 echo "$as_me: failed program was:" >&5
3540 sed 's/^/| /' conftest.$ac_ext >&5
3542 # Broken: fails on valid input.
3546 rm -f conftest.err conftest.$ac_ext
3548 # OK, works on sane cases. Now check whether nonexistent headers
3549 # can be detected and how.
3550 cat >conftest.$ac_ext <<_ACEOF
3553 cat confdefs.h >>conftest.$ac_ext
3554 cat >>conftest.$ac_ext <<_ACEOF
3555 /* end confdefs.h. */
3556 #include <ac_nonexistent.h>
3558 if { (ac_try="$ac_cpp conftest.$ac_ext"
3560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3561 *) ac_try_echo=$ac_try;;
3563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3564 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3566 grep -v '^ *+' conftest.er1 >conftest.err
3568 cat conftest.err >&5
3569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570 (exit $ac_status); } >/dev/null; then
3571 if test -s conftest.err; then
3572 ac_cpp_err=$ac_c_preproc_warn_flag
3573 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3580 if test -z "$ac_cpp_err"; then
3581 # Broken: success on invalid input.
3584 echo "$as_me: failed program was:" >&5
3585 sed 's/^/| /' conftest.$ac_ext >&5
3587 # Passes both tests.
3592 rm -f conftest.err conftest.$ac_ext
3595 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3596 rm -f conftest.err conftest.$ac_ext
3597 if $ac_preproc_ok; then
3600 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3601 See \`config.log' for more details." >&5
3602 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3603 See \`config.log' for more details." >&2;}
3604 { (exit 1); exit 1; }; }
3608 ac_cpp='$CPP $CPPFLAGS'
3609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3614 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3615 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3616 if test "${ac_cv_path_GREP+set}" = set; then
3617 echo $ECHO_N "(cached) $ECHO_C" >&6
3619 # Extract the first word of "grep ggrep" to use in msg output
3620 if test -z "$GREP"; then
3621 set dummy grep ggrep; ac_prog_name=$2
3622 if test "${ac_cv_path_GREP+set}" = set; then
3623 echo $ECHO_N "(cached) $ECHO_C" >&6
3625 ac_path_GREP_found=false
3626 # Loop through the user's path and test for each of PROGNAME-LIST
3627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3628 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3631 test -z "$as_dir" && as_dir=.
3632 for ac_prog in grep ggrep; do
3633 for ac_exec_ext in '' $ac_executable_extensions; do
3634 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3635 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3636 # Check for GNU ac_path_GREP and select it if it is found.
3637 # Check for GNU $ac_path_GREP
3638 case `"$ac_path_GREP" --version 2>&1` in
3640 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3643 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3646 cat "conftest.in" "conftest.in" >"conftest.tmp"
3647 mv "conftest.tmp" "conftest.in"
3648 cp "conftest.in" "conftest.nl"
3649 echo 'GREP' >> "conftest.nl"
3650 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3651 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3652 ac_count=`expr $ac_count + 1`
3653 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3654 # Best one so far, save it but keep looking for a better one
3655 ac_cv_path_GREP="$ac_path_GREP"
3656 ac_path_GREP_max=$ac_count
3658 # 10*(2^10) chars as input seems more than enough
3659 test $ac_count -gt 10 && break
3661 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3665 $ac_path_GREP_found && break 3
3675 GREP="$ac_cv_path_GREP"
3676 if test -z "$GREP"; then
3677 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3678 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3679 { (exit 1); exit 1; }; }
3683 ac_cv_path_GREP=$GREP
3688 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3689 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3690 GREP="$ac_cv_path_GREP"
3693 { echo "$as_me:$LINENO: checking for egrep" >&5
3694 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3695 if test "${ac_cv_path_EGREP+set}" = set; then
3696 echo $ECHO_N "(cached) $ECHO_C" >&6
3698 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3699 then ac_cv_path_EGREP="$GREP -E"
3701 # Extract the first word of "egrep" to use in msg output
3702 if test -z "$EGREP"; then
3703 set dummy egrep; ac_prog_name=$2
3704 if test "${ac_cv_path_EGREP+set}" = set; then
3705 echo $ECHO_N "(cached) $ECHO_C" >&6
3707 ac_path_EGREP_found=false
3708 # Loop through the user's path and test for each of PROGNAME-LIST
3709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3710 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3713 test -z "$as_dir" && as_dir=.
3714 for ac_prog in egrep; do
3715 for ac_exec_ext in '' $ac_executable_extensions; do
3716 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3717 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3718 # Check for GNU ac_path_EGREP and select it if it is found.
3719 # Check for GNU $ac_path_EGREP
3720 case `"$ac_path_EGREP" --version 2>&1` in
3722 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3725 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3728 cat "conftest.in" "conftest.in" >"conftest.tmp"
3729 mv "conftest.tmp" "conftest.in"
3730 cp "conftest.in" "conftest.nl"
3731 echo 'EGREP' >> "conftest.nl"
3732 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3733 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3734 ac_count=`expr $ac_count + 1`
3735 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3736 # Best one so far, save it but keep looking for a better one
3737 ac_cv_path_EGREP="$ac_path_EGREP"
3738 ac_path_EGREP_max=$ac_count
3740 # 10*(2^10) chars as input seems more than enough
3741 test $ac_count -gt 10 && break
3743 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3747 $ac_path_EGREP_found && break 3
3757 EGREP="$ac_cv_path_EGREP"
3758 if test -z "$EGREP"; then
3759 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3760 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3761 { (exit 1); exit 1; }; }
3765 ac_cv_path_EGREP=$EGREP
3771 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3772 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3773 EGREP="$ac_cv_path_EGREP"
3776 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3777 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3778 if test "${ac_cv_header_stdc+set}" = set; then
3779 echo $ECHO_N "(cached) $ECHO_C" >&6
3781 cat >conftest.$ac_ext <<_ACEOF
3784 cat confdefs.h >>conftest.$ac_ext
3785 cat >>conftest.$ac_ext <<_ACEOF
3786 /* end confdefs.h. */
3800 rm -f conftest.$ac_objext
3801 if { (ac_try="$ac_compile"
3803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3804 *) ac_try_echo=$ac_try;;
3806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3807 (eval "$ac_compile") 2>conftest.er1
3809 grep -v '^ *+' conftest.er1 >conftest.err
3811 cat conftest.err >&5
3812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813 (exit $ac_status); } &&
3814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3815 { (case "(($ac_try" in
3816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3817 *) ac_try_echo=$ac_try;;
3819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3820 (eval "$ac_try") 2>&5
3822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3823 (exit $ac_status); }; } &&
3824 { ac_try='test -s conftest.$ac_objext'
3825 { (case "(($ac_try" in
3826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3827 *) ac_try_echo=$ac_try;;
3829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3830 (eval "$ac_try") 2>&5
3832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833 (exit $ac_status); }; }; then
3834 ac_cv_header_stdc=yes
3836 echo "$as_me: failed program was:" >&5
3837 sed 's/^/| /' conftest.$ac_ext >&5
3839 ac_cv_header_stdc=no
3842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3844 if test $ac_cv_header_stdc = yes; then
3845 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3846 cat >conftest.$ac_ext <<_ACEOF
3849 cat confdefs.h >>conftest.$ac_ext
3850 cat >>conftest.$ac_ext <<_ACEOF
3851 /* end confdefs.h. */
3855 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3856 $EGREP "memchr" >/dev/null 2>&1; then
3859 ac_cv_header_stdc=no
3865 if test $ac_cv_header_stdc = yes; then
3866 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3867 cat >conftest.$ac_ext <<_ACEOF
3870 cat confdefs.h >>conftest.$ac_ext
3871 cat >>conftest.$ac_ext <<_ACEOF
3872 /* end confdefs.h. */
3876 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3877 $EGREP "free" >/dev/null 2>&1; then
3880 ac_cv_header_stdc=no
3886 if test $ac_cv_header_stdc = yes; then
3887 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3888 if test "$cross_compiling" = yes; then
3891 cat >conftest.$ac_ext <<_ACEOF
3894 cat confdefs.h >>conftest.$ac_ext
3895 cat >>conftest.$ac_ext <<_ACEOF
3896 /* end confdefs.h. */
3899 #if ((' ' & 0x0FF) == 0x020)
3900 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3901 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3903 # define ISLOWER(c) \
3904 (('a' <= (c) && (c) <= 'i') \
3905 || ('j' <= (c) && (c) <= 'r') \
3906 || ('s' <= (c) && (c) <= 'z'))
3907 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3910 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3915 for (i = 0; i < 256; i++)
3916 if (XOR (islower (i), ISLOWER (i))
3917 || toupper (i) != TOUPPER (i))
3922 rm -f conftest$ac_exeext
3923 if { (ac_try="$ac_link"
3925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3926 *) ac_try_echo=$ac_try;;
3928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3929 (eval "$ac_link") 2>&5
3931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3933 { (case "(($ac_try" in
3934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3935 *) ac_try_echo=$ac_try;;
3937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3938 (eval "$ac_try") 2>&5
3940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3941 (exit $ac_status); }; }; then
3944 echo "$as_me: program exited with status $ac_status" >&5
3945 echo "$as_me: failed program was:" >&5
3946 sed 's/^/| /' conftest.$ac_ext >&5
3949 ac_cv_header_stdc=no
3951 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3957 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3958 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3959 if test $ac_cv_header_stdc = yes; then
3961 cat >>confdefs.h <<\_ACEOF
3962 #define STDC_HEADERS 1
3967 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3977 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3978 inttypes.h stdint.h unistd.h
3980 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3981 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3982 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3984 echo $ECHO_N "(cached) $ECHO_C" >&6
3986 cat >conftest.$ac_ext <<_ACEOF
3989 cat confdefs.h >>conftest.$ac_ext
3990 cat >>conftest.$ac_ext <<_ACEOF
3991 /* end confdefs.h. */
3992 $ac_includes_default
3994 #include <$ac_header>
3996 rm -f conftest.$ac_objext
3997 if { (ac_try="$ac_compile"
3999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4000 *) ac_try_echo=$ac_try;;
4002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4003 (eval "$ac_compile") 2>conftest.er1
4005 grep -v '^ *+' conftest.er1 >conftest.err
4007 cat conftest.err >&5
4008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009 (exit $ac_status); } &&
4010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4011 { (case "(($ac_try" in
4012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4013 *) ac_try_echo=$ac_try;;
4015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4016 (eval "$ac_try") 2>&5
4018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019 (exit $ac_status); }; } &&
4020 { ac_try='test -s conftest.$ac_objext'
4021 { (case "(($ac_try" in
4022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4023 *) ac_try_echo=$ac_try;;
4025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4026 (eval "$ac_try") 2>&5
4028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029 (exit $ac_status); }; }; then
4030 eval "$as_ac_Header=yes"
4032 echo "$as_me: failed program was:" >&5
4033 sed 's/^/| /' conftest.$ac_ext >&5
4035 eval "$as_ac_Header=no"
4038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4040 ac_res=`eval echo '${'$as_ac_Header'}'`
4041 { echo "$as_me:$LINENO: result: $ac_res" >&5
4042 echo "${ECHO_T}$ac_res" >&6; }
4043 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4044 cat >>confdefs.h <<_ACEOF
4045 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4053 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4054 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4055 if test "${ac_cv_c_bigendian+set}" = set; then
4056 echo $ECHO_N "(cached) $ECHO_C" >&6
4058 # See if sys/param.h defines the BYTE_ORDER macro.
4059 cat >conftest.$ac_ext <<_ACEOF
4062 cat confdefs.h >>conftest.$ac_ext
4063 cat >>conftest.$ac_ext <<_ACEOF
4064 /* end confdefs.h. */
4065 #include <sys/types.h>
4066 #include <sys/param.h>
4071 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4079 rm -f conftest.$ac_objext
4080 if { (ac_try="$ac_compile"
4082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4083 *) ac_try_echo=$ac_try;;
4085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4086 (eval "$ac_compile") 2>conftest.er1
4088 grep -v '^ *+' conftest.er1 >conftest.err
4090 cat conftest.err >&5
4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); } &&
4093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4094 { (case "(($ac_try" in
4095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4096 *) ac_try_echo=$ac_try;;
4098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4099 (eval "$ac_try") 2>&5
4101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102 (exit $ac_status); }; } &&
4103 { ac_try='test -s conftest.$ac_objext'
4104 { (case "(($ac_try" in
4105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4106 *) ac_try_echo=$ac_try;;
4108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4109 (eval "$ac_try") 2>&5
4111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112 (exit $ac_status); }; }; then
4113 # It does; now see whether it defined to BIG_ENDIAN or not.
4114 cat >conftest.$ac_ext <<_ACEOF
4117 cat confdefs.h >>conftest.$ac_ext
4118 cat >>conftest.$ac_ext <<_ACEOF
4119 /* end confdefs.h. */
4120 #include <sys/types.h>
4121 #include <sys/param.h>
4126 #if BYTE_ORDER != BIG_ENDIAN
4134 rm -f conftest.$ac_objext
4135 if { (ac_try="$ac_compile"
4137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4138 *) ac_try_echo=$ac_try;;
4140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4141 (eval "$ac_compile") 2>conftest.er1
4143 grep -v '^ *+' conftest.er1 >conftest.err
4145 cat conftest.err >&5
4146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147 (exit $ac_status); } &&
4148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4149 { (case "(($ac_try" in
4150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4151 *) ac_try_echo=$ac_try;;
4153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4154 (eval "$ac_try") 2>&5
4156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157 (exit $ac_status); }; } &&
4158 { ac_try='test -s conftest.$ac_objext'
4159 { (case "(($ac_try" in
4160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4161 *) ac_try_echo=$ac_try;;
4163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4164 (eval "$ac_try") 2>&5
4166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167 (exit $ac_status); }; }; then
4168 ac_cv_c_bigendian=yes
4170 echo "$as_me: failed program was:" >&5
4171 sed 's/^/| /' conftest.$ac_ext >&5
4173 ac_cv_c_bigendian=no
4176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4178 echo "$as_me: failed program was:" >&5
4179 sed 's/^/| /' conftest.$ac_ext >&5
4181 # It does not; compile a test program.
4182 if test "$cross_compiling" = yes; then
4183 # try to guess the endianness by grepping values into an object file
4184 ac_cv_c_bigendian=unknown
4185 cat >conftest.$ac_ext <<_ACEOF
4188 cat confdefs.h >>conftest.$ac_ext
4189 cat >>conftest.$ac_ext <<_ACEOF
4190 /* end confdefs.h. */
4191 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4192 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4193 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4194 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4195 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4196 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4200 _ascii (); _ebcdic ();
4205 rm -f conftest.$ac_objext
4206 if { (ac_try="$ac_compile"
4208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4209 *) ac_try_echo=$ac_try;;
4211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4212 (eval "$ac_compile") 2>conftest.er1
4214 grep -v '^ *+' conftest.er1 >conftest.err
4216 cat conftest.err >&5
4217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218 (exit $ac_status); } &&
4219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4220 { (case "(($ac_try" in
4221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4222 *) ac_try_echo=$ac_try;;
4224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4225 (eval "$ac_try") 2>&5
4227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228 (exit $ac_status); }; } &&
4229 { ac_try='test -s conftest.$ac_objext'
4230 { (case "(($ac_try" in
4231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4232 *) ac_try_echo=$ac_try;;
4234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4235 (eval "$ac_try") 2>&5
4237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238 (exit $ac_status); }; }; then
4239 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4240 ac_cv_c_bigendian=yes
4242 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4243 if test "$ac_cv_c_bigendian" = unknown; then
4244 ac_cv_c_bigendian=no
4246 # finding both strings is unlikely to happen, but who knows?
4247 ac_cv_c_bigendian=unknown
4251 echo "$as_me: failed program was:" >&5
4252 sed 's/^/| /' conftest.$ac_ext >&5
4257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4259 cat >conftest.$ac_ext <<_ACEOF
4262 cat confdefs.h >>conftest.$ac_ext
4263 cat >>conftest.$ac_ext <<_ACEOF
4264 /* end confdefs.h. */
4265 $ac_includes_default
4270 /* Are we little or big endian? From Harbison&Steele. */
4274 char c[sizeof (long int)];
4277 return u.c[sizeof (long int) - 1] == 1;
4283 rm -f conftest$ac_exeext
4284 if { (ac_try="$ac_link"
4286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4287 *) ac_try_echo=$ac_try;;
4289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4290 (eval "$ac_link") 2>&5
4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4294 { (case "(($ac_try" in
4295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4296 *) ac_try_echo=$ac_try;;
4298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4299 (eval "$ac_try") 2>&5
4301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302 (exit $ac_status); }; }; then
4303 ac_cv_c_bigendian=no
4305 echo "$as_me: program exited with status $ac_status" >&5
4306 echo "$as_me: failed program was:" >&5
4307 sed 's/^/| /' conftest.$ac_ext >&5
4310 ac_cv_c_bigendian=yes
4312 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4320 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4321 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4322 case $ac_cv_c_bigendian in
4330 { { echo "$as_me:$LINENO: error: unknown endianness
4331 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4332 echo "$as_me: error: unknown endianness
4333 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4334 { (exit 1); exit 1; }; } ;;
4338 if test "$cross_compiling" = yes; then
4339 LLVM_CROSS_COMPILING=1
4342 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4343 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4344 if test "${ac_cv_build_exeext+set}" = set; then
4345 echo $ECHO_N "(cached) $ECHO_C" >&6
4347 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4348 ac_cv_build_exeext=.exe
4350 ac_build_prefix=${build_alias}-
4352 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4353 set dummy ${ac_build_prefix}gcc; ac_word=$2
4354 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4356 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4357 echo $ECHO_N "(cached) $ECHO_C" >&6
4359 if test -n "$BUILD_CC"; then
4360 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4366 test -z "$as_dir" && as_dir=.
4367 for ac_exec_ext in '' $ac_executable_extensions; do
4368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4369 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4379 BUILD_CC=$ac_cv_prog_BUILD_CC
4380 if test -n "$BUILD_CC"; then
4381 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4382 echo "${ECHO_T}$BUILD_CC" >&6; }
4384 { echo "$as_me:$LINENO: result: no" >&5
4385 echo "${ECHO_T}no" >&6; }
4389 if test -z "$BUILD_CC"; then
4390 # Extract the first word of "gcc", so it can be a program name with args.
4391 set dummy gcc; ac_word=$2
4392 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4394 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4395 echo $ECHO_N "(cached) $ECHO_C" >&6
4397 if test -n "$BUILD_CC"; then
4398 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4404 test -z "$as_dir" && as_dir=.
4405 for ac_exec_ext in '' $ac_executable_extensions; do
4406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4407 ac_cv_prog_BUILD_CC="gcc"
4408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4417 BUILD_CC=$ac_cv_prog_BUILD_CC
4418 if test -n "$BUILD_CC"; then
4419 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4420 echo "${ECHO_T}$BUILD_CC" >&6; }
4422 { echo "$as_me:$LINENO: result: no" >&5
4423 echo "${ECHO_T}no" >&6; }
4427 if test -z "$BUILD_CC"; then
4428 # Extract the first word of "cc", so it can be a program name with args.
4429 set dummy cc; ac_word=$2
4430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4432 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4433 echo $ECHO_N "(cached) $ECHO_C" >&6
4435 if test -n "$BUILD_CC"; then
4436 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4443 test -z "$as_dir" && as_dir=.
4444 for ac_exec_ext in '' $ac_executable_extensions; do
4445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4446 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4447 ac_prog_rejected=yes
4450 ac_cv_prog_BUILD_CC="cc"
4451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4458 if test $ac_prog_rejected = yes; then
4459 # We found a bogon in the path, so make sure we never use it.
4460 set dummy $ac_cv_prog_BUILD_CC
4462 if test $# != 0; then
4463 # We chose a different compiler from the bogus one.
4464 # However, it has the same basename, so the bogon will be chosen
4465 # first if we set BUILD_CC to just the basename; use the full file name.
4467 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4472 BUILD_CC=$ac_cv_prog_BUILD_CC
4473 if test -n "$BUILD_CC"; then
4474 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4475 echo "${ECHO_T}$BUILD_CC" >&6; }
4477 { echo "$as_me:$LINENO: result: no" >&5
4478 echo "${ECHO_T}no" >&6; }
4484 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4485 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4486 { (exit 1); exit 1; }; }
4487 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4489 echo 'int main () { return 0; }' > conftest.$ac_ext
4491 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4492 (eval $ac_build_link) 2>&5
4494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495 (exit $ac_status); }; then
4496 for file in conftest.*; do
4498 *.c | *.o | *.obj | *.dSYM) ;;
4499 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4503 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4504 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4505 { (exit 1); exit 1; }; }
4508 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4513 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4514 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4515 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4516 ac_build_exeext=$BUILD_EXEEXT
4518 ac_build_prefix=${build_alias}-
4519 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4520 set dummy ${ac_build_prefix}g++; ac_word=$2
4521 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4523 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4524 echo $ECHO_N "(cached) $ECHO_C" >&6
4526 if test -n "$BUILD_CXX"; then
4527 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4533 test -z "$as_dir" && as_dir=.
4534 for ac_exec_ext in '' $ac_executable_extensions; do
4535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4536 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4546 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4547 if test -n "$BUILD_CXX"; then
4548 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4549 echo "${ECHO_T}$BUILD_CXX" >&6; }
4551 { echo "$as_me:$LINENO: result: no" >&5
4552 echo "${ECHO_T}no" >&6; }
4556 if test -z "$BUILD_CXX"; then
4557 # Extract the first word of "g++", so it can be a program name with args.
4558 set dummy g++; ac_word=$2
4559 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4561 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4562 echo $ECHO_N "(cached) $ECHO_C" >&6
4564 if test -n "$BUILD_CXX"; then
4565 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4571 test -z "$as_dir" && as_dir=.
4572 for ac_exec_ext in '' $ac_executable_extensions; do
4573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4574 ac_cv_prog_BUILD_CXX="g++"
4575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4584 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4585 if test -n "$BUILD_CXX"; then
4586 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4587 echo "${ECHO_T}$BUILD_CXX" >&6; }
4589 { echo "$as_me:$LINENO: result: no" >&5
4590 echo "${ECHO_T}no" >&6; }
4594 if test -z "$BUILD_CXX"; then
4595 # Extract the first word of "c++", so it can be a program name with args.
4596 set dummy c++; ac_word=$2
4597 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4599 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4600 echo $ECHO_N "(cached) $ECHO_C" >&6
4602 if test -n "$BUILD_CXX"; then
4603 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4610 test -z "$as_dir" && as_dir=.
4611 for ac_exec_ext in '' $ac_executable_extensions; do
4612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4613 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4614 ac_prog_rejected=yes
4617 ac_cv_prog_BUILD_CXX="c++"
4618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4625 if test $ac_prog_rejected = yes; then
4626 # We found a bogon in the path, so make sure we never use it.
4627 set dummy $ac_cv_prog_BUILD_CXX
4629 if test $# != 0; then
4630 # We chose a different compiler from the bogus one.
4631 # However, it has the same basename, so the bogon will be chosen
4632 # first if we set BUILD_CXX to just the basename; use the full file name.
4634 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4639 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4640 if test -n "$BUILD_CXX"; then
4641 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4642 echo "${ECHO_T}$BUILD_CXX" >&6; }
4644 { echo "$as_me:$LINENO: result: no" >&5
4645 echo "${ECHO_T}no" >&6; }
4652 LLVM_CROSS_COMPILING=0
4656 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4667 # Check whether --enable-optimized was given.
4668 if test "${enable_optimized+set}" = set; then
4669 enableval=$enable_optimized;
4674 if test ${enableval} = "no" ; then
4678 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4682 # Check whether --enable-profiling was given.
4683 if test "${enable_profiling+set}" = set; then
4684 enableval=$enable_profiling;
4689 if test ${enableval} = "no" ; then
4693 ENABLE_PROFILING=ENABLE_PROFILING=1
4697 # Check whether --enable-assertions was given.
4698 if test "${enable_assertions+set}" = set; then
4699 enableval=$enable_assertions;
4704 if test ${enableval} = "yes" ; then
4708 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4712 # Check whether --enable-expensive-checks was given.
4713 if test "${enable_expensive_checks+set}" = set; then
4714 enableval=$enable_expensive_checks;
4719 if test ${enableval} = "yes" ; then
4720 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4722 EXPENSIVE_CHECKS=yes
4725 ENABLE_EXPENSIVE_CHECKS=
4731 # Check whether --enable-debug-runtime was given.
4732 if test "${enable_debug_runtime+set}" = set; then
4733 enableval=$enable_debug_runtime;
4738 if test ${enableval} = "no" ; then
4742 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4746 # Check whether --enable-debug-symbols was given.
4747 if test "${enable_debug_symbols+set}" = set; then
4748 enableval=$enable_debug_symbols;
4753 if test ${enableval} = "no" ; then
4757 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4761 # Check whether --enable-jit was given.
4762 if test "${enable_jit+set}" = set; then
4763 enableval=$enable_jit;
4768 if test ${enableval} = "no"
4773 case "$llvm_cv_target_arch" in
4774 x86) TARGET_HAS_JIT=1
4776 Sparc) TARGET_HAS_JIT=0
4778 PowerPC) TARGET_HAS_JIT=1
4780 x86_64) TARGET_HAS_JIT=1
4782 Alpha) TARGET_HAS_JIT=1
4784 ARM) TARGET_HAS_JIT=1
4786 Mips) TARGET_HAS_JIT=0
4788 PIC16) TARGET_HAS_JIT=0
4790 XCore) TARGET_HAS_JIT=0
4792 MSP430) TARGET_HAS_JIT=0
4794 SystemZ) TARGET_HAS_JIT=0
4796 Blackfin) TARGET_HAS_JIT=0
4803 # Check whether --enable-doxygen was given.
4804 if test "${enable_doxygen+set}" = set; then
4805 enableval=$enable_doxygen;
4810 case "$enableval" in
4811 yes) ENABLE_DOXYGEN=1
4813 no) ENABLE_DOXYGEN=0
4815 default) ENABLE_DOXYGEN=0
4817 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4818 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4819 { (exit 1); exit 1; }; } ;;
4822 # Check whether --enable-threads was given.
4823 if test "${enable_threads+set}" = set; then
4824 enableval=$enable_threads;
4829 case "$enableval" in
4830 yes) ENABLE_THREADS=1
4832 no) ENABLE_THREADS=0
4834 default) ENABLE_THREADS=1
4836 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4837 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4838 { (exit 1); exit 1; }; } ;;
4841 cat >>confdefs.h <<_ACEOF
4842 #define ENABLE_THREADS $ENABLE_THREADS
4846 # Check whether --enable-pic was given.
4847 if test "${enable_pic+set}" = set; then
4848 enableval=$enable_pic;
4853 case "$enableval" in
4858 default) ENABLE_PIC=1
4860 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4861 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4862 { (exit 1); exit 1; }; } ;;
4865 cat >>confdefs.h <<_ACEOF
4866 #define ENABLE_PIC $ENABLE_PIC
4870 # Check whether --enable-shared was given.
4871 if test "${enable_shared+set}" = set; then
4872 enableval=$enable_shared;
4877 case "$enableval" in
4878 yes) ENABLE_SHARED=1
4882 default) ENABLE_SHARED=0
4884 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4885 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4886 { (exit 1); exit 1; }; } ;;
4890 # Check whether --enable-targets was given.
4891 if test "${enable_targets+set}" = set; then
4892 enableval=$enable_targets;
4897 if test "$enableval" = host-only ; then
4900 case "$enableval" in
4901 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend" ;;
4902 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4904 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4905 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4906 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4907 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4908 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4909 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4910 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4911 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4912 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4913 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4914 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4915 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4916 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4917 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4918 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4919 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4920 host) case "$llvm_cv_target_arch" in
4921 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4922 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4923 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4924 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4925 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4926 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4927 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4928 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4929 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4930 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4931 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4932 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4933 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4934 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4935 echo "$as_me: error: Can not set target to build" >&2;}
4936 { (exit 1); exit 1; }; } ;;
4938 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4939 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4940 { (exit 1); exit 1; }; } ;;
4945 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4948 # Determine whether we are building LLVM support for the native architecture.
4949 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
4950 for a_target in $TARGETS_TO_BUILD; do
4951 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
4952 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
4954 cat >>confdefs.h <<_ACEOF
4955 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
4961 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
4962 # target feature def files.
4963 LLVM_ENUM_TARGETS=""
4964 LLVM_ENUM_ASM_PRINTERS=""
4965 LLVM_ENUM_ASM_PARSERS=""
4966 LLVM_ENUM_DISASSEMBLERS=""
4967 for target_to_build in $TARGETS_TO_BUILD; do
4968 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
4969 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
4970 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
4972 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
4973 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
4975 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
4976 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
4984 # Check whether --enable-cbe-printf-a was given.
4985 if test "${enable_cbe_printf_a+set}" = set; then
4986 enableval=$enable_cbe_printf_a;
4991 case "$enableval" in
4992 yes) ENABLE_CBE_PRINTF_A=1
4994 no) ENABLE_CBE_PRINTF_A=0
4996 default) ENABLE_CBE_PRINTF_A=1
4998 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4999 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5000 { (exit 1); exit 1; }; } ;;
5003 cat >>confdefs.h <<_ACEOF
5004 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5009 # Check whether --with-llvmgccdir was given.
5010 if test "${with_llvmgccdir+set}" = set; then
5011 withval=$with_llvmgccdir;
5017 default) WITH_LLVMGCCDIR=default ;;
5018 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5019 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5020 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5021 { (exit 1); exit 1; }; } ;;
5025 # Check whether --with-llvmgcc was given.
5026 if test "${with_llvmgcc+set}" = set; then
5027 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5033 # Check whether --with-llvmgxx was given.
5034 if test "${with_llvmgxx+set}" = set; then
5035 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5040 if test -n "$LLVMGCC"; then
5041 LLVMGCCCOMMAND="$LLVMGCC"
5044 if test -n "$LLVMGXX"; then
5045 LLVMGXXCOMMAND="$LLVMGXX"
5048 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5049 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5050 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5051 { (exit 1); exit 1; }; };
5054 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5055 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5056 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5057 { (exit 1); exit 1; }; };
5061 # Check whether --with-clang was given.
5062 if test "${with_clang+set}" = set; then
5063 withval=$with_clang;
5070 # Check whether --with-built-clang was given.
5071 if test "${with_built_clang+set}" = set; then
5072 withval=$with_built_clang;
5074 with_built_clang=check
5078 { echo "$as_me:$LINENO: checking clang compiler" >&5
5079 echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5082 if test "$with_clang" != "default"; then
5083 WITH_CLANGPATH="$with_clang"
5084 if ! test -x "$WITH_CLANGPATH"; then
5085 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5086 echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5087 { (exit 1); exit 1; }; }
5089 elif test "$with_built_clang" = "yes"; then
5091 elif test "$with_built_clang" = "no"; then
5094 if test "$with_built_clang" != "check"; then
5095 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5096 echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5097 { (exit 1); exit 1; }; }
5100 if test -f ${srcdir}/tools/clang/README.txt; then
5105 if ! test -z "$WITH_CLANGPATH"; then
5106 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5107 echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5108 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5109 elif test "$WITH_BUILT_CLANG" = "1"; then
5110 { echo "$as_me:$LINENO: result: built" >&5
5111 echo "${ECHO_T}built" >&6; }
5113 { echo "$as_me:$LINENO: result: none" >&5
5114 echo "${ECHO_T}none" >&6; }
5116 CLANGPATH=$WITH_CLANGPATH
5118 CLANGXXPATH=$WITH_CLANGXXPATH
5120 ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5124 # Check whether --with-optimize-option was given.
5125 if test "${with_optimize_option+set}" = set; then
5126 withval=$with_optimize_option;
5131 { echo "$as_me:$LINENO: checking optimization flags" >&5
5132 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5135 case "$llvm_cv_os_type" in
5136 MingW) optimize_option=-O3 ;;
5137 *) optimize_option=-O2 ;;
5139 *) optimize_option="$withval" ;;
5141 OPTIMIZE_OPTION=$optimize_option
5143 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5144 echo "${ECHO_T}$optimize_option" >&6; }
5147 # Check whether --with-extra-options was given.
5148 if test "${with_extra_options+set}" = set; then
5149 withval=$with_extra_options;
5155 default) EXTRA_OPTIONS= ;;
5156 *) EXTRA_OPTIONS=$withval ;;
5158 EXTRA_OPTIONS=$EXTRA_OPTIONS
5161 # Check whether --enable-bindings was given.
5162 if test "${enable_bindings+set}" = set; then
5163 enableval=$enable_bindings;
5168 BINDINGS_TO_BUILD=""
5169 case "$enableval" in
5170 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5171 all ) BINDINGS_TO_BUILD="ocaml" ;;
5172 none | no) BINDINGS_TO_BUILD="" ;;
5173 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5174 case "$a_binding" in
5175 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5176 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5177 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5178 { (exit 1); exit 1; }; } ;;
5185 # Check whether --with-ocaml-libdir was given.
5186 if test "${with_ocaml_libdir+set}" = set; then
5187 withval=$with_ocaml_libdir;
5193 auto) with_ocaml_libdir="$withval" ;;
5194 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5195 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5196 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5197 { (exit 1); exit 1; }; } ;;
5201 # Check whether --with-c-include-dirs was given.
5202 if test "${with_c_include_dirs+set}" = set; then
5203 withval=$with_c_include_dirs;
5209 cat >>confdefs.h <<_ACEOF
5210 #define C_INCLUDE_DIRS "$withval"
5215 # Check whether --with-cxx-include-root was given.
5216 if test "${with_cxx_include_root+set}" = set; then
5217 withval=$with_cxx_include_root;
5223 cat >>confdefs.h <<_ACEOF
5224 #define CXX_INCLUDE_ROOT "$withval"
5229 # Check whether --with-cxx-include-arch was given.
5230 if test "${with_cxx_include_arch+set}" = set; then
5231 withval=$with_cxx_include_arch;
5237 cat >>confdefs.h <<_ACEOF
5238 #define CXX_INCLUDE_ARCH "$withval"
5243 # Check whether --with-cxx-include-32bit-dir was given.
5244 if test "${with_cxx_include_32bit_dir+set}" = set; then
5245 withval=$with_cxx_include_32bit_dir;
5251 cat >>confdefs.h <<_ACEOF
5252 #define CXX_INCLUDE_32BIT_DIR "$withval"
5257 # Check whether --with-cxx-include-64bit-dir was given.
5258 if test "${with_cxx_include_64bit_dir+set}" = set; then
5259 withval=$with_cxx_include_64bit_dir;
5265 cat >>confdefs.h <<_ACEOF
5266 #define CXX_INCLUDE_64BIT_DIR "$withval"
5271 # Check whether --with-binutils-include was given.
5272 if test "${with_binutils_include+set}" = set; then
5273 withval=$with_binutils_include;
5279 default) WITH_BINUTILS_INCDIR=default ;;
5280 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5281 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5282 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5283 { (exit 1); exit 1; }; } ;;
5285 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5286 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5288 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5289 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5290 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5291 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5292 { (exit 1); exit 1; }; };
5296 # Check whether --enable-libffi was given.
5297 if test "${enable_libffi+set}" = set; then
5298 enableval=$enable_libffi; case "$enableval" in
5299 yes) llvm_cv_enable_libffi="yes" ;;
5300 no) llvm_cv_enable_libffi="no" ;;
5301 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5302 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5303 { (exit 1); exit 1; }; } ;;
5306 llvm_cv_enable_libffi=no
5310 if test "$llvm_cv_os_type" = "Win32" ; then
5316 # Check whether --enable-llvmc-dynamic was given.
5317 if test "${enable_llvmc_dynamic+set}" = set; then
5318 enableval=$enable_llvmc_dynamic;
5320 enableval=$llvmc_dynamic
5323 if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5324 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5327 ENABLE_LLVMC_DYNAMIC=
5331 # Check whether --enable-llvmc-dynamic-plugins was given.
5332 if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5333 enableval=$enable_llvmc_dynamic_plugins;
5338 if test ${enableval} = "yes" ; then
5339 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5342 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5348 ac_cpp='$CPP $CPPFLAGS'
5349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5352 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5353 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5354 # On Suns, sometimes $CPP names a directory.
5355 if test -n "$CPP" && test -d "$CPP"; then
5358 if test -z "$CPP"; then
5359 if test "${ac_cv_prog_CPP+set}" = set; then
5360 echo $ECHO_N "(cached) $ECHO_C" >&6
5362 # Double quotes because CPP needs to be expanded
5363 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5366 for ac_c_preproc_warn_flag in '' yes
5368 # Use a header file that comes with gcc, so configuring glibc
5369 # with a fresh cross-compiler works.
5370 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5371 # <limits.h> exists even on freestanding compilers.
5372 # On the NeXT, cc -E runs the code through the compiler's parser,
5373 # not just through cpp. "Syntax error" is here to catch this case.
5374 cat >conftest.$ac_ext <<_ACEOF
5377 cat confdefs.h >>conftest.$ac_ext
5378 cat >>conftest.$ac_ext <<_ACEOF
5379 /* end confdefs.h. */
5381 # include <limits.h>
5383 # include <assert.h>
5387 if { (ac_try="$ac_cpp conftest.$ac_ext"
5389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5390 *) ac_try_echo=$ac_try;;
5392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5393 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5395 grep -v '^ *+' conftest.er1 >conftest.err
5397 cat conftest.err >&5
5398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399 (exit $ac_status); } >/dev/null; then
5400 if test -s conftest.err; then
5401 ac_cpp_err=$ac_c_preproc_warn_flag
5402 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5409 if test -z "$ac_cpp_err"; then
5412 echo "$as_me: failed program was:" >&5
5413 sed 's/^/| /' conftest.$ac_ext >&5
5415 # Broken: fails on valid input.
5419 rm -f conftest.err conftest.$ac_ext
5421 # OK, works on sane cases. Now check whether nonexistent headers
5422 # can be detected and how.
5423 cat >conftest.$ac_ext <<_ACEOF
5426 cat confdefs.h >>conftest.$ac_ext
5427 cat >>conftest.$ac_ext <<_ACEOF
5428 /* end confdefs.h. */
5429 #include <ac_nonexistent.h>
5431 if { (ac_try="$ac_cpp conftest.$ac_ext"
5433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5434 *) ac_try_echo=$ac_try;;
5436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5437 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5439 grep -v '^ *+' conftest.er1 >conftest.err
5441 cat conftest.err >&5
5442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443 (exit $ac_status); } >/dev/null; then
5444 if test -s conftest.err; then
5445 ac_cpp_err=$ac_c_preproc_warn_flag
5446 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5453 if test -z "$ac_cpp_err"; then
5454 # Broken: success on invalid input.
5457 echo "$as_me: failed program was:" >&5
5458 sed 's/^/| /' conftest.$ac_ext >&5
5460 # Passes both tests.
5465 rm -f conftest.err conftest.$ac_ext
5468 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5469 rm -f conftest.err conftest.$ac_ext
5470 if $ac_preproc_ok; then
5482 { echo "$as_me:$LINENO: result: $CPP" >&5
5483 echo "${ECHO_T}$CPP" >&6; }
5485 for ac_c_preproc_warn_flag in '' yes
5487 # Use a header file that comes with gcc, so configuring glibc
5488 # with a fresh cross-compiler works.
5489 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5490 # <limits.h> exists even on freestanding compilers.
5491 # On the NeXT, cc -E runs the code through the compiler's parser,
5492 # not just through cpp. "Syntax error" is here to catch this case.
5493 cat >conftest.$ac_ext <<_ACEOF
5496 cat confdefs.h >>conftest.$ac_ext
5497 cat >>conftest.$ac_ext <<_ACEOF
5498 /* end confdefs.h. */
5500 # include <limits.h>
5502 # include <assert.h>
5506 if { (ac_try="$ac_cpp conftest.$ac_ext"
5508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5509 *) ac_try_echo=$ac_try;;
5511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5512 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5514 grep -v '^ *+' conftest.er1 >conftest.err
5516 cat conftest.err >&5
5517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518 (exit $ac_status); } >/dev/null; then
5519 if test -s conftest.err; then
5520 ac_cpp_err=$ac_c_preproc_warn_flag
5521 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5528 if test -z "$ac_cpp_err"; then
5531 echo "$as_me: failed program was:" >&5
5532 sed 's/^/| /' conftest.$ac_ext >&5
5534 # Broken: fails on valid input.
5538 rm -f conftest.err conftest.$ac_ext
5540 # OK, works on sane cases. Now check whether nonexistent headers
5541 # can be detected and how.
5542 cat >conftest.$ac_ext <<_ACEOF
5545 cat confdefs.h >>conftest.$ac_ext
5546 cat >>conftest.$ac_ext <<_ACEOF
5547 /* end confdefs.h. */
5548 #include <ac_nonexistent.h>
5550 if { (ac_try="$ac_cpp conftest.$ac_ext"
5552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5553 *) ac_try_echo=$ac_try;;
5555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5556 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5558 grep -v '^ *+' conftest.er1 >conftest.err
5560 cat conftest.err >&5
5561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5562 (exit $ac_status); } >/dev/null; then
5563 if test -s conftest.err; then
5564 ac_cpp_err=$ac_c_preproc_warn_flag
5565 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5572 if test -z "$ac_cpp_err"; then
5573 # Broken: success on invalid input.
5576 echo "$as_me: failed program was:" >&5
5577 sed 's/^/| /' conftest.$ac_ext >&5
5579 # Passes both tests.
5584 rm -f conftest.err conftest.$ac_ext
5587 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5588 rm -f conftest.err conftest.$ac_ext
5589 if $ac_preproc_ok; then
5592 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5593 See \`config.log' for more details." >&5
5594 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5595 See \`config.log' for more details." >&2;}
5596 { (exit 1); exit 1; }; }
5600 ac_cpp='$CPP $CPPFLAGS'
5601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5606 ac_cpp='$CPP $CPPFLAGS'
5607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5610 if test -n "$ac_tool_prefix"; then
5613 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5614 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5615 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5617 if test "${ac_cv_prog_CC+set}" = set; then
5618 echo $ECHO_N "(cached) $ECHO_C" >&6
5620 if test -n "$CC"; then
5621 ac_cv_prog_CC="$CC" # Let the user override the test.
5623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5627 test -z "$as_dir" && as_dir=.
5628 for ac_exec_ext in '' $ac_executable_extensions; do
5629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5630 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5641 if test -n "$CC"; then
5642 { echo "$as_me:$LINENO: result: $CC" >&5
5643 echo "${ECHO_T}$CC" >&6; }
5645 { echo "$as_me:$LINENO: result: no" >&5
5646 echo "${ECHO_T}no" >&6; }
5650 test -n "$CC" && break
5653 if test -z "$CC"; then
5657 # Extract the first word of "$ac_prog", so it can be a program name with args.
5658 set dummy $ac_prog; ac_word=$2
5659 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5661 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5662 echo $ECHO_N "(cached) $ECHO_C" >&6
5664 if test -n "$ac_ct_CC"; then
5665 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5671 test -z "$as_dir" && as_dir=.
5672 for ac_exec_ext in '' $ac_executable_extensions; do
5673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5674 ac_cv_prog_ac_ct_CC="$ac_prog"
5675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5684 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5685 if test -n "$ac_ct_CC"; then
5686 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5687 echo "${ECHO_T}$ac_ct_CC" >&6; }
5689 { echo "$as_me:$LINENO: result: no" >&5
5690 echo "${ECHO_T}no" >&6; }
5694 test -n "$ac_ct_CC" && break
5697 if test "x$ac_ct_CC" = x; then
5700 case $cross_compiling:$ac_tool_warned in
5702 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5703 whose name does not start with the host triplet. If you think this
5704 configuration is useful to you, please write to autoconf@gnu.org." >&5
5705 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5706 whose name does not start with the host triplet. If you think this
5707 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5708 ac_tool_warned=yes ;;
5715 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5716 See \`config.log' for more details." >&5
5717 echo "$as_me: error: no acceptable C compiler found in \$PATH
5718 See \`config.log' for more details." >&2;}
5719 { (exit 1); exit 1; }; }
5721 # Provide some information about the compiler.
5722 echo "$as_me:$LINENO: checking for C compiler version" >&5
5723 ac_compiler=`set X $ac_compile; echo $2`
5724 { (ac_try="$ac_compiler --version >&5"
5726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5727 *) ac_try_echo=$ac_try;;
5729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5730 (eval "$ac_compiler --version >&5") 2>&5
5732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733 (exit $ac_status); }
5734 { (ac_try="$ac_compiler -v >&5"
5736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5737 *) ac_try_echo=$ac_try;;
5739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5740 (eval "$ac_compiler -v >&5") 2>&5
5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 (exit $ac_status); }
5744 { (ac_try="$ac_compiler -V >&5"
5746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5747 *) ac_try_echo=$ac_try;;
5749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5750 (eval "$ac_compiler -V >&5") 2>&5
5752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753 (exit $ac_status); }
5755 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5756 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5757 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5758 echo $ECHO_N "(cached) $ECHO_C" >&6
5760 cat >conftest.$ac_ext <<_ACEOF
5763 cat confdefs.h >>conftest.$ac_ext
5764 cat >>conftest.$ac_ext <<_ACEOF
5765 /* end confdefs.h. */
5778 rm -f conftest.$ac_objext
5779 if { (ac_try="$ac_compile"
5781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5782 *) ac_try_echo=$ac_try;;
5784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5785 (eval "$ac_compile") 2>conftest.er1
5787 grep -v '^ *+' conftest.er1 >conftest.err
5789 cat conftest.err >&5
5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791 (exit $ac_status); } &&
5792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5793 { (case "(($ac_try" in
5794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5795 *) ac_try_echo=$ac_try;;
5797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5798 (eval "$ac_try") 2>&5
5800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801 (exit $ac_status); }; } &&
5802 { ac_try='test -s conftest.$ac_objext'
5803 { (case "(($ac_try" in
5804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5805 *) ac_try_echo=$ac_try;;
5807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5808 (eval "$ac_try") 2>&5
5810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811 (exit $ac_status); }; }; then
5814 echo "$as_me: failed program was:" >&5
5815 sed 's/^/| /' conftest.$ac_ext >&5
5820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5821 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5824 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5825 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5826 GCC=`test $ac_compiler_gnu = yes && echo yes`
5827 ac_test_CFLAGS=${CFLAGS+set}
5828 ac_save_CFLAGS=$CFLAGS
5829 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5830 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5831 if test "${ac_cv_prog_cc_g+set}" = set; then
5832 echo $ECHO_N "(cached) $ECHO_C" >&6
5834 ac_save_c_werror_flag=$ac_c_werror_flag
5835 ac_c_werror_flag=yes
5838 cat >conftest.$ac_ext <<_ACEOF
5841 cat confdefs.h >>conftest.$ac_ext
5842 cat >>conftest.$ac_ext <<_ACEOF
5843 /* end confdefs.h. */
5853 rm -f conftest.$ac_objext
5854 if { (ac_try="$ac_compile"
5856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5857 *) ac_try_echo=$ac_try;;
5859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5860 (eval "$ac_compile") 2>conftest.er1
5862 grep -v '^ *+' conftest.er1 >conftest.err
5864 cat conftest.err >&5
5865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866 (exit $ac_status); } &&
5867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5868 { (case "(($ac_try" in
5869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5870 *) ac_try_echo=$ac_try;;
5872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5873 (eval "$ac_try") 2>&5
5875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876 (exit $ac_status); }; } &&
5877 { ac_try='test -s conftest.$ac_objext'
5878 { (case "(($ac_try" in
5879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5880 *) ac_try_echo=$ac_try;;
5882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5883 (eval "$ac_try") 2>&5
5885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886 (exit $ac_status); }; }; then
5889 echo "$as_me: failed program was:" >&5
5890 sed 's/^/| /' conftest.$ac_ext >&5
5893 cat >conftest.$ac_ext <<_ACEOF
5896 cat confdefs.h >>conftest.$ac_ext
5897 cat >>conftest.$ac_ext <<_ACEOF
5898 /* end confdefs.h. */
5908 rm -f conftest.$ac_objext
5909 if { (ac_try="$ac_compile"
5911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5912 *) ac_try_echo=$ac_try;;
5914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5915 (eval "$ac_compile") 2>conftest.er1
5917 grep -v '^ *+' conftest.er1 >conftest.err
5919 cat conftest.err >&5
5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921 (exit $ac_status); } &&
5922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5923 { (case "(($ac_try" in
5924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5925 *) ac_try_echo=$ac_try;;
5927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5928 (eval "$ac_try") 2>&5
5930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931 (exit $ac_status); }; } &&
5932 { ac_try='test -s conftest.$ac_objext'
5933 { (case "(($ac_try" in
5934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5935 *) ac_try_echo=$ac_try;;
5937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5938 (eval "$ac_try") 2>&5
5940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941 (exit $ac_status); }; }; then
5944 echo "$as_me: failed program was:" >&5
5945 sed 's/^/| /' conftest.$ac_ext >&5
5947 ac_c_werror_flag=$ac_save_c_werror_flag
5949 cat >conftest.$ac_ext <<_ACEOF
5952 cat confdefs.h >>conftest.$ac_ext
5953 cat >>conftest.$ac_ext <<_ACEOF
5954 /* end confdefs.h. */
5964 rm -f conftest.$ac_objext
5965 if { (ac_try="$ac_compile"
5967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5968 *) ac_try_echo=$ac_try;;
5970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5971 (eval "$ac_compile") 2>conftest.er1
5973 grep -v '^ *+' conftest.er1 >conftest.err
5975 cat conftest.err >&5
5976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977 (exit $ac_status); } &&
5978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5979 { (case "(($ac_try" in
5980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5981 *) ac_try_echo=$ac_try;;
5983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5984 (eval "$ac_try") 2>&5
5986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987 (exit $ac_status); }; } &&
5988 { ac_try='test -s conftest.$ac_objext'
5989 { (case "(($ac_try" in
5990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5991 *) ac_try_echo=$ac_try;;
5993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5994 (eval "$ac_try") 2>&5
5996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997 (exit $ac_status); }; }; then
6000 echo "$as_me: failed program was:" >&5
6001 sed 's/^/| /' conftest.$ac_ext >&5
6006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6013 ac_c_werror_flag=$ac_save_c_werror_flag
6015 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6016 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6017 if test "$ac_test_CFLAGS" = set; then
6018 CFLAGS=$ac_save_CFLAGS
6019 elif test $ac_cv_prog_cc_g = yes; then
6020 if test "$GCC" = yes; then
6026 if test "$GCC" = yes; then
6032 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6033 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6034 if test "${ac_cv_prog_cc_c89+set}" = set; then
6035 echo $ECHO_N "(cached) $ECHO_C" >&6
6037 ac_cv_prog_cc_c89=no
6039 cat >conftest.$ac_ext <<_ACEOF
6042 cat confdefs.h >>conftest.$ac_ext
6043 cat >>conftest.$ac_ext <<_ACEOF
6044 /* end confdefs.h. */
6047 #include <sys/types.h>
6048 #include <sys/stat.h>
6049 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6050 struct buf { int x; };
6051 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6052 static char *e (p, i)
6058 static char *f (char * (*g) (char **, int), char **p, ...)
6063 s = g (p, va_arg (v,int));
6068 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6069 function prototypes and stuff, but not '\xHH' hex character constants.
6070 These don't provoke an error unfortunately, instead are silently treated
6071 as 'x'. The following induces an error, until -std is added to get
6072 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6073 array size at least. It's necessary to write '\x00'==0 to get something
6074 that's true only with -std. */
6075 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6077 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6078 inside strings and character constants. */
6080 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6082 int test (int i, double x);
6083 struct s1 {int (*f) (int a);};
6084 struct s2 {int (*f) (double a);};
6085 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6091 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6096 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6097 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6099 CC="$ac_save_CC $ac_arg"
6100 rm -f conftest.$ac_objext
6101 if { (ac_try="$ac_compile"
6103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6104 *) ac_try_echo=$ac_try;;
6106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6107 (eval "$ac_compile") 2>conftest.er1
6109 grep -v '^ *+' conftest.er1 >conftest.err
6111 cat conftest.err >&5
6112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113 (exit $ac_status); } &&
6114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6115 { (case "(($ac_try" in
6116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6117 *) ac_try_echo=$ac_try;;
6119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6120 (eval "$ac_try") 2>&5
6122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123 (exit $ac_status); }; } &&
6124 { ac_try='test -s conftest.$ac_objext'
6125 { (case "(($ac_try" in
6126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6127 *) ac_try_echo=$ac_try;;
6129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6130 (eval "$ac_try") 2>&5
6132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133 (exit $ac_status); }; }; then
6134 ac_cv_prog_cc_c89=$ac_arg
6136 echo "$as_me: failed program was:" >&5
6137 sed 's/^/| /' conftest.$ac_ext >&5
6142 rm -f core conftest.err conftest.$ac_objext
6143 test "x$ac_cv_prog_cc_c89" != "xno" && break
6145 rm -f conftest.$ac_ext
6150 case "x$ac_cv_prog_cc_c89" in
6152 { echo "$as_me:$LINENO: result: none needed" >&5
6153 echo "${ECHO_T}none needed" >&6; } ;;
6155 { echo "$as_me:$LINENO: result: unsupported" >&5
6156 echo "${ECHO_T}unsupported" >&6; } ;;
6158 CC="$CC $ac_cv_prog_cc_c89"
6159 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6160 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6165 ac_cpp='$CPP $CPPFLAGS'
6166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6171 ac_cpp='$CXXCPP $CPPFLAGS'
6172 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6173 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6174 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6175 if test -z "$CXX"; then
6176 if test -n "$CCC"; then
6179 if test -n "$ac_tool_prefix"; then
6182 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6183 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6184 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6186 if test "${ac_cv_prog_CXX+set}" = set; then
6187 echo $ECHO_N "(cached) $ECHO_C" >&6
6189 if test -n "$CXX"; then
6190 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6196 test -z "$as_dir" && as_dir=.
6197 for ac_exec_ext in '' $ac_executable_extensions; do
6198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6199 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6210 if test -n "$CXX"; then
6211 { echo "$as_me:$LINENO: result: $CXX" >&5
6212 echo "${ECHO_T}$CXX" >&6; }
6214 { echo "$as_me:$LINENO: result: no" >&5
6215 echo "${ECHO_T}no" >&6; }
6219 test -n "$CXX" && break
6222 if test -z "$CXX"; then
6226 # Extract the first word of "$ac_prog", so it can be a program name with args.
6227 set dummy $ac_prog; ac_word=$2
6228 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6230 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6231 echo $ECHO_N "(cached) $ECHO_C" >&6
6233 if test -n "$ac_ct_CXX"; then
6234 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6240 test -z "$as_dir" && as_dir=.
6241 for ac_exec_ext in '' $ac_executable_extensions; do
6242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6243 ac_cv_prog_ac_ct_CXX="$ac_prog"
6244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6253 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6254 if test -n "$ac_ct_CXX"; then
6255 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6256 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6258 { echo "$as_me:$LINENO: result: no" >&5
6259 echo "${ECHO_T}no" >&6; }
6263 test -n "$ac_ct_CXX" && break
6266 if test "x$ac_ct_CXX" = x; then
6269 case $cross_compiling:$ac_tool_warned in
6271 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6272 whose name does not start with the host triplet. If you think this
6273 configuration is useful to you, please write to autoconf@gnu.org." >&5
6274 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6275 whose name does not start with the host triplet. If you think this
6276 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6277 ac_tool_warned=yes ;;
6285 # Provide some information about the compiler.
6286 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6287 ac_compiler=`set X $ac_compile; echo $2`
6288 { (ac_try="$ac_compiler --version >&5"
6290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6291 *) ac_try_echo=$ac_try;;
6293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6294 (eval "$ac_compiler --version >&5") 2>&5
6296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297 (exit $ac_status); }
6298 { (ac_try="$ac_compiler -v >&5"
6300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6301 *) ac_try_echo=$ac_try;;
6303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6304 (eval "$ac_compiler -v >&5") 2>&5
6306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307 (exit $ac_status); }
6308 { (ac_try="$ac_compiler -V >&5"
6310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6311 *) ac_try_echo=$ac_try;;
6313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6314 (eval "$ac_compiler -V >&5") 2>&5
6316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317 (exit $ac_status); }
6319 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6320 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6321 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6322 echo $ECHO_N "(cached) $ECHO_C" >&6
6324 cat >conftest.$ac_ext <<_ACEOF
6327 cat confdefs.h >>conftest.$ac_ext
6328 cat >>conftest.$ac_ext <<_ACEOF
6329 /* end confdefs.h. */
6342 rm -f conftest.$ac_objext
6343 if { (ac_try="$ac_compile"
6345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6346 *) ac_try_echo=$ac_try;;
6348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6349 (eval "$ac_compile") 2>conftest.er1
6351 grep -v '^ *+' conftest.er1 >conftest.err
6353 cat conftest.err >&5
6354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355 (exit $ac_status); } &&
6356 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6357 { (case "(($ac_try" in
6358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6359 *) ac_try_echo=$ac_try;;
6361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6362 (eval "$ac_try") 2>&5
6364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365 (exit $ac_status); }; } &&
6366 { ac_try='test -s conftest.$ac_objext'
6367 { (case "(($ac_try" in
6368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6369 *) ac_try_echo=$ac_try;;
6371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6372 (eval "$ac_try") 2>&5
6374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375 (exit $ac_status); }; }; then
6378 echo "$as_me: failed program was:" >&5
6379 sed 's/^/| /' conftest.$ac_ext >&5
6384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6385 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6388 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6389 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6390 GXX=`test $ac_compiler_gnu = yes && echo yes`
6391 ac_test_CXXFLAGS=${CXXFLAGS+set}
6392 ac_save_CXXFLAGS=$CXXFLAGS
6393 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6394 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6395 if test "${ac_cv_prog_cxx_g+set}" = set; then
6396 echo $ECHO_N "(cached) $ECHO_C" >&6
6398 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6399 ac_cxx_werror_flag=yes
6402 cat >conftest.$ac_ext <<_ACEOF
6405 cat confdefs.h >>conftest.$ac_ext
6406 cat >>conftest.$ac_ext <<_ACEOF
6407 /* end confdefs.h. */
6417 rm -f conftest.$ac_objext
6418 if { (ac_try="$ac_compile"
6420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6421 *) ac_try_echo=$ac_try;;
6423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6424 (eval "$ac_compile") 2>conftest.er1
6426 grep -v '^ *+' conftest.er1 >conftest.err
6428 cat conftest.err >&5
6429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430 (exit $ac_status); } &&
6431 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6432 { (case "(($ac_try" in
6433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6434 *) ac_try_echo=$ac_try;;
6436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6437 (eval "$ac_try") 2>&5
6439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); }; } &&
6441 { ac_try='test -s conftest.$ac_objext'
6442 { (case "(($ac_try" in
6443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6444 *) ac_try_echo=$ac_try;;
6446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6447 (eval "$ac_try") 2>&5
6449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450 (exit $ac_status); }; }; then
6451 ac_cv_prog_cxx_g=yes
6453 echo "$as_me: failed program was:" >&5
6454 sed 's/^/| /' conftest.$ac_ext >&5
6457 cat >conftest.$ac_ext <<_ACEOF
6460 cat confdefs.h >>conftest.$ac_ext
6461 cat >>conftest.$ac_ext <<_ACEOF
6462 /* end confdefs.h. */
6472 rm -f conftest.$ac_objext
6473 if { (ac_try="$ac_compile"
6475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6476 *) ac_try_echo=$ac_try;;
6478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6479 (eval "$ac_compile") 2>conftest.er1
6481 grep -v '^ *+' conftest.er1 >conftest.err
6483 cat conftest.err >&5
6484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485 (exit $ac_status); } &&
6486 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6487 { (case "(($ac_try" in
6488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6489 *) ac_try_echo=$ac_try;;
6491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6492 (eval "$ac_try") 2>&5
6494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495 (exit $ac_status); }; } &&
6496 { ac_try='test -s conftest.$ac_objext'
6497 { (case "(($ac_try" in
6498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6499 *) ac_try_echo=$ac_try;;
6501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6502 (eval "$ac_try") 2>&5
6504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6505 (exit $ac_status); }; }; then
6508 echo "$as_me: failed program was:" >&5
6509 sed 's/^/| /' conftest.$ac_ext >&5
6511 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6513 cat >conftest.$ac_ext <<_ACEOF
6516 cat confdefs.h >>conftest.$ac_ext
6517 cat >>conftest.$ac_ext <<_ACEOF
6518 /* end confdefs.h. */
6528 rm -f conftest.$ac_objext
6529 if { (ac_try="$ac_compile"
6531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6532 *) ac_try_echo=$ac_try;;
6534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6535 (eval "$ac_compile") 2>conftest.er1
6537 grep -v '^ *+' conftest.er1 >conftest.err
6539 cat conftest.err >&5
6540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6541 (exit $ac_status); } &&
6542 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6543 { (case "(($ac_try" in
6544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6545 *) ac_try_echo=$ac_try;;
6547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6548 (eval "$ac_try") 2>&5
6550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6551 (exit $ac_status); }; } &&
6552 { ac_try='test -s conftest.$ac_objext'
6553 { (case "(($ac_try" in
6554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6555 *) ac_try_echo=$ac_try;;
6557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6558 (eval "$ac_try") 2>&5
6560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561 (exit $ac_status); }; }; then
6562 ac_cv_prog_cxx_g=yes
6564 echo "$as_me: failed program was:" >&5
6565 sed 's/^/| /' conftest.$ac_ext >&5
6570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6577 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6579 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6580 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6581 if test "$ac_test_CXXFLAGS" = set; then
6582 CXXFLAGS=$ac_save_CXXFLAGS
6583 elif test $ac_cv_prog_cxx_g = yes; then
6584 if test "$GXX" = yes; then
6590 if test "$GXX" = yes; then
6597 ac_cpp='$CPP $CPPFLAGS'
6598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6603 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6604 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6605 if test "${lt_cv_path_NM+set}" = set; then
6606 echo $ECHO_N "(cached) $ECHO_C" >&6
6608 if test -n "$NM"; then
6609 # Let the user override the test.
6612 lt_nm_to_check="${ac_tool_prefix}nm"
6613 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6614 lt_nm_to_check="$lt_nm_to_check nm"
6616 for lt_tmp_nm in $lt_nm_to_check; do
6617 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6618 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6620 test -z "$ac_dir" && ac_dir=.
6621 tmp_nm="$ac_dir/$lt_tmp_nm"
6622 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6623 # Check to see if the nm accepts a BSD-compat flag.
6624 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6625 # nm: unknown option "B" ignored
6626 # Tru64's nm complains that /dev/null is an invalid object file
6627 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6628 */dev/null* | *'Invalid file or object type'*)
6629 lt_cv_path_NM="$tmp_nm -B"
6633 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6635 lt_cv_path_NM="$tmp_nm -p"
6639 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6640 continue # so that we can try to find one that supports BSD flags
6649 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6652 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6653 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6658 { echo "$as_me:$LINENO: checking for GNU make" >&5
6659 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6660 if test "${llvm_cv_gnu_make_command+set}" = set; then
6661 echo $ECHO_N "(cached) $ECHO_C" >&6
6663 llvm_cv_gnu_make_command=''
6664 for a in "$MAKE" make gmake gnumake ; do
6665 if test -z "$a" ; then continue ; fi ;
6666 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6668 llvm_cv_gnu_make_command=$a ;
6673 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6674 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6675 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6679 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6680 echo "${ECHO_T}\"Not found\"" >&6; };
6684 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6685 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6687 if test "$LN_S" = "ln -s"; then
6688 { echo "$as_me:$LINENO: result: yes" >&5
6689 echo "${ECHO_T}yes" >&6; }
6691 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6692 echo "${ECHO_T}no, using $LN_S" >&6; }
6695 # Extract the first word of "cmp", so it can be a program name with args.
6696 set dummy cmp; ac_word=$2
6697 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6699 if test "${ac_cv_path_CMP+set}" = set; then
6700 echo $ECHO_N "(cached) $ECHO_C" >&6
6704 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6711 test -z "$as_dir" && as_dir=.
6712 for ac_exec_ext in '' $ac_executable_extensions; do
6713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6714 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6722 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6727 if test -n "$CMP"; then
6728 { echo "$as_me:$LINENO: result: $CMP" >&5
6729 echo "${ECHO_T}$CMP" >&6; }
6731 { echo "$as_me:$LINENO: result: no" >&5
6732 echo "${ECHO_T}no" >&6; }
6736 # Extract the first word of "cp", so it can be a program name with args.
6737 set dummy cp; ac_word=$2
6738 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6740 if test "${ac_cv_path_CP+set}" = set; then
6741 echo $ECHO_N "(cached) $ECHO_C" >&6
6745 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6752 test -z "$as_dir" && as_dir=.
6753 for ac_exec_ext in '' $ac_executable_extensions; do
6754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6755 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6763 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6768 if test -n "$CP"; then
6769 { echo "$as_me:$LINENO: result: $CP" >&5
6770 echo "${ECHO_T}$CP" >&6; }
6772 { echo "$as_me:$LINENO: result: no" >&5
6773 echo "${ECHO_T}no" >&6; }
6777 # Extract the first word of "date", so it can be a program name with args.
6778 set dummy date; ac_word=$2
6779 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6781 if test "${ac_cv_path_DATE+set}" = set; then
6782 echo $ECHO_N "(cached) $ECHO_C" >&6
6786 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6793 test -z "$as_dir" && as_dir=.
6794 for ac_exec_ext in '' $ac_executable_extensions; do
6795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6796 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6804 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6808 DATE=$ac_cv_path_DATE
6809 if test -n "$DATE"; then
6810 { echo "$as_me:$LINENO: result: $DATE" >&5
6811 echo "${ECHO_T}$DATE" >&6; }
6813 { echo "$as_me:$LINENO: result: no" >&5
6814 echo "${ECHO_T}no" >&6; }
6818 # Extract the first word of "find", so it can be a program name with args.
6819 set dummy find; ac_word=$2
6820 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6822 if test "${ac_cv_path_FIND+set}" = set; then
6823 echo $ECHO_N "(cached) $ECHO_C" >&6
6827 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6834 test -z "$as_dir" && as_dir=.
6835 for ac_exec_ext in '' $ac_executable_extensions; do
6836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6837 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6845 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6849 FIND=$ac_cv_path_FIND
6850 if test -n "$FIND"; then
6851 { echo "$as_me:$LINENO: result: $FIND" >&5
6852 echo "${ECHO_T}$FIND" >&6; }
6854 { echo "$as_me:$LINENO: result: no" >&5
6855 echo "${ECHO_T}no" >&6; }
6859 # Extract the first word of "grep", so it can be a program name with args.
6860 set dummy grep; ac_word=$2
6861 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6863 if test "${ac_cv_path_GREP+set}" = set; then
6864 echo $ECHO_N "(cached) $ECHO_C" >&6
6868 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6875 test -z "$as_dir" && as_dir=.
6876 for ac_exec_ext in '' $ac_executable_extensions; do
6877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6878 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6886 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6890 GREP=$ac_cv_path_GREP
6891 if test -n "$GREP"; then
6892 { echo "$as_me:$LINENO: result: $GREP" >&5
6893 echo "${ECHO_T}$GREP" >&6; }
6895 { echo "$as_me:$LINENO: result: no" >&5
6896 echo "${ECHO_T}no" >&6; }
6900 # Extract the first word of "mkdir", so it can be a program name with args.
6901 set dummy mkdir; ac_word=$2
6902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6904 if test "${ac_cv_path_MKDIR+set}" = set; then
6905 echo $ECHO_N "(cached) $ECHO_C" >&6
6909 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6916 test -z "$as_dir" && as_dir=.
6917 for ac_exec_ext in '' $ac_executable_extensions; do
6918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6919 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6927 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6931 MKDIR=$ac_cv_path_MKDIR
6932 if test -n "$MKDIR"; then
6933 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6934 echo "${ECHO_T}$MKDIR" >&6; }
6936 { echo "$as_me:$LINENO: result: no" >&5
6937 echo "${ECHO_T}no" >&6; }
6941 # Extract the first word of "mv", so it can be a program name with args.
6942 set dummy mv; ac_word=$2
6943 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6945 if test "${ac_cv_path_MV+set}" = set; then
6946 echo $ECHO_N "(cached) $ECHO_C" >&6
6950 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6957 test -z "$as_dir" && as_dir=.
6958 for ac_exec_ext in '' $ac_executable_extensions; do
6959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6960 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6968 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6973 if test -n "$MV"; then
6974 { echo "$as_me:$LINENO: result: $MV" >&5
6975 echo "${ECHO_T}$MV" >&6; }
6977 { echo "$as_me:$LINENO: result: no" >&5
6978 echo "${ECHO_T}no" >&6; }
6982 if test -n "$ac_tool_prefix"; then
6983 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6984 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6985 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6987 if test "${ac_cv_prog_RANLIB+set}" = set; then
6988 echo $ECHO_N "(cached) $ECHO_C" >&6
6990 if test -n "$RANLIB"; then
6991 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6997 test -z "$as_dir" && as_dir=.
6998 for ac_exec_ext in '' $ac_executable_extensions; do
6999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7000 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7010 RANLIB=$ac_cv_prog_RANLIB
7011 if test -n "$RANLIB"; then
7012 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7013 echo "${ECHO_T}$RANLIB" >&6; }
7015 { echo "$as_me:$LINENO: result: no" >&5
7016 echo "${ECHO_T}no" >&6; }
7021 if test -z "$ac_cv_prog_RANLIB"; then
7022 ac_ct_RANLIB=$RANLIB
7023 # Extract the first word of "ranlib", so it can be a program name with args.
7024 set dummy ranlib; ac_word=$2
7025 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7027 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7028 echo $ECHO_N "(cached) $ECHO_C" >&6
7030 if test -n "$ac_ct_RANLIB"; then
7031 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7037 test -z "$as_dir" && as_dir=.
7038 for ac_exec_ext in '' $ac_executable_extensions; do
7039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7040 ac_cv_prog_ac_ct_RANLIB="ranlib"
7041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7050 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7051 if test -n "$ac_ct_RANLIB"; then
7052 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7053 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7055 { echo "$as_me:$LINENO: result: no" >&5
7056 echo "${ECHO_T}no" >&6; }
7059 if test "x$ac_ct_RANLIB" = x; then
7062 case $cross_compiling:$ac_tool_warned in
7064 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7065 whose name does not start with the host triplet. If you think this
7066 configuration is useful to you, please write to autoconf@gnu.org." >&5
7067 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7068 whose name does not start with the host triplet. If you think this
7069 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7070 ac_tool_warned=yes ;;
7072 RANLIB=$ac_ct_RANLIB
7075 RANLIB="$ac_cv_prog_RANLIB"
7078 if test -n "$ac_tool_prefix"; then
7079 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7080 set dummy ${ac_tool_prefix}ar; ac_word=$2
7081 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7083 if test "${ac_cv_prog_AR+set}" = set; then
7084 echo $ECHO_N "(cached) $ECHO_C" >&6
7086 if test -n "$AR"; then
7087 ac_cv_prog_AR="$AR" # Let the user override the test.
7089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7093 test -z "$as_dir" && as_dir=.
7094 for ac_exec_ext in '' $ac_executable_extensions; do
7095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7096 ac_cv_prog_AR="${ac_tool_prefix}ar"
7097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7107 if test -n "$AR"; then
7108 { echo "$as_me:$LINENO: result: $AR" >&5
7109 echo "${ECHO_T}$AR" >&6; }
7111 { echo "$as_me:$LINENO: result: no" >&5
7112 echo "${ECHO_T}no" >&6; }
7117 if test -z "$ac_cv_prog_AR"; then
7119 # Extract the first word of "ar", so it can be a program name with args.
7120 set dummy ar; ac_word=$2
7121 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7123 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7124 echo $ECHO_N "(cached) $ECHO_C" >&6
7126 if test -n "$ac_ct_AR"; then
7127 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7133 test -z "$as_dir" && as_dir=.
7134 for ac_exec_ext in '' $ac_executable_extensions; do
7135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7136 ac_cv_prog_ac_ct_AR="ar"
7137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7146 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7147 if test -n "$ac_ct_AR"; then
7148 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7149 echo "${ECHO_T}$ac_ct_AR" >&6; }
7151 { echo "$as_me:$LINENO: result: no" >&5
7152 echo "${ECHO_T}no" >&6; }
7155 if test "x$ac_ct_AR" = x; then
7158 case $cross_compiling:$ac_tool_warned in
7160 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7161 whose name does not start with the host triplet. If you think this
7162 configuration is useful to you, please write to autoconf@gnu.org." >&5
7163 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7164 whose name does not start with the host triplet. If you think this
7165 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7166 ac_tool_warned=yes ;;
7174 # Extract the first word of "rm", so it can be a program name with args.
7175 set dummy rm; ac_word=$2
7176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7178 if test "${ac_cv_path_RM+set}" = set; then
7179 echo $ECHO_N "(cached) $ECHO_C" >&6
7183 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7190 test -z "$as_dir" && as_dir=.
7191 for ac_exec_ext in '' $ac_executable_extensions; do
7192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7193 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7201 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7206 if test -n "$RM"; then
7207 { echo "$as_me:$LINENO: result: $RM" >&5
7208 echo "${ECHO_T}$RM" >&6; }
7210 { echo "$as_me:$LINENO: result: no" >&5
7211 echo "${ECHO_T}no" >&6; }
7215 # Extract the first word of "sed", so it can be a program name with args.
7216 set dummy sed; ac_word=$2
7217 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7219 if test "${ac_cv_path_SED+set}" = set; then
7220 echo $ECHO_N "(cached) $ECHO_C" >&6
7224 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7231 test -z "$as_dir" && as_dir=.
7232 for ac_exec_ext in '' $ac_executable_extensions; do
7233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7234 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7242 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7247 if test -n "$SED"; then
7248 { echo "$as_me:$LINENO: result: $SED" >&5
7249 echo "${ECHO_T}$SED" >&6; }
7251 { echo "$as_me:$LINENO: result: no" >&5
7252 echo "${ECHO_T}no" >&6; }
7256 # Extract the first word of "tar", so it can be a program name with args.
7257 set dummy tar; ac_word=$2
7258 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7260 if test "${ac_cv_path_TAR+set}" = set; then
7261 echo $ECHO_N "(cached) $ECHO_C" >&6
7265 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7272 test -z "$as_dir" && as_dir=.
7273 for ac_exec_ext in '' $ac_executable_extensions; do
7274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7275 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7283 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7288 if test -n "$TAR"; then
7289 { echo "$as_me:$LINENO: result: $TAR" >&5
7290 echo "${ECHO_T}$TAR" >&6; }
7292 { echo "$as_me:$LINENO: result: no" >&5
7293 echo "${ECHO_T}no" >&6; }
7297 # Extract the first word of "pwd", so it can be a program name with args.
7298 set dummy pwd; ac_word=$2
7299 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7301 if test "${ac_cv_path_BINPWD+set}" = set; then
7302 echo $ECHO_N "(cached) $ECHO_C" >&6
7306 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7313 test -z "$as_dir" && as_dir=.
7314 for ac_exec_ext in '' $ac_executable_extensions; do
7315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7316 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7324 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7328 BINPWD=$ac_cv_path_BINPWD
7329 if test -n "$BINPWD"; then
7330 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7331 echo "${ECHO_T}$BINPWD" >&6; }
7333 { echo "$as_me:$LINENO: result: no" >&5
7334 echo "${ECHO_T}no" >&6; }
7339 # Extract the first word of "Graphviz", so it can be a program name with args.
7340 set dummy Graphviz; ac_word=$2
7341 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7343 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7344 echo $ECHO_N "(cached) $ECHO_C" >&6
7348 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7355 test -z "$as_dir" && as_dir=.
7356 for ac_exec_ext in '' $ac_executable_extensions; do
7357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7358 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7366 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7370 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7371 if test -n "$GRAPHVIZ"; then
7372 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7373 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7375 { echo "$as_me:$LINENO: result: no" >&5
7376 echo "${ECHO_T}no" >&6; }
7380 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7382 cat >>confdefs.h <<\_ACEOF
7383 #define HAVE_GRAPHVIZ 1
7386 if test "$llvm_cv_os_type" = "MingW" ; then
7387 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7390 cat >>confdefs.h <<_ACEOF
7391 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7395 # Extract the first word of "dot", so it can be a program name with args.
7396 set dummy dot; ac_word=$2
7397 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7399 if test "${ac_cv_path_DOT+set}" = set; then
7400 echo $ECHO_N "(cached) $ECHO_C" >&6
7404 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7411 test -z "$as_dir" && as_dir=.
7412 for ac_exec_ext in '' $ac_executable_extensions; do
7413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7414 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7422 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7427 if test -n "$DOT"; then
7428 { echo "$as_me:$LINENO: result: $DOT" >&5
7429 echo "${ECHO_T}$DOT" >&6; }
7431 { echo "$as_me:$LINENO: result: no" >&5
7432 echo "${ECHO_T}no" >&6; }
7436 if test "$DOT" != "echo dot" ; then
7438 cat >>confdefs.h <<\_ACEOF
7442 if test "$llvm_cv_os_type" = "MingW" ; then
7443 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7446 cat >>confdefs.h <<_ACEOF
7447 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7451 # Extract the first word of "fdp", so it can be a program name with args.
7452 set dummy fdp; ac_word=$2
7453 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7455 if test "${ac_cv_path_FDP+set}" = set; then
7456 echo $ECHO_N "(cached) $ECHO_C" >&6
7460 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7467 test -z "$as_dir" && as_dir=.
7468 for ac_exec_ext in '' $ac_executable_extensions; do
7469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7470 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7478 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7483 if test -n "$FDP"; then
7484 { echo "$as_me:$LINENO: result: $FDP" >&5
7485 echo "${ECHO_T}$FDP" >&6; }
7487 { echo "$as_me:$LINENO: result: no" >&5
7488 echo "${ECHO_T}no" >&6; }
7492 if test "$FDP" != "echo fdp" ; then
7494 cat >>confdefs.h <<\_ACEOF
7498 if test "$llvm_cv_os_type" = "MingW" ; then
7499 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7502 cat >>confdefs.h <<_ACEOF
7503 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7507 # Extract the first word of "neato", so it can be a program name with args.
7508 set dummy neato; ac_word=$2
7509 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7511 if test "${ac_cv_path_NEATO+set}" = set; then
7512 echo $ECHO_N "(cached) $ECHO_C" >&6
7516 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7523 test -z "$as_dir" && as_dir=.
7524 for ac_exec_ext in '' $ac_executable_extensions; do
7525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7526 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7534 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7538 NEATO=$ac_cv_path_NEATO
7539 if test -n "$NEATO"; then
7540 { echo "$as_me:$LINENO: result: $NEATO" >&5
7541 echo "${ECHO_T}$NEATO" >&6; }
7543 { echo "$as_me:$LINENO: result: no" >&5
7544 echo "${ECHO_T}no" >&6; }
7548 if test "$NEATO" != "echo neato" ; then
7550 cat >>confdefs.h <<\_ACEOF
7551 #define HAVE_NEATO 1
7554 if test "$llvm_cv_os_type" = "MingW" ; then
7555 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7558 cat >>confdefs.h <<_ACEOF
7559 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7563 # Extract the first word of "twopi", so it can be a program name with args.
7564 set dummy twopi; ac_word=$2
7565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7567 if test "${ac_cv_path_TWOPI+set}" = set; then
7568 echo $ECHO_N "(cached) $ECHO_C" >&6
7572 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7579 test -z "$as_dir" && as_dir=.
7580 for ac_exec_ext in '' $ac_executable_extensions; do
7581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7582 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7590 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7594 TWOPI=$ac_cv_path_TWOPI
7595 if test -n "$TWOPI"; then
7596 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7597 echo "${ECHO_T}$TWOPI" >&6; }
7599 { echo "$as_me:$LINENO: result: no" >&5
7600 echo "${ECHO_T}no" >&6; }
7604 if test "$TWOPI" != "echo twopi" ; then
7606 cat >>confdefs.h <<\_ACEOF
7607 #define HAVE_TWOPI 1
7610 if test "$llvm_cv_os_type" = "MingW" ; then
7611 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7614 cat >>confdefs.h <<_ACEOF
7615 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7619 # Extract the first word of "circo", so it can be a program name with args.
7620 set dummy circo; ac_word=$2
7621 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7623 if test "${ac_cv_path_CIRCO+set}" = set; then
7624 echo $ECHO_N "(cached) $ECHO_C" >&6
7628 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7635 test -z "$as_dir" && as_dir=.
7636 for ac_exec_ext in '' $ac_executable_extensions; do
7637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7638 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7646 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7650 CIRCO=$ac_cv_path_CIRCO
7651 if test -n "$CIRCO"; then
7652 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7653 echo "${ECHO_T}$CIRCO" >&6; }
7655 { echo "$as_me:$LINENO: result: no" >&5
7656 echo "${ECHO_T}no" >&6; }
7660 if test "$CIRCO" != "echo circo" ; then
7662 cat >>confdefs.h <<\_ACEOF
7663 #define HAVE_CIRCO 1
7666 if test "$llvm_cv_os_type" = "MingW" ; then
7667 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7670 cat >>confdefs.h <<_ACEOF
7671 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7675 for ac_prog in gv gsview32
7677 # Extract the first word of "$ac_prog", so it can be a program name with args.
7678 set dummy $ac_prog; ac_word=$2
7679 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7681 if test "${ac_cv_path_GV+set}" = set; then
7682 echo $ECHO_N "(cached) $ECHO_C" >&6
7686 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7693 test -z "$as_dir" && as_dir=.
7694 for ac_exec_ext in '' $ac_executable_extensions; do
7695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7696 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7708 if test -n "$GV"; then
7709 { echo "$as_me:$LINENO: result: $GV" >&5
7710 echo "${ECHO_T}$GV" >&6; }
7712 { echo "$as_me:$LINENO: result: no" >&5
7713 echo "${ECHO_T}no" >&6; }
7717 test -n "$GV" && break
7719 test -n "$GV" || GV="echo gv"
7721 if test "$GV" != "echo gv" ; then
7723 cat >>confdefs.h <<\_ACEOF
7727 if test "$llvm_cv_os_type" = "MingW" ; then
7728 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7731 cat >>confdefs.h <<_ACEOF
7732 #define LLVM_PATH_GV "$GV${EXEEXT}"
7736 # Extract the first word of "dotty", so it can be a program name with args.
7737 set dummy dotty; ac_word=$2
7738 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7740 if test "${ac_cv_path_DOTTY+set}" = set; then
7741 echo $ECHO_N "(cached) $ECHO_C" >&6
7745 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7752 test -z "$as_dir" && as_dir=.
7753 for ac_exec_ext in '' $ac_executable_extensions; do
7754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7755 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7763 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7767 DOTTY=$ac_cv_path_DOTTY
7768 if test -n "$DOTTY"; then
7769 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7770 echo "${ECHO_T}$DOTTY" >&6; }
7772 { echo "$as_me:$LINENO: result: no" >&5
7773 echo "${ECHO_T}no" >&6; }
7777 if test "$DOTTY" != "echo dotty" ; then
7779 cat >>confdefs.h <<\_ACEOF
7780 #define HAVE_DOTTY 1
7783 if test "$llvm_cv_os_type" = "MingW" ; then
7784 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7787 cat >>confdefs.h <<_ACEOF
7788 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7794 # Extract the first word of "perl", so it can be a program name with args.
7795 set dummy perl; ac_word=$2
7796 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7798 if test "${ac_cv_path_PERL+set}" = set; then
7799 echo $ECHO_N "(cached) $ECHO_C" >&6
7803 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7810 test -z "$as_dir" && as_dir=.
7811 for ac_exec_ext in '' $ac_executable_extensions; do
7812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7813 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7821 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7825 PERL=$ac_cv_path_PERL
7826 if test -n "$PERL"; then
7827 { echo "$as_me:$LINENO: result: $PERL" >&5
7828 echo "${ECHO_T}$PERL" >&6; }
7830 { echo "$as_me:$LINENO: result: no" >&5
7831 echo "${ECHO_T}no" >&6; }
7835 if test "$PERL" != "none"; then
7836 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7837 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7838 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7839 { echo "$as_me:$LINENO: result: yes" >&5
7840 echo "${ECHO_T}yes" >&6; }
7843 { echo "$as_me:$LINENO: result: not found" >&5
7844 echo "${ECHO_T}not found" >&6; }
7849 if test x"$PERL" = xnone; then
7852 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7853 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7854 { (exit 1); exit 1; }; }
7860 # Find a good install program. We prefer a C program (faster),
7861 # so one script is as good as another. But avoid the broken or
7862 # incompatible versions:
7863 # SysV /etc/install, /usr/sbin/install
7864 # SunOS /usr/etc/install
7865 # IRIX /sbin/install
7867 # AmigaOS /C/install, which installs bootblocks on floppy discs
7868 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7869 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7870 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7871 # OS/2's system install, which has a completely different semantic
7872 # ./install, which can be erroneously created by make from ./install.sh.
7873 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7874 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7875 if test -z "$INSTALL"; then
7876 if test "${ac_cv_path_install+set}" = set; then
7877 echo $ECHO_N "(cached) $ECHO_C" >&6
7879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7883 test -z "$as_dir" && as_dir=.
7884 # Account for people who put trailing slashes in PATH elements.
7886 ./ | .// | /cC/* | \
7887 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7888 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7891 # OSF1 and SCO ODT 3.0 have their own names for install.
7892 # Don't use installbsd from OSF since it installs stuff as root
7894 for ac_prog in ginstall scoinst install; do
7895 for ac_exec_ext in '' $ac_executable_extensions; do
7896 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7897 if test $ac_prog = install &&
7898 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7899 # AIX install. It has an incompatible calling convention.
7901 elif test $ac_prog = install &&
7902 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7903 # program-specific install script used by HP pwplus--don't use.
7906 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7919 if test "${ac_cv_path_install+set}" = set; then
7920 INSTALL=$ac_cv_path_install
7922 # As a last resort, use the slow shell script. Don't cache a
7923 # value for INSTALL within a source directory, because that will
7924 # break other packages using the cache if that directory is
7925 # removed, or if the value is a relative name.
7926 INSTALL=$ac_install_sh
7929 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7930 echo "${ECHO_T}$INSTALL" >&6; }
7932 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7933 # It thinks the first close brace ends the variable substitution.
7934 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7936 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7938 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7941 # Extract the first word of "bzip2", so it can be a program name with args.
7942 set dummy bzip2; ac_word=$2
7943 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7945 if test "${ac_cv_path_BZIP2+set}" = set; then
7946 echo $ECHO_N "(cached) $ECHO_C" >&6
7950 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7957 test -z "$as_dir" && as_dir=.
7958 for ac_exec_ext in '' $ac_executable_extensions; do
7959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7960 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7971 BZIP2=$ac_cv_path_BZIP2
7972 if test -n "$BZIP2"; then
7973 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7974 echo "${ECHO_T}$BZIP2" >&6; }
7976 { echo "$as_me:$LINENO: result: no" >&5
7977 echo "${ECHO_T}no" >&6; }
7981 # Extract the first word of "doxygen", so it can be a program name with args.
7982 set dummy doxygen; ac_word=$2
7983 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7985 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7986 echo $ECHO_N "(cached) $ECHO_C" >&6
7990 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7997 test -z "$as_dir" && as_dir=.
7998 for ac_exec_ext in '' $ac_executable_extensions; do
7999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8000 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
8001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8011 DOXYGEN=$ac_cv_path_DOXYGEN
8012 if test -n "$DOXYGEN"; then
8013 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8014 echo "${ECHO_T}$DOXYGEN" >&6; }
8016 { echo "$as_me:$LINENO: result: no" >&5
8017 echo "${ECHO_T}no" >&6; }
8021 # Extract the first word of "groff", so it can be a program name with args.
8022 set dummy groff; ac_word=$2
8023 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8025 if test "${ac_cv_path_GROFF+set}" = set; then
8026 echo $ECHO_N "(cached) $ECHO_C" >&6
8030 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8037 test -z "$as_dir" && as_dir=.
8038 for ac_exec_ext in '' $ac_executable_extensions; do
8039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8040 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
8041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8051 GROFF=$ac_cv_path_GROFF
8052 if test -n "$GROFF"; then
8053 { echo "$as_me:$LINENO: result: $GROFF" >&5
8054 echo "${ECHO_T}$GROFF" >&6; }
8056 { echo "$as_me:$LINENO: result: no" >&5
8057 echo "${ECHO_T}no" >&6; }
8061 # Extract the first word of "gzip", so it can be a program name with args.
8062 set dummy gzip; ac_word=$2
8063 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8065 if test "${ac_cv_path_GZIP+set}" = set; then
8066 echo $ECHO_N "(cached) $ECHO_C" >&6
8070 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8077 test -z "$as_dir" && as_dir=.
8078 for ac_exec_ext in '' $ac_executable_extensions; do
8079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8080 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8091 GZIP=$ac_cv_path_GZIP
8092 if test -n "$GZIP"; then
8093 { echo "$as_me:$LINENO: result: $GZIP" >&5
8094 echo "${ECHO_T}$GZIP" >&6; }
8096 { echo "$as_me:$LINENO: result: no" >&5
8097 echo "${ECHO_T}no" >&6; }
8101 # Extract the first word of "pod2html", so it can be a program name with args.
8102 set dummy pod2html; ac_word=$2
8103 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8105 if test "${ac_cv_path_POD2HTML+set}" = set; then
8106 echo $ECHO_N "(cached) $ECHO_C" >&6
8110 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8117 test -z "$as_dir" && as_dir=.
8118 for ac_exec_ext in '' $ac_executable_extensions; do
8119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8120 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8131 POD2HTML=$ac_cv_path_POD2HTML
8132 if test -n "$POD2HTML"; then
8133 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8134 echo "${ECHO_T}$POD2HTML" >&6; }
8136 { echo "$as_me:$LINENO: result: no" >&5
8137 echo "${ECHO_T}no" >&6; }
8141 # Extract the first word of "pod2man", so it can be a program name with args.
8142 set dummy pod2man; ac_word=$2
8143 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8145 if test "${ac_cv_path_POD2MAN+set}" = set; then
8146 echo $ECHO_N "(cached) $ECHO_C" >&6
8150 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8157 test -z "$as_dir" && as_dir=.
8158 for ac_exec_ext in '' $ac_executable_extensions; do
8159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8160 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8171 POD2MAN=$ac_cv_path_POD2MAN
8172 if test -n "$POD2MAN"; then
8173 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8174 echo "${ECHO_T}$POD2MAN" >&6; }
8176 { echo "$as_me:$LINENO: result: no" >&5
8177 echo "${ECHO_T}no" >&6; }
8181 # Extract the first word of "runtest", so it can be a program name with args.
8182 set dummy runtest; ac_word=$2
8183 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8185 if test "${ac_cv_path_RUNTEST+set}" = set; then
8186 echo $ECHO_N "(cached) $ECHO_C" >&6
8190 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8197 test -z "$as_dir" && as_dir=.
8198 for ac_exec_ext in '' $ac_executable_extensions; do
8199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8200 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8211 RUNTEST=$ac_cv_path_RUNTEST
8212 if test -n "$RUNTEST"; then
8213 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8214 echo "${ECHO_T}$RUNTEST" >&6; }
8216 { echo "$as_me:$LINENO: result: no" >&5
8217 echo "${ECHO_T}no" >&6; }
8223 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8224 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8226 # Check whether --with-tclinclude was given.
8227 if test "${with_tclinclude+set}" = set; then
8228 withval=$with_tclinclude; with_tclinclude=${withval}
8233 if test "${ac_cv_path_tclsh+set}" = set; then
8234 echo $ECHO_N "(cached) $ECHO_C" >&6
8237 if test x"${with_tclinclude}" != x ; then
8238 if test -f ${with_tclinclude}/tclsh ; then
8239 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8240 elif test -f ${with_tclinclude}/src/tclsh ; then
8241 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8243 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8244 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8245 { (exit 1); exit 1; }; }
8251 if test x"${ac_cv_path_tclsh}" = x ; then
8252 { echo "$as_me:$LINENO: result: none" >&5
8253 echo "${ECHO_T}none" >&6; }
8254 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
8256 # Extract the first word of "$ac_prog", so it can be a program name with args.
8257 set dummy $ac_prog; ac_word=$2
8258 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8260 if test "${ac_cv_path_TCLSH+set}" = set; then
8261 echo $ECHO_N "(cached) $ECHO_C" >&6
8265 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8272 test -z "$as_dir" && as_dir=.
8273 for ac_exec_ext in '' $ac_executable_extensions; do
8274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8275 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8286 TCLSH=$ac_cv_path_TCLSH
8287 if test -n "$TCLSH"; then
8288 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8289 echo "${ECHO_T}$TCLSH" >&6; }
8291 { echo "$as_me:$LINENO: result: no" >&5
8292 echo "${ECHO_T}no" >&6; }
8296 test -n "$TCLSH" && break
8299 if test x"${TCLSH}" = x ; then
8300 ac_cv_path_tclsh='';
8302 ac_cv_path_tclsh="${TCLSH}";
8305 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8306 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8307 TCLSH="${ac_cv_path_tclsh}"
8311 # Extract the first word of "zip", so it can be a program name with args.
8312 set dummy zip; ac_word=$2
8313 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8315 if test "${ac_cv_path_ZIP+set}" = set; then
8316 echo $ECHO_N "(cached) $ECHO_C" >&6
8320 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8327 test -z "$as_dir" && as_dir=.
8328 for ac_exec_ext in '' $ac_executable_extensions; do
8329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8330 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8342 if test -n "$ZIP"; then
8343 { echo "$as_me:$LINENO: result: $ZIP" >&5
8344 echo "${ECHO_T}$ZIP" >&6; }
8346 { echo "$as_me:$LINENO: result: no" >&5
8347 echo "${ECHO_T}no" >&6; }
8351 for ac_prog in ocamlc
8353 # Extract the first word of "$ac_prog", so it can be a program name with args.
8354 set dummy $ac_prog; ac_word=$2
8355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8357 if test "${ac_cv_path_OCAMLC+set}" = set; then
8358 echo $ECHO_N "(cached) $ECHO_C" >&6
8362 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8369 test -z "$as_dir" && as_dir=.
8370 for ac_exec_ext in '' $ac_executable_extensions; do
8371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8372 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8383 OCAMLC=$ac_cv_path_OCAMLC
8384 if test -n "$OCAMLC"; then
8385 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8386 echo "${ECHO_T}$OCAMLC" >&6; }
8388 { echo "$as_me:$LINENO: result: no" >&5
8389 echo "${ECHO_T}no" >&6; }
8393 test -n "$OCAMLC" && break
8396 for ac_prog in ocamlopt
8398 # Extract the first word of "$ac_prog", so it can be a program name with args.
8399 set dummy $ac_prog; ac_word=$2
8400 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8402 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8403 echo $ECHO_N "(cached) $ECHO_C" >&6
8407 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8414 test -z "$as_dir" && as_dir=.
8415 for ac_exec_ext in '' $ac_executable_extensions; do
8416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8417 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8428 OCAMLOPT=$ac_cv_path_OCAMLOPT
8429 if test -n "$OCAMLOPT"; then
8430 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8431 echo "${ECHO_T}$OCAMLOPT" >&6; }
8433 { echo "$as_me:$LINENO: result: no" >&5
8434 echo "${ECHO_T}no" >&6; }
8438 test -n "$OCAMLOPT" && break
8441 for ac_prog in ocamldep
8443 # Extract the first word of "$ac_prog", so it can be a program name with args.
8444 set dummy $ac_prog; ac_word=$2
8445 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8447 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8448 echo $ECHO_N "(cached) $ECHO_C" >&6
8452 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8459 test -z "$as_dir" && as_dir=.
8460 for ac_exec_ext in '' $ac_executable_extensions; do
8461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8462 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8473 OCAMLDEP=$ac_cv_path_OCAMLDEP
8474 if test -n "$OCAMLDEP"; then
8475 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8476 echo "${ECHO_T}$OCAMLDEP" >&6; }
8478 { echo "$as_me:$LINENO: result: no" >&5
8479 echo "${ECHO_T}no" >&6; }
8483 test -n "$OCAMLDEP" && break
8486 for ac_prog in ocamldoc
8488 # Extract the first word of "$ac_prog", so it can be a program name with args.
8489 set dummy $ac_prog; ac_word=$2
8490 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8492 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8493 echo $ECHO_N "(cached) $ECHO_C" >&6
8497 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8504 test -z "$as_dir" && as_dir=.
8505 for ac_exec_ext in '' $ac_executable_extensions; do
8506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8507 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8518 OCAMLDOC=$ac_cv_path_OCAMLDOC
8519 if test -n "$OCAMLDOC"; then
8520 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8521 echo "${ECHO_T}$OCAMLDOC" >&6; }
8523 { echo "$as_me:$LINENO: result: no" >&5
8524 echo "${ECHO_T}no" >&6; }
8528 test -n "$OCAMLDOC" && break
8531 for ac_prog in gas as
8533 # Extract the first word of "$ac_prog", so it can be a program name with args.
8534 set dummy $ac_prog; ac_word=$2
8535 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8537 if test "${ac_cv_path_GAS+set}" = set; then
8538 echo $ECHO_N "(cached) $ECHO_C" >&6
8542 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8549 test -z "$as_dir" && as_dir=.
8550 for ac_exec_ext in '' $ac_executable_extensions; do
8551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8552 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8564 if test -n "$GAS"; then
8565 { echo "$as_me:$LINENO: result: $GAS" >&5
8566 echo "${ECHO_T}$GAS" >&6; }
8568 { echo "$as_me:$LINENO: result: no" >&5
8569 echo "${ECHO_T}no" >&6; }
8573 test -n "$GAS" && break
8577 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8578 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8579 if test "${llvm_cv_link_use_r+set}" = set; then
8580 echo $ECHO_N "(cached) $ECHO_C" >&6
8583 ac_cpp='$CPP $CPPFLAGS'
8584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8589 CFLAGS="$CFLAGS -Wl,-R."
8590 cat >conftest.$ac_ext <<_ACEOF
8593 cat confdefs.h >>conftest.$ac_ext
8594 cat >>conftest.$ac_ext <<_ACEOF
8595 /* end confdefs.h. */
8600 int main() { return 0; }
8605 rm -f conftest.$ac_objext conftest$ac_exeext
8606 if { (ac_try="$ac_link"
8608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8609 *) ac_try_echo=$ac_try;;
8611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8612 (eval "$ac_link") 2>conftest.er1
8614 grep -v '^ *+' conftest.er1 >conftest.err
8616 cat conftest.err >&5
8617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 (exit $ac_status); } &&
8619 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8620 { (case "(($ac_try" in
8621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8622 *) ac_try_echo=$ac_try;;
8624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8625 (eval "$ac_try") 2>&5
8627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8628 (exit $ac_status); }; } &&
8629 { ac_try='test -s conftest$ac_exeext'
8630 { (case "(($ac_try" in
8631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8632 *) ac_try_echo=$ac_try;;
8634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8635 (eval "$ac_try") 2>&5
8637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638 (exit $ac_status); }; }; then
8639 llvm_cv_link_use_r=yes
8641 echo "$as_me: failed program was:" >&5
8642 sed 's/^/| /' conftest.$ac_ext >&5
8644 llvm_cv_link_use_r=no
8647 rm -f core conftest.err conftest.$ac_objext \
8648 conftest$ac_exeext conftest.$ac_ext
8651 ac_cpp='$CPP $CPPFLAGS'
8652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8658 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8659 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8660 if test "$llvm_cv_link_use_r" = yes ; then
8662 cat >>confdefs.h <<\_ACEOF
8663 #define HAVE_LINK_R 1
8669 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8670 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8671 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8672 echo $ECHO_N "(cached) $ECHO_C" >&6
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
8681 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8682 cat >conftest.$ac_ext <<_ACEOF
8685 cat confdefs.h >>conftest.$ac_ext
8686 cat >>conftest.$ac_ext <<_ACEOF
8687 /* end confdefs.h. */
8692 int main() { return 0; }
8697 rm -f conftest.$ac_objext conftest$ac_exeext
8698 if { (ac_try="$ac_link"
8700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8701 *) ac_try_echo=$ac_try;;
8703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8704 (eval "$ac_link") 2>conftest.er1
8706 grep -v '^ *+' conftest.er1 >conftest.err
8708 cat conftest.err >&5
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); } &&
8711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8712 { (case "(($ac_try" in
8713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8714 *) ac_try_echo=$ac_try;;
8716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8717 (eval "$ac_try") 2>&5
8719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720 (exit $ac_status); }; } &&
8721 { ac_try='test -s conftest$ac_exeext'
8722 { (case "(($ac_try" in
8723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8724 *) ac_try_echo=$ac_try;;
8726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8727 (eval "$ac_try") 2>&5
8729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8730 (exit $ac_status); }; }; then
8731 llvm_cv_link_use_export_dynamic=yes
8733 echo "$as_me: failed program was:" >&5
8734 sed 's/^/| /' conftest.$ac_ext >&5
8736 llvm_cv_link_use_export_dynamic=no
8739 rm -f core conftest.err conftest.$ac_objext \
8740 conftest$ac_exeext conftest.$ac_ext
8743 ac_cpp='$CPP $CPPFLAGS'
8744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8750 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8751 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8752 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8754 cat >>confdefs.h <<\_ACEOF
8755 #define HAVE_LINK_EXPORT_DYNAMIC 1
8763 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8764 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8765 if test "${ac_cv_c_const+set}" = set; then
8766 echo $ECHO_N "(cached) $ECHO_C" >&6
8768 cat >conftest.$ac_ext <<_ACEOF
8771 cat confdefs.h >>conftest.$ac_ext
8772 cat >>conftest.$ac_ext <<_ACEOF
8773 /* end confdefs.h. */
8778 /* FIXME: Include the comments suggested by Paul. */
8780 /* Ultrix mips cc rejects this. */
8781 typedef int charset[2];
8783 /* SunOS 4.1.1 cc rejects this. */
8784 char const *const *ccp;
8786 /* NEC SVR4.0.2 mips cc rejects this. */
8787 struct point {int x, y;};
8788 static struct point const zero = {0,0};
8789 /* AIX XL C 1.02.0.0 rejects this.
8790 It does not let you subtract one const X* pointer from another in
8791 an arm of an if-expression whose if-part is not a constant
8793 const char *g = "string";
8794 ccp = &g + (g ? g-g : 0);
8795 /* HPUX 7.0 cc rejects these. */
8798 ccp = (char const *const *) p;
8799 { /* SCO 3.2v4 cc rejects this. */
8801 char const *s = 0 ? (char *) 0 : (char const *) 0;
8806 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8808 const int *foo = &x[0];
8811 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8812 typedef const int *iptr;
8816 { /* AIX XL C 1.02.0.0 rejects this saying
8817 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8818 struct s { int j; const int *ap[3]; };
8819 struct s *b; b->j = 5;
8821 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8825 return !x[0] && !zero.x;
8832 rm -f conftest.$ac_objext
8833 if { (ac_try="$ac_compile"
8835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8836 *) ac_try_echo=$ac_try;;
8838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8839 (eval "$ac_compile") 2>conftest.er1
8841 grep -v '^ *+' conftest.er1 >conftest.err
8843 cat conftest.err >&5
8844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845 (exit $ac_status); } &&
8846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8847 { (case "(($ac_try" in
8848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8849 *) ac_try_echo=$ac_try;;
8851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8852 (eval "$ac_try") 2>&5
8854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855 (exit $ac_status); }; } &&
8856 { ac_try='test -s conftest.$ac_objext'
8857 { (case "(($ac_try" in
8858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8859 *) ac_try_echo=$ac_try;;
8861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8862 (eval "$ac_try") 2>&5
8864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865 (exit $ac_status); }; }; then
8868 echo "$as_me: failed program was:" >&5
8869 sed 's/^/| /' conftest.$ac_ext >&5
8874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8876 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8877 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8878 if test $ac_cv_c_const = no; then
8880 cat >>confdefs.h <<\_ACEOF
8892 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8893 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8894 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8895 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8896 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8897 echo $ECHO_N "(cached) $ECHO_C" >&6
8899 cat >conftest.$ac_ext <<_ACEOF
8902 cat confdefs.h >>conftest.$ac_ext
8903 cat >>conftest.$ac_ext <<_ACEOF
8904 /* end confdefs.h. */
8905 #include <sys/types.h>
8917 rm -f conftest.$ac_objext
8918 if { (ac_try="$ac_compile"
8920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8921 *) ac_try_echo=$ac_try;;
8923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8924 (eval "$ac_compile") 2>conftest.er1
8926 grep -v '^ *+' conftest.er1 >conftest.err
8928 cat conftest.err >&5
8929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930 (exit $ac_status); } &&
8931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8932 { (case "(($ac_try" in
8933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8934 *) ac_try_echo=$ac_try;;
8936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8937 (eval "$ac_try") 2>&5
8939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8940 (exit $ac_status); }; } &&
8941 { ac_try='test -s conftest.$ac_objext'
8942 { (case "(($ac_try" in
8943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8944 *) ac_try_echo=$ac_try;;
8946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8947 (eval "$ac_try") 2>&5
8949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950 (exit $ac_status); }; }; then
8951 eval "$as_ac_Header=yes"
8953 echo "$as_me: failed program was:" >&5
8954 sed 's/^/| /' conftest.$ac_ext >&5
8956 eval "$as_ac_Header=no"
8959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8961 ac_res=`eval echo '${'$as_ac_Header'}'`
8962 { echo "$as_me:$LINENO: result: $ac_res" >&5
8963 echo "${ECHO_T}$ac_res" >&6; }
8964 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8965 cat >>confdefs.h <<_ACEOF
8966 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8969 ac_header_dirent=$ac_hdr; break
8973 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8974 if test $ac_header_dirent = dirent.h; then
8975 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8976 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8977 if test "${ac_cv_search_opendir+set}" = set; then
8978 echo $ECHO_N "(cached) $ECHO_C" >&6
8980 ac_func_search_save_LIBS=$LIBS
8981 cat >conftest.$ac_ext <<_ACEOF
8984 cat confdefs.h >>conftest.$ac_ext
8985 cat >>conftest.$ac_ext <<_ACEOF
8986 /* end confdefs.h. */
8988 /* Override any GCC internal prototype to avoid an error.
8989 Use char because int might match the return type of a GCC
8990 builtin and then its argument prototype would still apply. */
9003 for ac_lib in '' dir; do
9004 if test -z "$ac_lib"; then
9005 ac_res="none required"
9008 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9010 rm -f conftest.$ac_objext conftest$ac_exeext
9011 if { (ac_try="$ac_link"
9013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9014 *) ac_try_echo=$ac_try;;
9016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9017 (eval "$ac_link") 2>conftest.er1
9019 grep -v '^ *+' conftest.er1 >conftest.err
9021 cat conftest.err >&5
9022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9023 (exit $ac_status); } &&
9024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9025 { (case "(($ac_try" in
9026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9027 *) ac_try_echo=$ac_try;;
9029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9030 (eval "$ac_try") 2>&5
9032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9033 (exit $ac_status); }; } &&
9034 { ac_try='test -s conftest$ac_exeext'
9035 { (case "(($ac_try" in
9036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9037 *) ac_try_echo=$ac_try;;
9039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9040 (eval "$ac_try") 2>&5
9042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9043 (exit $ac_status); }; }; then
9044 ac_cv_search_opendir=$ac_res
9046 echo "$as_me: failed program was:" >&5
9047 sed 's/^/| /' conftest.$ac_ext >&5
9052 rm -f core conftest.err conftest.$ac_objext \
9054 if test "${ac_cv_search_opendir+set}" = set; then
9058 if test "${ac_cv_search_opendir+set}" = set; then
9061 ac_cv_search_opendir=no
9064 LIBS=$ac_func_search_save_LIBS
9066 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9067 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9068 ac_res=$ac_cv_search_opendir
9069 if test "$ac_res" != no; then
9070 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9075 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9076 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9077 if test "${ac_cv_search_opendir+set}" = set; then
9078 echo $ECHO_N "(cached) $ECHO_C" >&6
9080 ac_func_search_save_LIBS=$LIBS
9081 cat >conftest.$ac_ext <<_ACEOF
9084 cat confdefs.h >>conftest.$ac_ext
9085 cat >>conftest.$ac_ext <<_ACEOF
9086 /* end confdefs.h. */
9088 /* Override any GCC internal prototype to avoid an error.
9089 Use char because int might match the return type of a GCC
9090 builtin and then its argument prototype would still apply. */
9103 for ac_lib in '' x; do
9104 if test -z "$ac_lib"; then
9105 ac_res="none required"
9108 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9110 rm -f conftest.$ac_objext conftest$ac_exeext
9111 if { (ac_try="$ac_link"
9113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9114 *) ac_try_echo=$ac_try;;
9116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9117 (eval "$ac_link") 2>conftest.er1
9119 grep -v '^ *+' conftest.er1 >conftest.err
9121 cat conftest.err >&5
9122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123 (exit $ac_status); } &&
9124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9125 { (case "(($ac_try" in
9126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9127 *) ac_try_echo=$ac_try;;
9129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9130 (eval "$ac_try") 2>&5
9132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133 (exit $ac_status); }; } &&
9134 { ac_try='test -s conftest$ac_exeext'
9135 { (case "(($ac_try" in
9136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9137 *) ac_try_echo=$ac_try;;
9139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9140 (eval "$ac_try") 2>&5
9142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9143 (exit $ac_status); }; }; then
9144 ac_cv_search_opendir=$ac_res
9146 echo "$as_me: failed program was:" >&5
9147 sed 's/^/| /' conftest.$ac_ext >&5
9152 rm -f core conftest.err conftest.$ac_objext \
9154 if test "${ac_cv_search_opendir+set}" = set; then
9158 if test "${ac_cv_search_opendir+set}" = set; then
9161 ac_cv_search_opendir=no
9164 LIBS=$ac_func_search_save_LIBS
9166 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9167 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9168 ac_res=$ac_cv_search_opendir
9169 if test "$ac_res" != no; then
9170 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9177 for ac_header in dlfcn.h
9179 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9180 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9181 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9182 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9183 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9184 echo $ECHO_N "(cached) $ECHO_C" >&6
9186 ac_res=`eval echo '${'$as_ac_Header'}'`
9187 { echo "$as_me:$LINENO: result: $ac_res" >&5
9188 echo "${ECHO_T}$ac_res" >&6; }
9190 # Is the header compilable?
9191 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9192 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9193 cat >conftest.$ac_ext <<_ACEOF
9196 cat confdefs.h >>conftest.$ac_ext
9197 cat >>conftest.$ac_ext <<_ACEOF
9198 /* end confdefs.h. */
9199 $ac_includes_default
9200 #include <$ac_header>
9202 rm -f conftest.$ac_objext
9203 if { (ac_try="$ac_compile"
9205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9206 *) ac_try_echo=$ac_try;;
9208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9209 (eval "$ac_compile") 2>conftest.er1
9211 grep -v '^ *+' conftest.er1 >conftest.err
9213 cat conftest.err >&5
9214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9215 (exit $ac_status); } &&
9216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9217 { (case "(($ac_try" in
9218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9219 *) ac_try_echo=$ac_try;;
9221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9222 (eval "$ac_try") 2>&5
9224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225 (exit $ac_status); }; } &&
9226 { ac_try='test -s conftest.$ac_objext'
9227 { (case "(($ac_try" in
9228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9229 *) ac_try_echo=$ac_try;;
9231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9232 (eval "$ac_try") 2>&5
9234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235 (exit $ac_status); }; }; then
9236 ac_header_compiler=yes
9238 echo "$as_me: failed program was:" >&5
9239 sed 's/^/| /' conftest.$ac_ext >&5
9241 ac_header_compiler=no
9244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9245 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9246 echo "${ECHO_T}$ac_header_compiler" >&6; }
9248 # Is the header present?
9249 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9250 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9251 cat >conftest.$ac_ext <<_ACEOF
9254 cat confdefs.h >>conftest.$ac_ext
9255 cat >>conftest.$ac_ext <<_ACEOF
9256 /* end confdefs.h. */
9257 #include <$ac_header>
9259 if { (ac_try="$ac_cpp conftest.$ac_ext"
9261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9262 *) ac_try_echo=$ac_try;;
9264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9265 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9267 grep -v '^ *+' conftest.er1 >conftest.err
9269 cat conftest.err >&5
9270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271 (exit $ac_status); } >/dev/null; then
9272 if test -s conftest.err; then
9273 ac_cpp_err=$ac_c_preproc_warn_flag
9274 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9281 if test -z "$ac_cpp_err"; then
9282 ac_header_preproc=yes
9284 echo "$as_me: failed program was:" >&5
9285 sed 's/^/| /' conftest.$ac_ext >&5
9287 ac_header_preproc=no
9290 rm -f conftest.err conftest.$ac_ext
9291 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9292 echo "${ECHO_T}$ac_header_preproc" >&6; }
9294 # So? What about this header?
9295 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9297 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9298 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9299 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9300 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9301 ac_header_preproc=yes
9304 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9305 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9306 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9307 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9308 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9309 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9310 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9311 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9312 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9313 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9314 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9315 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9317 ## ----------------------------------- ##
9318 ## Report this to llvmbugs@cs.uiuc.edu ##
9319 ## ----------------------------------- ##
9321 ) | sed "s/^/$as_me: WARNING: /" >&2
9324 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9327 echo $ECHO_N "(cached) $ECHO_C" >&6
9329 eval "$as_ac_Header=\$ac_header_preproc"
9331 ac_res=`eval echo '${'$as_ac_Header'}'`
9332 { echo "$as_me:$LINENO: result: $ac_res" >&5
9333 echo "${ECHO_T}$ac_res" >&6; }
9336 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9337 cat >>confdefs.h <<_ACEOF
9338 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9345 # Check whether --enable-ltdl-install was given.
9346 if test "${enable_ltdl_install+set}" = set; then
9347 enableval=$enable_ltdl_install;
9353 if test x"${enable_ltdl_install-no}" != xno; then
9355 INSTALL_LTDL_FALSE='#'
9357 INSTALL_LTDL_TRUE='#'
9363 if test x"${enable_ltdl_convenience-no}" != xno; then
9364 CONVENIENCE_LTDL_TRUE=
9365 CONVENIENCE_LTDL_FALSE='#'
9367 CONVENIENCE_LTDL_TRUE='#'
9368 CONVENIENCE_LTDL_FALSE=
9372 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9373 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9375 libname_spec='lib$name'
9383 shlibpath_overrides_runpath=unknown
9385 dynamic_linker="$host_os ld.so"
9386 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9387 if test "$GCC" = yes; then
9388 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9389 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9390 # if the path contains ";" then we assume it to be the separator
9391 # otherwise default to the standard path separator (i.e. ":") - it is
9392 # assumed that no part of a normal pathname contains ";" but that should
9393 # okay in the real world where ";" in dirpaths is itself problematic.
9394 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9396 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9399 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9401 need_lib_prefix=unknown
9402 hardcode_into_libs=no
9404 # when you set need_version to no, make sure it does not cause -set_version
9405 # flags to be left without arguments
9406 need_version=unknown
9411 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9412 shlibpath_var=LIBPATH
9414 # AIX 3 has no versioning support, so we append a major version to the name.
9415 soname_spec='${libname}${release}${shared_ext}$major'
9422 hardcode_into_libs=yes
9423 if test "$host_cpu" = ia64; then
9424 # AIX 5 supports IA64
9425 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9426 shlibpath_var=LD_LIBRARY_PATH
9428 # With GCC up to 2.95.x, collect2 would create an import file
9429 # for dependence libraries. The import file would start with
9430 # the line `#! .'. This would cause the generated library to
9431 # depend on `.', always an invalid library. This was fixed in
9432 # development snapshots of GCC prior to 3.0.
9434 aix4 | aix4.[01] | aix4.[01].*)
9435 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9437 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9444 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9445 # soname into executable. Probably we can add versioning support to
9446 # collect2, so additional links can be useful in future.
9447 if test "$aix_use_runtimelinking" = yes; then
9448 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9449 # instead of lib<name>.a to let people know that these are not
9450 # typical AIX shared libraries.
9451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9453 # We preserve .a as extension for shared libraries through AIX4.2
9454 # and later when we are not doing run time linking.
9455 library_names_spec='${libname}${release}.a $libname.a'
9456 soname_spec='${libname}${release}${shared_ext}$major'
9458 shlibpath_var=LIBPATH
9463 library_names_spec='$libname.ixlibrary $libname.a'
9464 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9465 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'
9469 library_names_spec='${libname}${shared_ext}'
9470 dynamic_linker="$host_os ld.so"
9471 shlibpath_var=LIBRARY_PATH
9477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9478 soname_spec='${libname}${release}${shared_ext}$major'
9479 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9480 shlibpath_var=LD_LIBRARY_PATH
9481 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9482 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9483 # the default ld.so.conf also contains /usr/contrib/lib and
9484 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9485 # libtool to hard-code these into programs
9488 cygwin* | mingw* | pw32*)
9489 version_type=windows
9494 case $GCC,$host_os in
9495 yes,cygwin* | yes,mingw* | yes,pw32*)
9496 library_names_spec='$libname.dll.a'
9497 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9498 postinstall_cmds='base_file=`basename \${file}`~
9499 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9500 dldir=$destdir/`dirname \$dlpath`~
9501 test -d \$dldir || mkdir -p \$dldir~
9502 $install_prog $dir/$dlname \$dldir/$dlname~
9503 chmod a+x \$dldir/$dlname'
9504 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9505 dlpath=$dir/\$dldll~
9507 shlibpath_overrides_runpath=yes
9511 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9512 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9513 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9516 # MinGW DLLs use traditional 'lib' prefix
9517 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9518 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9519 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9520 # It is most probably a Windows format PATH printed by
9521 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9522 # path with ; separators, and with drive letters. We can handle the
9523 # drive letters (cygwin fileutils understands them), so leave them,
9524 # especially as we might pass files found there to a mingw objdump,
9525 # which wouldn't understand a cygwinified path. Ahh.
9526 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9528 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9532 # pw32 DLLs use 'pw' prefix rather than 'lib'
9533 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9539 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9542 dynamic_linker='Win32 ld.exe'
9543 # FIXME: first we should search . and the directory the executable is in
9547 darwin* | rhapsody*)
9548 dynamic_linker="$host_os dyld"
9552 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9553 soname_spec='${libname}${release}${major}$shared_ext'
9554 shlibpath_overrides_runpath=yes
9555 shlibpath_var=DYLD_LIBRARY_PATH
9556 shrext_cmds='.dylib'
9557 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9558 if test "$GCC" = yes; then
9559 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"`
9561 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9563 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9571 soname_spec='${libname}${release}${shared_ext}$major'
9572 shlibpath_var=LD_LIBRARY_PATH
9583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9584 soname_spec='${libname}${release}${shared_ext}$major'
9585 shlibpath_var=LD_LIBRARY_PATH
9586 shlibpath_overrides_runpath=no
9587 hardcode_into_libs=yes
9588 dynamic_linker='GNU ld.so'
9591 freebsd* | dragonfly*)
9592 # DragonFly does not have aout. When/if they implement a new
9593 # versioning mechanism, adjust this.
9594 if test -x /usr/bin/objformat; then
9595 objformat=`/usr/bin/objformat`
9598 freebsd[123]*) objformat=aout ;;
9602 version_type=freebsd-$objformat
9603 case $version_type in
9605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9610 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9614 shlibpath_var=LD_LIBRARY_PATH
9617 shlibpath_overrides_runpath=yes
9619 freebsd3.[01]* | freebsdelf3.[01]*)
9620 shlibpath_overrides_runpath=yes
9621 hardcode_into_libs=yes
9623 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9624 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9625 shlibpath_overrides_runpath=no
9626 hardcode_into_libs=yes
9628 freebsd*) # from 4.6 on
9629 shlibpath_overrides_runpath=yes
9630 hardcode_into_libs=yes
9639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9640 soname_spec='${libname}${release}${shared_ext}$major'
9641 shlibpath_var=LD_LIBRARY_PATH
9642 hardcode_into_libs=yes
9645 hpux9* | hpux10* | hpux11*)
9646 # Give a soname corresponding to the major version so that dld.sl refuses to
9647 # link against other versions.
9654 hardcode_into_libs=yes
9655 dynamic_linker="$host_os dld.so"
9656 shlibpath_var=LD_LIBRARY_PATH
9657 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9659 soname_spec='${libname}${release}${shared_ext}$major'
9660 if test "X$HPUX_IA64_MODE" = X32; then
9661 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9663 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9665 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9669 hardcode_into_libs=yes
9670 dynamic_linker="$host_os dld.sl"
9671 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9672 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9674 soname_spec='${libname}${release}${shared_ext}$major'
9675 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9676 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9680 dynamic_linker="$host_os dld.sl"
9681 shlibpath_var=SHLIB_PATH
9682 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9684 soname_spec='${libname}${release}${shared_ext}$major'
9687 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9688 postinstall_cmds='chmod 555 $lib'
9695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9696 soname_spec='${libname}${release}${shared_ext}$major'
9697 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9698 shlibpath_var=LD_LIBRARY_PATH
9699 shlibpath_overrides_runpath=no
9700 hardcode_into_libs=yes
9703 irix5* | irix6* | nonstopux*)
9705 nonstopux*) version_type=nonstopux ;;
9707 if test "$lt_cv_prog_gnu_ld" = yes; then
9715 soname_spec='${libname}${release}${shared_ext}$major'
9716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9718 irix5* | nonstopux*)
9722 case $LD in # libtool.m4 will add one of these switches to LD
9723 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9724 libsuff= shlibsuff= libmagic=32-bit;;
9725 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9726 libsuff=32 shlibsuff=N32 libmagic=N32;;
9727 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9728 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9729 *) libsuff= shlibsuff= libmagic=never-match;;
9733 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9734 shlibpath_overrides_runpath=no
9735 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9736 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9737 hardcode_into_libs=yes
9740 # No shared lib support for Linux oldld, aout, or coff.
9741 linux*oldld* | linux*aout* | linux*coff*)
9745 # This must be Linux ELF.
9750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9751 soname_spec='${libname}${release}${shared_ext}$major'
9752 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9753 shlibpath_var=LD_LIBRARY_PATH
9754 shlibpath_overrides_runpath=no
9755 # This implies no fast_install, which is unacceptable.
9756 # Some rework will be needed to allow for fast_install
9757 # before this can be enabled.
9758 hardcode_into_libs=yes
9760 # Append ld.so.conf contents to the search path
9761 if test -f /etc/ld.so.conf; then
9762 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' ' '`
9763 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9766 # We used to test for /lib/ld.so.1 and disable shared libraries on
9767 # powerpc, because MkLinux only supported shared libraries with the
9768 # GNU dynamic linker. Since this was broken with cross compilers,
9769 # most powerpc-linux boxes support dynamic linking these days and
9770 # people can always --disable-shared, the test was removed, and we
9771 # assume the GNU/Linux dynamic linker is in use.
9772 dynamic_linker='GNU/Linux ld.so'
9779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9780 soname_spec='${libname}${release}${shared_ext}$major'
9781 shlibpath_var=LD_LIBRARY_PATH
9782 shlibpath_overrides_runpath=no
9783 hardcode_into_libs=yes
9784 dynamic_linker='GNU ld.so'
9791 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9793 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9794 dynamic_linker='NetBSD (a.out) ld.so'
9796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9797 soname_spec='${libname}${release}${shared_ext}$major'
9798 dynamic_linker='NetBSD ld.elf_so'
9800 shlibpath_var=LD_LIBRARY_PATH
9801 shlibpath_overrides_runpath=yes
9802 hardcode_into_libs=yes
9807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9808 shlibpath_var=LD_LIBRARY_PATH
9809 shlibpath_overrides_runpath=yes
9816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9817 soname_spec='${libname}${release}${shared_ext}$major'
9818 shlibpath_var=LD_LIBRARY_PATH
9819 shlibpath_overrides_runpath=yes
9824 sys_lib_dlsearch_path_spec="/usr/lib"
9826 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9828 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9829 *) need_version=no ;;
9831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9832 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9833 shlibpath_var=LD_LIBRARY_PATH
9834 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9836 openbsd2.[89] | openbsd2.[89].*)
9837 shlibpath_overrides_runpath=no
9840 shlibpath_overrides_runpath=yes
9844 shlibpath_overrides_runpath=yes
9849 libname_spec='$name'
9852 library_names_spec='$libname${shared_ext} $libname.a'
9853 dynamic_linker='OS/2 ld.exe'
9854 shlibpath_var=LIBPATH
9857 osf3* | osf4* | osf5*)
9861 soname_spec='${libname}${release}${shared_ext}$major'
9862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9863 shlibpath_var=LD_LIBRARY_PATH
9864 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9865 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9873 soname_spec='${libname}${release}${shared_ext}$major'
9874 shlibpath_var=LD_LIBRARY_PATH
9875 shlibpath_overrides_runpath=yes
9876 hardcode_into_libs=yes
9877 # ldd complains unless libraries are executable
9878 postinstall_cmds='chmod +x $lib'
9883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9884 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9885 shlibpath_var=LD_LIBRARY_PATH
9886 shlibpath_overrides_runpath=yes
9887 if test "$with_gnu_ld" = yes; then
9895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9896 soname_spec='${libname}${release}${shared_ext}$major'
9897 shlibpath_var=LD_LIBRARY_PATH
9898 case $host_vendor in
9900 shlibpath_overrides_runpath=no
9902 export_dynamic_flag_spec='${wl}-Blargedynsym'
9903 runpath_var=LD_RUN_PATH
9911 shlibpath_overrides_runpath=no
9912 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9918 if test -d /usr/nec ;then
9920 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9921 soname_spec='$libname${shared_ext}.$major'
9922 shlibpath_var=LD_LIBRARY_PATH
9926 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9927 version_type=freebsd-elf
9930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9931 soname_spec='${libname}${release}${shared_ext}$major'
9932 shlibpath_var=LD_LIBRARY_PATH
9933 hardcode_into_libs=yes
9934 if test "$with_gnu_ld" = yes; then
9935 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9936 shlibpath_overrides_runpath=no
9938 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9939 shlibpath_overrides_runpath=yes
9942 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9946 sys_lib_dlsearch_path_spec='/usr/lib'
9951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9952 soname_spec='${libname}${release}${shared_ext}$major'
9953 shlibpath_var=LD_LIBRARY_PATH
9960 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9961 echo "${ECHO_T}$dynamic_linker" >&6; }
9962 test "$dynamic_linker" = no && can_build_shared=no
9964 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9965 if test "$GCC" = yes; then
9966 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9970 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9971 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9972 if test "${libltdl_cv_shlibext+set}" = set; then
9973 echo $ECHO_N "(cached) $ECHO_C" >&6
9977 eval libltdl_cv_shlibext=$shrext_cmds
9980 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9981 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9982 if test -n "$libltdl_cv_shlibext"; then
9984 cat >>confdefs.h <<_ACEOF
9985 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9991 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9992 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9993 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9994 echo $ECHO_N "(cached) $ECHO_C" >&6
9996 libltdl_cv_shlibpath_var="$shlibpath_var"
9998 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9999 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
10000 if test -n "$libltdl_cv_shlibpath_var"; then
10002 cat >>confdefs.h <<_ACEOF
10003 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10009 { echo "$as_me:$LINENO: checking for the default library search path" >&5
10010 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10011 if test "${libltdl_cv_sys_search_path+set}" = set; then
10012 echo $ECHO_N "(cached) $ECHO_C" >&6
10014 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10016 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10017 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
10018 if test -n "$libltdl_cv_sys_search_path"; then
10020 for dir in $libltdl_cv_sys_search_path; do
10021 if test -z "$sys_search_path"; then
10022 sys_search_path="$dir"
10024 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10028 cat >>confdefs.h <<_ACEOF
10029 #define LTDL_SYSSEARCHPATH "$sys_search_path"
10034 { echo "$as_me:$LINENO: checking for objdir" >&5
10035 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10036 if test "${libltdl_cv_objdir+set}" = set; then
10037 echo $ECHO_N "(cached) $ECHO_C" >&6
10039 libltdl_cv_objdir="$objdir"
10040 if test -n "$objdir"; then
10043 rm -f .libs 2>/dev/null
10044 mkdir .libs 2>/dev/null
10045 if test -d .libs; then
10046 libltdl_cv_objdir=.libs
10048 # MS-DOS does not allow filenames that begin with a dot.
10049 libltdl_cv_objdir=_libs
10051 rmdir .libs 2>/dev/null
10055 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10056 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
10058 cat >>confdefs.h <<_ACEOF
10059 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
10067 # Check for command to grab the raw symbol name followed by C symbol from nm.
10068 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10069 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10070 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10071 echo $ECHO_N "(cached) $ECHO_C" >&6
10074 # These are sane defaults that work on at least a few old systems.
10075 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10077 # Character class describing NM global symbol codes.
10078 symcode='[BCDEGRST]'
10080 # Regexp to match symbols that can be accessed directly from C.
10081 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10083 # Transform an extracted symbol line into a proper C declaration
10084 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10086 # Transform an extracted symbol line into symbol name and symbol address
10087 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
10089 # Define system-specific variables.
10094 cygwin* | mingw* | pw32*)
10095 symcode='[ABCDGISTW]'
10097 hpux*) # Its linker distinguishes data from code symbols
10098 if test "$host_cpu" = ia64; then
10099 symcode='[ABCDEGRST]'
10101 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10102 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'"
10105 if test "$host_cpu" = ia64; then
10106 symcode='[ABCDGIRSTW]'
10107 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10108 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'"
10111 irix* | nonstopux*)
10112 symcode='[BCDEGRST]'
10115 symcode='[BCDEGQRST]'
10126 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10134 # Handle CRLF in mingw tool chain
10138 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10142 # If we're using GNU nm, then use its standard symbol codes.
10143 case `$NM -V 2>&1` in
10144 *GNU* | *'with BFD'*)
10145 symcode='[ABCDGIRSTW]' ;;
10148 # Try without a prefix undercore, then with it.
10149 for ac_symprfx in "" "_"; do
10151 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10152 symxfrm="\\1 $ac_symprfx\\2 \\2"
10154 # Write the raw and C identifiers.
10155 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10157 # Check to see that the pipe works correctly.
10161 cat > conftest.$ac_ext <<EOF
10166 void nm_test_func(){}
10170 int main(){nm_test_var='a';nm_test_func();return(0);}
10173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10174 (eval $ac_compile) 2>&5
10176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177 (exit $ac_status); }; then
10178 # Now try to grab the symbols.
10180 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10181 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184 (exit $ac_status); } && test -s "$nlist"; then
10185 # Try sorting and uniquifying the output.
10186 if sort "$nlist" | uniq > "$nlist"T; then
10187 mv -f "$nlist"T "$nlist"
10192 # Make sure that we snagged all the symbols we need.
10193 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10194 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10195 cat <<EOF > conftest.$ac_ext
10201 # Now generate the symbol file.
10202 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10204 cat <<EOF >> conftest.$ac_ext
10205 #if defined (__STDC__) && __STDC__
10206 # define lt_ptr_t void *
10208 # define lt_ptr_t char *
10212 /* The mapping between symbol names and symbols. */
10217 lt_preloaded_symbols[] =
10220 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10221 cat <<\EOF >> conftest.$ac_ext
10229 # Now try linking the two files.
10230 mv conftest.$ac_objext conftstm.$ac_objext
10231 lt_save_LIBS="$LIBS"
10232 lt_save_CFLAGS="$CFLAGS"
10233 LIBS="conftstm.$ac_objext"
10234 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10236 (eval $ac_link) 2>&5
10238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10239 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10242 LIBS="$lt_save_LIBS"
10243 CFLAGS="$lt_save_CFLAGS"
10245 echo "cannot find nm_test_func in $nlist" >&5
10248 echo "cannot find nm_test_var in $nlist" >&5
10251 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10254 echo "$progname: failed program was:" >&5
10255 cat conftest.$ac_ext >&5
10257 rm -f conftest* conftst*
10259 # Do not use the global_symbol_pipe unless it works.
10260 if test "$pipe_works" = yes; then
10263 lt_cv_sys_global_symbol_pipe=
10269 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10270 lt_cv_sys_global_symbol_to_cdecl=
10272 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10273 { echo "$as_me:$LINENO: result: failed" >&5
10274 echo "${ECHO_T}failed" >&6; }
10276 { echo "$as_me:$LINENO: result: ok" >&5
10277 echo "${ECHO_T}ok" >&6; }
10281 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10282 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10283 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10284 echo $ECHO_N "(cached) $ECHO_C" >&6
10286 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10287 libltdl_cv_preloaded_symbols=yes
10289 libltdl_cv_preloaded_symbols=no
10293 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10294 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10295 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10297 cat >>confdefs.h <<\_ACEOF
10298 #define HAVE_PRELOADED_SYMBOLS 1
10306 ac_cpp='$CPP $CPPFLAGS'
10307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10312 { echo "$as_me:$LINENO: checking for shl_load" >&5
10313 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10314 if test "${ac_cv_func_shl_load+set}" = set; then
10315 echo $ECHO_N "(cached) $ECHO_C" >&6
10317 cat >conftest.$ac_ext <<_ACEOF
10320 cat confdefs.h >>conftest.$ac_ext
10321 cat >>conftest.$ac_ext <<_ACEOF
10322 /* end confdefs.h. */
10323 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10324 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10325 #define shl_load innocuous_shl_load
10327 /* System header to define __stub macros and hopefully few prototypes,
10328 which can conflict with char shl_load (); below.
10329 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10330 <limits.h> exists even on freestanding compilers. */
10333 # include <limits.h>
10335 # include <assert.h>
10340 /* Override any GCC internal prototype to avoid an error.
10341 Use char because int might match the return type of a GCC
10342 builtin and then its argument prototype would still apply. */
10347 /* The GNU C library defines this for functions which it implements
10348 to always fail with ENOSYS. Some functions are actually named
10349 something starting with __ and the normal name is an alias. */
10350 #if defined __stub_shl_load || defined __stub___shl_load
10357 return shl_load ();
10362 rm -f conftest.$ac_objext conftest$ac_exeext
10363 if { (ac_try="$ac_link"
10364 case "(($ac_try" in
10365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10366 *) ac_try_echo=$ac_try;;
10368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10369 (eval "$ac_link") 2>conftest.er1
10371 grep -v '^ *+' conftest.er1 >conftest.err
10373 cat conftest.err >&5
10374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10375 (exit $ac_status); } &&
10376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10377 { (case "(($ac_try" in
10378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10379 *) ac_try_echo=$ac_try;;
10381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10382 (eval "$ac_try") 2>&5
10384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385 (exit $ac_status); }; } &&
10386 { ac_try='test -s conftest$ac_exeext'
10387 { (case "(($ac_try" in
10388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10389 *) ac_try_echo=$ac_try;;
10391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10392 (eval "$ac_try") 2>&5
10394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10395 (exit $ac_status); }; }; then
10396 ac_cv_func_shl_load=yes
10398 echo "$as_me: failed program was:" >&5
10399 sed 's/^/| /' conftest.$ac_ext >&5
10401 ac_cv_func_shl_load=no
10404 rm -f core conftest.err conftest.$ac_objext \
10405 conftest$ac_exeext conftest.$ac_ext
10407 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10408 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10409 if test $ac_cv_func_shl_load = yes; then
10411 cat >>confdefs.h <<\_ACEOF
10412 #define HAVE_SHL_LOAD 1
10416 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10417 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10418 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10419 echo $ECHO_N "(cached) $ECHO_C" >&6
10421 ac_check_lib_save_LIBS=$LIBS
10423 cat >conftest.$ac_ext <<_ACEOF
10426 cat confdefs.h >>conftest.$ac_ext
10427 cat >>conftest.$ac_ext <<_ACEOF
10428 /* end confdefs.h. */
10430 /* Override any GCC internal prototype to avoid an error.
10431 Use char because int might match the return type of a GCC
10432 builtin and then its argument prototype would still apply. */
10440 return shl_load ();
10445 rm -f conftest.$ac_objext conftest$ac_exeext
10446 if { (ac_try="$ac_link"
10447 case "(($ac_try" in
10448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10449 *) ac_try_echo=$ac_try;;
10451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10452 (eval "$ac_link") 2>conftest.er1
10454 grep -v '^ *+' conftest.er1 >conftest.err
10456 cat conftest.err >&5
10457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458 (exit $ac_status); } &&
10459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10460 { (case "(($ac_try" in
10461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10462 *) ac_try_echo=$ac_try;;
10464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10465 (eval "$ac_try") 2>&5
10467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10468 (exit $ac_status); }; } &&
10469 { ac_try='test -s conftest$ac_exeext'
10470 { (case "(($ac_try" in
10471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10472 *) ac_try_echo=$ac_try;;
10474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10475 (eval "$ac_try") 2>&5
10477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10478 (exit $ac_status); }; }; then
10479 ac_cv_lib_dld_shl_load=yes
10481 echo "$as_me: failed program was:" >&5
10482 sed 's/^/| /' conftest.$ac_ext >&5
10484 ac_cv_lib_dld_shl_load=no
10487 rm -f core conftest.err conftest.$ac_objext \
10488 conftest$ac_exeext conftest.$ac_ext
10489 LIBS=$ac_check_lib_save_LIBS
10491 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10492 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10493 if test $ac_cv_lib_dld_shl_load = yes; then
10495 cat >>confdefs.h <<\_ACEOF
10496 #define HAVE_SHL_LOAD 1
10499 LIBADD_DL="$LIBADD_DL -ldld"
10501 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10502 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10503 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10504 echo $ECHO_N "(cached) $ECHO_C" >&6
10506 ac_check_lib_save_LIBS=$LIBS
10508 cat >conftest.$ac_ext <<_ACEOF
10511 cat confdefs.h >>conftest.$ac_ext
10512 cat >>conftest.$ac_ext <<_ACEOF
10513 /* end confdefs.h. */
10515 /* Override any GCC internal prototype to avoid an error.
10516 Use char because int might match the return type of a GCC
10517 builtin and then its argument prototype would still apply. */
10530 rm -f conftest.$ac_objext conftest$ac_exeext
10531 if { (ac_try="$ac_link"
10532 case "(($ac_try" in
10533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10534 *) ac_try_echo=$ac_try;;
10536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10537 (eval "$ac_link") 2>conftest.er1
10539 grep -v '^ *+' conftest.er1 >conftest.err
10541 cat conftest.err >&5
10542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10543 (exit $ac_status); } &&
10544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10545 { (case "(($ac_try" in
10546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10547 *) ac_try_echo=$ac_try;;
10549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10550 (eval "$ac_try") 2>&5
10552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553 (exit $ac_status); }; } &&
10554 { ac_try='test -s conftest$ac_exeext'
10555 { (case "(($ac_try" in
10556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10557 *) ac_try_echo=$ac_try;;
10559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10560 (eval "$ac_try") 2>&5
10562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10563 (exit $ac_status); }; }; then
10564 ac_cv_lib_dl_dlopen=yes
10566 echo "$as_me: failed program was:" >&5
10567 sed 's/^/| /' conftest.$ac_ext >&5
10569 ac_cv_lib_dl_dlopen=no
10572 rm -f core conftest.err conftest.$ac_objext \
10573 conftest$ac_exeext conftest.$ac_ext
10574 LIBS=$ac_check_lib_save_LIBS
10576 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10577 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10578 if test $ac_cv_lib_dl_dlopen = yes; then
10580 cat >>confdefs.h <<\_ACEOF
10581 #define HAVE_LIBDL 1
10584 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10586 cat >conftest.$ac_ext <<_ACEOF
10589 cat confdefs.h >>conftest.$ac_ext
10590 cat >>conftest.$ac_ext <<_ACEOF
10591 /* end confdefs.h. */
10593 # include <dlfcn.h>
10604 rm -f conftest.$ac_objext conftest$ac_exeext
10605 if { (ac_try="$ac_link"
10606 case "(($ac_try" in
10607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10608 *) ac_try_echo=$ac_try;;
10610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10611 (eval "$ac_link") 2>conftest.er1
10613 grep -v '^ *+' conftest.er1 >conftest.err
10615 cat conftest.err >&5
10616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617 (exit $ac_status); } &&
10618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10619 { (case "(($ac_try" in
10620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10621 *) ac_try_echo=$ac_try;;
10623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10624 (eval "$ac_try") 2>&5
10626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10627 (exit $ac_status); }; } &&
10628 { ac_try='test -s conftest$ac_exeext'
10629 { (case "(($ac_try" in
10630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10631 *) ac_try_echo=$ac_try;;
10633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10634 (eval "$ac_try") 2>&5
10636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637 (exit $ac_status); }; }; then
10639 cat >>confdefs.h <<\_ACEOF
10640 #define HAVE_LIBDL 1
10642 libltdl_cv_func_dlopen="yes"
10644 echo "$as_me: failed program was:" >&5
10645 sed 's/^/| /' conftest.$ac_ext >&5
10647 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10648 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10649 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10650 echo $ECHO_N "(cached) $ECHO_C" >&6
10652 ac_check_lib_save_LIBS=$LIBS
10653 LIBS="-lsvld $LIBS"
10654 cat >conftest.$ac_ext <<_ACEOF
10657 cat confdefs.h >>conftest.$ac_ext
10658 cat >>conftest.$ac_ext <<_ACEOF
10659 /* end confdefs.h. */
10661 /* Override any GCC internal prototype to avoid an error.
10662 Use char because int might match the return type of a GCC
10663 builtin and then its argument prototype would still apply. */
10676 rm -f conftest.$ac_objext conftest$ac_exeext
10677 if { (ac_try="$ac_link"
10678 case "(($ac_try" in
10679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10680 *) ac_try_echo=$ac_try;;
10682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10683 (eval "$ac_link") 2>conftest.er1
10685 grep -v '^ *+' conftest.er1 >conftest.err
10687 cat conftest.err >&5
10688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10689 (exit $ac_status); } &&
10690 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10691 { (case "(($ac_try" in
10692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10693 *) ac_try_echo=$ac_try;;
10695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10696 (eval "$ac_try") 2>&5
10698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10699 (exit $ac_status); }; } &&
10700 { ac_try='test -s conftest$ac_exeext'
10701 { (case "(($ac_try" in
10702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10703 *) ac_try_echo=$ac_try;;
10705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10706 (eval "$ac_try") 2>&5
10708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10709 (exit $ac_status); }; }; then
10710 ac_cv_lib_svld_dlopen=yes
10712 echo "$as_me: failed program was:" >&5
10713 sed 's/^/| /' conftest.$ac_ext >&5
10715 ac_cv_lib_svld_dlopen=no
10718 rm -f core conftest.err conftest.$ac_objext \
10719 conftest$ac_exeext conftest.$ac_ext
10720 LIBS=$ac_check_lib_save_LIBS
10722 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10723 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10724 if test $ac_cv_lib_svld_dlopen = yes; then
10726 cat >>confdefs.h <<\_ACEOF
10727 #define HAVE_LIBDL 1
10730 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10732 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10733 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10734 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10735 echo $ECHO_N "(cached) $ECHO_C" >&6
10737 ac_check_lib_save_LIBS=$LIBS
10739 cat >conftest.$ac_ext <<_ACEOF
10742 cat confdefs.h >>conftest.$ac_ext
10743 cat >>conftest.$ac_ext <<_ACEOF
10744 /* end confdefs.h. */
10746 /* Override any GCC internal prototype to avoid an error.
10747 Use char because int might match the return type of a GCC
10748 builtin and then its argument prototype would still apply. */
10756 return dld_link ();
10761 rm -f conftest.$ac_objext conftest$ac_exeext
10762 if { (ac_try="$ac_link"
10763 case "(($ac_try" in
10764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10765 *) ac_try_echo=$ac_try;;
10767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10768 (eval "$ac_link") 2>conftest.er1
10770 grep -v '^ *+' conftest.er1 >conftest.err
10772 cat conftest.err >&5
10773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774 (exit $ac_status); } &&
10775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10776 { (case "(($ac_try" in
10777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10778 *) ac_try_echo=$ac_try;;
10780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10781 (eval "$ac_try") 2>&5
10783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10784 (exit $ac_status); }; } &&
10785 { ac_try='test -s conftest$ac_exeext'
10786 { (case "(($ac_try" in
10787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10788 *) ac_try_echo=$ac_try;;
10790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10791 (eval "$ac_try") 2>&5
10793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10794 (exit $ac_status); }; }; then
10795 ac_cv_lib_dld_dld_link=yes
10797 echo "$as_me: failed program was:" >&5
10798 sed 's/^/| /' conftest.$ac_ext >&5
10800 ac_cv_lib_dld_dld_link=no
10803 rm -f core conftest.err conftest.$ac_objext \
10804 conftest$ac_exeext conftest.$ac_ext
10805 LIBS=$ac_check_lib_save_LIBS
10807 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10808 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10809 if test $ac_cv_lib_dld_dld_link = yes; then
10811 cat >>confdefs.h <<\_ACEOF
10815 LIBADD_DL="$LIBADD_DL -ldld"
10817 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10818 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10819 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10820 echo $ECHO_N "(cached) $ECHO_C" >&6
10822 cat >conftest.$ac_ext <<_ACEOF
10825 cat confdefs.h >>conftest.$ac_ext
10826 cat >>conftest.$ac_ext <<_ACEOF
10827 /* end confdefs.h. */
10828 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10829 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10830 #define _dyld_func_lookup innocuous__dyld_func_lookup
10832 /* System header to define __stub macros and hopefully few prototypes,
10833 which can conflict with char _dyld_func_lookup (); below.
10834 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10835 <limits.h> exists even on freestanding compilers. */
10838 # include <limits.h>
10840 # include <assert.h>
10843 #undef _dyld_func_lookup
10845 /* Override any GCC internal prototype to avoid an error.
10846 Use char because int might match the return type of a GCC
10847 builtin and then its argument prototype would still apply. */
10851 char _dyld_func_lookup ();
10852 /* The GNU C library defines this for functions which it implements
10853 to always fail with ENOSYS. Some functions are actually named
10854 something starting with __ and the normal name is an alias. */
10855 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10862 return _dyld_func_lookup ();
10867 rm -f conftest.$ac_objext conftest$ac_exeext
10868 if { (ac_try="$ac_link"
10869 case "(($ac_try" in
10870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10871 *) ac_try_echo=$ac_try;;
10873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10874 (eval "$ac_link") 2>conftest.er1
10876 grep -v '^ *+' conftest.er1 >conftest.err
10878 cat conftest.err >&5
10879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10880 (exit $ac_status); } &&
10881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10882 { (case "(($ac_try" in
10883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10884 *) ac_try_echo=$ac_try;;
10886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10887 (eval "$ac_try") 2>&5
10889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890 (exit $ac_status); }; } &&
10891 { ac_try='test -s conftest$ac_exeext'
10892 { (case "(($ac_try" in
10893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10894 *) ac_try_echo=$ac_try;;
10896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10897 (eval "$ac_try") 2>&5
10899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10900 (exit $ac_status); }; }; then
10901 ac_cv_func__dyld_func_lookup=yes
10903 echo "$as_me: failed program was:" >&5
10904 sed 's/^/| /' conftest.$ac_ext >&5
10906 ac_cv_func__dyld_func_lookup=no
10909 rm -f core conftest.err conftest.$ac_objext \
10910 conftest$ac_exeext conftest.$ac_ext
10912 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10913 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10914 if test $ac_cv_func__dyld_func_lookup = yes; then
10916 cat >>confdefs.h <<\_ACEOF
10917 #define HAVE_DYLD 1
10931 rm -f core conftest.err conftest.$ac_objext \
10932 conftest$ac_exeext conftest.$ac_ext
10943 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10945 lt_save_LIBS="$LIBS"
10946 LIBS="$LIBS $LIBADD_DL"
10948 for ac_func in dlerror
10950 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10951 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10952 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10953 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10954 echo $ECHO_N "(cached) $ECHO_C" >&6
10956 cat >conftest.$ac_ext <<_ACEOF
10959 cat confdefs.h >>conftest.$ac_ext
10960 cat >>conftest.$ac_ext <<_ACEOF
10961 /* end confdefs.h. */
10962 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10963 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10964 #define $ac_func innocuous_$ac_func
10966 /* System header to define __stub macros and hopefully few prototypes,
10967 which can conflict with char $ac_func (); below.
10968 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10969 <limits.h> exists even on freestanding compilers. */
10972 # include <limits.h>
10974 # include <assert.h>
10979 /* Override any GCC internal prototype to avoid an error.
10980 Use char because int might match the return type of a GCC
10981 builtin and then its argument prototype would still apply. */
10986 /* The GNU C library defines this for functions which it implements
10987 to always fail with ENOSYS. Some functions are actually named
10988 something starting with __ and the normal name is an alias. */
10989 #if defined __stub_$ac_func || defined __stub___$ac_func
10996 return $ac_func ();
11001 rm -f conftest.$ac_objext conftest$ac_exeext
11002 if { (ac_try="$ac_link"
11003 case "(($ac_try" in
11004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11005 *) ac_try_echo=$ac_try;;
11007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11008 (eval "$ac_link") 2>conftest.er1
11010 grep -v '^ *+' conftest.er1 >conftest.err
11012 cat conftest.err >&5
11013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014 (exit $ac_status); } &&
11015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11016 { (case "(($ac_try" in
11017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11018 *) ac_try_echo=$ac_try;;
11020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11021 (eval "$ac_try") 2>&5
11023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024 (exit $ac_status); }; } &&
11025 { ac_try='test -s conftest$ac_exeext'
11026 { (case "(($ac_try" in
11027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11028 *) ac_try_echo=$ac_try;;
11030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11031 (eval "$ac_try") 2>&5
11033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11034 (exit $ac_status); }; }; then
11035 eval "$as_ac_var=yes"
11037 echo "$as_me: failed program was:" >&5
11038 sed 's/^/| /' conftest.$ac_ext >&5
11040 eval "$as_ac_var=no"
11043 rm -f core conftest.err conftest.$ac_objext \
11044 conftest$ac_exeext conftest.$ac_ext
11046 ac_res=`eval echo '${'$as_ac_var'}'`
11047 { echo "$as_me:$LINENO: result: $ac_res" >&5
11048 echo "${ECHO_T}$ac_res" >&6; }
11049 if test `eval echo '${'$as_ac_var'}'` = yes; then
11050 cat >>confdefs.h <<_ACEOF
11051 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11057 LIBS="$lt_save_LIBS"
11060 ac_cpp='$CPP $CPPFLAGS'
11061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11067 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11068 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11069 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11070 echo $ECHO_N "(cached) $ECHO_C" >&6
11072 ac_cv_sys_symbol_underscore=no
11073 cat > conftest.$ac_ext <<EOF
11074 void nm_test_func(){}
11075 int main(){nm_test_func;return 0;}
11077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11078 (eval $ac_compile) 2>&5
11080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081 (exit $ac_status); }; then
11082 # Now try to grab the symbols.
11083 ac_nlist=conftest.nm
11084 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11085 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088 (exit $ac_status); } && test -s "$ac_nlist"; then
11089 # See whether the symbols have a leading underscore.
11090 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11091 ac_cv_sys_symbol_underscore=yes
11093 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11096 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11100 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11103 echo "configure: failed program was:" >&5
11109 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11110 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11113 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11114 if test x"$libltdl_cv_func_dlopen" = xyes ||
11115 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11116 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11117 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11118 if test "${libltdl_cv_need_uscore+set}" = set; then
11119 echo $ECHO_N "(cached) $ECHO_C" >&6
11121 libltdl_cv_need_uscore=unknown
11123 LIBS="$LIBS $LIBADD_DL"
11124 if test "$cross_compiling" = yes; then :
11125 libltdl_cv_need_uscore=cross
11127 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11128 lt_status=$lt_dlunknown
11129 cat > conftest.$ac_ext <<EOF
11130 #line 11130 "configure"
11131 #include "confdefs.h"
11140 # define LT_DLGLOBAL RTLD_GLOBAL
11143 # define LT_DLGLOBAL DL_GLOBAL
11145 # define LT_DLGLOBAL 0
11149 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11150 find out it does not work in some platform. */
11151 #ifndef LT_DLLAZY_OR_NOW
11153 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11156 # define LT_DLLAZY_OR_NOW DL_LAZY
11159 # define LT_DLLAZY_OR_NOW RTLD_NOW
11162 # define LT_DLLAZY_OR_NOW DL_NOW
11164 # define LT_DLLAZY_OR_NOW 0
11172 extern "C" void exit (int);
11175 void fnord() { int i=42;}
11178 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11179 int status = $lt_dlunknown;
11183 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11184 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11185 /* dlclose (self); */
11193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11194 (eval $ac_link) 2>&5
11196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11197 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11198 (./conftest; exit; ) >&5 2>/dev/null
11200 case x$lt_status in
11201 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11202 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11203 x$lt_dlunknown|x*) ;;
11206 # compilation failed
11215 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11216 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11220 if test x"$libltdl_cv_need_uscore" = xyes; then
11222 cat >>confdefs.h <<\_ACEOF
11223 #define NEED_USCORE 1
11229 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11230 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11231 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11232 echo $ECHO_N "(cached) $ECHO_C" >&6
11234 # PORTME does your system automatically load deplibs for dlopen?
11235 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11236 # For now, we just catch OSes we know something about -- in the
11237 # future, we'll try test this programmatically.
11238 libltdl_cv_sys_dlopen_deplibs=unknown
11240 aix3*|aix4.1.*|aix4.2.*)
11241 # Unknown whether this is true for these versions of AIX, but
11242 # we want this `case' here to explicitly catch those versions.
11243 libltdl_cv_sys_dlopen_deplibs=unknown
11246 libltdl_cv_sys_dlopen_deplibs=yes
11249 # Assuming the user has installed a libdl from somewhere, this is true
11250 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11251 libltdl_cv_sys_dlopen_deplibs=yes
11253 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11254 # GNU and its variants, using gnu ld.so (Glibc)
11255 libltdl_cv_sys_dlopen_deplibs=yes
11258 libltdl_cv_sys_dlopen_deplibs=yes
11261 libltdl_cv_sys_dlopen_deplibs=yes
11263 irix[12345]*|irix6.[01]*)
11264 # Catch all versions of IRIX before 6.2, and indicate that we don't
11265 # know how it worked for any of those versions.
11266 libltdl_cv_sys_dlopen_deplibs=unknown
11269 # The case above catches anything before 6.2, and it's known that
11270 # at 6.2 and later dlopen does load deplibs.
11271 libltdl_cv_sys_dlopen_deplibs=yes
11274 libltdl_cv_sys_dlopen_deplibs=yes
11277 libltdl_cv_sys_dlopen_deplibs=yes
11280 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11281 # it did *not* use an RPATH in a shared library to find objects the
11282 # library depends on, so we explictly say `no'.
11283 libltdl_cv_sys_dlopen_deplibs=no
11285 osf5.0|osf5.0a|osf5.1)
11286 # dlopen *does* load deplibs and with the right loader patch applied
11287 # it even uses RPATH in a shared library to search for shared objects
11288 # that the library depends on, but there's no easy way to know if that
11289 # patch is installed. Since this is the case, all we can really
11290 # say is unknown -- it depends on the patch being installed. If
11291 # it is, this changes to `yes'. Without it, it would be `no'.
11292 libltdl_cv_sys_dlopen_deplibs=unknown
11295 # the two cases above should catch all versions of osf <= 5.1. Read
11296 # the comments above for what we know about them.
11297 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11298 # is used to find them so we can finally say `yes'.
11299 libltdl_cv_sys_dlopen_deplibs=yes
11302 libltdl_cv_sys_dlopen_deplibs=yes
11304 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11305 libltdl_cv_sys_dlopen_deplibs=yes
11310 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11311 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11312 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11314 cat >>confdefs.h <<\_ACEOF
11315 #define LTDL_DLOPEN_DEPLIBS 1
11321 for ac_header in argz.h
11323 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11324 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11325 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11327 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11328 echo $ECHO_N "(cached) $ECHO_C" >&6
11330 ac_res=`eval echo '${'$as_ac_Header'}'`
11331 { echo "$as_me:$LINENO: result: $ac_res" >&5
11332 echo "${ECHO_T}$ac_res" >&6; }
11334 # Is the header compilable?
11335 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11336 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11337 cat >conftest.$ac_ext <<_ACEOF
11340 cat confdefs.h >>conftest.$ac_ext
11341 cat >>conftest.$ac_ext <<_ACEOF
11342 /* end confdefs.h. */
11343 $ac_includes_default
11344 #include <$ac_header>
11346 rm -f conftest.$ac_objext
11347 if { (ac_try="$ac_compile"
11348 case "(($ac_try" in
11349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11350 *) ac_try_echo=$ac_try;;
11352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11353 (eval "$ac_compile") 2>conftest.er1
11355 grep -v '^ *+' conftest.er1 >conftest.err
11357 cat conftest.err >&5
11358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11359 (exit $ac_status); } &&
11360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11361 { (case "(($ac_try" in
11362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11363 *) ac_try_echo=$ac_try;;
11365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11366 (eval "$ac_try") 2>&5
11368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369 (exit $ac_status); }; } &&
11370 { ac_try='test -s conftest.$ac_objext'
11371 { (case "(($ac_try" in
11372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11373 *) ac_try_echo=$ac_try;;
11375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11376 (eval "$ac_try") 2>&5
11378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379 (exit $ac_status); }; }; then
11380 ac_header_compiler=yes
11382 echo "$as_me: failed program was:" >&5
11383 sed 's/^/| /' conftest.$ac_ext >&5
11385 ac_header_compiler=no
11388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11389 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11390 echo "${ECHO_T}$ac_header_compiler" >&6; }
11392 # Is the header present?
11393 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11394 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11395 cat >conftest.$ac_ext <<_ACEOF
11398 cat confdefs.h >>conftest.$ac_ext
11399 cat >>conftest.$ac_ext <<_ACEOF
11400 /* end confdefs.h. */
11401 #include <$ac_header>
11403 if { (ac_try="$ac_cpp conftest.$ac_ext"
11404 case "(($ac_try" in
11405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11406 *) ac_try_echo=$ac_try;;
11408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11409 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11411 grep -v '^ *+' conftest.er1 >conftest.err
11413 cat conftest.err >&5
11414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415 (exit $ac_status); } >/dev/null; then
11416 if test -s conftest.err; then
11417 ac_cpp_err=$ac_c_preproc_warn_flag
11418 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11425 if test -z "$ac_cpp_err"; then
11426 ac_header_preproc=yes
11428 echo "$as_me: failed program was:" >&5
11429 sed 's/^/| /' conftest.$ac_ext >&5
11431 ac_header_preproc=no
11434 rm -f conftest.err conftest.$ac_ext
11435 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11436 echo "${ECHO_T}$ac_header_preproc" >&6; }
11438 # So? What about this header?
11439 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11441 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11442 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11443 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11444 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11445 ac_header_preproc=yes
11448 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11449 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11450 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11451 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11452 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11453 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11454 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11455 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11456 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11457 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11458 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11459 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11461 ## ----------------------------------- ##
11462 ## Report this to llvmbugs@cs.uiuc.edu ##
11463 ## ----------------------------------- ##
11465 ) | sed "s/^/$as_me: WARNING: /" >&2
11468 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11469 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11470 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11471 echo $ECHO_N "(cached) $ECHO_C" >&6
11473 eval "$as_ac_Header=\$ac_header_preproc"
11475 ac_res=`eval echo '${'$as_ac_Header'}'`
11476 { echo "$as_me:$LINENO: result: $ac_res" >&5
11477 echo "${ECHO_T}$ac_res" >&6; }
11480 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11481 cat >>confdefs.h <<_ACEOF
11482 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11490 { echo "$as_me:$LINENO: checking for error_t" >&5
11491 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11492 if test "${ac_cv_type_error_t+set}" = set; then
11493 echo $ECHO_N "(cached) $ECHO_C" >&6
11495 cat >conftest.$ac_ext <<_ACEOF
11498 cat confdefs.h >>conftest.$ac_ext
11499 cat >>conftest.$ac_ext <<_ACEOF
11500 /* end confdefs.h. */
11505 typedef error_t ac__type_new_;
11509 if ((ac__type_new_ *) 0)
11511 if (sizeof (ac__type_new_))
11517 rm -f conftest.$ac_objext
11518 if { (ac_try="$ac_compile"
11519 case "(($ac_try" in
11520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11521 *) ac_try_echo=$ac_try;;
11523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11524 (eval "$ac_compile") 2>conftest.er1
11526 grep -v '^ *+' conftest.er1 >conftest.err
11528 cat conftest.err >&5
11529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11530 (exit $ac_status); } &&
11531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11532 { (case "(($ac_try" in
11533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11534 *) ac_try_echo=$ac_try;;
11536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11537 (eval "$ac_try") 2>&5
11539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11540 (exit $ac_status); }; } &&
11541 { ac_try='test -s conftest.$ac_objext'
11542 { (case "(($ac_try" in
11543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11544 *) ac_try_echo=$ac_try;;
11546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11547 (eval "$ac_try") 2>&5
11549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11550 (exit $ac_status); }; }; then
11551 ac_cv_type_error_t=yes
11553 echo "$as_me: failed program was:" >&5
11554 sed 's/^/| /' conftest.$ac_ext >&5
11556 ac_cv_type_error_t=no
11559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11561 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11562 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11563 if test $ac_cv_type_error_t = yes; then
11565 cat >>confdefs.h <<_ACEOF
11566 #define HAVE_ERROR_T 1
11572 cat >>confdefs.h <<\_ACEOF
11573 #define error_t int
11584 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11586 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11587 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11588 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11589 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11590 echo $ECHO_N "(cached) $ECHO_C" >&6
11592 cat >conftest.$ac_ext <<_ACEOF
11595 cat confdefs.h >>conftest.$ac_ext
11596 cat >>conftest.$ac_ext <<_ACEOF
11597 /* end confdefs.h. */
11598 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11599 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11600 #define $ac_func innocuous_$ac_func
11602 /* System header to define __stub macros and hopefully few prototypes,
11603 which can conflict with char $ac_func (); below.
11604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11605 <limits.h> exists even on freestanding compilers. */
11608 # include <limits.h>
11610 # include <assert.h>
11615 /* Override any GCC internal prototype to avoid an error.
11616 Use char because int might match the return type of a GCC
11617 builtin and then its argument prototype would still apply. */
11622 /* The GNU C library defines this for functions which it implements
11623 to always fail with ENOSYS. Some functions are actually named
11624 something starting with __ and the normal name is an alias. */
11625 #if defined __stub_$ac_func || defined __stub___$ac_func
11632 return $ac_func ();
11637 rm -f conftest.$ac_objext conftest$ac_exeext
11638 if { (ac_try="$ac_link"
11639 case "(($ac_try" in
11640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11641 *) ac_try_echo=$ac_try;;
11643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11644 (eval "$ac_link") 2>conftest.er1
11646 grep -v '^ *+' conftest.er1 >conftest.err
11648 cat conftest.err >&5
11649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11650 (exit $ac_status); } &&
11651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11652 { (case "(($ac_try" in
11653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11654 *) ac_try_echo=$ac_try;;
11656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11657 (eval "$ac_try") 2>&5
11659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660 (exit $ac_status); }; } &&
11661 { ac_try='test -s conftest$ac_exeext'
11662 { (case "(($ac_try" in
11663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11664 *) ac_try_echo=$ac_try;;
11666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11667 (eval "$ac_try") 2>&5
11669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670 (exit $ac_status); }; }; then
11671 eval "$as_ac_var=yes"
11673 echo "$as_me: failed program was:" >&5
11674 sed 's/^/| /' conftest.$ac_ext >&5
11676 eval "$as_ac_var=no"
11679 rm -f core conftest.err conftest.$ac_objext \
11680 conftest$ac_exeext conftest.$ac_ext
11682 ac_res=`eval echo '${'$as_ac_var'}'`
11683 { echo "$as_me:$LINENO: result: $ac_res" >&5
11684 echo "${ECHO_T}$ac_res" >&6; }
11685 if test `eval echo '${'$as_ac_var'}'` = yes; then
11686 cat >>confdefs.h <<_ACEOF
11687 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11720 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11723 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11724 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11725 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11726 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11727 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11728 echo $ECHO_N "(cached) $ECHO_C" >&6
11730 ac_res=`eval echo '${'$as_ac_Header'}'`
11731 { echo "$as_me:$LINENO: result: $ac_res" >&5
11732 echo "${ECHO_T}$ac_res" >&6; }
11734 # Is the header compilable?
11735 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11736 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11737 cat >conftest.$ac_ext <<_ACEOF
11740 cat confdefs.h >>conftest.$ac_ext
11741 cat >>conftest.$ac_ext <<_ACEOF
11742 /* end confdefs.h. */
11743 $ac_includes_default
11744 #include <$ac_header>
11746 rm -f conftest.$ac_objext
11747 if { (ac_try="$ac_compile"
11748 case "(($ac_try" in
11749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11750 *) ac_try_echo=$ac_try;;
11752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11753 (eval "$ac_compile") 2>conftest.er1
11755 grep -v '^ *+' conftest.er1 >conftest.err
11757 cat conftest.err >&5
11758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11759 (exit $ac_status); } &&
11760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11761 { (case "(($ac_try" in
11762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11763 *) ac_try_echo=$ac_try;;
11765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11766 (eval "$ac_try") 2>&5
11768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769 (exit $ac_status); }; } &&
11770 { ac_try='test -s conftest.$ac_objext'
11771 { (case "(($ac_try" in
11772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11773 *) ac_try_echo=$ac_try;;
11775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11776 (eval "$ac_try") 2>&5
11778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779 (exit $ac_status); }; }; then
11780 ac_header_compiler=yes
11782 echo "$as_me: failed program was:" >&5
11783 sed 's/^/| /' conftest.$ac_ext >&5
11785 ac_header_compiler=no
11788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11789 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11790 echo "${ECHO_T}$ac_header_compiler" >&6; }
11792 # Is the header present?
11793 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11794 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11795 cat >conftest.$ac_ext <<_ACEOF
11798 cat confdefs.h >>conftest.$ac_ext
11799 cat >>conftest.$ac_ext <<_ACEOF
11800 /* end confdefs.h. */
11801 #include <$ac_header>
11803 if { (ac_try="$ac_cpp conftest.$ac_ext"
11804 case "(($ac_try" in
11805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11806 *) ac_try_echo=$ac_try;;
11808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11809 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11811 grep -v '^ *+' conftest.er1 >conftest.err
11813 cat conftest.err >&5
11814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815 (exit $ac_status); } >/dev/null; then
11816 if test -s conftest.err; then
11817 ac_cpp_err=$ac_c_preproc_warn_flag
11818 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11825 if test -z "$ac_cpp_err"; then
11826 ac_header_preproc=yes
11828 echo "$as_me: failed program was:" >&5
11829 sed 's/^/| /' conftest.$ac_ext >&5
11831 ac_header_preproc=no
11834 rm -f conftest.err conftest.$ac_ext
11835 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11836 echo "${ECHO_T}$ac_header_preproc" >&6; }
11838 # So? What about this header?
11839 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11841 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11842 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11843 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11844 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11845 ac_header_preproc=yes
11848 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11849 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11850 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11851 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11852 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11853 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11854 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11855 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11856 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11857 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11858 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11859 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11861 ## ----------------------------------- ##
11862 ## Report this to llvmbugs@cs.uiuc.edu ##
11863 ## ----------------------------------- ##
11865 ) | sed "s/^/$as_me: WARNING: /" >&2
11868 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11870 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11871 echo $ECHO_N "(cached) $ECHO_C" >&6
11873 eval "$as_ac_Header=\$ac_header_preproc"
11875 ac_res=`eval echo '${'$as_ac_Header'}'`
11876 { echo "$as_me:$LINENO: result: $ac_res" >&5
11877 echo "${ECHO_T}$ac_res" >&6; }
11880 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11881 cat >>confdefs.h <<_ACEOF
11882 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11893 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11895 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11896 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11897 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11898 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11899 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11900 echo $ECHO_N "(cached) $ECHO_C" >&6
11902 ac_res=`eval echo '${'$as_ac_Header'}'`
11903 { echo "$as_me:$LINENO: result: $ac_res" >&5
11904 echo "${ECHO_T}$ac_res" >&6; }
11906 # Is the header compilable?
11907 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11908 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11909 cat >conftest.$ac_ext <<_ACEOF
11912 cat confdefs.h >>conftest.$ac_ext
11913 cat >>conftest.$ac_ext <<_ACEOF
11914 /* end confdefs.h. */
11915 $ac_includes_default
11916 #include <$ac_header>
11918 rm -f conftest.$ac_objext
11919 if { (ac_try="$ac_compile"
11920 case "(($ac_try" in
11921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11922 *) ac_try_echo=$ac_try;;
11924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11925 (eval "$ac_compile") 2>conftest.er1
11927 grep -v '^ *+' conftest.er1 >conftest.err
11929 cat conftest.err >&5
11930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931 (exit $ac_status); } &&
11932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11933 { (case "(($ac_try" in
11934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11935 *) ac_try_echo=$ac_try;;
11937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11938 (eval "$ac_try") 2>&5
11940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941 (exit $ac_status); }; } &&
11942 { ac_try='test -s conftest.$ac_objext'
11943 { (case "(($ac_try" in
11944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11945 *) ac_try_echo=$ac_try;;
11947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11948 (eval "$ac_try") 2>&5
11950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951 (exit $ac_status); }; }; then
11952 ac_header_compiler=yes
11954 echo "$as_me: failed program was:" >&5
11955 sed 's/^/| /' conftest.$ac_ext >&5
11957 ac_header_compiler=no
11960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11961 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11962 echo "${ECHO_T}$ac_header_compiler" >&6; }
11964 # Is the header present?
11965 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11966 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11967 cat >conftest.$ac_ext <<_ACEOF
11970 cat confdefs.h >>conftest.$ac_ext
11971 cat >>conftest.$ac_ext <<_ACEOF
11972 /* end confdefs.h. */
11973 #include <$ac_header>
11975 if { (ac_try="$ac_cpp conftest.$ac_ext"
11976 case "(($ac_try" in
11977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11978 *) ac_try_echo=$ac_try;;
11980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11981 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11983 grep -v '^ *+' conftest.er1 >conftest.err
11985 cat conftest.err >&5
11986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11987 (exit $ac_status); } >/dev/null; then
11988 if test -s conftest.err; then
11989 ac_cpp_err=$ac_c_preproc_warn_flag
11990 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11997 if test -z "$ac_cpp_err"; then
11998 ac_header_preproc=yes
12000 echo "$as_me: failed program was:" >&5
12001 sed 's/^/| /' conftest.$ac_ext >&5
12003 ac_header_preproc=no
12006 rm -f conftest.err conftest.$ac_ext
12007 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12008 echo "${ECHO_T}$ac_header_preproc" >&6; }
12010 # So? What about this header?
12011 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12013 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12014 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12015 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12016 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12017 ac_header_preproc=yes
12020 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12021 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12022 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12023 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12024 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12025 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12026 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12027 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12028 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12029 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12030 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12031 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12033 ## ----------------------------------- ##
12034 ## Report this to llvmbugs@cs.uiuc.edu ##
12035 ## ----------------------------------- ##
12037 ) | sed "s/^/$as_me: WARNING: /" >&2
12040 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12041 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12042 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12043 echo $ECHO_N "(cached) $ECHO_C" >&6
12045 eval "$as_ac_Header=\$ac_header_preproc"
12047 ac_res=`eval echo '${'$as_ac_Header'}'`
12048 { echo "$as_me:$LINENO: result: $ac_res" >&5
12049 echo "${ECHO_T}$ac_res" >&6; }
12052 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12053 cat >>confdefs.h <<_ACEOF
12054 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12063 for ac_header in string.h strings.h
12065 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12066 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12067 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12068 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12069 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12070 echo $ECHO_N "(cached) $ECHO_C" >&6
12072 ac_res=`eval echo '${'$as_ac_Header'}'`
12073 { echo "$as_me:$LINENO: result: $ac_res" >&5
12074 echo "${ECHO_T}$ac_res" >&6; }
12076 # Is the header compilable?
12077 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12078 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12079 cat >conftest.$ac_ext <<_ACEOF
12082 cat confdefs.h >>conftest.$ac_ext
12083 cat >>conftest.$ac_ext <<_ACEOF
12084 /* end confdefs.h. */
12085 $ac_includes_default
12086 #include <$ac_header>
12088 rm -f conftest.$ac_objext
12089 if { (ac_try="$ac_compile"
12090 case "(($ac_try" in
12091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12092 *) ac_try_echo=$ac_try;;
12094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12095 (eval "$ac_compile") 2>conftest.er1
12097 grep -v '^ *+' conftest.er1 >conftest.err
12099 cat conftest.err >&5
12100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12101 (exit $ac_status); } &&
12102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12103 { (case "(($ac_try" in
12104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12105 *) ac_try_echo=$ac_try;;
12107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12108 (eval "$ac_try") 2>&5
12110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111 (exit $ac_status); }; } &&
12112 { ac_try='test -s conftest.$ac_objext'
12113 { (case "(($ac_try" in
12114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12115 *) ac_try_echo=$ac_try;;
12117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12118 (eval "$ac_try") 2>&5
12120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121 (exit $ac_status); }; }; then
12122 ac_header_compiler=yes
12124 echo "$as_me: failed program was:" >&5
12125 sed 's/^/| /' conftest.$ac_ext >&5
12127 ac_header_compiler=no
12130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12131 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12132 echo "${ECHO_T}$ac_header_compiler" >&6; }
12134 # Is the header present?
12135 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12136 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12137 cat >conftest.$ac_ext <<_ACEOF
12140 cat confdefs.h >>conftest.$ac_ext
12141 cat >>conftest.$ac_ext <<_ACEOF
12142 /* end confdefs.h. */
12143 #include <$ac_header>
12145 if { (ac_try="$ac_cpp conftest.$ac_ext"
12146 case "(($ac_try" in
12147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12148 *) ac_try_echo=$ac_try;;
12150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12151 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12153 grep -v '^ *+' conftest.er1 >conftest.err
12155 cat conftest.err >&5
12156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12157 (exit $ac_status); } >/dev/null; then
12158 if test -s conftest.err; then
12159 ac_cpp_err=$ac_c_preproc_warn_flag
12160 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12167 if test -z "$ac_cpp_err"; then
12168 ac_header_preproc=yes
12170 echo "$as_me: failed program was:" >&5
12171 sed 's/^/| /' conftest.$ac_ext >&5
12173 ac_header_preproc=no
12176 rm -f conftest.err conftest.$ac_ext
12177 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12178 echo "${ECHO_T}$ac_header_preproc" >&6; }
12180 # So? What about this header?
12181 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12183 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12184 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12186 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12187 ac_header_preproc=yes
12190 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12191 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12192 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12193 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12194 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12195 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12196 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12197 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12198 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12199 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12200 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12201 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12203 ## ----------------------------------- ##
12204 ## Report this to llvmbugs@cs.uiuc.edu ##
12205 ## ----------------------------------- ##
12207 ) | sed "s/^/$as_me: WARNING: /" >&2
12210 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12212 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12213 echo $ECHO_N "(cached) $ECHO_C" >&6
12215 eval "$as_ac_Header=\$ac_header_preproc"
12217 ac_res=`eval echo '${'$as_ac_Header'}'`
12218 { echo "$as_me:$LINENO: result: $ac_res" >&5
12219 echo "${ECHO_T}$ac_res" >&6; }
12222 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12223 cat >>confdefs.h <<_ACEOF
12224 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12234 for ac_func in strchr index
12236 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12237 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12238 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12239 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12240 echo $ECHO_N "(cached) $ECHO_C" >&6
12242 cat >conftest.$ac_ext <<_ACEOF
12245 cat confdefs.h >>conftest.$ac_ext
12246 cat >>conftest.$ac_ext <<_ACEOF
12247 /* end confdefs.h. */
12248 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12249 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12250 #define $ac_func innocuous_$ac_func
12252 /* System header to define __stub macros and hopefully few prototypes,
12253 which can conflict with char $ac_func (); below.
12254 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12255 <limits.h> exists even on freestanding compilers. */
12258 # include <limits.h>
12260 # include <assert.h>
12265 /* Override any GCC internal prototype to avoid an error.
12266 Use char because int might match the return type of a GCC
12267 builtin and then its argument prototype would still apply. */
12272 /* The GNU C library defines this for functions which it implements
12273 to always fail with ENOSYS. Some functions are actually named
12274 something starting with __ and the normal name is an alias. */
12275 #if defined __stub_$ac_func || defined __stub___$ac_func
12282 return $ac_func ();
12287 rm -f conftest.$ac_objext conftest$ac_exeext
12288 if { (ac_try="$ac_link"
12289 case "(($ac_try" in
12290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12291 *) ac_try_echo=$ac_try;;
12293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12294 (eval "$ac_link") 2>conftest.er1
12296 grep -v '^ *+' conftest.er1 >conftest.err
12298 cat conftest.err >&5
12299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300 (exit $ac_status); } &&
12301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12302 { (case "(($ac_try" in
12303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12304 *) ac_try_echo=$ac_try;;
12306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12307 (eval "$ac_try") 2>&5
12309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12310 (exit $ac_status); }; } &&
12311 { ac_try='test -s conftest$ac_exeext'
12312 { (case "(($ac_try" in
12313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12314 *) ac_try_echo=$ac_try;;
12316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12317 (eval "$ac_try") 2>&5
12319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12320 (exit $ac_status); }; }; then
12321 eval "$as_ac_var=yes"
12323 echo "$as_me: failed program was:" >&5
12324 sed 's/^/| /' conftest.$ac_ext >&5
12326 eval "$as_ac_var=no"
12329 rm -f core conftest.err conftest.$ac_objext \
12330 conftest$ac_exeext conftest.$ac_ext
12332 ac_res=`eval echo '${'$as_ac_var'}'`
12333 { echo "$as_me:$LINENO: result: $ac_res" >&5
12334 echo "${ECHO_T}$ac_res" >&6; }
12335 if test `eval echo '${'$as_ac_var'}'` = yes; then
12336 cat >>confdefs.h <<_ACEOF
12337 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12345 for ac_func in strrchr rindex
12347 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12348 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12349 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12350 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12351 echo $ECHO_N "(cached) $ECHO_C" >&6
12353 cat >conftest.$ac_ext <<_ACEOF
12356 cat confdefs.h >>conftest.$ac_ext
12357 cat >>conftest.$ac_ext <<_ACEOF
12358 /* end confdefs.h. */
12359 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12360 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12361 #define $ac_func innocuous_$ac_func
12363 /* System header to define __stub macros and hopefully few prototypes,
12364 which can conflict with char $ac_func (); below.
12365 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12366 <limits.h> exists even on freestanding compilers. */
12369 # include <limits.h>
12371 # include <assert.h>
12376 /* Override any GCC internal prototype to avoid an error.
12377 Use char because int might match the return type of a GCC
12378 builtin and then its argument prototype would still apply. */
12383 /* The GNU C library defines this for functions which it implements
12384 to always fail with ENOSYS. Some functions are actually named
12385 something starting with __ and the normal name is an alias. */
12386 #if defined __stub_$ac_func || defined __stub___$ac_func
12393 return $ac_func ();
12398 rm -f conftest.$ac_objext conftest$ac_exeext
12399 if { (ac_try="$ac_link"
12400 case "(($ac_try" in
12401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12402 *) ac_try_echo=$ac_try;;
12404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12405 (eval "$ac_link") 2>conftest.er1
12407 grep -v '^ *+' conftest.er1 >conftest.err
12409 cat conftest.err >&5
12410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411 (exit $ac_status); } &&
12412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12413 { (case "(($ac_try" in
12414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12415 *) ac_try_echo=$ac_try;;
12417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12418 (eval "$ac_try") 2>&5
12420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421 (exit $ac_status); }; } &&
12422 { ac_try='test -s conftest$ac_exeext'
12423 { (case "(($ac_try" in
12424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12425 *) ac_try_echo=$ac_try;;
12427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12428 (eval "$ac_try") 2>&5
12430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431 (exit $ac_status); }; }; then
12432 eval "$as_ac_var=yes"
12434 echo "$as_me: failed program was:" >&5
12435 sed 's/^/| /' conftest.$ac_ext >&5
12437 eval "$as_ac_var=no"
12440 rm -f core conftest.err conftest.$ac_objext \
12441 conftest$ac_exeext conftest.$ac_ext
12443 ac_res=`eval echo '${'$as_ac_var'}'`
12444 { echo "$as_me:$LINENO: result: $ac_res" >&5
12445 echo "${ECHO_T}$ac_res" >&6; }
12446 if test `eval echo '${'$as_ac_var'}'` = yes; then
12447 cat >>confdefs.h <<_ACEOF
12448 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12456 for ac_func in memcpy bcopy
12458 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12459 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12460 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12461 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12462 echo $ECHO_N "(cached) $ECHO_C" >&6
12464 cat >conftest.$ac_ext <<_ACEOF
12467 cat confdefs.h >>conftest.$ac_ext
12468 cat >>conftest.$ac_ext <<_ACEOF
12469 /* end confdefs.h. */
12470 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12471 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12472 #define $ac_func innocuous_$ac_func
12474 /* System header to define __stub macros and hopefully few prototypes,
12475 which can conflict with char $ac_func (); below.
12476 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12477 <limits.h> exists even on freestanding compilers. */
12480 # include <limits.h>
12482 # include <assert.h>
12487 /* Override any GCC internal prototype to avoid an error.
12488 Use char because int might match the return type of a GCC
12489 builtin and then its argument prototype would still apply. */
12494 /* The GNU C library defines this for functions which it implements
12495 to always fail with ENOSYS. Some functions are actually named
12496 something starting with __ and the normal name is an alias. */
12497 #if defined __stub_$ac_func || defined __stub___$ac_func
12504 return $ac_func ();
12509 rm -f conftest.$ac_objext conftest$ac_exeext
12510 if { (ac_try="$ac_link"
12511 case "(($ac_try" in
12512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12513 *) ac_try_echo=$ac_try;;
12515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12516 (eval "$ac_link") 2>conftest.er1
12518 grep -v '^ *+' conftest.er1 >conftest.err
12520 cat conftest.err >&5
12521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12522 (exit $ac_status); } &&
12523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12524 { (case "(($ac_try" in
12525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12526 *) ac_try_echo=$ac_try;;
12528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12529 (eval "$ac_try") 2>&5
12531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12532 (exit $ac_status); }; } &&
12533 { ac_try='test -s conftest$ac_exeext'
12534 { (case "(($ac_try" in
12535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12536 *) ac_try_echo=$ac_try;;
12538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12539 (eval "$ac_try") 2>&5
12541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542 (exit $ac_status); }; }; then
12543 eval "$as_ac_var=yes"
12545 echo "$as_me: failed program was:" >&5
12546 sed 's/^/| /' conftest.$ac_ext >&5
12548 eval "$as_ac_var=no"
12551 rm -f core conftest.err conftest.$ac_objext \
12552 conftest$ac_exeext conftest.$ac_ext
12554 ac_res=`eval echo '${'$as_ac_var'}'`
12555 { echo "$as_me:$LINENO: result: $ac_res" >&5
12556 echo "${ECHO_T}$ac_res" >&6; }
12557 if test `eval echo '${'$as_ac_var'}'` = yes; then
12558 cat >>confdefs.h <<_ACEOF
12559 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12567 for ac_func in memmove strcmp
12569 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12570 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12571 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12572 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12573 echo $ECHO_N "(cached) $ECHO_C" >&6
12575 cat >conftest.$ac_ext <<_ACEOF
12578 cat confdefs.h >>conftest.$ac_ext
12579 cat >>conftest.$ac_ext <<_ACEOF
12580 /* end confdefs.h. */
12581 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12582 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12583 #define $ac_func innocuous_$ac_func
12585 /* System header to define __stub macros and hopefully few prototypes,
12586 which can conflict with char $ac_func (); below.
12587 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12588 <limits.h> exists even on freestanding compilers. */
12591 # include <limits.h>
12593 # include <assert.h>
12598 /* Override any GCC internal prototype to avoid an error.
12599 Use char because int might match the return type of a GCC
12600 builtin and then its argument prototype would still apply. */
12605 /* The GNU C library defines this for functions which it implements
12606 to always fail with ENOSYS. Some functions are actually named
12607 something starting with __ and the normal name is an alias. */
12608 #if defined __stub_$ac_func || defined __stub___$ac_func
12615 return $ac_func ();
12620 rm -f conftest.$ac_objext conftest$ac_exeext
12621 if { (ac_try="$ac_link"
12622 case "(($ac_try" in
12623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12624 *) ac_try_echo=$ac_try;;
12626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12627 (eval "$ac_link") 2>conftest.er1
12629 grep -v '^ *+' conftest.er1 >conftest.err
12631 cat conftest.err >&5
12632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633 (exit $ac_status); } &&
12634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12635 { (case "(($ac_try" in
12636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12637 *) ac_try_echo=$ac_try;;
12639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12640 (eval "$ac_try") 2>&5
12642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643 (exit $ac_status); }; } &&
12644 { ac_try='test -s conftest$ac_exeext'
12645 { (case "(($ac_try" in
12646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12647 *) ac_try_echo=$ac_try;;
12649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12650 (eval "$ac_try") 2>&5
12652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653 (exit $ac_status); }; }; then
12654 eval "$as_ac_var=yes"
12656 echo "$as_me: failed program was:" >&5
12657 sed 's/^/| /' conftest.$ac_ext >&5
12659 eval "$as_ac_var=no"
12662 rm -f core conftest.err conftest.$ac_objext \
12663 conftest$ac_exeext conftest.$ac_ext
12665 ac_res=`eval echo '${'$as_ac_var'}'`
12666 { echo "$as_me:$LINENO: result: $ac_res" >&5
12667 echo "${ECHO_T}$ac_res" >&6; }
12668 if test `eval echo '${'$as_ac_var'}'` = yes; then
12669 cat >>confdefs.h <<_ACEOF
12670 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12679 for ac_func in closedir opendir readdir
12681 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12682 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12683 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12684 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12685 echo $ECHO_N "(cached) $ECHO_C" >&6
12687 cat >conftest.$ac_ext <<_ACEOF
12690 cat confdefs.h >>conftest.$ac_ext
12691 cat >>conftest.$ac_ext <<_ACEOF
12692 /* end confdefs.h. */
12693 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12694 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12695 #define $ac_func innocuous_$ac_func
12697 /* System header to define __stub macros and hopefully few prototypes,
12698 which can conflict with char $ac_func (); below.
12699 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12700 <limits.h> exists even on freestanding compilers. */
12703 # include <limits.h>
12705 # include <assert.h>
12710 /* Override any GCC internal prototype to avoid an error.
12711 Use char because int might match the return type of a GCC
12712 builtin and then its argument prototype would still apply. */
12717 /* The GNU C library defines this for functions which it implements
12718 to always fail with ENOSYS. Some functions are actually named
12719 something starting with __ and the normal name is an alias. */
12720 #if defined __stub_$ac_func || defined __stub___$ac_func
12727 return $ac_func ();
12732 rm -f conftest.$ac_objext conftest$ac_exeext
12733 if { (ac_try="$ac_link"
12734 case "(($ac_try" in
12735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12736 *) ac_try_echo=$ac_try;;
12738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12739 (eval "$ac_link") 2>conftest.er1
12741 grep -v '^ *+' conftest.er1 >conftest.err
12743 cat conftest.err >&5
12744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12745 (exit $ac_status); } &&
12746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12747 { (case "(($ac_try" in
12748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12749 *) ac_try_echo=$ac_try;;
12751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12752 (eval "$ac_try") 2>&5
12754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755 (exit $ac_status); }; } &&
12756 { ac_try='test -s conftest$ac_exeext'
12757 { (case "(($ac_try" in
12758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12759 *) ac_try_echo=$ac_try;;
12761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12762 (eval "$ac_try") 2>&5
12764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12765 (exit $ac_status); }; }; then
12766 eval "$as_ac_var=yes"
12768 echo "$as_me: failed program was:" >&5
12769 sed 's/^/| /' conftest.$ac_ext >&5
12771 eval "$as_ac_var=no"
12774 rm -f core conftest.err conftest.$ac_objext \
12775 conftest$ac_exeext conftest.$ac_ext
12777 ac_res=`eval echo '${'$as_ac_var'}'`
12778 { echo "$as_me:$LINENO: result: $ac_res" >&5
12779 echo "${ECHO_T}$ac_res" >&6; }
12780 if test `eval echo '${'$as_ac_var'}'` = yes; then
12781 cat >>confdefs.h <<_ACEOF
12782 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12790 if test "$WITH_LLVMGCCDIR" = "default" ; then
12791 LLVMGCC="llvm-gcc${EXEEXT}"
12792 LLVMGXX="llvm-g++${EXEEXT}"
12793 LLVMGCCCOMMAND="$LLVMGCC"
12794 LLVMGXXCOMMAND="$LLVMGXX"
12795 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12797 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12799 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
12800 set dummy $LLVMGCC; ac_word=$2
12801 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12803 if test "${ac_cv_path_LLVMGCC+set}" = set; then
12804 echo $ECHO_N "(cached) $ECHO_C" >&6
12808 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
12811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12812 for as_dir in $PATH
12815 test -z "$as_dir" && as_dir=.
12816 for ac_exec_ext in '' $ac_executable_extensions; do
12817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12818 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
12819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12829 LLVMGCC=$ac_cv_path_LLVMGCC
12830 if test -n "$LLVMGCC"; then
12831 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
12832 echo "${ECHO_T}$LLVMGCC" >&6; }
12834 { echo "$as_me:$LINENO: result: no" >&5
12835 echo "${ECHO_T}no" >&6; }
12839 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
12840 set dummy $LLVMGXX; ac_word=$2
12841 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12843 if test "${ac_cv_path_LLVMGXX+set}" = set; then
12844 echo $ECHO_N "(cached) $ECHO_C" >&6
12848 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
12851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12852 for as_dir in $PATH
12855 test -z "$as_dir" && as_dir=.
12856 for ac_exec_ext in '' $ac_executable_extensions; do
12857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12858 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
12859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12869 LLVMGXX=$ac_cv_path_LLVMGXX
12870 if test -n "$LLVMGXX"; then
12871 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
12872 echo "${ECHO_T}$LLVMGXX" >&6; }
12874 { echo "$as_me:$LINENO: result: no" >&5
12875 echo "${ECHO_T}no" >&6; }
12880 if test -z "$LLVMGCC"; then
12881 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
12882 LLVMGCCCOMMAND="$LLVMGCC"
12884 if test -z "$LLVMGXX"; then
12885 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
12886 LLVMGXXCOMMAND="$LLVMGXX"
12893 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12895 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12900 # Check whether --with-llvmcc was given.
12901 if test "${with_llvmcc+set}" = set; then
12902 withval=$with_llvmcc;
12907 { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
12908 echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
12909 if test "$with_llvmcc" != "check"; then
12910 if (test "$with_llvmcc" != "llvm-gcc" &&
12911 test "$with_llvmcc" != "clang" &&
12912 test "$with_llvmcc" != "none"); then
12913 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
12914 echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
12915 { (exit 1); exit 1; }; }
12917 WITH_LLVMCC="$with_llvmcc"
12918 elif test -n "$LLVMGCC"; then
12919 WITH_LLVMCC=llvm-gcc
12920 elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
12925 { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
12926 echo "${ECHO_T}$WITH_LLVMCC" >&6; }
12927 LLVMCC_OPTION=$WITH_LLVMCC
12930 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12931 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12944 if test "$GCC" != "yes" && test "$ICC" != "yes"
12946 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12947 echo "$as_me: error: gcc|icc required but not found" >&2;}
12948 { (exit 1); exit 1; }; }
12951 if test "$GXX" != "yes" && test "$IXX" != "yes"
12953 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
12954 echo "$as_me: error: g++|icc required but not found" >&2;}
12955 { (exit 1); exit 1; }; }
12958 if test "$GCC" = "yes"
12960 cat >conftest.$ac_ext <<_ACEOF
12961 #if !defined(__GNUC__) || __GNUC__ < 3
12962 #error Unsupported GCC version
12966 rm -f conftest.$ac_objext
12967 if { (ac_try="$ac_compile"
12968 case "(($ac_try" in
12969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12970 *) ac_try_echo=$ac_try;;
12972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12973 (eval "$ac_compile") 2>conftest.er1
12975 grep -v '^ *+' conftest.er1 >conftest.err
12977 cat conftest.err >&5
12978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12979 (exit $ac_status); } &&
12980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12981 { (case "(($ac_try" in
12982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12983 *) ac_try_echo=$ac_try;;
12985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12986 (eval "$ac_try") 2>&5
12988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12989 (exit $ac_status); }; } &&
12990 { ac_try='test -s conftest.$ac_objext'
12991 { (case "(($ac_try" in
12992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12993 *) ac_try_echo=$ac_try;;
12995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12996 (eval "$ac_try") 2>&5
12998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12999 (exit $ac_status); }; }; then
13002 echo "$as_me: failed program was:" >&5
13003 sed 's/^/| /' conftest.$ac_ext >&5
13005 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13006 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13007 { (exit 1); exit 1; }; }
13010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13013 if test -z "$llvm_cv_gnu_make_command"
13015 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13016 echo "$as_me: error: GNU Make required but not found" >&2;}
13017 { (exit 1); exit 1; }; }
13020 { echo "$as_me:$LINENO: result: ok" >&5
13021 echo "${ECHO_T}ok" >&6; }
13023 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
13024 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
13025 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13027 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13029 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13030 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
13034 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
13035 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13036 if test "${ac_cv_lib_m_sin+set}" = set; then
13037 echo $ECHO_N "(cached) $ECHO_C" >&6
13039 ac_check_lib_save_LIBS=$LIBS
13041 cat >conftest.$ac_ext <<_ACEOF
13044 cat confdefs.h >>conftest.$ac_ext
13045 cat >>conftest.$ac_ext <<_ACEOF
13046 /* end confdefs.h. */
13048 /* Override any GCC internal prototype to avoid an error.
13049 Use char because int might match the return type of a GCC
13050 builtin and then its argument prototype would still apply. */
13063 rm -f conftest.$ac_objext conftest$ac_exeext
13064 if { (ac_try="$ac_link"
13065 case "(($ac_try" in
13066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13067 *) ac_try_echo=$ac_try;;
13069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13070 (eval "$ac_link") 2>conftest.er1
13072 grep -v '^ *+' conftest.er1 >conftest.err
13074 cat conftest.err >&5
13075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13076 (exit $ac_status); } &&
13077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13078 { (case "(($ac_try" in
13079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13080 *) ac_try_echo=$ac_try;;
13082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13083 (eval "$ac_try") 2>&5
13085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13086 (exit $ac_status); }; } &&
13087 { ac_try='test -s conftest$ac_exeext'
13088 { (case "(($ac_try" in
13089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13090 *) ac_try_echo=$ac_try;;
13092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13093 (eval "$ac_try") 2>&5
13095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096 (exit $ac_status); }; }; then
13097 ac_cv_lib_m_sin=yes
13099 echo "$as_me: failed program was:" >&5
13100 sed 's/^/| /' conftest.$ac_ext >&5
13105 rm -f core conftest.err conftest.$ac_objext \
13106 conftest$ac_exeext conftest.$ac_ext
13107 LIBS=$ac_check_lib_save_LIBS
13109 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13110 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13111 if test $ac_cv_lib_m_sin = yes; then
13112 cat >>confdefs.h <<_ACEOF
13113 #define HAVE_LIBM 1
13120 if test "$llvm_cv_os_type" = "MingW" ; then
13122 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13123 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13124 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13125 echo $ECHO_N "(cached) $ECHO_C" >&6
13127 ac_check_lib_save_LIBS=$LIBS
13128 LIBS="-limagehlp $LIBS"
13129 cat >conftest.$ac_ext <<_ACEOF
13132 cat confdefs.h >>conftest.$ac_ext
13133 cat >>conftest.$ac_ext <<_ACEOF
13134 /* end confdefs.h. */
13145 rm -f conftest.$ac_objext conftest$ac_exeext
13146 if { (ac_try="$ac_link"
13147 case "(($ac_try" in
13148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13149 *) ac_try_echo=$ac_try;;
13151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13152 (eval "$ac_link") 2>conftest.er1
13154 grep -v '^ *+' conftest.er1 >conftest.err
13156 cat conftest.err >&5
13157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13158 (exit $ac_status); } &&
13159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13160 { (case "(($ac_try" in
13161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13162 *) ac_try_echo=$ac_try;;
13164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13165 (eval "$ac_try") 2>&5
13167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13168 (exit $ac_status); }; } &&
13169 { ac_try='test -s conftest$ac_exeext'
13170 { (case "(($ac_try" in
13171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13172 *) ac_try_echo=$ac_try;;
13174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13175 (eval "$ac_try") 2>&5
13177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13178 (exit $ac_status); }; }; then
13179 ac_cv_lib_imagehlp_main=yes
13181 echo "$as_me: failed program was:" >&5
13182 sed 's/^/| /' conftest.$ac_ext >&5
13184 ac_cv_lib_imagehlp_main=no
13187 rm -f core conftest.err conftest.$ac_objext \
13188 conftest$ac_exeext conftest.$ac_ext
13189 LIBS=$ac_check_lib_save_LIBS
13191 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13192 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13193 if test $ac_cv_lib_imagehlp_main = yes; then
13194 cat >>confdefs.h <<_ACEOF
13195 #define HAVE_LIBIMAGEHLP 1
13198 LIBS="-limagehlp $LIBS"
13203 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13204 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13205 if test "${ac_cv_lib_psapi_main+set}" = set; then
13206 echo $ECHO_N "(cached) $ECHO_C" >&6
13208 ac_check_lib_save_LIBS=$LIBS
13209 LIBS="-lpsapi $LIBS"
13210 cat >conftest.$ac_ext <<_ACEOF
13213 cat confdefs.h >>conftest.$ac_ext
13214 cat >>conftest.$ac_ext <<_ACEOF
13215 /* end confdefs.h. */
13226 rm -f conftest.$ac_objext conftest$ac_exeext
13227 if { (ac_try="$ac_link"
13228 case "(($ac_try" in
13229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13230 *) ac_try_echo=$ac_try;;
13232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13233 (eval "$ac_link") 2>conftest.er1
13235 grep -v '^ *+' conftest.er1 >conftest.err
13237 cat conftest.err >&5
13238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13239 (exit $ac_status); } &&
13240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13241 { (case "(($ac_try" in
13242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13243 *) ac_try_echo=$ac_try;;
13245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13246 (eval "$ac_try") 2>&5
13248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249 (exit $ac_status); }; } &&
13250 { ac_try='test -s conftest$ac_exeext'
13251 { (case "(($ac_try" in
13252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13253 *) ac_try_echo=$ac_try;;
13255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13256 (eval "$ac_try") 2>&5
13258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13259 (exit $ac_status); }; }; then
13260 ac_cv_lib_psapi_main=yes
13262 echo "$as_me: failed program was:" >&5
13263 sed 's/^/| /' conftest.$ac_ext >&5
13265 ac_cv_lib_psapi_main=no
13268 rm -f core conftest.err conftest.$ac_objext \
13269 conftest$ac_exeext conftest.$ac_ext
13270 LIBS=$ac_check_lib_save_LIBS
13272 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13273 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13274 if test $ac_cv_lib_psapi_main = yes; then
13275 cat >>confdefs.h <<_ACEOF
13276 #define HAVE_LIBPSAPI 1
13279 LIBS="-lpsapi $LIBS"
13285 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13286 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13287 if test "${ac_cv_search_dlopen+set}" = set; then
13288 echo $ECHO_N "(cached) $ECHO_C" >&6
13290 ac_func_search_save_LIBS=$LIBS
13291 cat >conftest.$ac_ext <<_ACEOF
13294 cat confdefs.h >>conftest.$ac_ext
13295 cat >>conftest.$ac_ext <<_ACEOF
13296 /* end confdefs.h. */
13298 /* Override any GCC internal prototype to avoid an error.
13299 Use char because int might match the return type of a GCC
13300 builtin and then its argument prototype would still apply. */
13313 for ac_lib in '' dl; do
13314 if test -z "$ac_lib"; then
13315 ac_res="none required"
13318 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13320 rm -f conftest.$ac_objext conftest$ac_exeext
13321 if { (ac_try="$ac_link"
13322 case "(($ac_try" in
13323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13324 *) ac_try_echo=$ac_try;;
13326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13327 (eval "$ac_link") 2>conftest.er1
13329 grep -v '^ *+' conftest.er1 >conftest.err
13331 cat conftest.err >&5
13332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13333 (exit $ac_status); } &&
13334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13335 { (case "(($ac_try" in
13336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13337 *) ac_try_echo=$ac_try;;
13339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13340 (eval "$ac_try") 2>&5
13342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13343 (exit $ac_status); }; } &&
13344 { ac_try='test -s conftest$ac_exeext'
13345 { (case "(($ac_try" in
13346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13347 *) ac_try_echo=$ac_try;;
13349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13350 (eval "$ac_try") 2>&5
13352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13353 (exit $ac_status); }; }; then
13354 ac_cv_search_dlopen=$ac_res
13356 echo "$as_me: failed program was:" >&5
13357 sed 's/^/| /' conftest.$ac_ext >&5
13362 rm -f core conftest.err conftest.$ac_objext \
13364 if test "${ac_cv_search_dlopen+set}" = set; then
13368 if test "${ac_cv_search_dlopen+set}" = set; then
13371 ac_cv_search_dlopen=no
13373 rm conftest.$ac_ext
13374 LIBS=$ac_func_search_save_LIBS
13376 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13377 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13378 ac_res=$ac_cv_search_dlopen
13379 if test "$ac_res" != no; then
13380 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13382 cat >>confdefs.h <<\_ACEOF
13383 #define HAVE_DLOPEN 1
13387 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13388 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
13392 if test "$llvm_cv_enable_libffi" = "yes" ; then
13393 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13394 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13395 if test "${ac_cv_search_ffi_call+set}" = set; then
13396 echo $ECHO_N "(cached) $ECHO_C" >&6
13398 ac_func_search_save_LIBS=$LIBS
13399 cat >conftest.$ac_ext <<_ACEOF
13402 cat confdefs.h >>conftest.$ac_ext
13403 cat >>conftest.$ac_ext <<_ACEOF
13404 /* end confdefs.h. */
13406 /* Override any GCC internal prototype to avoid an error.
13407 Use char because int might match the return type of a GCC
13408 builtin and then its argument prototype would still apply. */
13416 return ffi_call ();
13421 for ac_lib in '' ffi; do
13422 if test -z "$ac_lib"; then
13423 ac_res="none required"
13426 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13428 rm -f conftest.$ac_objext conftest$ac_exeext
13429 if { (ac_try="$ac_link"
13430 case "(($ac_try" in
13431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13432 *) ac_try_echo=$ac_try;;
13434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13435 (eval "$ac_link") 2>conftest.er1
13437 grep -v '^ *+' conftest.er1 >conftest.err
13439 cat conftest.err >&5
13440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441 (exit $ac_status); } &&
13442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13443 { (case "(($ac_try" in
13444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13445 *) ac_try_echo=$ac_try;;
13447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13448 (eval "$ac_try") 2>&5
13450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13451 (exit $ac_status); }; } &&
13452 { ac_try='test -s conftest$ac_exeext'
13453 { (case "(($ac_try" in
13454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13455 *) ac_try_echo=$ac_try;;
13457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13458 (eval "$ac_try") 2>&5
13460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461 (exit $ac_status); }; }; then
13462 ac_cv_search_ffi_call=$ac_res
13464 echo "$as_me: failed program was:" >&5
13465 sed 's/^/| /' conftest.$ac_ext >&5
13470 rm -f core conftest.err conftest.$ac_objext \
13472 if test "${ac_cv_search_ffi_call+set}" = set; then
13476 if test "${ac_cv_search_ffi_call+set}" = set; then
13479 ac_cv_search_ffi_call=no
13481 rm conftest.$ac_ext
13482 LIBS=$ac_func_search_save_LIBS
13484 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13485 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
13486 ac_res=$ac_cv_search_ffi_call
13487 if test "$ac_res" != no; then
13488 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13490 cat >>confdefs.h <<\_ACEOF
13491 #define HAVE_FFI_CALL 1
13495 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13496 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13497 { (exit 1); exit 1; }; }
13502 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13503 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13504 if test "${ac_cv_search_mallinfo+set}" = set; then
13505 echo $ECHO_N "(cached) $ECHO_C" >&6
13507 ac_func_search_save_LIBS=$LIBS
13508 cat >conftest.$ac_ext <<_ACEOF
13511 cat confdefs.h >>conftest.$ac_ext
13512 cat >>conftest.$ac_ext <<_ACEOF
13513 /* end confdefs.h. */
13515 /* Override any GCC internal prototype to avoid an error.
13516 Use char because int might match the return type of a GCC
13517 builtin and then its argument prototype would still apply. */
13525 return mallinfo ();
13530 for ac_lib in '' malloc; do
13531 if test -z "$ac_lib"; then
13532 ac_res="none required"
13535 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13537 rm -f conftest.$ac_objext conftest$ac_exeext
13538 if { (ac_try="$ac_link"
13539 case "(($ac_try" in
13540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13541 *) ac_try_echo=$ac_try;;
13543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13544 (eval "$ac_link") 2>conftest.er1
13546 grep -v '^ *+' conftest.er1 >conftest.err
13548 cat conftest.err >&5
13549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13550 (exit $ac_status); } &&
13551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13552 { (case "(($ac_try" in
13553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13554 *) ac_try_echo=$ac_try;;
13556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13557 (eval "$ac_try") 2>&5
13559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560 (exit $ac_status); }; } &&
13561 { ac_try='test -s conftest$ac_exeext'
13562 { (case "(($ac_try" in
13563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13564 *) ac_try_echo=$ac_try;;
13566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13567 (eval "$ac_try") 2>&5
13569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13570 (exit $ac_status); }; }; then
13571 ac_cv_search_mallinfo=$ac_res
13573 echo "$as_me: failed program was:" >&5
13574 sed 's/^/| /' conftest.$ac_ext >&5
13579 rm -f core conftest.err conftest.$ac_objext \
13581 if test "${ac_cv_search_mallinfo+set}" = set; then
13585 if test "${ac_cv_search_mallinfo+set}" = set; then
13588 ac_cv_search_mallinfo=no
13590 rm conftest.$ac_ext
13591 LIBS=$ac_func_search_save_LIBS
13593 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13594 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13595 ac_res=$ac_cv_search_mallinfo
13596 if test "$ac_res" != no; then
13597 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13599 cat >>confdefs.h <<\_ACEOF
13600 #define HAVE_MALLINFO 1
13606 if test "$ENABLE_THREADS" -eq 1 ; then
13608 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13609 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13610 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13611 echo $ECHO_N "(cached) $ECHO_C" >&6
13613 ac_check_lib_save_LIBS=$LIBS
13614 LIBS="-lpthread $LIBS"
13615 cat >conftest.$ac_ext <<_ACEOF
13618 cat confdefs.h >>conftest.$ac_ext
13619 cat >>conftest.$ac_ext <<_ACEOF
13620 /* end confdefs.h. */
13622 /* Override any GCC internal prototype to avoid an error.
13623 Use char because int might match the return type of a GCC
13624 builtin and then its argument prototype would still apply. */
13628 char pthread_mutex_init ();
13632 return pthread_mutex_init ();
13637 rm -f conftest.$ac_objext conftest$ac_exeext
13638 if { (ac_try="$ac_link"
13639 case "(($ac_try" in
13640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13641 *) ac_try_echo=$ac_try;;
13643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13644 (eval "$ac_link") 2>conftest.er1
13646 grep -v '^ *+' conftest.er1 >conftest.err
13648 cat conftest.err >&5
13649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650 (exit $ac_status); } &&
13651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13652 { (case "(($ac_try" in
13653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13654 *) ac_try_echo=$ac_try;;
13656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13657 (eval "$ac_try") 2>&5
13659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660 (exit $ac_status); }; } &&
13661 { ac_try='test -s conftest$ac_exeext'
13662 { (case "(($ac_try" in
13663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13664 *) ac_try_echo=$ac_try;;
13666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13667 (eval "$ac_try") 2>&5
13669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670 (exit $ac_status); }; }; then
13671 ac_cv_lib_pthread_pthread_mutex_init=yes
13673 echo "$as_me: failed program was:" >&5
13674 sed 's/^/| /' conftest.$ac_ext >&5
13676 ac_cv_lib_pthread_pthread_mutex_init=no
13679 rm -f core conftest.err conftest.$ac_objext \
13680 conftest$ac_exeext conftest.$ac_ext
13681 LIBS=$ac_check_lib_save_LIBS
13683 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13684 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13685 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13686 cat >>confdefs.h <<_ACEOF
13687 #define HAVE_LIBPTHREAD 1
13690 LIBS="-lpthread $LIBS"
13694 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13695 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13696 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13697 echo $ECHO_N "(cached) $ECHO_C" >&6
13699 ac_func_search_save_LIBS=$LIBS
13700 cat >conftest.$ac_ext <<_ACEOF
13703 cat confdefs.h >>conftest.$ac_ext
13704 cat >>conftest.$ac_ext <<_ACEOF
13705 /* end confdefs.h. */
13707 /* Override any GCC internal prototype to avoid an error.
13708 Use char because int might match the return type of a GCC
13709 builtin and then its argument prototype would still apply. */
13713 char pthread_mutex_lock ();
13717 return pthread_mutex_lock ();
13722 for ac_lib in '' pthread; do
13723 if test -z "$ac_lib"; then
13724 ac_res="none required"
13727 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13729 rm -f conftest.$ac_objext conftest$ac_exeext
13730 if { (ac_try="$ac_link"
13731 case "(($ac_try" in
13732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13733 *) ac_try_echo=$ac_try;;
13735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13736 (eval "$ac_link") 2>conftest.er1
13738 grep -v '^ *+' conftest.er1 >conftest.err
13740 cat conftest.err >&5
13741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742 (exit $ac_status); } &&
13743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13744 { (case "(($ac_try" in
13745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13746 *) ac_try_echo=$ac_try;;
13748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13749 (eval "$ac_try") 2>&5
13751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752 (exit $ac_status); }; } &&
13753 { ac_try='test -s conftest$ac_exeext'
13754 { (case "(($ac_try" in
13755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13756 *) ac_try_echo=$ac_try;;
13758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13759 (eval "$ac_try") 2>&5
13761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13762 (exit $ac_status); }; }; then
13763 ac_cv_search_pthread_mutex_lock=$ac_res
13765 echo "$as_me: failed program was:" >&5
13766 sed 's/^/| /' conftest.$ac_ext >&5
13771 rm -f core conftest.err conftest.$ac_objext \
13773 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13777 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13780 ac_cv_search_pthread_mutex_lock=no
13782 rm conftest.$ac_ext
13783 LIBS=$ac_func_search_save_LIBS
13785 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13786 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13787 ac_res=$ac_cv_search_pthread_mutex_lock
13788 if test "$ac_res" != no; then
13789 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13791 cat >>confdefs.h <<\_ACEOF
13792 #define HAVE_PTHREAD_MUTEX_LOCK 1
13797 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13798 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13799 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13800 echo $ECHO_N "(cached) $ECHO_C" >&6
13802 ac_func_search_save_LIBS=$LIBS
13803 cat >conftest.$ac_ext <<_ACEOF
13806 cat confdefs.h >>conftest.$ac_ext
13807 cat >>conftest.$ac_ext <<_ACEOF
13808 /* end confdefs.h. */
13810 /* Override any GCC internal prototype to avoid an error.
13811 Use char because int might match the return type of a GCC
13812 builtin and then its argument prototype would still apply. */
13816 char pthread_rwlock_init ();
13820 return pthread_rwlock_init ();
13825 for ac_lib in '' pthread; do
13826 if test -z "$ac_lib"; then
13827 ac_res="none required"
13830 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13832 rm -f conftest.$ac_objext conftest$ac_exeext
13833 if { (ac_try="$ac_link"
13834 case "(($ac_try" in
13835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13836 *) ac_try_echo=$ac_try;;
13838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13839 (eval "$ac_link") 2>conftest.er1
13841 grep -v '^ *+' conftest.er1 >conftest.err
13843 cat conftest.err >&5
13844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13845 (exit $ac_status); } &&
13846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13847 { (case "(($ac_try" in
13848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13849 *) ac_try_echo=$ac_try;;
13851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13852 (eval "$ac_try") 2>&5
13854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13855 (exit $ac_status); }; } &&
13856 { ac_try='test -s conftest$ac_exeext'
13857 { (case "(($ac_try" in
13858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13859 *) ac_try_echo=$ac_try;;
13861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13862 (eval "$ac_try") 2>&5
13864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13865 (exit $ac_status); }; }; then
13866 ac_cv_search_pthread_rwlock_init=$ac_res
13868 echo "$as_me: failed program was:" >&5
13869 sed 's/^/| /' conftest.$ac_ext >&5
13874 rm -f core conftest.err conftest.$ac_objext \
13876 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13880 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13883 ac_cv_search_pthread_rwlock_init=no
13885 rm conftest.$ac_ext
13886 LIBS=$ac_func_search_save_LIBS
13888 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13889 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13890 ac_res=$ac_cv_search_pthread_rwlock_init
13891 if test "$ac_res" != no; then
13892 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13894 cat >>confdefs.h <<\_ACEOF
13895 #define HAVE_PTHREAD_RWLOCK_INIT 1
13900 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13901 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13902 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13903 echo $ECHO_N "(cached) $ECHO_C" >&6
13905 ac_func_search_save_LIBS=$LIBS
13906 cat >conftest.$ac_ext <<_ACEOF
13909 cat confdefs.h >>conftest.$ac_ext
13910 cat >>conftest.$ac_ext <<_ACEOF
13911 /* end confdefs.h. */
13913 /* Override any GCC internal prototype to avoid an error.
13914 Use char because int might match the return type of a GCC
13915 builtin and then its argument prototype would still apply. */
13919 char pthread_getspecific ();
13923 return pthread_getspecific ();
13928 for ac_lib in '' pthread; do
13929 if test -z "$ac_lib"; then
13930 ac_res="none required"
13933 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13935 rm -f conftest.$ac_objext conftest$ac_exeext
13936 if { (ac_try="$ac_link"
13937 case "(($ac_try" in
13938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13939 *) ac_try_echo=$ac_try;;
13941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13942 (eval "$ac_link") 2>conftest.er1
13944 grep -v '^ *+' conftest.er1 >conftest.err
13946 cat conftest.err >&5
13947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13948 (exit $ac_status); } &&
13949 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13950 { (case "(($ac_try" in
13951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13952 *) ac_try_echo=$ac_try;;
13954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13955 (eval "$ac_try") 2>&5
13957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958 (exit $ac_status); }; } &&
13959 { ac_try='test -s conftest$ac_exeext'
13960 { (case "(($ac_try" in
13961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13962 *) ac_try_echo=$ac_try;;
13964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13965 (eval "$ac_try") 2>&5
13967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13968 (exit $ac_status); }; }; then
13969 ac_cv_search_pthread_getspecific=$ac_res
13971 echo "$as_me: failed program was:" >&5
13972 sed 's/^/| /' conftest.$ac_ext >&5
13977 rm -f core conftest.err conftest.$ac_objext \
13979 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13983 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13986 ac_cv_search_pthread_getspecific=no
13988 rm conftest.$ac_ext
13989 LIBS=$ac_func_search_save_LIBS
13991 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13992 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13993 ac_res=$ac_cv_search_pthread_getspecific
13994 if test "$ac_res" != no; then
13995 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13997 cat >>confdefs.h <<\_ACEOF
13998 #define HAVE_PTHREAD_GETSPECIFIC 1
14006 # Check whether --with-udis86 was given.
14007 if test "${with_udis86+set}" = set; then
14008 withval=$with_udis86;
14013 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14016 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14017 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14018 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14019 echo $ECHO_N "(cached) $ECHO_C" >&6
14021 ac_check_lib_save_LIBS=$LIBS
14022 LIBS="-ludis86 $LIBS"
14023 cat >conftest.$ac_ext <<_ACEOF
14026 cat confdefs.h >>conftest.$ac_ext
14027 cat >>conftest.$ac_ext <<_ACEOF
14028 /* end confdefs.h. */
14030 /* Override any GCC internal prototype to avoid an error.
14031 Use char because int might match the return type of a GCC
14032 builtin and then its argument prototype would still apply. */
14045 rm -f conftest.$ac_objext conftest$ac_exeext
14046 if { (ac_try="$ac_link"
14047 case "(($ac_try" in
14048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14049 *) ac_try_echo=$ac_try;;
14051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14052 (eval "$ac_link") 2>conftest.er1
14054 grep -v '^ *+' conftest.er1 >conftest.err
14056 cat conftest.err >&5
14057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14058 (exit $ac_status); } &&
14059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14060 { (case "(($ac_try" in
14061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14062 *) ac_try_echo=$ac_try;;
14064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14065 (eval "$ac_try") 2>&5
14067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068 (exit $ac_status); }; } &&
14069 { ac_try='test -s conftest$ac_exeext'
14070 { (case "(($ac_try" in
14071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14072 *) ac_try_echo=$ac_try;;
14074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14075 (eval "$ac_try") 2>&5
14077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14078 (exit $ac_status); }; }; then
14079 ac_cv_lib_udis86_ud_init=yes
14081 echo "$as_me: failed program was:" >&5
14082 sed 's/^/| /' conftest.$ac_ext >&5
14084 ac_cv_lib_udis86_ud_init=no
14087 rm -f core conftest.err conftest.$ac_objext \
14088 conftest$ac_exeext conftest.$ac_ext
14089 LIBS=$ac_check_lib_save_LIBS
14091 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14092 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14093 if test $ac_cv_lib_udis86_ud_init = yes; then
14094 cat >>confdefs.h <<_ACEOF
14095 #define HAVE_LIBUDIS86 1
14098 LIBS="-ludis86 $LIBS"
14102 echo "Error! You need to have libudis86 around."
14114 cat >>confdefs.h <<_ACEOF
14115 #define USE_UDIS86 $USE_UDIS86
14120 # Check whether --with-oprofile was given.
14121 if test "${with_oprofile+set}" = set; then
14122 withval=$with_oprofile;
14126 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
14127 no) llvm_cv_oppath=
14130 *) llvm_cv_oppath="${withval}/lib/oprofile"
14131 CPPFLAGS="-I${withval}/include";;
14133 if test -n "$llvm_cv_oppath" ; then
14134 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
14135 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14136 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14137 if test "${ac_cv_search_bfd_init+set}" = set; then
14138 echo $ECHO_N "(cached) $ECHO_C" >&6
14140 ac_func_search_save_LIBS=$LIBS
14141 cat >conftest.$ac_ext <<_ACEOF
14144 cat confdefs.h >>conftest.$ac_ext
14145 cat >>conftest.$ac_ext <<_ACEOF
14146 /* end confdefs.h. */
14148 /* Override any GCC internal prototype to avoid an error.
14149 Use char because int might match the return type of a GCC
14150 builtin and then its argument prototype would still apply. */
14158 return bfd_init ();
14163 for ac_lib in '' bfd; do
14164 if test -z "$ac_lib"; then
14165 ac_res="none required"
14168 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14170 rm -f conftest.$ac_objext conftest$ac_exeext
14171 if { (ac_try="$ac_link"
14172 case "(($ac_try" in
14173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14174 *) ac_try_echo=$ac_try;;
14176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14177 (eval "$ac_link") 2>conftest.er1
14179 grep -v '^ *+' conftest.er1 >conftest.err
14181 cat conftest.err >&5
14182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14183 (exit $ac_status); } &&
14184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14185 { (case "(($ac_try" in
14186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14187 *) ac_try_echo=$ac_try;;
14189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14190 (eval "$ac_try") 2>&5
14192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14193 (exit $ac_status); }; } &&
14194 { ac_try='test -s conftest$ac_exeext'
14195 { (case "(($ac_try" in
14196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14197 *) ac_try_echo=$ac_try;;
14199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14200 (eval "$ac_try") 2>&5
14202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14203 (exit $ac_status); }; }; then
14204 ac_cv_search_bfd_init=$ac_res
14206 echo "$as_me: failed program was:" >&5
14207 sed 's/^/| /' conftest.$ac_ext >&5
14212 rm -f core conftest.err conftest.$ac_objext \
14214 if test "${ac_cv_search_bfd_init+set}" = set; then
14218 if test "${ac_cv_search_bfd_init+set}" = set; then
14221 ac_cv_search_bfd_init=no
14223 rm conftest.$ac_ext
14224 LIBS=$ac_func_search_save_LIBS
14226 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14227 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
14228 ac_res=$ac_cv_search_bfd_init
14229 if test "$ac_res" != no; then
14230 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14234 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14235 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14236 if test "${ac_cv_search_op_open_agent+set}" = set; then
14237 echo $ECHO_N "(cached) $ECHO_C" >&6
14239 ac_func_search_save_LIBS=$LIBS
14240 cat >conftest.$ac_ext <<_ACEOF
14243 cat confdefs.h >>conftest.$ac_ext
14244 cat >>conftest.$ac_ext <<_ACEOF
14245 /* end confdefs.h. */
14247 /* Override any GCC internal prototype to avoid an error.
14248 Use char because int might match the return type of a GCC
14249 builtin and then its argument prototype would still apply. */
14253 char op_open_agent ();
14257 return op_open_agent ();
14262 for ac_lib in '' opagent; do
14263 if test -z "$ac_lib"; then
14264 ac_res="none required"
14267 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14269 rm -f conftest.$ac_objext conftest$ac_exeext
14270 if { (ac_try="$ac_link"
14271 case "(($ac_try" in
14272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14273 *) ac_try_echo=$ac_try;;
14275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14276 (eval "$ac_link") 2>conftest.er1
14278 grep -v '^ *+' conftest.er1 >conftest.err
14280 cat conftest.err >&5
14281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14282 (exit $ac_status); } &&
14283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14284 { (case "(($ac_try" in
14285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14286 *) ac_try_echo=$ac_try;;
14288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14289 (eval "$ac_try") 2>&5
14291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292 (exit $ac_status); }; } &&
14293 { ac_try='test -s conftest$ac_exeext'
14294 { (case "(($ac_try" in
14295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14296 *) ac_try_echo=$ac_try;;
14298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14299 (eval "$ac_try") 2>&5
14301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14302 (exit $ac_status); }; }; then
14303 ac_cv_search_op_open_agent=$ac_res
14305 echo "$as_me: failed program was:" >&5
14306 sed 's/^/| /' conftest.$ac_ext >&5
14311 rm -f core conftest.err conftest.$ac_objext \
14313 if test "${ac_cv_search_op_open_agent+set}" = set; then
14317 if test "${ac_cv_search_op_open_agent+set}" = set; then
14320 ac_cv_search_op_open_agent=no
14322 rm conftest.$ac_ext
14323 LIBS=$ac_func_search_save_LIBS
14325 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14326 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
14327 ac_res=$ac_cv_search_op_open_agent
14328 if test "$ac_res" != no; then
14329 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14333 echo "Error! You need to have libopagent around."
14338 if test "${ac_cv_header_opagent_h+set}" = set; then
14339 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14340 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14341 if test "${ac_cv_header_opagent_h+set}" = set; then
14342 echo $ECHO_N "(cached) $ECHO_C" >&6
14344 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14345 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14347 # Is the header compilable?
14348 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
14349 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14350 cat >conftest.$ac_ext <<_ACEOF
14353 cat confdefs.h >>conftest.$ac_ext
14354 cat >>conftest.$ac_ext <<_ACEOF
14355 /* end confdefs.h. */
14356 $ac_includes_default
14357 #include <opagent.h>
14359 rm -f conftest.$ac_objext
14360 if { (ac_try="$ac_compile"
14361 case "(($ac_try" in
14362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14363 *) ac_try_echo=$ac_try;;
14365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14366 (eval "$ac_compile") 2>conftest.er1
14368 grep -v '^ *+' conftest.er1 >conftest.err
14370 cat conftest.err >&5
14371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14372 (exit $ac_status); } &&
14373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14374 { (case "(($ac_try" in
14375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14376 *) ac_try_echo=$ac_try;;
14378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14379 (eval "$ac_try") 2>&5
14381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14382 (exit $ac_status); }; } &&
14383 { ac_try='test -s conftest.$ac_objext'
14384 { (case "(($ac_try" in
14385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14386 *) ac_try_echo=$ac_try;;
14388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14389 (eval "$ac_try") 2>&5
14391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392 (exit $ac_status); }; }; then
14393 ac_header_compiler=yes
14395 echo "$as_me: failed program was:" >&5
14396 sed 's/^/| /' conftest.$ac_ext >&5
14398 ac_header_compiler=no
14401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14402 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14403 echo "${ECHO_T}$ac_header_compiler" >&6; }
14405 # Is the header present?
14406 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
14407 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14408 cat >conftest.$ac_ext <<_ACEOF
14411 cat confdefs.h >>conftest.$ac_ext
14412 cat >>conftest.$ac_ext <<_ACEOF
14413 /* end confdefs.h. */
14414 #include <opagent.h>
14416 if { (ac_try="$ac_cpp conftest.$ac_ext"
14417 case "(($ac_try" in
14418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14419 *) ac_try_echo=$ac_try;;
14421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14422 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14424 grep -v '^ *+' conftest.er1 >conftest.err
14426 cat conftest.err >&5
14427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14428 (exit $ac_status); } >/dev/null; then
14429 if test -s conftest.err; then
14430 ac_cpp_err=$ac_c_preproc_warn_flag
14431 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14438 if test -z "$ac_cpp_err"; then
14439 ac_header_preproc=yes
14441 echo "$as_me: failed program was:" >&5
14442 sed 's/^/| /' conftest.$ac_ext >&5
14444 ac_header_preproc=no
14447 rm -f conftest.err conftest.$ac_ext
14448 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14449 echo "${ECHO_T}$ac_header_preproc" >&6; }
14451 # So? What about this header?
14452 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14454 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14455 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14456 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14457 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14458 ac_header_preproc=yes
14461 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14462 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14463 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14464 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14465 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14466 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14467 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14468 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14469 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14470 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14471 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14472 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14474 ## ----------------------------------- ##
14475 ## Report this to llvmbugs@cs.uiuc.edu ##
14476 ## ----------------------------------- ##
14478 ) | sed "s/^/$as_me: WARNING: /" >&2
14481 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14482 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14483 if test "${ac_cv_header_opagent_h+set}" = set; then
14484 echo $ECHO_N "(cached) $ECHO_C" >&6
14486 ac_cv_header_opagent_h=$ac_header_preproc
14488 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14489 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14492 if test $ac_cv_header_opagent_h = yes; then
14496 echo "Error! You need to have opagent.h around."
14512 cat >>confdefs.h <<_ACEOF
14513 #define USE_OPROFILE $USE_OPROFILE
14523 ac_header_dirent=no
14524 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14525 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14526 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14527 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14528 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14529 echo $ECHO_N "(cached) $ECHO_C" >&6
14531 cat >conftest.$ac_ext <<_ACEOF
14534 cat confdefs.h >>conftest.$ac_ext
14535 cat >>conftest.$ac_ext <<_ACEOF
14536 /* end confdefs.h. */
14537 #include <sys/types.h>
14549 rm -f conftest.$ac_objext
14550 if { (ac_try="$ac_compile"
14551 case "(($ac_try" in
14552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14553 *) ac_try_echo=$ac_try;;
14555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14556 (eval "$ac_compile") 2>conftest.er1
14558 grep -v '^ *+' conftest.er1 >conftest.err
14560 cat conftest.err >&5
14561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14562 (exit $ac_status); } &&
14563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14564 { (case "(($ac_try" in
14565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14566 *) ac_try_echo=$ac_try;;
14568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14569 (eval "$ac_try") 2>&5
14571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572 (exit $ac_status); }; } &&
14573 { ac_try='test -s conftest.$ac_objext'
14574 { (case "(($ac_try" in
14575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14576 *) ac_try_echo=$ac_try;;
14578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14579 (eval "$ac_try") 2>&5
14581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14582 (exit $ac_status); }; }; then
14583 eval "$as_ac_Header=yes"
14585 echo "$as_me: failed program was:" >&5
14586 sed 's/^/| /' conftest.$ac_ext >&5
14588 eval "$as_ac_Header=no"
14591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14593 ac_res=`eval echo '${'$as_ac_Header'}'`
14594 { echo "$as_me:$LINENO: result: $ac_res" >&5
14595 echo "${ECHO_T}$ac_res" >&6; }
14596 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14597 cat >>confdefs.h <<_ACEOF
14598 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14601 ac_header_dirent=$ac_hdr; break
14605 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14606 if test $ac_header_dirent = dirent.h; then
14607 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14608 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14609 if test "${ac_cv_search_opendir+set}" = set; then
14610 echo $ECHO_N "(cached) $ECHO_C" >&6
14612 ac_func_search_save_LIBS=$LIBS
14613 cat >conftest.$ac_ext <<_ACEOF
14616 cat confdefs.h >>conftest.$ac_ext
14617 cat >>conftest.$ac_ext <<_ACEOF
14618 /* end confdefs.h. */
14620 /* Override any GCC internal prototype to avoid an error.
14621 Use char because int might match the return type of a GCC
14622 builtin and then its argument prototype would still apply. */
14635 for ac_lib in '' dir; do
14636 if test -z "$ac_lib"; then
14637 ac_res="none required"
14640 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14642 rm -f conftest.$ac_objext conftest$ac_exeext
14643 if { (ac_try="$ac_link"
14644 case "(($ac_try" in
14645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14646 *) ac_try_echo=$ac_try;;
14648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14649 (eval "$ac_link") 2>conftest.er1
14651 grep -v '^ *+' conftest.er1 >conftest.err
14653 cat conftest.err >&5
14654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14655 (exit $ac_status); } &&
14656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14657 { (case "(($ac_try" in
14658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14659 *) ac_try_echo=$ac_try;;
14661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14662 (eval "$ac_try") 2>&5
14664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14665 (exit $ac_status); }; } &&
14666 { ac_try='test -s conftest$ac_exeext'
14667 { (case "(($ac_try" in
14668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14669 *) ac_try_echo=$ac_try;;
14671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14672 (eval "$ac_try") 2>&5
14674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14675 (exit $ac_status); }; }; then
14676 ac_cv_search_opendir=$ac_res
14678 echo "$as_me: failed program was:" >&5
14679 sed 's/^/| /' conftest.$ac_ext >&5
14684 rm -f core conftest.err conftest.$ac_objext \
14686 if test "${ac_cv_search_opendir+set}" = set; then
14690 if test "${ac_cv_search_opendir+set}" = set; then
14693 ac_cv_search_opendir=no
14695 rm conftest.$ac_ext
14696 LIBS=$ac_func_search_save_LIBS
14698 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14699 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14700 ac_res=$ac_cv_search_opendir
14701 if test "$ac_res" != no; then
14702 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14707 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14708 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14709 if test "${ac_cv_search_opendir+set}" = set; then
14710 echo $ECHO_N "(cached) $ECHO_C" >&6
14712 ac_func_search_save_LIBS=$LIBS
14713 cat >conftest.$ac_ext <<_ACEOF
14716 cat confdefs.h >>conftest.$ac_ext
14717 cat >>conftest.$ac_ext <<_ACEOF
14718 /* end confdefs.h. */
14720 /* Override any GCC internal prototype to avoid an error.
14721 Use char because int might match the return type of a GCC
14722 builtin and then its argument prototype would still apply. */
14735 for ac_lib in '' x; do
14736 if test -z "$ac_lib"; then
14737 ac_res="none required"
14740 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14742 rm -f conftest.$ac_objext conftest$ac_exeext
14743 if { (ac_try="$ac_link"
14744 case "(($ac_try" in
14745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14746 *) ac_try_echo=$ac_try;;
14748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14749 (eval "$ac_link") 2>conftest.er1
14751 grep -v '^ *+' conftest.er1 >conftest.err
14753 cat conftest.err >&5
14754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14755 (exit $ac_status); } &&
14756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14757 { (case "(($ac_try" in
14758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14759 *) ac_try_echo=$ac_try;;
14761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14762 (eval "$ac_try") 2>&5
14764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14765 (exit $ac_status); }; } &&
14766 { ac_try='test -s conftest$ac_exeext'
14767 { (case "(($ac_try" in
14768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14769 *) ac_try_echo=$ac_try;;
14771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14772 (eval "$ac_try") 2>&5
14774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14775 (exit $ac_status); }; }; then
14776 ac_cv_search_opendir=$ac_res
14778 echo "$as_me: failed program was:" >&5
14779 sed 's/^/| /' conftest.$ac_ext >&5
14784 rm -f core conftest.err conftest.$ac_objext \
14786 if test "${ac_cv_search_opendir+set}" = set; then
14790 if test "${ac_cv_search_opendir+set}" = set; then
14793 ac_cv_search_opendir=no
14795 rm conftest.$ac_ext
14796 LIBS=$ac_func_search_save_LIBS
14798 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14799 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14800 ac_res=$ac_cv_search_opendir
14801 if test "$ac_res" != no; then
14802 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14808 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14809 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14810 if test "${ac_cv_header_mmap_anon+set}" = set; then
14811 echo $ECHO_N "(cached) $ECHO_C" >&6
14814 ac_cpp='$CPP $CPPFLAGS'
14815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14819 cat >conftest.$ac_ext <<_ACEOF
14822 cat confdefs.h >>conftest.$ac_ext
14823 cat >>conftest.$ac_ext <<_ACEOF
14824 /* end confdefs.h. */
14825 #include <sys/mman.h>
14826 #include <unistd.h>
14831 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14836 rm -f conftest.$ac_objext
14837 if { (ac_try="$ac_compile"
14838 case "(($ac_try" in
14839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14840 *) ac_try_echo=$ac_try;;
14842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14843 (eval "$ac_compile") 2>conftest.er1
14845 grep -v '^ *+' conftest.er1 >conftest.err
14847 cat conftest.err >&5
14848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14849 (exit $ac_status); } &&
14850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14851 { (case "(($ac_try" in
14852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14853 *) ac_try_echo=$ac_try;;
14855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14856 (eval "$ac_try") 2>&5
14858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14859 (exit $ac_status); }; } &&
14860 { ac_try='test -s conftest.$ac_objext'
14861 { (case "(($ac_try" in
14862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14863 *) ac_try_echo=$ac_try;;
14865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14866 (eval "$ac_try") 2>&5
14868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14869 (exit $ac_status); }; }; then
14870 ac_cv_header_mmap_anon=yes
14872 echo "$as_me: failed program was:" >&5
14873 sed 's/^/| /' conftest.$ac_ext >&5
14875 ac_cv_header_mmap_anon=no
14878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14880 ac_cpp='$CPP $CPPFLAGS'
14881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14887 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14888 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14889 if test "$ac_cv_header_mmap_anon" = yes; then
14891 cat >>confdefs.h <<\_ACEOF
14892 #define HAVE_MMAP_ANONYMOUS 1
14897 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14898 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14899 if test "${ac_cv_header_stat_broken+set}" = set; then
14900 echo $ECHO_N "(cached) $ECHO_C" >&6
14902 cat >conftest.$ac_ext <<_ACEOF
14905 cat confdefs.h >>conftest.$ac_ext
14906 cat >>conftest.$ac_ext <<_ACEOF
14907 /* end confdefs.h. */
14908 #include <sys/types.h>
14909 #include <sys/stat.h>
14911 #if defined S_ISBLK && defined S_IFDIR
14912 # if S_ISBLK (S_IFDIR)
14917 #if defined S_ISBLK && defined S_IFCHR
14918 # if S_ISBLK (S_IFCHR)
14923 #if defined S_ISLNK && defined S_IFREG
14924 # if S_ISLNK (S_IFREG)
14929 #if defined S_ISSOCK && defined S_IFREG
14930 # if S_ISSOCK (S_IFREG)
14936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14937 $EGREP "You lose" >/dev/null 2>&1; then
14938 ac_cv_header_stat_broken=yes
14940 ac_cv_header_stat_broken=no
14945 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14946 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14947 if test $ac_cv_header_stat_broken = yes; then
14949 cat >>confdefs.h <<\_ACEOF
14950 #define STAT_MACROS_BROKEN 1
14955 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14956 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
14957 if test "${ac_cv_header_stdc+set}" = set; then
14958 echo $ECHO_N "(cached) $ECHO_C" >&6
14960 cat >conftest.$ac_ext <<_ACEOF
14963 cat confdefs.h >>conftest.$ac_ext
14964 cat >>conftest.$ac_ext <<_ACEOF
14965 /* end confdefs.h. */
14966 #include <stdlib.h>
14967 #include <stdarg.h>
14968 #include <string.h>
14979 rm -f conftest.$ac_objext
14980 if { (ac_try="$ac_compile"
14981 case "(($ac_try" in
14982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14983 *) ac_try_echo=$ac_try;;
14985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14986 (eval "$ac_compile") 2>conftest.er1
14988 grep -v '^ *+' conftest.er1 >conftest.err
14990 cat conftest.err >&5
14991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14992 (exit $ac_status); } &&
14993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14994 { (case "(($ac_try" in
14995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14996 *) ac_try_echo=$ac_try;;
14998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14999 (eval "$ac_try") 2>&5
15001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15002 (exit $ac_status); }; } &&
15003 { ac_try='test -s conftest.$ac_objext'
15004 { (case "(($ac_try" in
15005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15006 *) ac_try_echo=$ac_try;;
15008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15009 (eval "$ac_try") 2>&5
15011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15012 (exit $ac_status); }; }; then
15013 ac_cv_header_stdc=yes
15015 echo "$as_me: failed program was:" >&5
15016 sed 's/^/| /' conftest.$ac_ext >&5
15018 ac_cv_header_stdc=no
15021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15023 if test $ac_cv_header_stdc = yes; then
15024 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15025 cat >conftest.$ac_ext <<_ACEOF
15028 cat confdefs.h >>conftest.$ac_ext
15029 cat >>conftest.$ac_ext <<_ACEOF
15030 /* end confdefs.h. */
15031 #include <string.h>
15034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15035 $EGREP "memchr" >/dev/null 2>&1; then
15038 ac_cv_header_stdc=no
15044 if test $ac_cv_header_stdc = yes; then
15045 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15046 cat >conftest.$ac_ext <<_ACEOF
15049 cat confdefs.h >>conftest.$ac_ext
15050 cat >>conftest.$ac_ext <<_ACEOF
15051 /* end confdefs.h. */
15052 #include <stdlib.h>
15055 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15056 $EGREP "free" >/dev/null 2>&1; then
15059 ac_cv_header_stdc=no
15065 if test $ac_cv_header_stdc = yes; then
15066 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15067 if test "$cross_compiling" = yes; then
15070 cat >conftest.$ac_ext <<_ACEOF
15073 cat confdefs.h >>conftest.$ac_ext
15074 cat >>conftest.$ac_ext <<_ACEOF
15075 /* end confdefs.h. */
15077 #include <stdlib.h>
15078 #if ((' ' & 0x0FF) == 0x020)
15079 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15080 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15082 # define ISLOWER(c) \
15083 (('a' <= (c) && (c) <= 'i') \
15084 || ('j' <= (c) && (c) <= 'r') \
15085 || ('s' <= (c) && (c) <= 'z'))
15086 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15089 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15094 for (i = 0; i < 256; i++)
15095 if (XOR (islower (i), ISLOWER (i))
15096 || toupper (i) != TOUPPER (i))
15101 rm -f conftest$ac_exeext
15102 if { (ac_try="$ac_link"
15103 case "(($ac_try" in
15104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15105 *) ac_try_echo=$ac_try;;
15107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15108 (eval "$ac_link") 2>&5
15110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15112 { (case "(($ac_try" in
15113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15114 *) ac_try_echo=$ac_try;;
15116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15117 (eval "$ac_try") 2>&5
15119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120 (exit $ac_status); }; }; then
15123 echo "$as_me: program exited with status $ac_status" >&5
15124 echo "$as_me: failed program was:" >&5
15125 sed 's/^/| /' conftest.$ac_ext >&5
15127 ( exit $ac_status )
15128 ac_cv_header_stdc=no
15130 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15136 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15137 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15138 if test $ac_cv_header_stdc = yes; then
15140 cat >>confdefs.h <<\_ACEOF
15141 #define STDC_HEADERS 1
15146 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15147 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15148 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15149 echo $ECHO_N "(cached) $ECHO_C" >&6
15151 cat >conftest.$ac_ext <<_ACEOF
15154 cat confdefs.h >>conftest.$ac_ext
15155 cat >>conftest.$ac_ext <<_ACEOF
15156 /* end confdefs.h. */
15157 #include <sys/types.h>
15158 #include <sys/wait.h>
15159 #ifndef WEXITSTATUS
15160 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15163 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15171 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15176 rm -f conftest.$ac_objext
15177 if { (ac_try="$ac_compile"
15178 case "(($ac_try" in
15179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15180 *) ac_try_echo=$ac_try;;
15182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15183 (eval "$ac_compile") 2>conftest.er1
15185 grep -v '^ *+' conftest.er1 >conftest.err
15187 cat conftest.err >&5
15188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15189 (exit $ac_status); } &&
15190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15191 { (case "(($ac_try" in
15192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15193 *) ac_try_echo=$ac_try;;
15195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15196 (eval "$ac_try") 2>&5
15198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199 (exit $ac_status); }; } &&
15200 { ac_try='test -s conftest.$ac_objext'
15201 { (case "(($ac_try" in
15202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15203 *) ac_try_echo=$ac_try;;
15205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15206 (eval "$ac_try") 2>&5
15208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15209 (exit $ac_status); }; }; then
15210 ac_cv_header_sys_wait_h=yes
15212 echo "$as_me: failed program was:" >&5
15213 sed 's/^/| /' conftest.$ac_ext >&5
15215 ac_cv_header_sys_wait_h=no
15218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15220 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15221 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15222 if test $ac_cv_header_sys_wait_h = yes; then
15224 cat >>confdefs.h <<\_ACEOF
15225 #define HAVE_SYS_WAIT_H 1
15230 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15231 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15232 if test "${ac_cv_header_time+set}" = set; then
15233 echo $ECHO_N "(cached) $ECHO_C" >&6
15235 cat >conftest.$ac_ext <<_ACEOF
15238 cat confdefs.h >>conftest.$ac_ext
15239 cat >>conftest.$ac_ext <<_ACEOF
15240 /* end confdefs.h. */
15241 #include <sys/types.h>
15242 #include <sys/time.h>
15248 if ((struct tm *) 0)
15254 rm -f conftest.$ac_objext
15255 if { (ac_try="$ac_compile"
15256 case "(($ac_try" in
15257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15258 *) ac_try_echo=$ac_try;;
15260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15261 (eval "$ac_compile") 2>conftest.er1
15263 grep -v '^ *+' conftest.er1 >conftest.err
15265 cat conftest.err >&5
15266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267 (exit $ac_status); } &&
15268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15269 { (case "(($ac_try" in
15270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15271 *) ac_try_echo=$ac_try;;
15273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15274 (eval "$ac_try") 2>&5
15276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15277 (exit $ac_status); }; } &&
15278 { ac_try='test -s conftest.$ac_objext'
15279 { (case "(($ac_try" in
15280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15281 *) ac_try_echo=$ac_try;;
15283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15284 (eval "$ac_try") 2>&5
15286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15287 (exit $ac_status); }; }; then
15288 ac_cv_header_time=yes
15290 echo "$as_me: failed program was:" >&5
15291 sed 's/^/| /' conftest.$ac_ext >&5
15293 ac_cv_header_time=no
15296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15298 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15299 echo "${ECHO_T}$ac_cv_header_time" >&6; }
15300 if test $ac_cv_header_time = yes; then
15302 cat >>confdefs.h <<\_ACEOF
15303 #define TIME_WITH_SYS_TIME 1
15315 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15317 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15318 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15319 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15321 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15322 echo $ECHO_N "(cached) $ECHO_C" >&6
15324 ac_res=`eval echo '${'$as_ac_Header'}'`
15325 { echo "$as_me:$LINENO: result: $ac_res" >&5
15326 echo "${ECHO_T}$ac_res" >&6; }
15328 # Is the header compilable?
15329 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15330 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15331 cat >conftest.$ac_ext <<_ACEOF
15334 cat confdefs.h >>conftest.$ac_ext
15335 cat >>conftest.$ac_ext <<_ACEOF
15336 /* end confdefs.h. */
15337 $ac_includes_default
15338 #include <$ac_header>
15340 rm -f conftest.$ac_objext
15341 if { (ac_try="$ac_compile"
15342 case "(($ac_try" in
15343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15344 *) ac_try_echo=$ac_try;;
15346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15347 (eval "$ac_compile") 2>conftest.er1
15349 grep -v '^ *+' conftest.er1 >conftest.err
15351 cat conftest.err >&5
15352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15353 (exit $ac_status); } &&
15354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15355 { (case "(($ac_try" in
15356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15357 *) ac_try_echo=$ac_try;;
15359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15360 (eval "$ac_try") 2>&5
15362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15363 (exit $ac_status); }; } &&
15364 { ac_try='test -s conftest.$ac_objext'
15365 { (case "(($ac_try" in
15366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15367 *) ac_try_echo=$ac_try;;
15369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15370 (eval "$ac_try") 2>&5
15372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15373 (exit $ac_status); }; }; then
15374 ac_header_compiler=yes
15376 echo "$as_me: failed program was:" >&5
15377 sed 's/^/| /' conftest.$ac_ext >&5
15379 ac_header_compiler=no
15382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15383 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15384 echo "${ECHO_T}$ac_header_compiler" >&6; }
15386 # Is the header present?
15387 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15388 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15389 cat >conftest.$ac_ext <<_ACEOF
15392 cat confdefs.h >>conftest.$ac_ext
15393 cat >>conftest.$ac_ext <<_ACEOF
15394 /* end confdefs.h. */
15395 #include <$ac_header>
15397 if { (ac_try="$ac_cpp conftest.$ac_ext"
15398 case "(($ac_try" in
15399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15400 *) ac_try_echo=$ac_try;;
15402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15403 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15405 grep -v '^ *+' conftest.er1 >conftest.err
15407 cat conftest.err >&5
15408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15409 (exit $ac_status); } >/dev/null; then
15410 if test -s conftest.err; then
15411 ac_cpp_err=$ac_c_preproc_warn_flag
15412 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15419 if test -z "$ac_cpp_err"; then
15420 ac_header_preproc=yes
15422 echo "$as_me: failed program was:" >&5
15423 sed 's/^/| /' conftest.$ac_ext >&5
15425 ac_header_preproc=no
15428 rm -f conftest.err conftest.$ac_ext
15429 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15430 echo "${ECHO_T}$ac_header_preproc" >&6; }
15432 # So? What about this header?
15433 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15435 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15436 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15437 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15438 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15439 ac_header_preproc=yes
15442 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15443 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15444 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15445 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15446 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15447 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15448 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15449 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15451 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15452 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15453 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15455 ## ----------------------------------- ##
15456 ## Report this to llvmbugs@cs.uiuc.edu ##
15457 ## ----------------------------------- ##
15459 ) | sed "s/^/$as_me: WARNING: /" >&2
15462 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15463 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15464 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15465 echo $ECHO_N "(cached) $ECHO_C" >&6
15467 eval "$as_ac_Header=\$ac_header_preproc"
15469 ac_res=`eval echo '${'$as_ac_Header'}'`
15470 { echo "$as_me:$LINENO: result: $ac_res" >&5
15471 echo "${ECHO_T}$ac_res" >&6; }
15474 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15475 cat >>confdefs.h <<_ACEOF
15476 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15489 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15491 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15492 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15493 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15495 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15496 echo $ECHO_N "(cached) $ECHO_C" >&6
15498 ac_res=`eval echo '${'$as_ac_Header'}'`
15499 { echo "$as_me:$LINENO: result: $ac_res" >&5
15500 echo "${ECHO_T}$ac_res" >&6; }
15502 # Is the header compilable?
15503 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15504 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15505 cat >conftest.$ac_ext <<_ACEOF
15508 cat confdefs.h >>conftest.$ac_ext
15509 cat >>conftest.$ac_ext <<_ACEOF
15510 /* end confdefs.h. */
15511 $ac_includes_default
15512 #include <$ac_header>
15514 rm -f conftest.$ac_objext
15515 if { (ac_try="$ac_compile"
15516 case "(($ac_try" in
15517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15518 *) ac_try_echo=$ac_try;;
15520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15521 (eval "$ac_compile") 2>conftest.er1
15523 grep -v '^ *+' conftest.er1 >conftest.err
15525 cat conftest.err >&5
15526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15527 (exit $ac_status); } &&
15528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15529 { (case "(($ac_try" in
15530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15531 *) ac_try_echo=$ac_try;;
15533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15534 (eval "$ac_try") 2>&5
15536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15537 (exit $ac_status); }; } &&
15538 { ac_try='test -s conftest.$ac_objext'
15539 { (case "(($ac_try" in
15540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15541 *) ac_try_echo=$ac_try;;
15543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15544 (eval "$ac_try") 2>&5
15546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547 (exit $ac_status); }; }; then
15548 ac_header_compiler=yes
15550 echo "$as_me: failed program was:" >&5
15551 sed 's/^/| /' conftest.$ac_ext >&5
15553 ac_header_compiler=no
15556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15557 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15558 echo "${ECHO_T}$ac_header_compiler" >&6; }
15560 # Is the header present?
15561 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15562 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15563 cat >conftest.$ac_ext <<_ACEOF
15566 cat confdefs.h >>conftest.$ac_ext
15567 cat >>conftest.$ac_ext <<_ACEOF
15568 /* end confdefs.h. */
15569 #include <$ac_header>
15571 if { (ac_try="$ac_cpp conftest.$ac_ext"
15572 case "(($ac_try" in
15573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15574 *) ac_try_echo=$ac_try;;
15576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15577 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15579 grep -v '^ *+' conftest.er1 >conftest.err
15581 cat conftest.err >&5
15582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583 (exit $ac_status); } >/dev/null; then
15584 if test -s conftest.err; then
15585 ac_cpp_err=$ac_c_preproc_warn_flag
15586 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15593 if test -z "$ac_cpp_err"; then
15594 ac_header_preproc=yes
15596 echo "$as_me: failed program was:" >&5
15597 sed 's/^/| /' conftest.$ac_ext >&5
15599 ac_header_preproc=no
15602 rm -f conftest.err conftest.$ac_ext
15603 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15604 echo "${ECHO_T}$ac_header_preproc" >&6; }
15606 # So? What about this header?
15607 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15609 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15610 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15611 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15612 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15613 ac_header_preproc=yes
15616 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15617 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15618 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15619 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15620 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15621 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15622 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15623 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15624 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15625 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15626 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15627 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15629 ## ----------------------------------- ##
15630 ## Report this to llvmbugs@cs.uiuc.edu ##
15631 ## ----------------------------------- ##
15633 ) | sed "s/^/$as_me: WARNING: /" >&2
15636 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15638 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15639 echo $ECHO_N "(cached) $ECHO_C" >&6
15641 eval "$as_ac_Header=\$ac_header_preproc"
15643 ac_res=`eval echo '${'$as_ac_Header'}'`
15644 { echo "$as_me:$LINENO: result: $ac_res" >&5
15645 echo "${ECHO_T}$ac_res" >&6; }
15648 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15649 cat >>confdefs.h <<_ACEOF
15650 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15659 for ac_header in utime.h windows.h
15661 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15662 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15663 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15665 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15666 echo $ECHO_N "(cached) $ECHO_C" >&6
15668 ac_res=`eval echo '${'$as_ac_Header'}'`
15669 { echo "$as_me:$LINENO: result: $ac_res" >&5
15670 echo "${ECHO_T}$ac_res" >&6; }
15672 # Is the header compilable?
15673 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15674 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15675 cat >conftest.$ac_ext <<_ACEOF
15678 cat confdefs.h >>conftest.$ac_ext
15679 cat >>conftest.$ac_ext <<_ACEOF
15680 /* end confdefs.h. */
15681 $ac_includes_default
15682 #include <$ac_header>
15684 rm -f conftest.$ac_objext
15685 if { (ac_try="$ac_compile"
15686 case "(($ac_try" in
15687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15688 *) ac_try_echo=$ac_try;;
15690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15691 (eval "$ac_compile") 2>conftest.er1
15693 grep -v '^ *+' conftest.er1 >conftest.err
15695 cat conftest.err >&5
15696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697 (exit $ac_status); } &&
15698 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15699 { (case "(($ac_try" in
15700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15701 *) ac_try_echo=$ac_try;;
15703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15704 (eval "$ac_try") 2>&5
15706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15707 (exit $ac_status); }; } &&
15708 { ac_try='test -s conftest.$ac_objext'
15709 { (case "(($ac_try" in
15710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15711 *) ac_try_echo=$ac_try;;
15713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15714 (eval "$ac_try") 2>&5
15716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15717 (exit $ac_status); }; }; then
15718 ac_header_compiler=yes
15720 echo "$as_me: failed program was:" >&5
15721 sed 's/^/| /' conftest.$ac_ext >&5
15723 ac_header_compiler=no
15726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15727 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15728 echo "${ECHO_T}$ac_header_compiler" >&6; }
15730 # Is the header present?
15731 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15732 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15733 cat >conftest.$ac_ext <<_ACEOF
15736 cat confdefs.h >>conftest.$ac_ext
15737 cat >>conftest.$ac_ext <<_ACEOF
15738 /* end confdefs.h. */
15739 #include <$ac_header>
15741 if { (ac_try="$ac_cpp conftest.$ac_ext"
15742 case "(($ac_try" in
15743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15744 *) ac_try_echo=$ac_try;;
15746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15747 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15749 grep -v '^ *+' conftest.er1 >conftest.err
15751 cat conftest.err >&5
15752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15753 (exit $ac_status); } >/dev/null; then
15754 if test -s conftest.err; then
15755 ac_cpp_err=$ac_c_preproc_warn_flag
15756 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15763 if test -z "$ac_cpp_err"; then
15764 ac_header_preproc=yes
15766 echo "$as_me: failed program was:" >&5
15767 sed 's/^/| /' conftest.$ac_ext >&5
15769 ac_header_preproc=no
15772 rm -f conftest.err conftest.$ac_ext
15773 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15774 echo "${ECHO_T}$ac_header_preproc" >&6; }
15776 # So? What about this header?
15777 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15779 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15780 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15781 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15782 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15783 ac_header_preproc=yes
15786 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15787 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15788 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15789 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15790 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15791 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15792 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15793 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15794 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15795 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15796 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15797 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15799 ## ----------------------------------- ##
15800 ## Report this to llvmbugs@cs.uiuc.edu ##
15801 ## ----------------------------------- ##
15803 ) | sed "s/^/$as_me: WARNING: /" >&2
15806 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15807 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15808 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15809 echo $ECHO_N "(cached) $ECHO_C" >&6
15811 eval "$as_ac_Header=\$ac_header_preproc"
15813 ac_res=`eval echo '${'$as_ac_Header'}'`
15814 { echo "$as_me:$LINENO: result: $ac_res" >&5
15815 echo "${ECHO_T}$ac_res" >&6; }
15818 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15819 cat >>confdefs.h <<_ACEOF
15820 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15831 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
15833 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15834 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15835 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15837 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15838 echo $ECHO_N "(cached) $ECHO_C" >&6
15840 ac_res=`eval echo '${'$as_ac_Header'}'`
15841 { echo "$as_me:$LINENO: result: $ac_res" >&5
15842 echo "${ECHO_T}$ac_res" >&6; }
15844 # Is the header compilable?
15845 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15846 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15847 cat >conftest.$ac_ext <<_ACEOF
15850 cat confdefs.h >>conftest.$ac_ext
15851 cat >>conftest.$ac_ext <<_ACEOF
15852 /* end confdefs.h. */
15853 $ac_includes_default
15854 #include <$ac_header>
15856 rm -f conftest.$ac_objext
15857 if { (ac_try="$ac_compile"
15858 case "(($ac_try" in
15859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15860 *) ac_try_echo=$ac_try;;
15862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15863 (eval "$ac_compile") 2>conftest.er1
15865 grep -v '^ *+' conftest.er1 >conftest.err
15867 cat conftest.err >&5
15868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15869 (exit $ac_status); } &&
15870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15871 { (case "(($ac_try" in
15872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15873 *) ac_try_echo=$ac_try;;
15875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15876 (eval "$ac_try") 2>&5
15878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15879 (exit $ac_status); }; } &&
15880 { ac_try='test -s conftest.$ac_objext'
15881 { (case "(($ac_try" in
15882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15883 *) ac_try_echo=$ac_try;;
15885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15886 (eval "$ac_try") 2>&5
15888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15889 (exit $ac_status); }; }; then
15890 ac_header_compiler=yes
15892 echo "$as_me: failed program was:" >&5
15893 sed 's/^/| /' conftest.$ac_ext >&5
15895 ac_header_compiler=no
15898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15899 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15900 echo "${ECHO_T}$ac_header_compiler" >&6; }
15902 # Is the header present?
15903 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15904 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15905 cat >conftest.$ac_ext <<_ACEOF
15908 cat confdefs.h >>conftest.$ac_ext
15909 cat >>conftest.$ac_ext <<_ACEOF
15910 /* end confdefs.h. */
15911 #include <$ac_header>
15913 if { (ac_try="$ac_cpp conftest.$ac_ext"
15914 case "(($ac_try" in
15915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15916 *) ac_try_echo=$ac_try;;
15918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15919 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15921 grep -v '^ *+' conftest.er1 >conftest.err
15923 cat conftest.err >&5
15924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15925 (exit $ac_status); } >/dev/null; then
15926 if test -s conftest.err; then
15927 ac_cpp_err=$ac_c_preproc_warn_flag
15928 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15935 if test -z "$ac_cpp_err"; then
15936 ac_header_preproc=yes
15938 echo "$as_me: failed program was:" >&5
15939 sed 's/^/| /' conftest.$ac_ext >&5
15941 ac_header_preproc=no
15944 rm -f conftest.err conftest.$ac_ext
15945 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15946 echo "${ECHO_T}$ac_header_preproc" >&6; }
15948 # So? What about this header?
15949 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15951 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15952 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15953 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15954 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15955 ac_header_preproc=yes
15958 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15959 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15960 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15961 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15962 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15963 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15964 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15965 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15966 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15967 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15968 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15969 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15971 ## ----------------------------------- ##
15972 ## Report this to llvmbugs@cs.uiuc.edu ##
15973 ## ----------------------------------- ##
15975 ) | sed "s/^/$as_me: WARNING: /" >&2
15978 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15979 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15981 echo $ECHO_N "(cached) $ECHO_C" >&6
15983 eval "$as_ac_Header=\$ac_header_preproc"
15985 ac_res=`eval echo '${'$as_ac_Header'}'`
15986 { echo "$as_me:$LINENO: result: $ac_res" >&5
15987 echo "${ECHO_T}$ac_res" >&6; }
15990 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15991 cat >>confdefs.h <<_ACEOF
15992 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16003 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
16005 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16006 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16007 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16009 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16010 echo $ECHO_N "(cached) $ECHO_C" >&6
16012 ac_res=`eval echo '${'$as_ac_Header'}'`
16013 { echo "$as_me:$LINENO: result: $ac_res" >&5
16014 echo "${ECHO_T}$ac_res" >&6; }
16016 # Is the header compilable?
16017 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16018 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16019 cat >conftest.$ac_ext <<_ACEOF
16022 cat confdefs.h >>conftest.$ac_ext
16023 cat >>conftest.$ac_ext <<_ACEOF
16024 /* end confdefs.h. */
16025 $ac_includes_default
16026 #include <$ac_header>
16028 rm -f conftest.$ac_objext
16029 if { (ac_try="$ac_compile"
16030 case "(($ac_try" in
16031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16032 *) ac_try_echo=$ac_try;;
16034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16035 (eval "$ac_compile") 2>conftest.er1
16037 grep -v '^ *+' conftest.er1 >conftest.err
16039 cat conftest.err >&5
16040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16041 (exit $ac_status); } &&
16042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16043 { (case "(($ac_try" in
16044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16045 *) ac_try_echo=$ac_try;;
16047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16048 (eval "$ac_try") 2>&5
16050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051 (exit $ac_status); }; } &&
16052 { ac_try='test -s conftest.$ac_objext'
16053 { (case "(($ac_try" in
16054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16055 *) ac_try_echo=$ac_try;;
16057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16058 (eval "$ac_try") 2>&5
16060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16061 (exit $ac_status); }; }; then
16062 ac_header_compiler=yes
16064 echo "$as_me: failed program was:" >&5
16065 sed 's/^/| /' conftest.$ac_ext >&5
16067 ac_header_compiler=no
16070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16071 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16072 echo "${ECHO_T}$ac_header_compiler" >&6; }
16074 # Is the header present?
16075 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16076 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16077 cat >conftest.$ac_ext <<_ACEOF
16080 cat confdefs.h >>conftest.$ac_ext
16081 cat >>conftest.$ac_ext <<_ACEOF
16082 /* end confdefs.h. */
16083 #include <$ac_header>
16085 if { (ac_try="$ac_cpp conftest.$ac_ext"
16086 case "(($ac_try" in
16087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16088 *) ac_try_echo=$ac_try;;
16090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16091 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16093 grep -v '^ *+' conftest.er1 >conftest.err
16095 cat conftest.err >&5
16096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097 (exit $ac_status); } >/dev/null; then
16098 if test -s conftest.err; then
16099 ac_cpp_err=$ac_c_preproc_warn_flag
16100 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16107 if test -z "$ac_cpp_err"; then
16108 ac_header_preproc=yes
16110 echo "$as_me: failed program was:" >&5
16111 sed 's/^/| /' conftest.$ac_ext >&5
16113 ac_header_preproc=no
16116 rm -f conftest.err conftest.$ac_ext
16117 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16118 echo "${ECHO_T}$ac_header_preproc" >&6; }
16120 # So? What about this header?
16121 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16123 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16124 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16125 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16126 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16127 ac_header_preproc=yes
16130 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16131 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16132 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16133 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16134 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16135 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16136 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16137 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16138 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16139 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16140 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16141 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16143 ## ----------------------------------- ##
16144 ## Report this to llvmbugs@cs.uiuc.edu ##
16145 ## ----------------------------------- ##
16147 ) | sed "s/^/$as_me: WARNING: /" >&2
16150 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16153 echo $ECHO_N "(cached) $ECHO_C" >&6
16155 eval "$as_ac_Header=\$ac_header_preproc"
16157 ac_res=`eval echo '${'$as_ac_Header'}'`
16158 { echo "$as_me:$LINENO: result: $ac_res" >&5
16159 echo "${ECHO_T}$ac_res" >&6; }
16162 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16163 cat >>confdefs.h <<_ACEOF
16164 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16171 if test "$ENABLE_THREADS" -eq 1 ; then
16173 for ac_header in pthread.h
16175 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16176 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16177 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16178 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16179 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16180 echo $ECHO_N "(cached) $ECHO_C" >&6
16182 ac_res=`eval echo '${'$as_ac_Header'}'`
16183 { echo "$as_me:$LINENO: result: $ac_res" >&5
16184 echo "${ECHO_T}$ac_res" >&6; }
16186 # Is the header compilable?
16187 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16188 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16189 cat >conftest.$ac_ext <<_ACEOF
16192 cat confdefs.h >>conftest.$ac_ext
16193 cat >>conftest.$ac_ext <<_ACEOF
16194 /* end confdefs.h. */
16195 $ac_includes_default
16196 #include <$ac_header>
16198 rm -f conftest.$ac_objext
16199 if { (ac_try="$ac_compile"
16200 case "(($ac_try" in
16201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16202 *) ac_try_echo=$ac_try;;
16204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16205 (eval "$ac_compile") 2>conftest.er1
16207 grep -v '^ *+' conftest.er1 >conftest.err
16209 cat conftest.err >&5
16210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16211 (exit $ac_status); } &&
16212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16213 { (case "(($ac_try" in
16214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16215 *) ac_try_echo=$ac_try;;
16217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16218 (eval "$ac_try") 2>&5
16220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16221 (exit $ac_status); }; } &&
16222 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
16230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16231 (exit $ac_status); }; }; then
16232 ac_header_compiler=yes
16234 echo "$as_me: failed program was:" >&5
16235 sed 's/^/| /' conftest.$ac_ext >&5
16237 ac_header_compiler=no
16240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16241 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16242 echo "${ECHO_T}$ac_header_compiler" >&6; }
16244 # Is the header present?
16245 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16246 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16247 cat >conftest.$ac_ext <<_ACEOF
16250 cat confdefs.h >>conftest.$ac_ext
16251 cat >>conftest.$ac_ext <<_ACEOF
16252 /* end confdefs.h. */
16253 #include <$ac_header>
16255 if { (ac_try="$ac_cpp conftest.$ac_ext"
16256 case "(($ac_try" in
16257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16258 *) ac_try_echo=$ac_try;;
16260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16261 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16263 grep -v '^ *+' conftest.er1 >conftest.err
16265 cat conftest.err >&5
16266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16267 (exit $ac_status); } >/dev/null; then
16268 if test -s conftest.err; then
16269 ac_cpp_err=$ac_c_preproc_warn_flag
16270 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16277 if test -z "$ac_cpp_err"; then
16278 ac_header_preproc=yes
16280 echo "$as_me: failed program was:" >&5
16281 sed 's/^/| /' conftest.$ac_ext >&5
16283 ac_header_preproc=no
16286 rm -f conftest.err conftest.$ac_ext
16287 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16288 echo "${ECHO_T}$ac_header_preproc" >&6; }
16290 # So? What about this header?
16291 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16293 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16294 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16295 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16296 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16297 ac_header_preproc=yes
16300 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16301 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16302 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16303 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16304 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16305 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16306 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16307 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16308 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16309 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16310 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16311 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16313 ## ----------------------------------- ##
16314 ## Report this to llvmbugs@cs.uiuc.edu ##
16315 ## ----------------------------------- ##
16317 ) | sed "s/^/$as_me: WARNING: /" >&2
16320 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16321 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16322 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16323 echo $ECHO_N "(cached) $ECHO_C" >&6
16325 eval "$as_ac_Header=\$ac_header_preproc"
16327 ac_res=`eval echo '${'$as_ac_Header'}'`
16328 { echo "$as_me:$LINENO: result: $ac_res" >&5
16329 echo "${ECHO_T}$ac_res" >&6; }
16332 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16333 cat >>confdefs.h <<_ACEOF
16334 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16350 if test "$llvm_cv_enable_libffi" = "yes" ; then
16353 for ac_header in ffi.h ffi/ffi.h
16355 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16356 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16357 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16359 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16360 echo $ECHO_N "(cached) $ECHO_C" >&6
16362 ac_res=`eval echo '${'$as_ac_Header'}'`
16363 { echo "$as_me:$LINENO: result: $ac_res" >&5
16364 echo "${ECHO_T}$ac_res" >&6; }
16366 # Is the header compilable?
16367 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16368 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16369 cat >conftest.$ac_ext <<_ACEOF
16372 cat confdefs.h >>conftest.$ac_ext
16373 cat >>conftest.$ac_ext <<_ACEOF
16374 /* end confdefs.h. */
16375 $ac_includes_default
16376 #include <$ac_header>
16378 rm -f conftest.$ac_objext
16379 if { (ac_try="$ac_compile"
16380 case "(($ac_try" in
16381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16382 *) ac_try_echo=$ac_try;;
16384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16385 (eval "$ac_compile") 2>conftest.er1
16387 grep -v '^ *+' conftest.er1 >conftest.err
16389 cat conftest.err >&5
16390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391 (exit $ac_status); } &&
16392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16393 { (case "(($ac_try" in
16394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16395 *) ac_try_echo=$ac_try;;
16397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16398 (eval "$ac_try") 2>&5
16400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401 (exit $ac_status); }; } &&
16402 { ac_try='test -s conftest.$ac_objext'
16403 { (case "(($ac_try" in
16404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16405 *) ac_try_echo=$ac_try;;
16407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16408 (eval "$ac_try") 2>&5
16410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16411 (exit $ac_status); }; }; then
16412 ac_header_compiler=yes
16414 echo "$as_me: failed program was:" >&5
16415 sed 's/^/| /' conftest.$ac_ext >&5
16417 ac_header_compiler=no
16420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16421 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16422 echo "${ECHO_T}$ac_header_compiler" >&6; }
16424 # Is the header present?
16425 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16426 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16427 cat >conftest.$ac_ext <<_ACEOF
16430 cat confdefs.h >>conftest.$ac_ext
16431 cat >>conftest.$ac_ext <<_ACEOF
16432 /* end confdefs.h. */
16433 #include <$ac_header>
16435 if { (ac_try="$ac_cpp conftest.$ac_ext"
16436 case "(($ac_try" in
16437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16438 *) ac_try_echo=$ac_try;;
16440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16441 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16443 grep -v '^ *+' conftest.er1 >conftest.err
16445 cat conftest.err >&5
16446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16447 (exit $ac_status); } >/dev/null; then
16448 if test -s conftest.err; then
16449 ac_cpp_err=$ac_c_preproc_warn_flag
16450 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16457 if test -z "$ac_cpp_err"; then
16458 ac_header_preproc=yes
16460 echo "$as_me: failed program was:" >&5
16461 sed 's/^/| /' conftest.$ac_ext >&5
16463 ac_header_preproc=no
16466 rm -f conftest.err conftest.$ac_ext
16467 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16468 echo "${ECHO_T}$ac_header_preproc" >&6; }
16470 # So? What about this header?
16471 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16473 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16474 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16475 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16476 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16477 ac_header_preproc=yes
16480 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16481 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16482 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16483 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16484 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16485 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16486 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16487 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16488 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16489 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16490 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16491 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16493 ## ----------------------------------- ##
16494 ## Report this to llvmbugs@cs.uiuc.edu ##
16495 ## ----------------------------------- ##
16497 ) | sed "s/^/$as_me: WARNING: /" >&2
16500 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16501 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16502 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16503 echo $ECHO_N "(cached) $ECHO_C" >&6
16505 eval "$as_ac_Header=\$ac_header_preproc"
16507 ac_res=`eval echo '${'$as_ac_Header'}'`
16508 { echo "$as_me:$LINENO: result: $ac_res" >&5
16509 echo "${ECHO_T}$ac_res" >&6; }
16512 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16513 cat >>confdefs.h <<_ACEOF
16514 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16526 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16527 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16528 if test "${ac_cv_huge_val_sanity+set}" = set; then
16529 echo $ECHO_N "(cached) $ECHO_C" >&6
16533 ac_cpp='$CXXCPP $CPPFLAGS'
16534 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16535 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16536 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16539 if test "$cross_compiling" = yes; then
16540 ac_cv_huge_val_sanity=yes
16542 cat >conftest.$ac_ext <<_ACEOF
16545 cat confdefs.h >>conftest.$ac_ext
16546 cat >>conftest.$ac_ext <<_ACEOF
16547 /* end confdefs.h. */
16552 double x = HUGE_VAL; return x != x;
16557 rm -f conftest$ac_exeext
16558 if { (ac_try="$ac_link"
16559 case "(($ac_try" in
16560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16561 *) ac_try_echo=$ac_try;;
16563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16564 (eval "$ac_link") 2>&5
16566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16567 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16568 { (case "(($ac_try" in
16569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16570 *) ac_try_echo=$ac_try;;
16572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16573 (eval "$ac_try") 2>&5
16575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16576 (exit $ac_status); }; }; then
16577 ac_cv_huge_val_sanity=yes
16579 echo "$as_me: program exited with status $ac_status" >&5
16580 echo "$as_me: failed program was:" >&5
16581 sed 's/^/| /' conftest.$ac_ext >&5
16583 ( exit $ac_status )
16584 ac_cv_huge_val_sanity=no
16586 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16591 ac_cpp='$CPP $CPPFLAGS'
16592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16598 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16599 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16600 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16603 { echo "$as_me:$LINENO: checking for pid_t" >&5
16604 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16605 if test "${ac_cv_type_pid_t+set}" = set; then
16606 echo $ECHO_N "(cached) $ECHO_C" >&6
16608 cat >conftest.$ac_ext <<_ACEOF
16611 cat confdefs.h >>conftest.$ac_ext
16612 cat >>conftest.$ac_ext <<_ACEOF
16613 /* end confdefs.h. */
16614 $ac_includes_default
16615 typedef pid_t ac__type_new_;
16619 if ((ac__type_new_ *) 0)
16621 if (sizeof (ac__type_new_))
16627 rm -f conftest.$ac_objext
16628 if { (ac_try="$ac_compile"
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_compile") 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); } &&
16641 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16642 { (case "(($ac_try" in
16643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16644 *) ac_try_echo=$ac_try;;
16646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16647 (eval "$ac_try") 2>&5
16649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16650 (exit $ac_status); }; } &&
16651 { ac_try='test -s conftest.$ac_objext'
16652 { (case "(($ac_try" in
16653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16654 *) ac_try_echo=$ac_try;;
16656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16657 (eval "$ac_try") 2>&5
16659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16660 (exit $ac_status); }; }; then
16661 ac_cv_type_pid_t=yes
16663 echo "$as_me: failed program was:" >&5
16664 sed 's/^/| /' conftest.$ac_ext >&5
16666 ac_cv_type_pid_t=no
16669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16671 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16672 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16673 if test $ac_cv_type_pid_t = yes; then
16677 cat >>confdefs.h <<_ACEOF
16683 { echo "$as_me:$LINENO: checking for size_t" >&5
16684 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16685 if test "${ac_cv_type_size_t+set}" = set; then
16686 echo $ECHO_N "(cached) $ECHO_C" >&6
16688 cat >conftest.$ac_ext <<_ACEOF
16691 cat confdefs.h >>conftest.$ac_ext
16692 cat >>conftest.$ac_ext <<_ACEOF
16693 /* end confdefs.h. */
16694 $ac_includes_default
16695 typedef size_t ac__type_new_;
16699 if ((ac__type_new_ *) 0)
16701 if (sizeof (ac__type_new_))
16707 rm -f conftest.$ac_objext
16708 if { (ac_try="$ac_compile"
16709 case "(($ac_try" in
16710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16711 *) ac_try_echo=$ac_try;;
16713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16714 (eval "$ac_compile") 2>conftest.er1
16716 grep -v '^ *+' conftest.er1 >conftest.err
16718 cat conftest.err >&5
16719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720 (exit $ac_status); } &&
16721 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16722 { (case "(($ac_try" in
16723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16724 *) ac_try_echo=$ac_try;;
16726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16727 (eval "$ac_try") 2>&5
16729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16730 (exit $ac_status); }; } &&
16731 { ac_try='test -s conftest.$ac_objext'
16732 { (case "(($ac_try" in
16733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16734 *) ac_try_echo=$ac_try;;
16736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16737 (eval "$ac_try") 2>&5
16739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16740 (exit $ac_status); }; }; then
16741 ac_cv_type_size_t=yes
16743 echo "$as_me: failed program was:" >&5
16744 sed 's/^/| /' conftest.$ac_ext >&5
16746 ac_cv_type_size_t=no
16749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16751 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16752 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16753 if test $ac_cv_type_size_t = yes; then
16757 cat >>confdefs.h <<_ACEOF
16758 #define size_t unsigned int
16764 cat >>confdefs.h <<_ACEOF
16765 #define RETSIGTYPE void
16768 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16769 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16770 if test "${ac_cv_struct_tm+set}" = set; then
16771 echo $ECHO_N "(cached) $ECHO_C" >&6
16773 cat >conftest.$ac_ext <<_ACEOF
16776 cat confdefs.h >>conftest.$ac_ext
16777 cat >>conftest.$ac_ext <<_ACEOF
16778 /* end confdefs.h. */
16779 #include <sys/types.h>
16785 struct tm *tp; tp->tm_sec;
16790 rm -f conftest.$ac_objext
16791 if { (ac_try="$ac_compile"
16792 case "(($ac_try" in
16793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16794 *) ac_try_echo=$ac_try;;
16796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16797 (eval "$ac_compile") 2>conftest.er1
16799 grep -v '^ *+' conftest.er1 >conftest.err
16801 cat conftest.err >&5
16802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16803 (exit $ac_status); } &&
16804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16805 { (case "(($ac_try" in
16806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16807 *) ac_try_echo=$ac_try;;
16809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16810 (eval "$ac_try") 2>&5
16812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813 (exit $ac_status); }; } &&
16814 { ac_try='test -s conftest.$ac_objext'
16815 { (case "(($ac_try" in
16816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16817 *) ac_try_echo=$ac_try;;
16819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16820 (eval "$ac_try") 2>&5
16822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823 (exit $ac_status); }; }; then
16824 ac_cv_struct_tm=time.h
16826 echo "$as_me: failed program was:" >&5
16827 sed 's/^/| /' conftest.$ac_ext >&5
16829 ac_cv_struct_tm=sys/time.h
16832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16834 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16835 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16836 if test $ac_cv_struct_tm = sys/time.h; then
16838 cat >>confdefs.h <<\_ACEOF
16839 #define TM_IN_SYS_TIME 1
16844 { echo "$as_me:$LINENO: checking for int64_t" >&5
16845 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16846 if test "${ac_cv_type_int64_t+set}" = set; then
16847 echo $ECHO_N "(cached) $ECHO_C" >&6
16849 cat >conftest.$ac_ext <<_ACEOF
16852 cat confdefs.h >>conftest.$ac_ext
16853 cat >>conftest.$ac_ext <<_ACEOF
16854 /* end confdefs.h. */
16855 $ac_includes_default
16856 typedef int64_t ac__type_new_;
16860 if ((ac__type_new_ *) 0)
16862 if (sizeof (ac__type_new_))
16868 rm -f conftest.$ac_objext
16869 if { (ac_try="$ac_compile"
16870 case "(($ac_try" in
16871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16872 *) ac_try_echo=$ac_try;;
16874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16875 (eval "$ac_compile") 2>conftest.er1
16877 grep -v '^ *+' conftest.er1 >conftest.err
16879 cat conftest.err >&5
16880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16881 (exit $ac_status); } &&
16882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16883 { (case "(($ac_try" in
16884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16885 *) ac_try_echo=$ac_try;;
16887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16888 (eval "$ac_try") 2>&5
16890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16891 (exit $ac_status); }; } &&
16892 { ac_try='test -s conftest.$ac_objext'
16893 { (case "(($ac_try" in
16894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16895 *) ac_try_echo=$ac_try;;
16897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16898 (eval "$ac_try") 2>&5
16900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16901 (exit $ac_status); }; }; then
16902 ac_cv_type_int64_t=yes
16904 echo "$as_me: failed program was:" >&5
16905 sed 's/^/| /' conftest.$ac_ext >&5
16907 ac_cv_type_int64_t=no
16910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16912 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16913 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16914 if test $ac_cv_type_int64_t = yes; then
16916 cat >>confdefs.h <<_ACEOF
16917 #define HAVE_INT64_T 1
16922 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16923 echo "$as_me: error: Type int64_t required but not found" >&2;}
16924 { (exit 1); exit 1; }; }
16927 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16928 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16929 if test "${ac_cv_type_uint64_t+set}" = set; then
16930 echo $ECHO_N "(cached) $ECHO_C" >&6
16932 cat >conftest.$ac_ext <<_ACEOF
16935 cat confdefs.h >>conftest.$ac_ext
16936 cat >>conftest.$ac_ext <<_ACEOF
16937 /* end confdefs.h. */
16938 $ac_includes_default
16939 typedef uint64_t ac__type_new_;
16943 if ((ac__type_new_ *) 0)
16945 if (sizeof (ac__type_new_))
16951 rm -f conftest.$ac_objext
16952 if { (ac_try="$ac_compile"
16953 case "(($ac_try" in
16954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16955 *) ac_try_echo=$ac_try;;
16957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16958 (eval "$ac_compile") 2>conftest.er1
16960 grep -v '^ *+' conftest.er1 >conftest.err
16962 cat conftest.err >&5
16963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16964 (exit $ac_status); } &&
16965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16966 { (case "(($ac_try" in
16967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16968 *) ac_try_echo=$ac_try;;
16970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16971 (eval "$ac_try") 2>&5
16973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16974 (exit $ac_status); }; } &&
16975 { ac_try='test -s conftest.$ac_objext'
16976 { (case "(($ac_try" in
16977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16978 *) ac_try_echo=$ac_try;;
16980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16981 (eval "$ac_try") 2>&5
16983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16984 (exit $ac_status); }; }; then
16985 ac_cv_type_uint64_t=yes
16987 echo "$as_me: failed program was:" >&5
16988 sed 's/^/| /' conftest.$ac_ext >&5
16990 ac_cv_type_uint64_t=no
16993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16995 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16996 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16997 if test $ac_cv_type_uint64_t = yes; then
16999 cat >>confdefs.h <<_ACEOF
17000 #define HAVE_UINT64_T 1
17005 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17006 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17007 if test "${ac_cv_type_u_int64_t+set}" = set; then
17008 echo $ECHO_N "(cached) $ECHO_C" >&6
17010 cat >conftest.$ac_ext <<_ACEOF
17013 cat confdefs.h >>conftest.$ac_ext
17014 cat >>conftest.$ac_ext <<_ACEOF
17015 /* end confdefs.h. */
17016 $ac_includes_default
17017 typedef u_int64_t ac__type_new_;
17021 if ((ac__type_new_ *) 0)
17023 if (sizeof (ac__type_new_))
17029 rm -f conftest.$ac_objext
17030 if { (ac_try="$ac_compile"
17031 case "(($ac_try" in
17032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17033 *) ac_try_echo=$ac_try;;
17035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17036 (eval "$ac_compile") 2>conftest.er1
17038 grep -v '^ *+' conftest.er1 >conftest.err
17040 cat conftest.err >&5
17041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17042 (exit $ac_status); } &&
17043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17044 { (case "(($ac_try" in
17045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17046 *) ac_try_echo=$ac_try;;
17048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17049 (eval "$ac_try") 2>&5
17051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17052 (exit $ac_status); }; } &&
17053 { ac_try='test -s conftest.$ac_objext'
17054 { (case "(($ac_try" in
17055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17056 *) ac_try_echo=$ac_try;;
17058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17059 (eval "$ac_try") 2>&5
17061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17062 (exit $ac_status); }; }; then
17063 ac_cv_type_u_int64_t=yes
17065 echo "$as_me: failed program was:" >&5
17066 sed 's/^/| /' conftest.$ac_ext >&5
17068 ac_cv_type_u_int64_t=no
17071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17073 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17074 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17075 if test $ac_cv_type_u_int64_t = yes; then
17077 cat >>confdefs.h <<_ACEOF
17078 #define HAVE_U_INT64_T 1
17083 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17084 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17085 { (exit 1); exit 1; }; }
17099 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17101 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17102 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17103 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17104 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17105 echo $ECHO_N "(cached) $ECHO_C" >&6
17107 cat >conftest.$ac_ext <<_ACEOF
17110 cat confdefs.h >>conftest.$ac_ext
17111 cat >>conftest.$ac_ext <<_ACEOF
17112 /* end confdefs.h. */
17113 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17114 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17115 #define $ac_func innocuous_$ac_func
17117 /* System header to define __stub macros and hopefully few prototypes,
17118 which can conflict with char $ac_func (); below.
17119 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17120 <limits.h> exists even on freestanding compilers. */
17123 # include <limits.h>
17125 # include <assert.h>
17130 /* Override any GCC internal prototype to avoid an error.
17131 Use char because int might match the return type of a GCC
17132 builtin and then its argument prototype would still apply. */
17137 /* The GNU C library defines this for functions which it implements
17138 to always fail with ENOSYS. Some functions are actually named
17139 something starting with __ and the normal name is an alias. */
17140 #if defined __stub_$ac_func || defined __stub___$ac_func
17147 return $ac_func ();
17152 rm -f conftest.$ac_objext conftest$ac_exeext
17153 if { (ac_try="$ac_link"
17154 case "(($ac_try" in
17155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17156 *) ac_try_echo=$ac_try;;
17158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17159 (eval "$ac_link") 2>conftest.er1
17161 grep -v '^ *+' conftest.er1 >conftest.err
17163 cat conftest.err >&5
17164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17165 (exit $ac_status); } &&
17166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17167 { (case "(($ac_try" in
17168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17169 *) ac_try_echo=$ac_try;;
17171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17172 (eval "$ac_try") 2>&5
17174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17175 (exit $ac_status); }; } &&
17176 { ac_try='test -s conftest$ac_exeext'
17177 { (case "(($ac_try" in
17178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17179 *) ac_try_echo=$ac_try;;
17181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17182 (eval "$ac_try") 2>&5
17184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17185 (exit $ac_status); }; }; then
17186 eval "$as_ac_var=yes"
17188 echo "$as_me: failed program was:" >&5
17189 sed 's/^/| /' conftest.$ac_ext >&5
17191 eval "$as_ac_var=no"
17194 rm -f core conftest.err conftest.$ac_objext \
17195 conftest$ac_exeext conftest.$ac_ext
17197 ac_res=`eval echo '${'$as_ac_var'}'`
17198 { echo "$as_me:$LINENO: result: $ac_res" >&5
17199 echo "${ECHO_T}$ac_res" >&6; }
17200 if test `eval echo '${'$as_ac_var'}'` = yes; then
17201 cat >>confdefs.h <<_ACEOF
17202 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17212 for ac_func in powf fmodf strtof round
17214 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17215 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17216 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17217 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17218 echo $ECHO_N "(cached) $ECHO_C" >&6
17220 cat >conftest.$ac_ext <<_ACEOF
17223 cat confdefs.h >>conftest.$ac_ext
17224 cat >>conftest.$ac_ext <<_ACEOF
17225 /* end confdefs.h. */
17226 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17227 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17228 #define $ac_func innocuous_$ac_func
17230 /* System header to define __stub macros and hopefully few prototypes,
17231 which can conflict with char $ac_func (); below.
17232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17233 <limits.h> exists even on freestanding compilers. */
17236 # include <limits.h>
17238 # include <assert.h>
17243 /* Override any GCC internal prototype to avoid an error.
17244 Use char because int might match the return type of a GCC
17245 builtin and then its argument prototype would still apply. */
17250 /* The GNU C library defines this for functions which it implements
17251 to always fail with ENOSYS. Some functions are actually named
17252 something starting with __ and the normal name is an alias. */
17253 #if defined __stub_$ac_func || defined __stub___$ac_func
17260 return $ac_func ();
17265 rm -f conftest.$ac_objext conftest$ac_exeext
17266 if { (ac_try="$ac_link"
17267 case "(($ac_try" in
17268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17269 *) ac_try_echo=$ac_try;;
17271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17272 (eval "$ac_link") 2>conftest.er1
17274 grep -v '^ *+' conftest.er1 >conftest.err
17276 cat conftest.err >&5
17277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17278 (exit $ac_status); } &&
17279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17280 { (case "(($ac_try" in
17281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17282 *) ac_try_echo=$ac_try;;
17284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17285 (eval "$ac_try") 2>&5
17287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17288 (exit $ac_status); }; } &&
17289 { ac_try='test -s conftest$ac_exeext'
17290 { (case "(($ac_try" in
17291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17292 *) ac_try_echo=$ac_try;;
17294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17295 (eval "$ac_try") 2>&5
17297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17298 (exit $ac_status); }; }; then
17299 eval "$as_ac_var=yes"
17301 echo "$as_me: failed program was:" >&5
17302 sed 's/^/| /' conftest.$ac_ext >&5
17304 eval "$as_ac_var=no"
17307 rm -f core conftest.err conftest.$ac_objext \
17308 conftest$ac_exeext conftest.$ac_ext
17310 ac_res=`eval echo '${'$as_ac_var'}'`
17311 { echo "$as_me:$LINENO: result: $ac_res" >&5
17312 echo "${ECHO_T}$ac_res" >&6; }
17313 if test `eval echo '${'$as_ac_var'}'` = yes; then
17314 cat >>confdefs.h <<_ACEOF
17315 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17326 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17328 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17329 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17330 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17331 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17332 echo $ECHO_N "(cached) $ECHO_C" >&6
17334 cat >conftest.$ac_ext <<_ACEOF
17337 cat confdefs.h >>conftest.$ac_ext
17338 cat >>conftest.$ac_ext <<_ACEOF
17339 /* end confdefs.h. */
17340 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17341 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17342 #define $ac_func innocuous_$ac_func
17344 /* System header to define __stub macros and hopefully few prototypes,
17345 which can conflict with char $ac_func (); below.
17346 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17347 <limits.h> exists even on freestanding compilers. */
17350 # include <limits.h>
17352 # include <assert.h>
17357 /* Override any GCC internal prototype to avoid an error.
17358 Use char because int might match the return type of a GCC
17359 builtin and then its argument prototype would still apply. */
17364 /* The GNU C library defines this for functions which it implements
17365 to always fail with ENOSYS. Some functions are actually named
17366 something starting with __ and the normal name is an alias. */
17367 #if defined __stub_$ac_func || defined __stub___$ac_func
17374 return $ac_func ();
17379 rm -f conftest.$ac_objext conftest$ac_exeext
17380 if { (ac_try="$ac_link"
17381 case "(($ac_try" in
17382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17383 *) ac_try_echo=$ac_try;;
17385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17386 (eval "$ac_link") 2>conftest.er1
17388 grep -v '^ *+' conftest.er1 >conftest.err
17390 cat conftest.err >&5
17391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17392 (exit $ac_status); } &&
17393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17394 { (case "(($ac_try" in
17395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17396 *) ac_try_echo=$ac_try;;
17398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17399 (eval "$ac_try") 2>&5
17401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17402 (exit $ac_status); }; } &&
17403 { ac_try='test -s conftest$ac_exeext'
17404 { (case "(($ac_try" in
17405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17406 *) ac_try_echo=$ac_try;;
17408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17409 (eval "$ac_try") 2>&5
17411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17412 (exit $ac_status); }; }; then
17413 eval "$as_ac_var=yes"
17415 echo "$as_me: failed program was:" >&5
17416 sed 's/^/| /' conftest.$ac_ext >&5
17418 eval "$as_ac_var=no"
17421 rm -f core conftest.err conftest.$ac_objext \
17422 conftest$ac_exeext conftest.$ac_ext
17424 ac_res=`eval echo '${'$as_ac_var'}'`
17425 { echo "$as_me:$LINENO: result: $ac_res" >&5
17426 echo "${ECHO_T}$ac_res" >&6; }
17427 if test `eval echo '${'$as_ac_var'}'` = yes; then
17428 cat >>confdefs.h <<_ACEOF
17429 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17438 for ac_func in isatty mkdtemp mkstemp
17440 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17441 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17442 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17443 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17444 echo $ECHO_N "(cached) $ECHO_C" >&6
17446 cat >conftest.$ac_ext <<_ACEOF
17449 cat confdefs.h >>conftest.$ac_ext
17450 cat >>conftest.$ac_ext <<_ACEOF
17451 /* end confdefs.h. */
17452 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17453 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17454 #define $ac_func innocuous_$ac_func
17456 /* System header to define __stub macros and hopefully few prototypes,
17457 which can conflict with char $ac_func (); below.
17458 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17459 <limits.h> exists even on freestanding compilers. */
17462 # include <limits.h>
17464 # include <assert.h>
17469 /* Override any GCC internal prototype to avoid an error.
17470 Use char because int might match the return type of a GCC
17471 builtin and then its argument prototype would still apply. */
17476 /* The GNU C library defines this for functions which it implements
17477 to always fail with ENOSYS. Some functions are actually named
17478 something starting with __ and the normal name is an alias. */
17479 #if defined __stub_$ac_func || defined __stub___$ac_func
17486 return $ac_func ();
17491 rm -f conftest.$ac_objext conftest$ac_exeext
17492 if { (ac_try="$ac_link"
17493 case "(($ac_try" in
17494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17495 *) ac_try_echo=$ac_try;;
17497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17498 (eval "$ac_link") 2>conftest.er1
17500 grep -v '^ *+' conftest.er1 >conftest.err
17502 cat conftest.err >&5
17503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17504 (exit $ac_status); } &&
17505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17506 { (case "(($ac_try" in
17507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17508 *) ac_try_echo=$ac_try;;
17510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17511 (eval "$ac_try") 2>&5
17513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17514 (exit $ac_status); }; } &&
17515 { ac_try='test -s conftest$ac_exeext'
17516 { (case "(($ac_try" in
17517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17518 *) ac_try_echo=$ac_try;;
17520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17521 (eval "$ac_try") 2>&5
17523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17524 (exit $ac_status); }; }; then
17525 eval "$as_ac_var=yes"
17527 echo "$as_me: failed program was:" >&5
17528 sed 's/^/| /' conftest.$ac_ext >&5
17530 eval "$as_ac_var=no"
17533 rm -f core conftest.err conftest.$ac_objext \
17534 conftest$ac_exeext conftest.$ac_ext
17536 ac_res=`eval echo '${'$as_ac_var'}'`
17537 { echo "$as_me:$LINENO: result: $ac_res" >&5
17538 echo "${ECHO_T}$ac_res" >&6; }
17539 if test `eval echo '${'$as_ac_var'}'` = yes; then
17540 cat >>confdefs.h <<_ACEOF
17541 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17552 for ac_func in mktemp realpath sbrk setrlimit strdup
17554 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17555 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17556 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17557 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17558 echo $ECHO_N "(cached) $ECHO_C" >&6
17560 cat >conftest.$ac_ext <<_ACEOF
17563 cat confdefs.h >>conftest.$ac_ext
17564 cat >>conftest.$ac_ext <<_ACEOF
17565 /* end confdefs.h. */
17566 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17567 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17568 #define $ac_func innocuous_$ac_func
17570 /* System header to define __stub macros and hopefully few prototypes,
17571 which can conflict with char $ac_func (); below.
17572 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17573 <limits.h> exists even on freestanding compilers. */
17576 # include <limits.h>
17578 # include <assert.h>
17583 /* Override any GCC internal prototype to avoid an error.
17584 Use char because int might match the return type of a GCC
17585 builtin and then its argument prototype would still apply. */
17590 /* The GNU C library defines this for functions which it implements
17591 to always fail with ENOSYS. Some functions are actually named
17592 something starting with __ and the normal name is an alias. */
17593 #if defined __stub_$ac_func || defined __stub___$ac_func
17600 return $ac_func ();
17605 rm -f conftest.$ac_objext conftest$ac_exeext
17606 if { (ac_try="$ac_link"
17607 case "(($ac_try" in
17608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17609 *) ac_try_echo=$ac_try;;
17611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17612 (eval "$ac_link") 2>conftest.er1
17614 grep -v '^ *+' conftest.er1 >conftest.err
17616 cat conftest.err >&5
17617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17618 (exit $ac_status); } &&
17619 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17620 { (case "(($ac_try" in
17621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17622 *) ac_try_echo=$ac_try;;
17624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17625 (eval "$ac_try") 2>&5
17627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17628 (exit $ac_status); }; } &&
17629 { ac_try='test -s conftest$ac_exeext'
17630 { (case "(($ac_try" in
17631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17632 *) ac_try_echo=$ac_try;;
17634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17635 (eval "$ac_try") 2>&5
17637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17638 (exit $ac_status); }; }; then
17639 eval "$as_ac_var=yes"
17641 echo "$as_me: failed program was:" >&5
17642 sed 's/^/| /' conftest.$ac_ext >&5
17644 eval "$as_ac_var=no"
17647 rm -f core conftest.err conftest.$ac_objext \
17648 conftest$ac_exeext conftest.$ac_ext
17650 ac_res=`eval echo '${'$as_ac_var'}'`
17651 { echo "$as_me:$LINENO: result: $ac_res" >&5
17652 echo "${ECHO_T}$ac_res" >&6; }
17653 if test `eval echo '${'$as_ac_var'}'` = yes; then
17654 cat >>confdefs.h <<_ACEOF
17655 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17665 for ac_func in strerror strerror_r strerror_s setenv
17667 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17668 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17669 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17670 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17671 echo $ECHO_N "(cached) $ECHO_C" >&6
17673 cat >conftest.$ac_ext <<_ACEOF
17676 cat confdefs.h >>conftest.$ac_ext
17677 cat >>conftest.$ac_ext <<_ACEOF
17678 /* end confdefs.h. */
17679 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17680 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17681 #define $ac_func innocuous_$ac_func
17683 /* System header to define __stub macros and hopefully few prototypes,
17684 which can conflict with char $ac_func (); below.
17685 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17686 <limits.h> exists even on freestanding compilers. */
17689 # include <limits.h>
17691 # include <assert.h>
17696 /* Override any GCC internal prototype to avoid an error.
17697 Use char because int might match the return type of a GCC
17698 builtin and then its argument prototype would still apply. */
17703 /* The GNU C library defines this for functions which it implements
17704 to always fail with ENOSYS. Some functions are actually named
17705 something starting with __ and the normal name is an alias. */
17706 #if defined __stub_$ac_func || defined __stub___$ac_func
17713 return $ac_func ();
17718 rm -f conftest.$ac_objext conftest$ac_exeext
17719 if { (ac_try="$ac_link"
17720 case "(($ac_try" in
17721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17722 *) ac_try_echo=$ac_try;;
17724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17725 (eval "$ac_link") 2>conftest.er1
17727 grep -v '^ *+' conftest.er1 >conftest.err
17729 cat conftest.err >&5
17730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17731 (exit $ac_status); } &&
17732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17733 { (case "(($ac_try" in
17734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17735 *) ac_try_echo=$ac_try;;
17737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17738 (eval "$ac_try") 2>&5
17740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17741 (exit $ac_status); }; } &&
17742 { ac_try='test -s conftest$ac_exeext'
17743 { (case "(($ac_try" in
17744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17745 *) ac_try_echo=$ac_try;;
17747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17748 (eval "$ac_try") 2>&5
17750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751 (exit $ac_status); }; }; then
17752 eval "$as_ac_var=yes"
17754 echo "$as_me: failed program was:" >&5
17755 sed 's/^/| /' conftest.$ac_ext >&5
17757 eval "$as_ac_var=no"
17760 rm -f core conftest.err conftest.$ac_objext \
17761 conftest$ac_exeext conftest.$ac_ext
17763 ac_res=`eval echo '${'$as_ac_var'}'`
17764 { echo "$as_me:$LINENO: result: $ac_res" >&5
17765 echo "${ECHO_T}$ac_res" >&6; }
17766 if test `eval echo '${'$as_ac_var'}'` = yes; then
17767 cat >>confdefs.h <<_ACEOF
17768 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17778 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17780 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17781 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17782 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17783 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17784 echo $ECHO_N "(cached) $ECHO_C" >&6
17786 cat >conftest.$ac_ext <<_ACEOF
17789 cat confdefs.h >>conftest.$ac_ext
17790 cat >>conftest.$ac_ext <<_ACEOF
17791 /* end confdefs.h. */
17792 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17793 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17794 #define $ac_func innocuous_$ac_func
17796 /* System header to define __stub macros and hopefully few prototypes,
17797 which can conflict with char $ac_func (); below.
17798 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17799 <limits.h> exists even on freestanding compilers. */
17802 # include <limits.h>
17804 # include <assert.h>
17809 /* Override any GCC internal prototype to avoid an error.
17810 Use char because int might match the return type of a GCC
17811 builtin and then its argument prototype would still apply. */
17816 /* The GNU C library defines this for functions which it implements
17817 to always fail with ENOSYS. Some functions are actually named
17818 something starting with __ and the normal name is an alias. */
17819 #if defined __stub_$ac_func || defined __stub___$ac_func
17826 return $ac_func ();
17831 rm -f conftest.$ac_objext conftest$ac_exeext
17832 if { (ac_try="$ac_link"
17833 case "(($ac_try" in
17834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17835 *) ac_try_echo=$ac_try;;
17837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17838 (eval "$ac_link") 2>conftest.er1
17840 grep -v '^ *+' conftest.er1 >conftest.err
17842 cat conftest.err >&5
17843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17844 (exit $ac_status); } &&
17845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17846 { (case "(($ac_try" in
17847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17848 *) ac_try_echo=$ac_try;;
17850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17851 (eval "$ac_try") 2>&5
17853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854 (exit $ac_status); }; } &&
17855 { ac_try='test -s conftest$ac_exeext'
17856 { (case "(($ac_try" in
17857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17858 *) ac_try_echo=$ac_try;;
17860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17861 (eval "$ac_try") 2>&5
17863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864 (exit $ac_status); }; }; then
17865 eval "$as_ac_var=yes"
17867 echo "$as_me: failed program was:" >&5
17868 sed 's/^/| /' conftest.$ac_ext >&5
17870 eval "$as_ac_var=no"
17873 rm -f core conftest.err conftest.$ac_objext \
17874 conftest$ac_exeext conftest.$ac_ext
17876 ac_res=`eval echo '${'$as_ac_var'}'`
17877 { echo "$as_me:$LINENO: result: $ac_res" >&5
17878 echo "${ECHO_T}$ac_res" >&6; }
17879 if test `eval echo '${'$as_ac_var'}'` = yes; then
17880 cat >>confdefs.h <<_ACEOF
17881 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17891 for ac_func in setjmp longjmp sigsetjmp siglongjmp
17893 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17894 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17895 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17896 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17897 echo $ECHO_N "(cached) $ECHO_C" >&6
17899 cat >conftest.$ac_ext <<_ACEOF
17902 cat confdefs.h >>conftest.$ac_ext
17903 cat >>conftest.$ac_ext <<_ACEOF
17904 /* end confdefs.h. */
17905 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17906 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17907 #define $ac_func innocuous_$ac_func
17909 /* System header to define __stub macros and hopefully few prototypes,
17910 which can conflict with char $ac_func (); below.
17911 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17912 <limits.h> exists even on freestanding compilers. */
17915 # include <limits.h>
17917 # include <assert.h>
17922 /* Override any GCC internal prototype to avoid an error.
17923 Use char because int might match the return type of a GCC
17924 builtin and then its argument prototype would still apply. */
17929 /* The GNU C library defines this for functions which it implements
17930 to always fail with ENOSYS. Some functions are actually named
17931 something starting with __ and the normal name is an alias. */
17932 #if defined __stub_$ac_func || defined __stub___$ac_func
17939 return $ac_func ();
17944 rm -f conftest.$ac_objext conftest$ac_exeext
17945 if { (ac_try="$ac_link"
17946 case "(($ac_try" in
17947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17948 *) ac_try_echo=$ac_try;;
17950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17951 (eval "$ac_link") 2>conftest.er1
17953 grep -v '^ *+' conftest.er1 >conftest.err
17955 cat conftest.err >&5
17956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17957 (exit $ac_status); } &&
17958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17959 { (case "(($ac_try" in
17960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17961 *) ac_try_echo=$ac_try;;
17963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17964 (eval "$ac_try") 2>&5
17966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17967 (exit $ac_status); }; } &&
17968 { ac_try='test -s conftest$ac_exeext'
17969 { (case "(($ac_try" in
17970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17971 *) ac_try_echo=$ac_try;;
17973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17974 (eval "$ac_try") 2>&5
17976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17977 (exit $ac_status); }; }; then
17978 eval "$as_ac_var=yes"
17980 echo "$as_me: failed program was:" >&5
17981 sed 's/^/| /' conftest.$ac_ext >&5
17983 eval "$as_ac_var=no"
17986 rm -f core conftest.err conftest.$ac_objext \
17987 conftest$ac_exeext conftest.$ac_ext
17989 ac_res=`eval echo '${'$as_ac_var'}'`
17990 { echo "$as_me:$LINENO: result: $ac_res" >&5
17991 echo "${ECHO_T}$ac_res" >&6; }
17992 if test `eval echo '${'$as_ac_var'}'` = yes; then
17993 cat >>confdefs.h <<_ACEOF
17994 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18000 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18001 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18002 if test "${llvm_cv_c_printf_a+set}" = set; then
18003 echo $ECHO_N "(cached) $ECHO_C" >&6
18006 ac_cpp='$CPP $CPPFLAGS'
18007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18011 if test "$cross_compiling" = yes; then
18012 llvmac_cv_c_printf_a=no
18014 cat >conftest.$ac_ext <<_ACEOF
18018 cat confdefs.h >>conftest.$ac_ext
18019 cat >>conftest.$ac_ext <<_ACEOF
18020 /* end confdefs.h. */
18023 #include <stdlib.h>
18029 volatile double A, B;
18033 sprintf(Buffer, "%a", A);
18037 if (A != 0x1.999999999999ap-4)
18044 rm -f conftest$ac_exeext
18045 if { (ac_try="$ac_link"
18046 case "(($ac_try" in
18047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18048 *) ac_try_echo=$ac_try;;
18050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18051 (eval "$ac_link") 2>&5
18053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18054 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18055 { (case "(($ac_try" in
18056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18057 *) ac_try_echo=$ac_try;;
18059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18060 (eval "$ac_try") 2>&5
18062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18063 (exit $ac_status); }; }; then
18064 llvm_cv_c_printf_a=yes
18066 echo "$as_me: program exited with status $ac_status" >&5
18067 echo "$as_me: failed program was:" >&5
18068 sed 's/^/| /' conftest.$ac_ext >&5
18070 ( exit $ac_status )
18071 llvmac_cv_c_printf_a=no
18073 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18078 ac_cpp='$CPP $CPPFLAGS'
18079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18084 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18085 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18086 if test "$llvm_cv_c_printf_a" = "yes"; then
18088 cat >>confdefs.h <<\_ACEOF
18089 #define HAVE_PRINTF_A 1
18095 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18096 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18097 if test "${ac_cv_func_rand48+set}" = set; then
18098 echo $ECHO_N "(cached) $ECHO_C" >&6
18101 ac_cpp='$CXXCPP $CPPFLAGS'
18102 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18103 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18104 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18106 cat >conftest.$ac_ext <<_ACEOF
18109 cat confdefs.h >>conftest.$ac_ext
18110 cat >>conftest.$ac_ext <<_ACEOF
18111 /* end confdefs.h. */
18112 #include <stdlib.h>
18116 srand48(0);lrand48();drand48();
18121 rm -f conftest.$ac_objext
18122 if { (ac_try="$ac_compile"
18123 case "(($ac_try" in
18124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18125 *) ac_try_echo=$ac_try;;
18127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18128 (eval "$ac_compile") 2>conftest.er1
18130 grep -v '^ *+' conftest.er1 >conftest.err
18132 cat conftest.err >&5
18133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18134 (exit $ac_status); } &&
18135 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18136 { (case "(($ac_try" in
18137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18138 *) ac_try_echo=$ac_try;;
18140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18141 (eval "$ac_try") 2>&5
18143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18144 (exit $ac_status); }; } &&
18145 { ac_try='test -s conftest.$ac_objext'
18146 { (case "(($ac_try" in
18147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18148 *) ac_try_echo=$ac_try;;
18150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18151 (eval "$ac_try") 2>&5
18153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18154 (exit $ac_status); }; }; then
18155 ac_cv_func_rand48=yes
18157 echo "$as_me: failed program was:" >&5
18158 sed 's/^/| /' conftest.$ac_ext >&5
18160 ac_cv_func_rand48=no
18163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18165 ac_cpp='$CPP $CPPFLAGS'
18166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18171 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18172 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18174 if test "$ac_cv_func_rand48" = "yes" ; then
18176 cat >>confdefs.h <<\_ACEOF
18177 #define HAVE_RAND48 1
18184 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
18185 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
18186 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
18187 echo $ECHO_N "(cached) $ECHO_C" >&6
18190 ac_cpp='$CXXCPP $CPPFLAGS'
18191 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18192 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18193 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18195 cat >conftest.$ac_ext <<_ACEOF
18198 cat confdefs.h >>conftest.$ac_ext
18199 cat >>conftest.$ac_ext <<_ACEOF
18200 /* end confdefs.h. */
18210 rm -f conftest.$ac_objext
18211 if { (ac_try="$ac_compile"
18212 case "(($ac_try" in
18213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18214 *) ac_try_echo=$ac_try;;
18216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18217 (eval "$ac_compile") 2>conftest.er1
18219 grep -v '^ *+' conftest.er1 >conftest.err
18221 cat conftest.err >&5
18222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223 (exit $ac_status); } &&
18224 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18225 { (case "(($ac_try" in
18226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18227 *) ac_try_echo=$ac_try;;
18229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18230 (eval "$ac_try") 2>&5
18232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18233 (exit $ac_status); }; } &&
18234 { ac_try='test -s conftest.$ac_objext'
18235 { (case "(($ac_try" in
18236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18237 *) ac_try_echo=$ac_try;;
18239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18240 (eval "$ac_try") 2>&5
18242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18243 (exit $ac_status); }; }; then
18244 ac_cv_func_isnan_in_math_h=yes
18246 echo "$as_me: failed program was:" >&5
18247 sed 's/^/| /' conftest.$ac_ext >&5
18249 ac_cv_func_isnan_in_math_h=no
18252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18254 ac_cpp='$CPP $CPPFLAGS'
18255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18260 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
18261 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
18264 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
18266 cat >>confdefs.h <<\_ACEOF
18267 #define HAVE_ISNAN_IN_MATH_H 1
18272 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
18273 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
18274 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
18275 echo $ECHO_N "(cached) $ECHO_C" >&6
18278 ac_cpp='$CXXCPP $CPPFLAGS'
18279 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18280 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18281 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18283 cat >conftest.$ac_ext <<_ACEOF
18286 cat confdefs.h >>conftest.$ac_ext
18287 cat >>conftest.$ac_ext <<_ACEOF
18288 /* end confdefs.h. */
18298 rm -f conftest.$ac_objext
18299 if { (ac_try="$ac_compile"
18300 case "(($ac_try" in
18301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18302 *) ac_try_echo=$ac_try;;
18304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18305 (eval "$ac_compile") 2>conftest.er1
18307 grep -v '^ *+' conftest.er1 >conftest.err
18309 cat conftest.err >&5
18310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18311 (exit $ac_status); } &&
18312 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18313 { (case "(($ac_try" in
18314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18315 *) ac_try_echo=$ac_try;;
18317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18318 (eval "$ac_try") 2>&5
18320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18321 (exit $ac_status); }; } &&
18322 { ac_try='test -s conftest.$ac_objext'
18323 { (case "(($ac_try" in
18324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18325 *) ac_try_echo=$ac_try;;
18327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18328 (eval "$ac_try") 2>&5
18330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18331 (exit $ac_status); }; }; then
18332 ac_cv_func_isnan_in_cmath=yes
18334 echo "$as_me: failed program was:" >&5
18335 sed 's/^/| /' conftest.$ac_ext >&5
18337 ac_cv_func_isnan_in_cmath=no
18340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18342 ac_cpp='$CPP $CPPFLAGS'
18343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18348 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
18349 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
18351 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
18353 cat >>confdefs.h <<\_ACEOF
18354 #define HAVE_ISNAN_IN_CMATH 1
18359 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
18360 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
18361 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
18362 echo $ECHO_N "(cached) $ECHO_C" >&6
18365 ac_cpp='$CXXCPP $CPPFLAGS'
18366 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18367 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18368 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18370 cat >conftest.$ac_ext <<_ACEOF
18373 cat confdefs.h >>conftest.$ac_ext
18374 cat >>conftest.$ac_ext <<_ACEOF
18375 /* end confdefs.h. */
18380 float f; std::isnan(f);
18385 rm -f conftest.$ac_objext
18386 if { (ac_try="$ac_compile"
18387 case "(($ac_try" in
18388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18389 *) ac_try_echo=$ac_try;;
18391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18392 (eval "$ac_compile") 2>conftest.er1
18394 grep -v '^ *+' conftest.er1 >conftest.err
18396 cat conftest.err >&5
18397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18398 (exit $ac_status); } &&
18399 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18400 { (case "(($ac_try" in
18401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18402 *) ac_try_echo=$ac_try;;
18404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18405 (eval "$ac_try") 2>&5
18407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18408 (exit $ac_status); }; } &&
18409 { ac_try='test -s conftest.$ac_objext'
18410 { (case "(($ac_try" in
18411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18412 *) ac_try_echo=$ac_try;;
18414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18415 (eval "$ac_try") 2>&5
18417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18418 (exit $ac_status); }; }; then
18419 ac_cv_func_std_isnan_in_cmath=yes
18421 echo "$as_me: failed program was:" >&5
18422 sed 's/^/| /' conftest.$ac_ext >&5
18424 ac_cv_func_std_isnan_in_cmath=no
18427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18429 ac_cpp='$CPP $CPPFLAGS'
18430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18435 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
18436 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
18438 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
18440 cat >>confdefs.h <<\_ACEOF
18441 #define HAVE_STD_ISNAN_IN_CMATH 1
18447 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
18448 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
18449 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
18450 echo $ECHO_N "(cached) $ECHO_C" >&6
18453 ac_cpp='$CXXCPP $CPPFLAGS'
18454 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18455 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18456 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18458 cat >conftest.$ac_ext <<_ACEOF
18461 cat confdefs.h >>conftest.$ac_ext
18462 cat >>conftest.$ac_ext <<_ACEOF
18463 /* end confdefs.h. */
18473 rm -f conftest.$ac_objext
18474 if { (ac_try="$ac_compile"
18475 case "(($ac_try" in
18476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18477 *) ac_try_echo=$ac_try;;
18479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18480 (eval "$ac_compile") 2>conftest.er1
18482 grep -v '^ *+' conftest.er1 >conftest.err
18484 cat conftest.err >&5
18485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18486 (exit $ac_status); } &&
18487 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18488 { (case "(($ac_try" in
18489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18490 *) ac_try_echo=$ac_try;;
18492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18493 (eval "$ac_try") 2>&5
18495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18496 (exit $ac_status); }; } &&
18497 { ac_try='test -s conftest.$ac_objext'
18498 { (case "(($ac_try" in
18499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18500 *) ac_try_echo=$ac_try;;
18502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18503 (eval "$ac_try") 2>&5
18505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18506 (exit $ac_status); }; }; then
18507 ac_cv_func_isinf_in_math_h=yes
18509 echo "$as_me: failed program was:" >&5
18510 sed 's/^/| /' conftest.$ac_ext >&5
18512 ac_cv_func_isinf_in_math_h=no
18515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18517 ac_cpp='$CPP $CPPFLAGS'
18518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18523 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
18524 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
18526 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
18528 cat >>confdefs.h <<\_ACEOF
18529 #define HAVE_ISINF_IN_MATH_H 1
18534 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
18535 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
18536 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
18537 echo $ECHO_N "(cached) $ECHO_C" >&6
18540 ac_cpp='$CXXCPP $CPPFLAGS'
18541 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18542 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18543 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18545 cat >conftest.$ac_ext <<_ACEOF
18548 cat confdefs.h >>conftest.$ac_ext
18549 cat >>conftest.$ac_ext <<_ACEOF
18550 /* end confdefs.h. */
18560 rm -f conftest.$ac_objext
18561 if { (ac_try="$ac_compile"
18562 case "(($ac_try" in
18563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18564 *) ac_try_echo=$ac_try;;
18566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18567 (eval "$ac_compile") 2>conftest.er1
18569 grep -v '^ *+' conftest.er1 >conftest.err
18571 cat conftest.err >&5
18572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18573 (exit $ac_status); } &&
18574 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18575 { (case "(($ac_try" in
18576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18577 *) ac_try_echo=$ac_try;;
18579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18580 (eval "$ac_try") 2>&5
18582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18583 (exit $ac_status); }; } &&
18584 { ac_try='test -s conftest.$ac_objext'
18585 { (case "(($ac_try" in
18586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18587 *) ac_try_echo=$ac_try;;
18589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18590 (eval "$ac_try") 2>&5
18592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18593 (exit $ac_status); }; }; then
18594 ac_cv_func_isinf_in_cmath=yes
18596 echo "$as_me: failed program was:" >&5
18597 sed 's/^/| /' conftest.$ac_ext >&5
18599 ac_cv_func_isinf_in_cmath=no
18602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18604 ac_cpp='$CPP $CPPFLAGS'
18605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18610 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
18611 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
18613 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
18615 cat >>confdefs.h <<\_ACEOF
18616 #define HAVE_ISINF_IN_CMATH 1
18621 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
18622 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
18623 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
18624 echo $ECHO_N "(cached) $ECHO_C" >&6
18627 ac_cpp='$CXXCPP $CPPFLAGS'
18628 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18629 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18630 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18632 cat >conftest.$ac_ext <<_ACEOF
18635 cat confdefs.h >>conftest.$ac_ext
18636 cat >>conftest.$ac_ext <<_ACEOF
18637 /* end confdefs.h. */
18642 float f; std::isinf(f)}
18647 rm -f conftest.$ac_objext
18648 if { (ac_try="$ac_compile"
18649 case "(($ac_try" in
18650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18651 *) ac_try_echo=$ac_try;;
18653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18654 (eval "$ac_compile") 2>conftest.er1
18656 grep -v '^ *+' conftest.er1 >conftest.err
18658 cat conftest.err >&5
18659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18660 (exit $ac_status); } &&
18661 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18662 { (case "(($ac_try" in
18663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18664 *) ac_try_echo=$ac_try;;
18666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18667 (eval "$ac_try") 2>&5
18669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18670 (exit $ac_status); }; } &&
18671 { ac_try='test -s conftest.$ac_objext'
18672 { (case "(($ac_try" in
18673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18674 *) ac_try_echo=$ac_try;;
18676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18677 (eval "$ac_try") 2>&5
18679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18680 (exit $ac_status); }; }; then
18681 ac_cv_func_std_isinf_in_cmath=yes
18683 echo "$as_me: failed program was:" >&5
18684 sed 's/^/| /' conftest.$ac_ext >&5
18686 ac_cv_func_std_isinf_in_cmath=no
18689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18691 ac_cpp='$CPP $CPPFLAGS'
18692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18697 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
18698 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
18700 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
18702 cat >>confdefs.h <<\_ACEOF
18703 #define HAVE_STD_ISINF_IN_CMATH 1
18708 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
18709 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
18710 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
18711 echo $ECHO_N "(cached) $ECHO_C" >&6
18714 ac_cpp='$CXXCPP $CPPFLAGS'
18715 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18716 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18717 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18719 cat >conftest.$ac_ext <<_ACEOF
18722 cat confdefs.h >>conftest.$ac_ext
18723 cat >>conftest.$ac_ext <<_ACEOF
18724 /* end confdefs.h. */
18725 #include <ieeefp.h>
18729 float f; finite(f);
18734 rm -f conftest.$ac_objext
18735 if { (ac_try="$ac_compile"
18736 case "(($ac_try" in
18737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18738 *) ac_try_echo=$ac_try;;
18740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18741 (eval "$ac_compile") 2>conftest.er1
18743 grep -v '^ *+' conftest.er1 >conftest.err
18745 cat conftest.err >&5
18746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18747 (exit $ac_status); } &&
18748 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18749 { (case "(($ac_try" in
18750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18751 *) ac_try_echo=$ac_try;;
18753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18754 (eval "$ac_try") 2>&5
18756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18757 (exit $ac_status); }; } &&
18758 { ac_try='test -s conftest.$ac_objext'
18759 { (case "(($ac_try" in
18760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18761 *) ac_try_echo=$ac_try;;
18763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18764 (eval "$ac_try") 2>&5
18766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18767 (exit $ac_status); }; }; then
18768 ac_cv_func_finite_in_ieeefp_h=yes
18770 echo "$as_me: failed program was:" >&5
18771 sed 's/^/| /' conftest.$ac_ext >&5
18773 ac_cv_func_finite_in_ieeefp_h=no
18776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18778 ac_cpp='$CPP $CPPFLAGS'
18779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18784 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
18785 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
18787 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
18789 cat >>confdefs.h <<\_ACEOF
18790 #define HAVE_FINITE_IN_IEEEFP_H 1
18797 if test "$llvm_cv_platform_type" = "Unix" ; then
18800 for ac_header in stdlib.h unistd.h
18802 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18804 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18806 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18807 echo $ECHO_N "(cached) $ECHO_C" >&6
18809 ac_res=`eval echo '${'$as_ac_Header'}'`
18810 { echo "$as_me:$LINENO: result: $ac_res" >&5
18811 echo "${ECHO_T}$ac_res" >&6; }
18813 # Is the header compilable?
18814 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18815 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18816 cat >conftest.$ac_ext <<_ACEOF
18819 cat confdefs.h >>conftest.$ac_ext
18820 cat >>conftest.$ac_ext <<_ACEOF
18821 /* end confdefs.h. */
18822 $ac_includes_default
18823 #include <$ac_header>
18825 rm -f conftest.$ac_objext
18826 if { (ac_try="$ac_compile"
18827 case "(($ac_try" in
18828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18829 *) ac_try_echo=$ac_try;;
18831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18832 (eval "$ac_compile") 2>conftest.er1
18834 grep -v '^ *+' conftest.er1 >conftest.err
18836 cat conftest.err >&5
18837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18838 (exit $ac_status); } &&
18839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18840 { (case "(($ac_try" in
18841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18842 *) ac_try_echo=$ac_try;;
18844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18845 (eval "$ac_try") 2>&5
18847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18848 (exit $ac_status); }; } &&
18849 { ac_try='test -s conftest.$ac_objext'
18850 { (case "(($ac_try" in
18851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18852 *) ac_try_echo=$ac_try;;
18854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18855 (eval "$ac_try") 2>&5
18857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18858 (exit $ac_status); }; }; then
18859 ac_header_compiler=yes
18861 echo "$as_me: failed program was:" >&5
18862 sed 's/^/| /' conftest.$ac_ext >&5
18864 ac_header_compiler=no
18867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18868 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18869 echo "${ECHO_T}$ac_header_compiler" >&6; }
18871 # Is the header present?
18872 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18873 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18874 cat >conftest.$ac_ext <<_ACEOF
18877 cat confdefs.h >>conftest.$ac_ext
18878 cat >>conftest.$ac_ext <<_ACEOF
18879 /* end confdefs.h. */
18880 #include <$ac_header>
18882 if { (ac_try="$ac_cpp conftest.$ac_ext"
18883 case "(($ac_try" in
18884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18885 *) ac_try_echo=$ac_try;;
18887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18888 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18890 grep -v '^ *+' conftest.er1 >conftest.err
18892 cat conftest.err >&5
18893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18894 (exit $ac_status); } >/dev/null; then
18895 if test -s conftest.err; then
18896 ac_cpp_err=$ac_c_preproc_warn_flag
18897 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18904 if test -z "$ac_cpp_err"; then
18905 ac_header_preproc=yes
18907 echo "$as_me: failed program was:" >&5
18908 sed 's/^/| /' conftest.$ac_ext >&5
18910 ac_header_preproc=no
18913 rm -f conftest.err conftest.$ac_ext
18914 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18915 echo "${ECHO_T}$ac_header_preproc" >&6; }
18917 # So? What about this header?
18918 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18920 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18921 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18922 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18923 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18924 ac_header_preproc=yes
18927 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18928 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18929 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18930 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18931 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18932 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18933 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18934 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18935 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18936 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18937 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18938 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18940 ## ----------------------------------- ##
18941 ## Report this to llvmbugs@cs.uiuc.edu ##
18942 ## ----------------------------------- ##
18944 ) | sed "s/^/$as_me: WARNING: /" >&2
18947 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18949 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18950 echo $ECHO_N "(cached) $ECHO_C" >&6
18952 eval "$as_ac_Header=\$ac_header_preproc"
18954 ac_res=`eval echo '${'$as_ac_Header'}'`
18955 { echo "$as_me:$LINENO: result: $ac_res" >&5
18956 echo "${ECHO_T}$ac_res" >&6; }
18959 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18960 cat >>confdefs.h <<_ACEOF
18961 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18969 for ac_func in getpagesize
18971 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18972 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18973 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18974 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18975 echo $ECHO_N "(cached) $ECHO_C" >&6
18977 cat >conftest.$ac_ext <<_ACEOF
18980 cat confdefs.h >>conftest.$ac_ext
18981 cat >>conftest.$ac_ext <<_ACEOF
18982 /* end confdefs.h. */
18983 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18984 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18985 #define $ac_func innocuous_$ac_func
18987 /* System header to define __stub macros and hopefully few prototypes,
18988 which can conflict with char $ac_func (); below.
18989 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18990 <limits.h> exists even on freestanding compilers. */
18993 # include <limits.h>
18995 # include <assert.h>
19000 /* Override any GCC internal prototype to avoid an error.
19001 Use char because int might match the return type of a GCC
19002 builtin and then its argument prototype would still apply. */
19007 /* The GNU C library defines this for functions which it implements
19008 to always fail with ENOSYS. Some functions are actually named
19009 something starting with __ and the normal name is an alias. */
19010 #if defined __stub_$ac_func || defined __stub___$ac_func
19017 return $ac_func ();
19022 rm -f conftest.$ac_objext conftest$ac_exeext
19023 if { (ac_try="$ac_link"
19024 case "(($ac_try" in
19025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19026 *) ac_try_echo=$ac_try;;
19028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19029 (eval "$ac_link") 2>conftest.er1
19031 grep -v '^ *+' conftest.er1 >conftest.err
19033 cat conftest.err >&5
19034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19035 (exit $ac_status); } &&
19036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19037 { (case "(($ac_try" in
19038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19039 *) ac_try_echo=$ac_try;;
19041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19042 (eval "$ac_try") 2>&5
19044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19045 (exit $ac_status); }; } &&
19046 { ac_try='test -s conftest$ac_exeext'
19047 { (case "(($ac_try" in
19048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19049 *) ac_try_echo=$ac_try;;
19051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19052 (eval "$ac_try") 2>&5
19054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19055 (exit $ac_status); }; }; then
19056 eval "$as_ac_var=yes"
19058 echo "$as_me: failed program was:" >&5
19059 sed 's/^/| /' conftest.$ac_ext >&5
19061 eval "$as_ac_var=no"
19064 rm -f core conftest.err conftest.$ac_objext \
19065 conftest$ac_exeext conftest.$ac_ext
19067 ac_res=`eval echo '${'$as_ac_var'}'`
19068 { echo "$as_me:$LINENO: result: $ac_res" >&5
19069 echo "${ECHO_T}$ac_res" >&6; }
19070 if test `eval echo '${'$as_ac_var'}'` = yes; then
19071 cat >>confdefs.h <<_ACEOF
19072 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19078 { echo "$as_me:$LINENO: checking for working mmap" >&5
19079 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19080 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19081 echo $ECHO_N "(cached) $ECHO_C" >&6
19083 if test "$cross_compiling" = yes; then
19084 ac_cv_func_mmap_fixed_mapped=no
19086 cat >conftest.$ac_ext <<_ACEOF
19089 cat confdefs.h >>conftest.$ac_ext
19090 cat >>conftest.$ac_ext <<_ACEOF
19091 /* end confdefs.h. */
19092 $ac_includes_default
19093 /* malloc might have been renamed as rpl_malloc. */
19096 /* Thanks to Mike Haertel and Jim Avera for this test.
19097 Here is a matrix of mmap possibilities:
19098 mmap private not fixed
19099 mmap private fixed at somewhere currently unmapped
19100 mmap private fixed at somewhere already mapped
19101 mmap shared not fixed
19102 mmap shared fixed at somewhere currently unmapped
19103 mmap shared fixed at somewhere already mapped
19104 For private mappings, we should verify that changes cannot be read()
19105 back from the file, nor mmap's back from the file at a different
19106 address. (There have been systems where private was not correctly
19107 implemented like the infamous i386 svr4.0, and systems where the
19108 VM page cache was not coherent with the file system buffer cache
19109 like early versions of FreeBSD and possibly contemporary NetBSD.)
19110 For shared mappings, we should conversely verify that changes get
19111 propagated back to all the places they're supposed to be.
19113 Grep wants private fixed already mapped.
19114 The main things grep needs to know about mmap are:
19115 * does it exist and is it safe to write into the mmap'd area
19116 * how to use it (BSD variants) */
19119 #include <sys/mman.h>
19121 #if !STDC_HEADERS && !HAVE_STDLIB_H
19125 /* This mess was copied from the GNU getpagesize.h. */
19126 #if !HAVE_GETPAGESIZE
19127 /* Assume that all systems that can run configure have sys/param.h. */
19128 # if !HAVE_SYS_PARAM_H
19129 # define HAVE_SYS_PARAM_H 1
19132 # ifdef _SC_PAGESIZE
19133 # define getpagesize() sysconf(_SC_PAGESIZE)
19134 # else /* no _SC_PAGESIZE */
19135 # if HAVE_SYS_PARAM_H
19136 # include <sys/param.h>
19137 # ifdef EXEC_PAGESIZE
19138 # define getpagesize() EXEC_PAGESIZE
19139 # else /* no EXEC_PAGESIZE */
19141 # define getpagesize() NBPG * CLSIZE
19144 # endif /* no CLSIZE */
19145 # else /* no NBPG */
19147 # define getpagesize() NBPC
19148 # else /* no NBPC */
19150 # define getpagesize() PAGESIZE
19151 # endif /* PAGESIZE */
19152 # endif /* no NBPC */
19153 # endif /* no NBPG */
19154 # endif /* no EXEC_PAGESIZE */
19155 # else /* no HAVE_SYS_PARAM_H */
19156 # define getpagesize() 8192 /* punt totally */
19157 # endif /* no HAVE_SYS_PARAM_H */
19158 # endif /* no _SC_PAGESIZE */
19160 #endif /* no HAVE_GETPAGESIZE */
19165 char *data, *data2, *data3;
19169 pagesize = getpagesize ();
19171 /* First, make a file with some known garbage in it. */
19172 data = (char *) malloc (pagesize);
19175 for (i = 0; i < pagesize; ++i)
19176 *(data + i) = rand ();
19178 fd = creat ("conftest.mmap", 0600);
19181 if (write (fd, data, pagesize) != pagesize)
19185 /* Next, try to mmap the file at a fixed address which already has
19186 something else allocated at it. If we can, also make sure that
19187 we see the same garbage. */
19188 fd = open ("conftest.mmap", O_RDWR);
19191 data2 = (char *) malloc (2 * pagesize);
19194 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
19195 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19196 MAP_PRIVATE | MAP_FIXED, fd, 0L))
19198 for (i = 0; i < pagesize; ++i)
19199 if (*(data + i) != *(data2 + i))
19202 /* Finally, make sure that changes to the mapped area do not
19203 percolate back to the file as seen by read(). (This is a bug on
19204 some variants of i386 svr4.0.) */
19205 for (i = 0; i < pagesize; ++i)
19206 *(data2 + i) = *(data2 + i) + 1;
19207 data3 = (char *) malloc (pagesize);
19210 if (read (fd, data3, pagesize) != pagesize)
19212 for (i = 0; i < pagesize; ++i)
19213 if (*(data + i) != *(data3 + i))
19219 rm -f conftest$ac_exeext
19220 if { (ac_try="$ac_link"
19221 case "(($ac_try" in
19222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19223 *) ac_try_echo=$ac_try;;
19225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19226 (eval "$ac_link") 2>&5
19228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19229 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19230 { (case "(($ac_try" in
19231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19232 *) ac_try_echo=$ac_try;;
19234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19235 (eval "$ac_try") 2>&5
19237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238 (exit $ac_status); }; }; then
19239 ac_cv_func_mmap_fixed_mapped=yes
19241 echo "$as_me: program exited with status $ac_status" >&5
19242 echo "$as_me: failed program was:" >&5
19243 sed 's/^/| /' conftest.$ac_ext >&5
19245 ( exit $ac_status )
19246 ac_cv_func_mmap_fixed_mapped=no
19248 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19253 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
19254 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
19255 if test $ac_cv_func_mmap_fixed_mapped = yes; then
19257 cat >>confdefs.h <<\_ACEOF
19258 #define HAVE_MMAP 1
19262 rm -f conftest.mmap
19264 { echo "$as_me:$LINENO: checking for mmap of files" >&5
19265 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
19266 if test "${ac_cv_func_mmap_file+set}" = set; then
19267 echo $ECHO_N "(cached) $ECHO_C" >&6
19270 ac_cpp='$CPP $CPPFLAGS'
19271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19275 if test "$cross_compiling" = yes; then
19276 ac_cv_func_mmap_file=no
19278 cat >conftest.$ac_ext <<_ACEOF
19282 cat confdefs.h >>conftest.$ac_ext
19283 cat >>conftest.$ac_ext <<_ACEOF
19284 /* end confdefs.h. */
19286 #include <sys/types.h>
19287 #include <sys/mman.h>
19295 fd = creat ("foo",0777);
19296 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
19298 return (fd != (int) MAP_FAILED);
19303 rm -f conftest$ac_exeext
19304 if { (ac_try="$ac_link"
19305 case "(($ac_try" in
19306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19307 *) ac_try_echo=$ac_try;;
19309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19310 (eval "$ac_link") 2>&5
19312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19313 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19314 { (case "(($ac_try" in
19315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19316 *) ac_try_echo=$ac_try;;
19318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19319 (eval "$ac_try") 2>&5
19321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19322 (exit $ac_status); }; }; then
19323 ac_cv_func_mmap_file=yes
19325 echo "$as_me: program exited with status $ac_status" >&5
19326 echo "$as_me: failed program was:" >&5
19327 sed 's/^/| /' conftest.$ac_ext >&5
19329 ( exit $ac_status )
19330 ac_cv_func_mmap_file=no
19332 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19337 ac_cpp='$CPP $CPPFLAGS'
19338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19344 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
19345 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
19346 if test "$ac_cv_func_mmap_file" = yes; then
19348 cat >>confdefs.h <<\_ACEOF
19349 #define HAVE_MMAP_FILE
19356 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
19357 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
19358 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
19359 echo $ECHO_N "(cached) $ECHO_C" >&6
19361 if test "$llvm_cv_os_type" = "Interix" ; then
19362 ac_cv_need_dev_zero_for_mmap=yes
19364 ac_cv_need_dev_zero_for_mmap=no
19368 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
19369 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
19370 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
19372 cat >>confdefs.h <<\_ACEOF
19373 #define NEED_DEV_ZERO_FOR_MMAP 1
19378 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
19380 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
19381 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
19383 if test "$ac_cv_func_mmap_file" = "no"
19385 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
19386 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
19390 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
19391 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
19392 cat >conftest.$ac_ext <<_ACEOF
19395 cat confdefs.h >>conftest.$ac_ext
19396 cat >>conftest.$ac_ext <<_ACEOF
19397 /* end confdefs.h. */
19399 volatile unsigned long val = 1;
19400 __sync_synchronize();
19401 __sync_val_compare_and_swap(&val, 1, 0);
19402 __sync_add_and_fetch(&val, 1);
19403 __sync_sub_and_fetch(&val, 1);
19408 rm -f conftest.$ac_objext conftest$ac_exeext
19409 if { (ac_try="$ac_link"
19410 case "(($ac_try" in
19411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19412 *) ac_try_echo=$ac_try;;
19414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19415 (eval "$ac_link") 2>conftest.er1
19417 grep -v '^ *+' conftest.er1 >conftest.err
19419 cat conftest.err >&5
19420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19421 (exit $ac_status); } &&
19422 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19423 { (case "(($ac_try" in
19424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19425 *) ac_try_echo=$ac_try;;
19427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19428 (eval "$ac_try") 2>&5
19430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431 (exit $ac_status); }; } &&
19432 { ac_try='test -s conftest$ac_exeext'
19433 { (case "(($ac_try" in
19434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19435 *) ac_try_echo=$ac_try;;
19437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19438 (eval "$ac_try") 2>&5
19440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441 (exit $ac_status); }; }; then
19442 { echo "$as_me:$LINENO: result: yes" >&5
19443 echo "${ECHO_T}yes" >&6; }
19445 cat >>confdefs.h <<\_ACEOF
19446 #define LLVM_MULTITHREADED 1
19450 echo "$as_me: failed program was:" >&5
19451 sed 's/^/| /' conftest.$ac_ext >&5
19453 { echo "$as_me:$LINENO: result: no" >&5
19454 echo "${ECHO_T}no" >&6; }
19456 cat >>confdefs.h <<\_ACEOF
19457 #define LLVM_MULTITHREADED 0
19460 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
19461 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
19464 rm -f core conftest.err conftest.$ac_objext \
19465 conftest$ac_exeext conftest.$ac_ext
19469 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
19470 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
19471 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
19472 if test "${llvm_cv_linux_mixed+set}" = set; then
19473 echo $ECHO_N "(cached) $ECHO_C" >&6
19476 ac_cpp='$CPP $CPPFLAGS'
19477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19481 cat >conftest.$ac_ext <<_ACEOF
19484 cat confdefs.h >>conftest.$ac_ext
19485 cat >>conftest.$ac_ext <<_ACEOF
19486 /* end confdefs.h. */
19488 error: Not x86-64 even if uname says so!
19499 rm -f conftest.$ac_objext
19500 if { (ac_try="$ac_compile"
19501 case "(($ac_try" in
19502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19503 *) ac_try_echo=$ac_try;;
19505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19506 (eval "$ac_compile") 2>conftest.er1
19508 grep -v '^ *+' conftest.er1 >conftest.err
19510 cat conftest.err >&5
19511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19512 (exit $ac_status); } &&
19513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19514 { (case "(($ac_try" in
19515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19516 *) ac_try_echo=$ac_try;;
19518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19519 (eval "$ac_try") 2>&5
19521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19522 (exit $ac_status); }; } &&
19523 { ac_try='test -s conftest.$ac_objext'
19524 { (case "(($ac_try" in
19525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19526 *) ac_try_echo=$ac_try;;
19528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19529 (eval "$ac_try") 2>&5
19531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19532 (exit $ac_status); }; }; then
19533 llvm_cv_linux_mixed=no
19535 echo "$as_me: failed program was:" >&5
19536 sed 's/^/| /' conftest.$ac_ext >&5
19538 llvm_cv_linux_mixed=yes
19541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19543 ac_cpp='$CPP $CPPFLAGS'
19544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19550 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
19551 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
19553 if test "$llvm_cv_linux_mixed" = "yes"; then
19554 llvm_cv_target_arch="x86"
19560 for ac_func in __dso_handle
19562 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19563 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19564 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19565 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19566 echo $ECHO_N "(cached) $ECHO_C" >&6
19568 cat >conftest.$ac_ext <<_ACEOF
19571 cat confdefs.h >>conftest.$ac_ext
19572 cat >>conftest.$ac_ext <<_ACEOF
19573 /* end confdefs.h. */
19574 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19575 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19576 #define $ac_func innocuous_$ac_func
19578 /* System header to define __stub macros and hopefully few prototypes,
19579 which can conflict with char $ac_func (); below.
19580 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19581 <limits.h> exists even on freestanding compilers. */
19584 # include <limits.h>
19586 # include <assert.h>
19591 /* Override any GCC internal prototype to avoid an error.
19592 Use char because int might match the return type of a GCC
19593 builtin and then its argument prototype would still apply. */
19598 /* The GNU C library defines this for functions which it implements
19599 to always fail with ENOSYS. Some functions are actually named
19600 something starting with __ and the normal name is an alias. */
19601 #if defined __stub_$ac_func || defined __stub___$ac_func
19608 return $ac_func ();
19613 rm -f conftest.$ac_objext conftest$ac_exeext
19614 if { (ac_try="$ac_link"
19615 case "(($ac_try" in
19616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19617 *) ac_try_echo=$ac_try;;
19619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19620 (eval "$ac_link") 2>conftest.er1
19622 grep -v '^ *+' conftest.er1 >conftest.err
19624 cat conftest.err >&5
19625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19626 (exit $ac_status); } &&
19627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
19637 { ac_try='test -s conftest$ac_exeext'
19638 { (case "(($ac_try" in
19639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19640 *) ac_try_echo=$ac_try;;
19642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19643 (eval "$ac_try") 2>&5
19645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19646 (exit $ac_status); }; }; then
19647 eval "$as_ac_var=yes"
19649 echo "$as_me: failed program was:" >&5
19650 sed 's/^/| /' conftest.$ac_ext >&5
19652 eval "$as_ac_var=no"
19655 rm -f core conftest.err conftest.$ac_objext \
19656 conftest$ac_exeext conftest.$ac_ext
19658 ac_res=`eval echo '${'$as_ac_var'}'`
19659 { echo "$as_me:$LINENO: result: $ac_res" >&5
19660 echo "${ECHO_T}$ac_res" >&6; }
19661 if test `eval echo '${'$as_ac_var'}'` = yes; then
19662 cat >>confdefs.h <<_ACEOF
19663 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19670 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
19671 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
19672 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
19673 echo $ECHO_N "(cached) $ECHO_C" >&6
19675 llvm_cv_llvmgcc_sanity="no"
19676 if test -x "$LLVMGCC" ; then
19677 cp /dev/null conftest.c
19678 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
19679 grep 'target datalayout =' > /dev/null 2>&1
19680 if test $? -eq 0 ; then
19681 llvm_cv_llvmgcc_sanity="yes"
19686 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
19687 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
19689 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
19690 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
19691 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
19692 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
19693 LLVMCC1=$llvmcc1path
19695 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
19696 LLVMCC1PLUS=$llvmcc1pluspath
19698 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
19699 LLVMGCCDIR=$llvmgccdir
19701 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
19702 LLVMGCC_LANGS=$llvmgcclangs
19704 { echo "$as_me:$LINENO: result: ok" >&5
19705 echo "${ECHO_T}ok" >&6; }
19708 SHLIBEXT=$libltdl_cv_shlibext
19711 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
19714 # Translate the various configuration directories and other basic
19715 # information into substitutions that will end up in Makefile.config.in
19716 # that these configured values can be used by the makefiles
19717 if test "${prefix}" = "NONE" ; then
19718 prefix="/usr/local"
19720 eval LLVM_PREFIX="${prefix}";
19721 eval LLVM_BINDIR="${prefix}/bin";
19722 eval LLVM_LIBDIR="${prefix}/lib";
19723 eval LLVM_DATADIR="${prefix}/share/llvm";
19724 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
19725 eval LLVM_ETCDIR="${prefix}/etc/llvm";
19726 eval LLVM_INCLUDEDIR="${prefix}/include";
19727 eval LLVM_INFODIR="${prefix}/info";
19728 eval LLVM_MANDIR="${prefix}/man";
19729 LLVM_CONFIGTIME=`date`
19741 # Place the various directores into the config.h file as #defines so that we
19742 # can know about the installation paths within LLVM.
19744 cat >>confdefs.h <<_ACEOF
19745 #define LLVM_PREFIX "$LLVM_PREFIX"
19749 cat >>confdefs.h <<_ACEOF
19750 #define LLVM_BINDIR "$LLVM_BINDIR"
19754 cat >>confdefs.h <<_ACEOF
19755 #define LLVM_LIBDIR "$LLVM_LIBDIR"
19759 cat >>confdefs.h <<_ACEOF
19760 #define LLVM_DATADIR "$LLVM_DATADIR"
19764 cat >>confdefs.h <<_ACEOF
19765 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
19769 cat >>confdefs.h <<_ACEOF
19770 #define LLVM_ETCDIR "$LLVM_ETCDIR"
19774 cat >>confdefs.h <<_ACEOF
19775 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
19779 cat >>confdefs.h <<_ACEOF
19780 #define LLVM_INFODIR "$LLVM_INFODIR"
19784 cat >>confdefs.h <<_ACEOF
19785 #define LLVM_MANDIR "$LLVM_MANDIR"
19789 cat >>confdefs.h <<_ACEOF
19790 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
19794 cat >>confdefs.h <<_ACEOF
19795 #define LLVM_HOSTTRIPLE "$host"
19799 # Determine which bindings to build.
19800 if test "$BINDINGS_TO_BUILD" = auto ; then
19801 BINDINGS_TO_BUILD=""
19802 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
19803 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
19806 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
19809 # This isn't really configurey, but it avoids having to repeat the list in
19814 # Do any work necessary to ensure that bindings have what they need.
19815 binding_prereqs_failed=0
19816 for a_binding in $BINDINGS_TO_BUILD ; do
19817 case "$a_binding" in
19819 if test "x$OCAMLC" = x ; then
19820 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
19821 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
19822 binding_prereqs_failed=1
19824 if test "x$OCAMLDEP" = x ; then
19825 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
19826 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
19827 binding_prereqs_failed=1
19829 if test "x$OCAMLOPT" = x ; then
19830 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
19831 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
19833 if test "x$with_ocaml_libdir" != xauto ; then
19834 OCAML_LIBDIR=$with_ocaml_libdir
19837 ocaml_stdlib="`"$OCAMLC" -where`"
19838 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
19840 # ocaml stdlib is beneath our prefix; use stdlib
19841 OCAML_LIBDIR=$ocaml_stdlib
19844 # ocaml stdlib is outside our prefix; use libdir/ocaml
19845 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
19852 if test "$binding_prereqs_failed" = 1 ; then
19853 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
19854 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
19855 { (exit 1); exit 1; }; }
19858 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
19859 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
19860 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
19861 echo $ECHO_N "(cached) $ECHO_C" >&6
19864 ac_cpp='$CXXCPP $CPPFLAGS'
19865 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19866 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19867 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19869 oldcxxflags="$CXXFLAGS"
19870 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
19871 cat >conftest.$ac_ext <<_ACEOF
19874 cat confdefs.h >>conftest.$ac_ext
19875 cat >>conftest.$ac_ext <<_ACEOF
19876 /* end confdefs.h. */
19886 rm -f conftest.$ac_objext
19887 if { (ac_try="$ac_compile"
19888 case "(($ac_try" in
19889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19890 *) ac_try_echo=$ac_try;;
19892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19893 (eval "$ac_compile") 2>conftest.er1
19895 grep -v '^ *+' conftest.er1 >conftest.err
19897 cat conftest.err >&5
19898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19899 (exit $ac_status); } &&
19900 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19901 { (case "(($ac_try" in
19902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19903 *) ac_try_echo=$ac_try;;
19905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19906 (eval "$ac_try") 2>&5
19908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19909 (exit $ac_status); }; } &&
19910 { ac_try='test -s conftest.$ac_objext'
19911 { (case "(($ac_try" in
19912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19913 *) ac_try_echo=$ac_try;;
19915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19916 (eval "$ac_try") 2>&5
19918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19919 (exit $ac_status); }; }; then
19920 llvm_cv_cxx_visibility_inlines_hidden=yes
19922 echo "$as_me: failed program was:" >&5
19923 sed 's/^/| /' conftest.$ac_ext >&5
19925 llvm_cv_cxx_visibility_inlines_hidden=no
19928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19929 CXXFLAGS="$oldcxxflags"
19931 ac_cpp='$CPP $CPPFLAGS'
19932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19938 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
19939 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
19940 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
19941 ENABLE_VISIBILITY_INLINES_HIDDEN=1
19944 ENABLE_VISIBILITY_INLINES_HIDDEN=0
19949 if test "$llvm_cv_link_use_r" = "yes" ; then
19956 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
19957 RDYNAMIC="-Wl,-export-dynamic"
19964 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
19966 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
19968 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
19970 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
19972 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
19974 ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
19977 ac_config_files="$ac_config_files Makefile.config"
19980 ac_config_files="$ac_config_files llvm.spec"
19983 ac_config_files="$ac_config_files docs/doxygen.cfg"
19986 ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
19989 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
19992 ac_config_commands="$ac_config_commands setup"
19994 ac_config_commands="$ac_config_commands Makefile"
19997 ac_config_commands="$ac_config_commands Makefile.common"
20000 ac_config_commands="$ac_config_commands examples/Makefile"
20003 ac_config_commands="$ac_config_commands lib/Makefile"
20006 ac_config_commands="$ac_config_commands runtime/Makefile"
20009 ac_config_commands="$ac_config_commands test/Makefile"
20012 ac_config_commands="$ac_config_commands test/Makefile.tests"
20015 ac_config_commands="$ac_config_commands unittests/Makefile"
20018 ac_config_commands="$ac_config_commands tools/Makefile"
20021 ac_config_commands="$ac_config_commands utils/Makefile"
20024 ac_config_commands="$ac_config_commands projects/Makefile"
20027 ac_config_commands="$ac_config_commands bindings/Makefile"
20030 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
20034 cat >confcache <<\_ACEOF
20035 # This file is a shell script that caches the results of configure
20036 # tests run on this system so they can be shared between configure
20037 # scripts and configure runs, see configure's option --config-cache.
20038 # It is not useful on other systems. If it contains results you don't
20039 # want to keep, you may remove or edit it.
20041 # config.status only pays attention to the cache file if you give it
20042 # the --recheck option to rerun configure.
20044 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20045 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20046 # following values.
20050 # The following way of writing the cache mishandles newlines in values,
20051 # but we know of no workaround that is simple, portable, and efficient.
20052 # So, we kill variables containing newlines.
20053 # Ultrix sh set writes to stderr and can't be redirected directly,
20054 # and sets the high bit in the cache file unless we assign to the vars.
20056 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20057 eval ac_val=\$$ac_var
20061 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20062 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20065 _ | IFS | as_nl) ;; #(
20066 *) $as_unset $ac_var ;;
20072 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20073 *${as_nl}ac_space=\ *)
20074 # `set' does not quote correctly, so add quotes (double-quote
20075 # substitution turns \\\\ into \\, and sed turns \\ into \).
20078 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20081 # `set' quotes correctly as required by POSIX, so do not add quotes.
20082 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20091 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20093 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20095 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20096 if test -w "$cache_file"; then
20097 test "x$cache_file" != "x/dev/null" &&
20098 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20099 echo "$as_me: updating cache $cache_file" >&6;}
20100 cat confcache >$cache_file
20102 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20103 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20108 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20109 # Let make expand exec_prefix.
20110 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20112 DEFS=-DHAVE_CONFIG_H
20116 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20117 # 1. Remove the extension, and $U if already installed.
20118 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20119 ac_i=`echo "$ac_i" | sed "$ac_script"`
20120 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20121 # will be set to the directory where LIBOBJS objects are built.
20122 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20123 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20125 LIBOBJS=$ac_libobjs
20127 LTLIBOBJS=$ac_ltlibobjs
20130 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
20131 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20132 Usually this means the macro was only invoked conditionally." >&5
20133 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20134 Usually this means the macro was only invoked conditionally." >&2;}
20135 { (exit 1); exit 1; }; }
20137 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
20138 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20139 Usually this means the macro was only invoked conditionally." >&5
20140 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20141 Usually this means the macro was only invoked conditionally." >&2;}
20142 { (exit 1); exit 1; }; }
20145 : ${CONFIG_STATUS=./config.status}
20146 ac_clean_files_save=$ac_clean_files
20147 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20148 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20149 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20150 cat >$CONFIG_STATUS <<_ACEOF
20152 # Generated by $as_me.
20153 # Run this file to recreate the current configuration.
20154 # Compiler output produced by configure, useful for debugging
20155 # configure, is in config.log if it exists.
20158 ac_cs_recheck=false
20160 SHELL=\${CONFIG_SHELL-$SHELL}
20163 cat >>$CONFIG_STATUS <<\_ACEOF
20164 ## --------------------- ##
20165 ## M4sh Initialization. ##
20166 ## --------------------- ##
20168 # Be Bourne compatible
20169 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20172 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20173 # is contrary to our usage. Disable this feature.
20174 alias -g '${1+"$@"}'='"$@"'
20175 setopt NO_GLOB_SUBST
20177 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
20179 BIN_SH=xpg4; export BIN_SH # for Tru64
20180 DUALCASE=1; export DUALCASE # for MKS sh
20184 # Avoid depending upon Character Ranges.
20185 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20186 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20187 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20188 as_cr_digits='0123456789'
20189 as_cr_alnum=$as_cr_Letters$as_cr_digits
20191 # The user is always right.
20192 if test "${PATH_SEPARATOR+set}" != set; then
20193 echo "#! /bin/sh" >conf$$.sh
20194 echo "exit 0" >>conf$$.sh
20196 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20204 # Support unset when possible.
20205 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20213 # We need space, tab and new line, in precisely that order. Quoting is
20214 # there to prevent editors from complaining about space-tab.
20215 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20216 # splitting by setting IFS to empty value.)
20221 # Find who we are. Look in the path if we contain no directory separator.
20223 *[\\/]* ) as_myself=$0 ;;
20224 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20225 for as_dir in $PATH
20228 test -z "$as_dir" && as_dir=.
20229 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20235 # We did not find ourselves, most probably we were run as `sh COMMAND'
20236 # in which case we are not to be found in the path.
20237 if test "x$as_myself" = x; then
20240 if test ! -f "$as_myself"; then
20241 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20242 { (exit 1); exit 1; }
20245 # Work around bugs in pre-3.0 UWIN ksh.
20246 for as_var in ENV MAIL MAILPATH
20247 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20255 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20256 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20257 LC_TELEPHONE LC_TIME
20259 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20260 eval $as_var=C; export $as_var
20262 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20266 # Required to use basename.
20267 if expr a : '\(a\)' >/dev/null 2>&1 &&
20268 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20274 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20275 as_basename=basename
20281 # Name of the executable.
20282 as_me=`$as_basename -- "$0" ||
20283 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20284 X"$0" : 'X\(//\)$' \| \
20285 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20287 sed '/^.*\/\([^/][^/]*\)\/*$/{
20306 as_lineno_1=$LINENO
20307 as_lineno_2=$LINENO
20308 test "x$as_lineno_1" != "x$as_lineno_2" &&
20309 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20311 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20312 # uniformly replaced by the line number. The first 'sed' inserts a
20313 # line-number line after each line using $LINENO; the second 'sed'
20314 # does the real work. The second script uses 'N' to pair each
20315 # line-number line with the line containing $LINENO, and appends
20316 # trailing '-' during substitution so that $LINENO is not a special
20317 # case at line end.
20318 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20319 # scripts with optimization help from Paolo Bonzini. Blame Lee
20320 # E. McMahon (1931-1989) for sed's syntax. :-)
20332 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20335 ' >$as_me.lineno &&
20336 chmod +x "$as_me.lineno" ||
20337 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20338 { (exit 1); exit 1; }; }
20340 # Don't try to exec as it changes $[0], causing all sort of problems
20341 # (the dirname of $[0] is not the place where we might find the
20342 # original and so on. Autoconf is especially sensitive to this).
20343 . "./$as_me.lineno"
20344 # Exit status is that of the last command.
20349 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20355 ECHO_C= ECHO_N= ECHO_T=
20356 case `echo -n x` in
20358 case `echo 'x\c'` in
20359 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20366 if expr a : '\(a\)' >/dev/null 2>&1 &&
20367 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20373 rm -f conf$$ conf$$.exe conf$$.file
20374 if test -d conf$$.dir; then
20375 rm -f conf$$.dir/conf$$.file
20381 if ln -s conf$$.file conf$$ 2>/dev/null; then
20383 # ... but there are two gotchas:
20384 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20385 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20386 # In both cases, we have to default to `cp -p'.
20387 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20389 elif ln conf$$.file conf$$ 2>/dev/null; then
20394 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20395 rmdir conf$$.dir 2>/dev/null
20397 if mkdir -p . 2>/dev/null; then
20400 test -d ./-p && rmdir ./-p
20404 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
20405 # systems may use methods other than mode bits to determine executability.
20406 cat >conf$$.file <<_ASEOF
20410 chmod +x conf$$.file
20411 if test -x conf$$.file >/dev/null 2>&1; then
20412 as_executable_p="test -x"
20418 # Sed expression to map a string onto a valid CPP name.
20419 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20421 # Sed expression to map a string onto a valid variable name.
20422 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20427 # Save the log message, to keep $[0] and so on meaningful, and to
20428 # report actual input values of CONFIG_FILES etc. instead of their
20429 # values after options handling.
20431 This file was extended by llvm $as_me 2.7svn, which was
20432 generated by GNU Autoconf 2.60. Invocation command line was
20434 CONFIG_FILES = $CONFIG_FILES
20435 CONFIG_HEADERS = $CONFIG_HEADERS
20436 CONFIG_LINKS = $CONFIG_LINKS
20437 CONFIG_COMMANDS = $CONFIG_COMMANDS
20440 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20445 cat >>$CONFIG_STATUS <<_ACEOF
20446 # Files that config.status was made for.
20447 config_files="$ac_config_files"
20448 config_headers="$ac_config_headers"
20449 config_commands="$ac_config_commands"
20453 cat >>$CONFIG_STATUS <<\_ACEOF
20455 \`$as_me' instantiates files from templates according to the
20456 current configuration.
20458 Usage: $0 [OPTIONS] [FILE]...
20460 -h, --help print this help, then exit
20461 -V, --version print version number, then exit
20462 -q, --quiet do not print progress messages
20463 -d, --debug don't remove temporary files
20464 --recheck update $as_me by reconfiguring in the same conditions
20465 --file=FILE[:TEMPLATE]
20466 instantiate the configuration file FILE
20467 --header=FILE[:TEMPLATE]
20468 instantiate the configuration header FILE
20470 Configuration files:
20473 Configuration headers:
20476 Configuration commands:
20479 Report bugs to <bug-autoconf@gnu.org>."
20482 cat >>$CONFIG_STATUS <<_ACEOF
20484 llvm config.status 2.7svn
20485 configured by $0, generated by GNU Autoconf 2.60,
20486 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20488 Copyright (C) 2006 Free Software Foundation, Inc.
20489 This config.status script is free software; the Free Software Foundation
20490 gives unlimited permission to copy, distribute and modify it."
20497 cat >>$CONFIG_STATUS <<\_ACEOF
20498 # If no file are specified by the user, then we need to provide default
20499 # value. By we need to know if files were specified by the user.
20505 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20506 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20517 # Handling of the options.
20518 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20520 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20521 echo "$ac_cs_version"; exit ;;
20522 --debug | --debu | --deb | --de | --d | -d )
20524 --file | --fil | --fi | --f )
20526 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20527 ac_need_defaults=false;;
20528 --header | --heade | --head | --hea )
20530 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20531 ac_need_defaults=false;;
20533 # Conflict between --help and --header
20534 { echo "$as_me: error: ambiguous option: $1
20535 Try \`$0 --help' for more information." >&2
20536 { (exit 1); exit 1; }; };;
20537 --help | --hel | -h )
20538 echo "$ac_cs_usage"; exit ;;
20539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20540 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20543 # This is an error.
20544 -*) { echo "$as_me: error: unrecognized option: $1
20545 Try \`$0 --help' for more information." >&2
20546 { (exit 1); exit 1; }; } ;;
20548 *) ac_config_targets="$ac_config_targets $1"
20549 ac_need_defaults=false ;;
20555 ac_configure_extra_args=
20557 if $ac_cs_silent; then
20559 ac_configure_extra_args="$ac_configure_extra_args --silent"
20563 cat >>$CONFIG_STATUS <<_ACEOF
20564 if \$ac_cs_recheck; then
20565 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20566 CONFIG_SHELL=$SHELL
20567 export CONFIG_SHELL
20568 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20572 cat >>$CONFIG_STATUS <<\_ACEOF
20576 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20577 ## Running $as_me. ##
20583 cat >>$CONFIG_STATUS <<_ACEOF
20587 llvm_src="${srcdir}"
20591 cat >>$CONFIG_STATUS <<\_ACEOF
20593 # Handling of arguments.
20594 for ac_config_target in $ac_config_targets
20596 case $ac_config_target in
20597 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
20598 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
20599 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
20600 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
20601 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
20602 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
20603 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
20604 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
20605 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
20606 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
20607 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
20608 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
20609 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
20610 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
20611 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
20612 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
20613 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
20614 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
20615 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
20616 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
20617 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
20618 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
20619 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
20620 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
20621 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
20623 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20624 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20625 { (exit 1); exit 1; }; };;
20630 # If the user did not use the arguments to specify the items to instantiate,
20631 # then the envvar interface is used. Set only those that are not.
20632 # We use the long form for the default assignment because of an extremely
20633 # bizarre bug on SunOS 4.1.3.
20634 if $ac_need_defaults; then
20635 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20636 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20637 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20640 # Have a temporary directory for convenience. Make it in the build tree
20641 # simply because there is no reason against having it here, and in addition,
20642 # creating and moving files from /tmp can sometimes cause problems.
20643 # Hook for its removal unless debugging.
20644 # Note that there is a small window in which the directory will not be cleaned:
20645 # after its creation but before its name has been assigned to `$tmp'.
20649 trap 'exit_status=$?
20650 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20652 trap '{ (exit 1); exit 1; }' 1 2 13 15
20654 # Create a (secure) tmp directory for tmp files.
20657 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20658 test -n "$tmp" && test -d "$tmp"
20661 tmp=./conf$$-$RANDOM
20662 (umask 077 && mkdir "$tmp")
20665 echo "$me: cannot create a temporary directory in ." >&2
20666 { (exit 1); exit 1; }
20670 # Set up the sed scripts for CONFIG_FILES section.
20673 # No need to generate the scripts if there are no CONFIG_FILES.
20674 # This happens for instance when ./config.status config.h
20675 if test -n "$CONFIG_FILES"; then
20682 for ac_last_try in false false false false false :; do
20683 cat >conf$$subs.sed <<_ACEOF
20684 SHELL!$SHELL$ac_delim
20685 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20686 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20687 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20688 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20689 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20690 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20691 exec_prefix!$exec_prefix$ac_delim
20692 prefix!$prefix$ac_delim
20693 program_transform_name!$program_transform_name$ac_delim
20694 bindir!$bindir$ac_delim
20695 sbindir!$sbindir$ac_delim
20696 libexecdir!$libexecdir$ac_delim
20697 datarootdir!$datarootdir$ac_delim
20698 datadir!$datadir$ac_delim
20699 sysconfdir!$sysconfdir$ac_delim
20700 sharedstatedir!$sharedstatedir$ac_delim
20701 localstatedir!$localstatedir$ac_delim
20702 includedir!$includedir$ac_delim
20703 oldincludedir!$oldincludedir$ac_delim
20704 docdir!$docdir$ac_delim
20705 infodir!$infodir$ac_delim
20706 htmldir!$htmldir$ac_delim
20707 dvidir!$dvidir$ac_delim
20708 pdfdir!$pdfdir$ac_delim
20709 psdir!$psdir$ac_delim
20710 libdir!$libdir$ac_delim
20711 localedir!$localedir$ac_delim
20712 mandir!$mandir$ac_delim
20713 DEFS!$DEFS$ac_delim
20714 ECHO_C!$ECHO_C$ac_delim
20715 ECHO_N!$ECHO_N$ac_delim
20716 ECHO_T!$ECHO_T$ac_delim
20717 LIBS!$LIBS$ac_delim
20718 build_alias!$build_alias$ac_delim
20719 host_alias!$host_alias$ac_delim
20720 target_alias!$target_alias$ac_delim
20721 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
20722 subdirs!$subdirs$ac_delim
20723 build!$build$ac_delim
20724 build_cpu!$build_cpu$ac_delim
20725 build_vendor!$build_vendor$ac_delim
20726 build_os!$build_os$ac_delim
20727 host!$host$ac_delim
20728 host_cpu!$host_cpu$ac_delim
20729 host_vendor!$host_vendor$ac_delim
20730 host_os!$host_os$ac_delim
20731 target!$target$ac_delim
20732 target_cpu!$target_cpu$ac_delim
20733 target_vendor!$target_vendor$ac_delim
20734 target_os!$target_os$ac_delim
20736 HOST_OS!$HOST_OS$ac_delim
20737 TARGET_OS!$TARGET_OS$ac_delim
20738 LINKALL!$LINKALL$ac_delim
20739 NOLINKALL!$NOLINKALL$ac_delim
20740 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
20741 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
20742 ARCH!$ARCH$ac_delim
20743 ENDIAN!$ENDIAN$ac_delim
20745 CFLAGS!$CFLAGS$ac_delim
20746 LDFLAGS!$LDFLAGS$ac_delim
20747 CPPFLAGS!$CPPFLAGS$ac_delim
20748 ac_ct_CC!$ac_ct_CC$ac_delim
20749 EXEEXT!$EXEEXT$ac_delim
20750 OBJEXT!$OBJEXT$ac_delim
20752 GREP!$GREP$ac_delim
20753 EGREP!$EGREP$ac_delim
20754 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
20755 BUILD_CC!$BUILD_CC$ac_delim
20756 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
20757 BUILD_CXX!$BUILD_CXX$ac_delim
20758 CVSBUILD!$CVSBUILD$ac_delim
20759 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
20760 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
20761 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
20762 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
20763 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
20764 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
20765 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
20767 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
20768 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
20769 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
20770 ENABLE_PIC!$ENABLE_PIC$ac_delim
20771 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
20772 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
20773 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
20774 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
20775 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
20776 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
20777 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
20778 CLANGPATH!$CLANGPATH$ac_delim
20779 CLANGXXPATH!$CLANGXXPATH$ac_delim
20780 ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
20783 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20785 elif $ac_last_try; then
20786 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20787 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20788 { (exit 1); exit 1; }; }
20790 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20794 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20795 if test -n "$ac_eof"; then
20796 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20797 ac_eof=`expr $ac_eof + 1`
20800 cat >>$CONFIG_STATUS <<_ACEOF
20801 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20802 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20805 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20806 s/^/s,@/; s/!/@,|#_!!_#|/
20809 s/'"$ac_delim"'$/,g/; t
20811 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20812 ' >>$CONFIG_STATUS <conf$$subs.sed
20813 rm -f conf$$subs.sed
20814 cat >>$CONFIG_STATUS <<_ACEOF
20820 for ac_last_try in false false false false false :; do
20821 cat >conf$$subs.sed <<_ACEOF
20822 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
20823 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
20824 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
20825 ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
20826 ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
20828 CXXFLAGS!$CXXFLAGS$ac_delim
20829 ac_ct_CXX!$ac_ct_CXX$ac_delim
20831 ifGNUmake!$ifGNUmake$ac_delim
20832 LN_S!$LN_S$ac_delim
20835 DATE!$DATE$ac_delim
20836 FIND!$FIND$ac_delim
20837 MKDIR!$MKDIR$ac_delim
20839 RANLIB!$RANLIB$ac_delim
20844 BINPWD!$BINPWD$ac_delim
20845 GRAPHVIZ!$GRAPHVIZ$ac_delim
20848 NEATO!$NEATO$ac_delim
20849 TWOPI!$TWOPI$ac_delim
20850 CIRCO!$CIRCO$ac_delim
20852 DOTTY!$DOTTY$ac_delim
20853 PERL!$PERL$ac_delim
20854 HAVE_PERL!$HAVE_PERL$ac_delim
20855 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20856 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20857 INSTALL_DATA!$INSTALL_DATA$ac_delim
20858 BZIP2!$BZIP2$ac_delim
20859 DOXYGEN!$DOXYGEN$ac_delim
20860 GROFF!$GROFF$ac_delim
20861 GZIP!$GZIP$ac_delim
20862 POD2HTML!$POD2HTML$ac_delim
20863 POD2MAN!$POD2MAN$ac_delim
20864 RUNTEST!$RUNTEST$ac_delim
20865 TCLSH!$TCLSH$ac_delim
20867 OCAMLC!$OCAMLC$ac_delim
20868 OCAMLOPT!$OCAMLOPT$ac_delim
20869 OCAMLDEP!$OCAMLDEP$ac_delim
20870 OCAMLDOC!$OCAMLDOC$ac_delim
20872 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
20873 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
20874 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
20875 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
20876 LIBADD_DL!$LIBADD_DL$ac_delim
20877 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
20878 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
20879 LLVMGCC!$LLVMGCC$ac_delim
20880 LLVMGXX!$LLVMGXX$ac_delim
20881 LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
20882 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
20883 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
20884 USE_UDIS86!$USE_UDIS86$ac_delim
20885 USE_OPROFILE!$USE_OPROFILE$ac_delim
20886 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
20887 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
20888 MMAP_FILE!$MMAP_FILE$ac_delim
20889 LLVMCC1!$LLVMCC1$ac_delim
20890 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
20891 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
20892 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
20893 SHLIBEXT!$SHLIBEXT$ac_delim
20894 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
20895 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
20896 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
20897 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
20898 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
20899 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
20900 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
20901 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
20902 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
20903 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
20904 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
20905 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
20906 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
20907 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
20908 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
20909 RPATH!$RPATH$ac_delim
20910 RDYNAMIC!$RDYNAMIC$ac_delim
20911 LIBOBJS!$LIBOBJS$ac_delim
20912 LTLIBOBJS!$LTLIBOBJS$ac_delim
20915 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
20917 elif $ac_last_try; then
20918 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20919 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20920 { (exit 1); exit 1; }; }
20922 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20926 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20927 if test -n "$ac_eof"; then
20928 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20929 ac_eof=`expr $ac_eof + 1`
20932 cat >>$CONFIG_STATUS <<_ACEOF
20933 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20934 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20937 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20938 s/^/s,@/; s/!/@,|#_!!_#|/
20941 s/'"$ac_delim"'$/,g/; t
20943 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20944 ' >>$CONFIG_STATUS <conf$$subs.sed
20945 rm -f conf$$subs.sed
20946 cat >>$CONFIG_STATUS <<_ACEOF
20953 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20954 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20955 # trailing colons and then remove the whole line if VPATH becomes empty
20956 # (actually we leave an empty line to preserve line numbers).
20957 if test "x$srcdir" = x.; then
20958 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20959 s/:*\$(srcdir):*/:/
20960 s/:*\${srcdir}:*/:/
20962 s/^\([^=]*=[ ]*\):*/\1/
20968 cat >>$CONFIG_STATUS <<\_ACEOF
20969 fi # test -n "$CONFIG_FILES"
20972 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
20975 :[FHLC]) ac_mode=$ac_tag; continue;;
20977 case $ac_mode$ac_tag in
20979 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20980 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20981 { (exit 1); exit 1; }; };;
20982 :[FH]-) ac_tag=-:-;;
20983 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21000 -) ac_f="$tmp/stdin";;
21001 *) # Look for the file first in the build tree, then in the source tree
21002 # (if the path is not absolute). The absolute path cannot be DOS-style,
21003 # because $ac_f cannot contain `:'.
21007 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21009 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21010 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21011 { (exit 1); exit 1; }; };;
21013 ac_file_inputs="$ac_file_inputs $ac_f"
21016 # Let's still pretend it is `configure' which instantiates (i.e., don't
21017 # use $as_me), people would be surprised to read:
21018 # /* config.h. Generated by config.status. */
21019 configure_input="Generated from "`IFS=:
21020 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21021 if test x"$ac_file" != x-; then
21022 configure_input="$ac_file. $configure_input"
21023 { echo "$as_me:$LINENO: creating $ac_file" >&5
21024 echo "$as_me: creating $ac_file" >&6;}
21028 *:-:* | *:-) cat >"$tmp/stdin";;
21033 ac_dir=`$as_dirname -- "$ac_file" ||
21034 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21035 X"$ac_file" : 'X\(//\)[^/]' \| \
21036 X"$ac_file" : 'X\(//\)$' \| \
21037 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21039 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21043 /^X\(\/\/\)[^/].*/{
21058 -*) as_dir=./$as_dir;;
21060 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21064 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21065 *) as_qdir=$as_dir;;
21067 as_dirs="'$as_qdir' $as_dirs"
21068 as_dir=`$as_dirname -- "$as_dir" ||
21069 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21070 X"$as_dir" : 'X\(//\)[^/]' \| \
21071 X"$as_dir" : 'X\(//\)$' \| \
21072 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21074 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21078 /^X\(\/\/\)[^/].*/{
21091 test -d "$as_dir" && break
21093 test -z "$as_dirs" || eval "mkdir $as_dirs"
21094 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21095 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21096 { (exit 1); exit 1; }; }; }
21100 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21102 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21103 # A ".." for each directory in $ac_dir_suffix.
21104 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21105 case $ac_top_builddir_sub in
21106 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21107 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21110 ac_abs_top_builddir=$ac_pwd
21111 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21112 # for backward compatibility:
21113 ac_top_builddir=$ac_top_build_prefix
21116 .) # We are building in place.
21118 ac_top_srcdir=$ac_top_builddir_sub
21119 ac_abs_top_srcdir=$ac_pwd ;;
21120 [\\/]* | ?:[\\/]* ) # Absolute name.
21121 ac_srcdir=$srcdir$ac_dir_suffix;
21122 ac_top_srcdir=$srcdir
21123 ac_abs_top_srcdir=$srcdir ;;
21124 *) # Relative name.
21125 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21126 ac_top_srcdir=$ac_top_build_prefix$srcdir
21127 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21129 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21139 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21140 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21144 cat >>$CONFIG_STATUS <<\_ACEOF
21145 # If the template does not know about datarootdir, expand it.
21146 # FIXME: This hack should be removed a few years after 2.60.
21147 ac_datarootdir_hack=; ac_datarootdir_seen=
21149 case `sed -n '/datarootdir/ {
21158 ' $ac_file_inputs` in
21159 *datarootdir*) ac_datarootdir_seen=yes;;
21160 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21161 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21162 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21164 cat >>$CONFIG_STATUS <<_ACEOF
21165 ac_datarootdir_hack='
21166 s&@datadir@&$datadir&g
21167 s&@docdir@&$docdir&g
21168 s&@infodir@&$infodir&g
21169 s&@localedir@&$localedir&g
21170 s&@mandir@&$mandir&g
21171 s&\\\${datarootdir}&$datarootdir&g' ;;
21175 # Neutralize VPATH when `$srcdir' = `.'.
21176 # Shell code in configure.ac might set extrasub.
21177 # FIXME: do we really want to maintain this feature?
21178 cat >>$CONFIG_STATUS <<_ACEOF
21182 cat >>$CONFIG_STATUS <<\_ACEOF
21184 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21185 s&@configure_input@&$configure_input&;t t
21186 s&@top_builddir@&$ac_top_builddir_sub&;t t
21187 s&@srcdir@&$ac_srcdir&;t t
21188 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21189 s&@top_srcdir@&$ac_top_srcdir&;t t
21190 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21191 s&@builddir@&$ac_builddir&;t t
21192 s&@abs_builddir@&$ac_abs_builddir&;t t
21193 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21194 s&@INSTALL@&$ac_INSTALL&;t t
21195 $ac_datarootdir_hack
21196 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21198 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21199 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21200 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21201 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21202 which seems to be undefined. Please make sure it is defined." >&5
21203 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21204 which seems to be undefined. Please make sure it is defined." >&2;}
21208 -) cat "$tmp/out"; rm -f "$tmp/out";;
21209 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21218 # Transform confdefs.h into a sed script `conftest.defines', that
21219 # substitutes the proper values into config.h.in to produce config.h.
21220 rm -f conftest.defines conftest.tail
21221 # First, append a space to every undef/define line, to ease matching.
21222 echo 's/$/ /' >conftest.defines
21223 # Then, protect against being on the right side of a sed subst, or in
21224 # an unquoted here document, in config.status. If some macros were
21225 # called several times there might be several #defines for the same
21226 # symbol, which is useless. But do not sort them, since the last
21227 # AC_DEFINE must be honored.
21228 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21229 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21230 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21231 # PARAMS is the parameter list in the macro definition--in most cases, it's
21232 # just an empty string.
21233 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21234 ac_dB='\\)[ (].*,\\1define\\2'
21242 s/^[ ]*#[ ]*define[ ][ ]*//
21247 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21248 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21249 ' >>conftest.defines
21251 # Remove the space that was appended to ease matching.
21252 # Then replace #undef with comments. This is necessary, for
21253 # example, in the case of _POSIX_SOURCE, which is predefined and required
21254 # on some systems where configure will not decide to define it.
21255 # (The regexp can be short, since the line contains either #define or #undef.)
21257 s,^[ #]*u.*,/* & */,' >>conftest.defines
21259 # Break up conftest.defines:
21260 ac_max_sed_lines=50
21262 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21263 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21264 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21266 ac_in='$ac_file_inputs'
21267 ac_out='"$tmp/out1"'
21268 ac_nxt='"$tmp/out2"'
21272 # Write a here document:
21273 cat >>$CONFIG_STATUS <<_ACEOF
21274 # First, check the format of the line:
21275 cat >"\$tmp/defines.sed" <<\\CEOF
21276 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21277 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21281 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21283 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21284 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21285 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21286 grep . conftest.tail >/dev/null || break
21287 rm -f conftest.defines
21288 mv conftest.tail conftest.defines
21290 rm -f conftest.defines conftest.tail
21292 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21293 cat >>$CONFIG_STATUS <<\_ACEOF
21294 if test x"$ac_file" != x-; then
21295 echo "/* $configure_input */" >"$tmp/config.h"
21296 cat "$ac_result" >>"$tmp/config.h"
21297 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21298 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21299 echo "$as_me: $ac_file is unchanged" >&6;}
21302 mv "$tmp/config.h" $ac_file
21305 echo "/* $configure_input */"
21311 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21312 echo "$as_me: executing $ac_file commands" >&6;}
21317 case $ac_file$ac_mode in
21318 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
21319 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
21320 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
21321 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
21322 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
21323 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
21324 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
21325 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
21326 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
21327 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
21328 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
21329 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
21330 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
21331 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
21332 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
21333 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
21334 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
21335 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
21336 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
21337 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
21338 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
21339 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
21340 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
21341 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
21342 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
21343 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
21349 { (exit 0); exit 0; }
21351 chmod +x $CONFIG_STATUS
21352 ac_clean_files=$ac_clean_files_save
21355 # configure is writing to config.log, and then calls config.status.
21356 # config.status does its own redirection, appending to config.log.
21357 # Unfortunately, on DOS this fails, as config.log is still kept open
21358 # by configure, so config.status won't be able to write to it; its
21359 # output is simply discarded. So we exec the FD to /dev/null,
21360 # effectively closing config.log, so it can be properly (re)opened and
21361 # appended to by config.status. When coming back to configure, we
21362 # need to make the FD available again.
21363 if test "$no_create" != yes; then
21365 ac_config_status_args=
21366 test "$silent" = yes &&
21367 ac_config_status_args="$ac_config_status_args --quiet"
21369 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21371 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21372 # would make configure fail if this is the last instruction.
21373 $ac_cs_success || { (exit 1); exit 1; }
21377 # CONFIG_SUBDIRS section.
21379 if test "$no_recursion" != yes; then
21381 # Remove --cache-file and --srcdir arguments so they do not pile up.
21382 ac_sub_configure_args=
21384 eval "set x $ac_configure_args"
21388 if test -n "$ac_prev"; then
21393 -cache-file | --cache-file | --cache-fil | --cache-fi \
21394 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21395 ac_prev=cache_file ;;
21396 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
21397 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
21400 --config-cache | -C)
21402 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21404 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21406 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
21408 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
21412 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21414 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
21418 # Always prepend --prefix to ensure using the same prefix
21419 # in subdir configurations.
21420 ac_arg="--prefix=$prefix"
21422 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21424 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
21427 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
21429 # Do not complain, so a configure script can configure whichever
21430 # parts of a large source tree are present.
21431 test -d "$srcdir/$ac_dir" || continue
21433 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
21434 echo "$as_me:$LINENO: $ac_msg" >&5
21438 -*) as_dir=./$as_dir;;
21440 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21444 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21445 *) as_qdir=$as_dir;;
21447 as_dirs="'$as_qdir' $as_dirs"
21448 as_dir=`$as_dirname -- "$as_dir" ||
21449 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21450 X"$as_dir" : 'X\(//\)[^/]' \| \
21451 X"$as_dir" : 'X\(//\)$' \| \
21452 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21454 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21458 /^X\(\/\/\)[^/].*/{
21471 test -d "$as_dir" && break
21473 test -z "$as_dirs" || eval "mkdir $as_dirs"
21474 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21475 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21476 { (exit 1); exit 1; }; }; }
21480 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21482 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21483 # A ".." for each directory in $ac_dir_suffix.
21484 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21485 case $ac_top_builddir_sub in
21486 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21487 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21490 ac_abs_top_builddir=$ac_pwd
21491 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21492 # for backward compatibility:
21493 ac_top_builddir=$ac_top_build_prefix
21496 .) # We are building in place.
21498 ac_top_srcdir=$ac_top_builddir_sub
21499 ac_abs_top_srcdir=$ac_pwd ;;
21500 [\\/]* | ?:[\\/]* ) # Absolute name.
21501 ac_srcdir=$srcdir$ac_dir_suffix;
21502 ac_top_srcdir=$srcdir
21503 ac_abs_top_srcdir=$srcdir ;;
21504 *) # Relative name.
21505 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21506 ac_top_srcdir=$ac_top_build_prefix$srcdir
21507 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21509 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21514 # Check for guested configure; otherwise get Cygnus style configure.
21515 if test -f "$ac_srcdir/configure.gnu"; then
21516 ac_sub_configure=$ac_srcdir/configure.gnu
21517 elif test -f "$ac_srcdir/configure"; then
21518 ac_sub_configure=$ac_srcdir/configure
21519 elif test -f "$ac_srcdir/configure.in"; then
21520 # This should be Cygnus configure.
21521 ac_sub_configure=$ac_aux_dir/configure
21523 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
21524 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
21528 # The recursion is here.
21529 if test -n "$ac_sub_configure"; then
21530 # Make the cache file name correct relative to the subdirectory.
21531 case $cache_file in
21532 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
21533 *) # Relative name.
21534 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
21537 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
21538 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
21539 # The eval makes quoting arguments work.
21540 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21541 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
21542 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
21543 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
21544 { (exit 1); exit 1; }; }