2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.7svn.
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
257 CONFIG_SHELL=$as_shell
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
284 as_func_ret_success () {
287 as_func_ret_failure () {
292 if as_func_success; then
296 echo as_func_success failed.
299 if as_func_failure; then
301 echo as_func_failure succeeded.
304 if as_func_ret_success; then
308 echo as_func_ret_success failed.
311 if as_func_ret_failure; then
313 echo as_func_ret_failure succeeded.
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 echo positional parameters were not saved.
323 test $exitcode = 0) || { (exit 1); exit 1; }
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
364 (eval "as_func_return () {
373 as_func_ret_success () {
376 as_func_ret_failure () {
381 if as_func_success; then
385 echo as_func_success failed.
388 if as_func_failure; then
390 echo as_func_failure succeeded.
393 if as_func_ret_success; then
397 echo as_func_ret_success failed.
400 if as_func_ret_failure; then
402 echo as_func_ret_failure succeeded.
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 echo positional parameters were not saved.
412 test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 chmod +x "$as_me.lineno" ||
452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 ECHO_C= ECHO_N= ECHO_T=
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
504 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
515 test -d ./-p && rmdir ./-p
519 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
526 if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
541 exec 7<&0 </dev/null 6>&1
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
551 ac_default_prefix=/usr/local
553 ac_config_libobj_dir=.
559 SHELL=${CONFIG_SHELL-/bin/sh}
561 # Identity of this package.
563 PACKAGE_TARNAME='-llvm-'
564 PACKAGE_VERSION='2.7svn'
565 PACKAGE_STRING='llvm 2.7svn'
566 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
568 ac_unique_file="lib/VMCore/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
573 # include <sys/types.h>
576 # include <sys/stat.h>
587 # if !STDC_HEADERS && HAVE_MEMORY_H
593 # include <strings.h>
596 # include <inttypes.h>
614 program_transform_name
683 ENABLE_EXPENSIVE_CHECKS
694 LLVM_ENUM_ASM_PRINTERS
695 LLVM_ENUM_ASM_PARSERS
696 LLVM_ENUM_DISASSEMBLERS
702 ENABLE_LLVMC_DYNAMIC_PLUGINS
750 CONVENIENCE_LTDL_TRUE
751 CONVENIENCE_LTDL_FALSE
758 NO_MISSING_FIELD_INITIALIZERS
784 ENABLE_VISIBILITY_INLINES_HIDDEN
790 ac_precious_vars='build_alias
801 ac_subdirs_all='projects/sample
803 projects/llvm-stacker
810 projects/llvm-poolalloc
812 projects/llvm-kernel'
814 # Initialize some variables set by options.
816 ac_init_version=false
817 # The variables have the same names as the options, with
818 # dashes changed to underlines.
826 program_transform_name=s,x,x,
834 # Installation directory options.
835 # These are left unexpanded so users can "make install exec_prefix=/foo"
836 # and all the variables that are supposed to be based on exec_prefix
837 # by default will actually change.
838 # Use braces instead of parens because sh, perl, etc. also accept them.
839 # (The list follows the same order as the GNU Coding Standards.)
840 bindir='${exec_prefix}/bin'
841 sbindir='${exec_prefix}/sbin'
842 libexecdir='${exec_prefix}/libexec'
843 datarootdir='${prefix}/share'
844 datadir='${datarootdir}'
845 sysconfdir='${prefix}/etc'
846 sharedstatedir='${prefix}/com'
847 localstatedir='${prefix}/var'
848 includedir='${prefix}/include'
849 oldincludedir='/usr/include'
850 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
851 infodir='${datarootdir}/info'
856 libdir='${exec_prefix}/lib'
857 localedir='${datarootdir}/locale'
858 mandir='${datarootdir}/man'
864 # If the previous option needs an argument, assign it.
865 if test -n "$ac_prev"; then
866 eval $ac_prev=\$ac_option
872 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
876 # Accept the important Cygnus configure options, so we can diagnose typos.
878 case $ac_dashdash$ac_option in
882 -bindir | --bindir | --bindi | --bind | --bin | --bi)
884 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
887 -build | --build | --buil | --bui | --bu)
888 ac_prev=build_alias ;;
889 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
890 build_alias=$ac_optarg ;;
892 -cache-file | --cache-file | --cache-fil | --cache-fi \
893 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
894 ac_prev=cache_file ;;
895 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
896 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
897 cache_file=$ac_optarg ;;
900 cache_file=config.cache ;;
902 -datadir | --datadir | --datadi | --datad)
904 -datadir=* | --datadir=* | --datadi=* | --datad=*)
905 datadir=$ac_optarg ;;
907 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
908 | --dataroo | --dataro | --datar)
909 ac_prev=datarootdir ;;
910 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
911 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
912 datarootdir=$ac_optarg ;;
914 -disable-* | --disable-*)
915 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
916 # Reject names that are not valid shell variable names.
917 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
918 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
919 { (exit 1); exit 1; }; }
920 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
921 eval enable_$ac_feature=no ;;
923 -docdir | --docdir | --docdi | --doc | --do)
925 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
928 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
930 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
933 -enable-* | --enable-*)
934 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
935 # Reject names that are not valid shell variable names.
936 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
937 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
938 { (exit 1); exit 1; }; }
939 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
940 eval enable_$ac_feature=\$ac_optarg ;;
942 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
943 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
944 | --exec | --exe | --ex)
945 ac_prev=exec_prefix ;;
946 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
947 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
948 | --exec=* | --exe=* | --ex=*)
949 exec_prefix=$ac_optarg ;;
951 -gas | --gas | --ga | --g)
952 # Obsolete; use --with-gas.
955 -help | --help | --hel | --he | -h)
957 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
958 ac_init_help=recursive ;;
959 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
960 ac_init_help=short ;;
962 -host | --host | --hos | --ho)
963 ac_prev=host_alias ;;
964 -host=* | --host=* | --hos=* | --ho=*)
965 host_alias=$ac_optarg ;;
967 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
969 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
971 htmldir=$ac_optarg ;;
973 -includedir | --includedir | --includedi | --included | --include \
974 | --includ | --inclu | --incl | --inc)
975 ac_prev=includedir ;;
976 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
977 | --includ=* | --inclu=* | --incl=* | --inc=*)
978 includedir=$ac_optarg ;;
980 -infodir | --infodir | --infodi | --infod | --info | --inf)
982 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
983 infodir=$ac_optarg ;;
985 -libdir | --libdir | --libdi | --libd)
987 -libdir=* | --libdir=* | --libdi=* | --libd=*)
990 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
991 | --libexe | --libex | --libe)
992 ac_prev=libexecdir ;;
993 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
994 | --libexe=* | --libex=* | --libe=*)
995 libexecdir=$ac_optarg ;;
997 -localedir | --localedir | --localedi | --localed | --locale)
999 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1000 localedir=$ac_optarg ;;
1002 -localstatedir | --localstatedir | --localstatedi | --localstated \
1003 | --localstate | --localstat | --localsta | --localst | --locals)
1004 ac_prev=localstatedir ;;
1005 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1006 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1007 localstatedir=$ac_optarg ;;
1009 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1011 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1012 mandir=$ac_optarg ;;
1014 -nfp | --nfp | --nf)
1015 # Obsolete; use --without-fp.
1018 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1019 | --no-cr | --no-c | -n)
1022 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1023 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1026 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1027 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1028 | --oldin | --oldi | --old | --ol | --o)
1029 ac_prev=oldincludedir ;;
1030 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1031 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1032 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1033 oldincludedir=$ac_optarg ;;
1035 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1037 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1038 prefix=$ac_optarg ;;
1040 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1041 | --program-pre | --program-pr | --program-p)
1042 ac_prev=program_prefix ;;
1043 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1044 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1045 program_prefix=$ac_optarg ;;
1047 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1048 | --program-suf | --program-su | --program-s)
1049 ac_prev=program_suffix ;;
1050 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1051 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1052 program_suffix=$ac_optarg ;;
1054 -program-transform-name | --program-transform-name \
1055 | --program-transform-nam | --program-transform-na \
1056 | --program-transform-n | --program-transform- \
1057 | --program-transform | --program-transfor \
1058 | --program-transfo | --program-transf \
1059 | --program-trans | --program-tran \
1060 | --progr-tra | --program-tr | --program-t)
1061 ac_prev=program_transform_name ;;
1062 -program-transform-name=* | --program-transform-name=* \
1063 | --program-transform-nam=* | --program-transform-na=* \
1064 | --program-transform-n=* | --program-transform-=* \
1065 | --program-transform=* | --program-transfor=* \
1066 | --program-transfo=* | --program-transf=* \
1067 | --program-trans=* | --program-tran=* \
1068 | --progr-tra=* | --program-tr=* | --program-t=*)
1069 program_transform_name=$ac_optarg ;;
1071 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1073 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1074 pdfdir=$ac_optarg ;;
1076 -psdir | --psdir | --psdi | --psd | --ps)
1078 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1081 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1082 | -silent | --silent | --silen | --sile | --sil)
1085 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1087 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1089 sbindir=$ac_optarg ;;
1091 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1092 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1093 | --sharedst | --shareds | --shared | --share | --shar \
1095 ac_prev=sharedstatedir ;;
1096 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1097 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1098 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1100 sharedstatedir=$ac_optarg ;;
1102 -site | --site | --sit)
1104 -site=* | --site=* | --sit=*)
1107 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1109 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1110 srcdir=$ac_optarg ;;
1112 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1113 | --syscon | --sysco | --sysc | --sys | --sy)
1114 ac_prev=sysconfdir ;;
1115 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1116 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1117 sysconfdir=$ac_optarg ;;
1119 -target | --target | --targe | --targ | --tar | --ta | --t)
1120 ac_prev=target_alias ;;
1121 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1122 target_alias=$ac_optarg ;;
1124 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1127 -version | --version | --versio | --versi | --vers | -V)
1128 ac_init_version=: ;;
1131 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1132 # Reject names that are not valid shell variable names.
1133 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1134 { echo "$as_me: error: invalid package name: $ac_package" >&2
1135 { (exit 1); exit 1; }; }
1136 ac_package=`echo $ac_package| sed 's/-/_/g'`
1137 eval with_$ac_package=\$ac_optarg ;;
1139 -without-* | --without-*)
1140 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1141 # Reject names that are not valid shell variable names.
1142 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1143 { echo "$as_me: error: invalid package name: $ac_package" >&2
1144 { (exit 1); exit 1; }; }
1145 ac_package=`echo $ac_package | sed 's/-/_/g'`
1146 eval with_$ac_package=no ;;
1149 # Obsolete; use --with-x.
1152 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1153 | --x-incl | --x-inc | --x-in | --x-i)
1154 ac_prev=x_includes ;;
1155 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1156 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1157 x_includes=$ac_optarg ;;
1159 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1160 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1161 ac_prev=x_libraries ;;
1162 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1163 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1164 x_libraries=$ac_optarg ;;
1166 -*) { echo "$as_me: error: unrecognized option: $ac_option
1167 Try \`$0 --help' for more information." >&2
1168 { (exit 1); exit 1; }; }
1172 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1173 # Reject names that are not valid shell variable names.
1174 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1175 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1176 { (exit 1); exit 1; }; }
1177 eval $ac_envvar=\$ac_optarg
1178 export $ac_envvar ;;
1181 # FIXME: should be removed in autoconf 3.0.
1182 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1183 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1184 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1185 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1191 if test -n "$ac_prev"; then
1192 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1193 { echo "$as_me: error: missing argument to $ac_option" >&2
1194 { (exit 1); exit 1; }; }
1197 # Be sure to have absolute directory names.
1198 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1199 datadir sysconfdir sharedstatedir localstatedir includedir \
1200 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1201 libdir localedir mandir
1203 eval ac_val=\$$ac_var
1205 [\\/$]* | ?:[\\/]* ) continue;;
1206 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1208 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1209 { (exit 1); exit 1; }; }
1212 # There might be people who depend on the old broken behavior: `$host'
1213 # used to hold the argument of --host etc.
1214 # FIXME: To remove some day.
1217 target=$target_alias
1219 # FIXME: To remove some day.
1220 if test "x$host_alias" != x; then
1221 if test "x$build_alias" = x; then
1222 cross_compiling=maybe
1223 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1224 If a cross compiler is detected then cross compile mode will be used." >&2
1225 elif test "x$build_alias" != "x$host_alias"; then
1231 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1233 test "$silent" = yes && exec 6>/dev/null
1236 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1237 ac_ls_di=`ls -di .` &&
1238 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1239 { echo "$as_me: error: Working directory cannot be determined" >&2
1240 { (exit 1); exit 1; }; }
1241 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1242 { echo "$as_me: error: pwd does not report name of working directory" >&2
1243 { (exit 1); exit 1; }; }
1246 # Find the source files, if location was not specified.
1247 if test -z "$srcdir"; then
1248 ac_srcdir_defaulted=yes
1249 # Try the directory containing this script, then the parent directory.
1250 ac_confdir=`$as_dirname -- "$0" ||
1251 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1252 X"$0" : 'X\(//\)[^/]' \| \
1253 X"$0" : 'X\(//\)$' \| \
1254 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1256 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1274 if test ! -r "$srcdir/$ac_unique_file"; then
1278 ac_srcdir_defaulted=no
1280 if test ! -r "$srcdir/$ac_unique_file"; then
1281 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1282 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1283 { (exit 1); exit 1; }; }
1285 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1287 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1288 { (exit 1); exit 1; }; }
1290 # When building in place, set srcdir=.
1291 if test "$ac_abs_confdir" = "$ac_pwd"; then
1294 # Remove unnecessary trailing slashes from srcdir.
1295 # Double slashes in file names in object file debugging info
1296 # mess up M-x gdb in Emacs.
1298 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1300 for ac_var in $ac_precious_vars; do
1301 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1302 eval ac_env_${ac_var}_value=\$${ac_var}
1303 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1304 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1308 # Report the --help message.
1310 if test "$ac_init_help" = "long"; then
1311 # Omit some internal or obsolete options to make the list less imposing.
1312 # This message is too long to be a string in the A/UX 3.1 sh.
1314 \`configure' configures llvm 2.7svn to adapt to many kinds of systems.
1316 Usage: $0 [OPTION]... [VAR=VALUE]...
1318 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1319 VAR=VALUE. See below for descriptions of some of the useful variables.
1321 Defaults for the options are specified in brackets.
1324 -h, --help display this help and exit
1325 --help=short display options specific to this package
1326 --help=recursive display the short help of all the included packages
1327 -V, --version display version information and exit
1328 -q, --quiet, --silent do not print \`checking...' messages
1329 --cache-file=FILE cache test results in FILE [disabled]
1330 -C, --config-cache alias for \`--cache-file=config.cache'
1331 -n, --no-create do not create output files
1332 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1334 Installation directories:
1335 --prefix=PREFIX install architecture-independent files in PREFIX
1336 [$ac_default_prefix]
1337 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1340 By default, \`make install' will install all the files in
1341 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1342 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1343 for instance \`--prefix=\$HOME'.
1345 For better control, use the options below.
1347 Fine tuning of the installation directories:
1348 --bindir=DIR user executables [EPREFIX/bin]
1349 --sbindir=DIR system admin executables [EPREFIX/sbin]
1350 --libexecdir=DIR program executables [EPREFIX/libexec]
1351 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1352 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1353 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1354 --libdir=DIR object code libraries [EPREFIX/lib]
1355 --includedir=DIR C header files [PREFIX/include]
1356 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1357 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1358 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1359 --infodir=DIR info documentation [DATAROOTDIR/info]
1360 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1361 --mandir=DIR man documentation [DATAROOTDIR/man]
1362 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1363 --htmldir=DIR html documentation [DOCDIR]
1364 --dvidir=DIR dvi documentation [DOCDIR]
1365 --pdfdir=DIR pdf documentation [DOCDIR]
1366 --psdir=DIR ps documentation [DOCDIR]
1372 --build=BUILD configure for building on BUILD [guessed]
1373 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1374 --target=TARGET configure for building compilers for TARGET [HOST]
1378 if test -n "$ac_init_help"; then
1379 case $ac_init_help in
1380 short | recursive ) echo "Configuration of llvm 2.7svn:";;
1385 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1386 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1387 --enable-optimized Compile with optimizations enabled (default is NO)
1388 --enable-profiling Compile with profiling enabled (default is NO)
1389 --enable-assertions Compile with assertion checks enabled (default is
1391 --enable-expensive-checks
1392 Compile with expensive debug checks enabled (default
1394 --enable-debug-runtime Build runtime libs with debug symbols (default is
1396 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1397 optimization is on and YES if it's off)
1398 --enable-jit Enable Just In Time Compiling (default is YES)
1399 --enable-doxygen Build doxygen documentation (default is NO)
1400 --enable-threads Use threads if available (default is YES)
1401 --enable-pic Build LLVM with Position Independent Code (default
1403 --enable-targets Build specific host targets: all or
1404 target1,target2,... Valid targets are: host, x86,
1405 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1406 pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1407 and cpp (default=all)
1408 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1410 --enable-bindings Build specific language bindings:
1411 all,auto,none,{binding-name} (default=auto)
1412 --enable-libffi Check for the presence of libffi (default is NO)
1413 --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on
1415 --enable-llvmc-dynamic-plugins
1416 Enable dynamic LLVMC plugins (default is YES)
1417 --enable-ltdl-install install libltdl
1420 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1421 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1422 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1424 --with-llvmgcc Specify location of llvm-gcc driver (default
1426 --with-llvmgxx Specify location of llvm-g++ driver (default
1428 --with-optimize-option Select the compiler options to use for optimized
1430 --with-extra-options Specify additional options to compile LLVM with
1431 --with-ocaml-libdir Specify install location for ocaml bindings (default
1433 --with-c-include-dirs Colon separated list of directories clang will
1435 --with-cxx-include-root Directory with the libstdc++ headers.
1436 --with-cxx-include-arch Architecture of the libstdc++ headers.
1437 --with-cxx-include-32bit-dir
1438 32 bit multilib dir.
1439 --with-cxx-include-64bit-dir
1440 64 bit multilib directory.
1441 --with-binutils-include Specify path to binutils/include/ containing
1442 plugin-api.h file for gold plugin.
1443 --with-tclinclude directory where tcl headers are
1444 --with-udis86=<path> Use udis86 external x86 disassembler library
1445 --with-oprofile=<prefix>
1446 Tell OProfile >= 0.9.4 how to symbolize JIT output
1448 Some influential environment variables:
1449 CC C compiler command
1450 CFLAGS C compiler flags
1451 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1452 nonstandard directory <lib dir>
1453 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1454 you have headers in a nonstandard directory <include dir>
1456 CXX C++ compiler command
1457 CXXFLAGS C++ compiler flags
1459 Use these variables to override the choices made by `configure' or to help
1460 it to find libraries and programs with nonstandard names/locations.
1462 Report bugs to <llvmbugs@cs.uiuc.edu>.
1467 if test "$ac_init_help" = "recursive"; then
1468 # If there are subdirs, report their specific --help.
1469 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1470 test -d "$ac_dir" || continue
1474 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1476 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1477 # A ".." for each directory in $ac_dir_suffix.
1478 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1479 case $ac_top_builddir_sub in
1480 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1481 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1484 ac_abs_top_builddir=$ac_pwd
1485 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1486 # for backward compatibility:
1487 ac_top_builddir=$ac_top_build_prefix
1490 .) # We are building in place.
1492 ac_top_srcdir=$ac_top_builddir_sub
1493 ac_abs_top_srcdir=$ac_pwd ;;
1494 [\\/]* | ?:[\\/]* ) # Absolute name.
1495 ac_srcdir=$srcdir$ac_dir_suffix;
1496 ac_top_srcdir=$srcdir
1497 ac_abs_top_srcdir=$srcdir ;;
1499 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1500 ac_top_srcdir=$ac_top_build_prefix$srcdir
1501 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1503 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1505 cd "$ac_dir" || { ac_status=$?; continue; }
1506 # Check for guested configure.
1507 if test -f "$ac_srcdir/configure.gnu"; then
1509 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1510 elif test -f "$ac_srcdir/configure"; then
1512 $SHELL "$ac_srcdir/configure" --help=recursive
1514 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1516 cd "$ac_pwd" || { ac_status=$?; break; }
1520 test -n "$ac_init_help" && exit $ac_status
1521 if $ac_init_version; then
1523 llvm configure 2.7svn
1524 generated by GNU Autoconf 2.60
1526 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1527 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1528 This configure script is free software; the Free Software Foundation
1529 gives unlimited permission to copy, distribute and modify it.
1531 Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
1535 cat >config.log <<_ACEOF
1536 This file contains any messages produced by compilers while
1537 running configure, to aid debugging if configure makes a mistake.
1539 It was created by llvm $as_me 2.7svn, which was
1540 generated by GNU Autoconf 2.60. Invocation command line was
1552 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1553 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1554 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1555 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1556 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1558 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1559 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1561 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1562 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1563 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1564 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1565 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1566 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1567 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1575 test -z "$as_dir" && as_dir=.
1576 echo "PATH: $as_dir"
1592 # Keep a trace of the command line.
1593 # Strip out --no-create and --no-recursion so they do not pile up.
1594 # Strip out --silent because we don't want to record it for future runs.
1595 # Also quote any args containing shell meta-characters.
1596 # Make two passes to allow for proper duplicate-argument suppression.
1600 ac_must_keep_next=false
1606 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1607 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1608 | -silent | --silent | --silen | --sile | --sil)
1611 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1614 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1616 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1617 if test $ac_must_keep_next = true; then
1618 ac_must_keep_next=false # Got value, back to normal.
1621 *=* | --config-cache | -C | -disable-* | --disable-* \
1622 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1623 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1624 | -with-* | --with-* | -without-* | --without-* | --x)
1625 case "$ac_configure_args0 " in
1626 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1629 -* ) ac_must_keep_next=true ;;
1632 ac_configure_args="$ac_configure_args '$ac_arg'"
1637 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1638 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1640 # When interrupted or exit'd, cleanup temporary files, and complete
1641 # config.log. We remove comments because anyway the quotes in there
1642 # would cause problems or look ugly.
1643 # WARNING: Use '\'' to represent an apostrophe within the trap.
1644 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1645 trap 'exit_status=$?
1646 # Save into config.log some information that might help in debugging.
1651 ## ---------------- ##
1652 ## Cache variables. ##
1653 ## ---------------- ##
1656 # The following way of writing the cache mishandles newlines in values,
1658 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1659 eval ac_val=\$$ac_var
1663 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1664 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1667 _ | IFS | as_nl) ;; #(
1668 *) $as_unset $ac_var ;;
1673 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1674 *${as_nl}ac_space=\ *)
1676 "s/'\''/'\''\\\\'\'''\''/g;
1677 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1680 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1688 ## ----------------- ##
1689 ## Output variables. ##
1690 ## ----------------- ##
1693 for ac_var in $ac_subst_vars
1695 eval ac_val=\$$ac_var
1697 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1699 echo "$ac_var='\''$ac_val'\''"
1703 if test -n "$ac_subst_files"; then
1705 ## ------------------- ##
1706 ## File substitutions. ##
1707 ## ------------------- ##
1710 for ac_var in $ac_subst_files
1712 eval ac_val=\$$ac_var
1714 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1716 echo "$ac_var='\''$ac_val'\''"
1721 if test -s confdefs.h; then
1731 test "$ac_signal" != 0 &&
1732 echo "$as_me: caught signal $ac_signal"
1733 echo "$as_me: exit $exit_status"
1735 rm -f core *.core core.conftest.* &&
1736 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1739 for ac_signal in 1 2 13 15; do
1740 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1744 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1745 rm -f -r conftest* confdefs.h
1747 # Predefined preprocessor variables.
1749 cat >>confdefs.h <<_ACEOF
1750 #define PACKAGE_NAME "$PACKAGE_NAME"
1754 cat >>confdefs.h <<_ACEOF
1755 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1759 cat >>confdefs.h <<_ACEOF
1760 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1764 cat >>confdefs.h <<_ACEOF
1765 #define PACKAGE_STRING "$PACKAGE_STRING"
1769 cat >>confdefs.h <<_ACEOF
1770 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1774 # Let the site file select an alternate cache file if it wants to.
1775 # Prefer explicitly selected file to automatically selected ones.
1776 if test -n "$CONFIG_SITE"; then
1777 set x "$CONFIG_SITE"
1778 elif test "x$prefix" != xNONE; then
1779 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1781 set x "$ac_default_prefix/share/config.site" \
1782 "$ac_default_prefix/etc/config.site"
1787 if test -r "$ac_site_file"; then
1788 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1789 echo "$as_me: loading site script $ac_site_file" >&6;}
1790 sed 's/^/| /' "$ac_site_file" >&5
1795 if test -r "$cache_file"; then
1796 # Some versions of bash will fail to source /dev/null (special
1797 # files actually), so we avoid doing that.
1798 if test -f "$cache_file"; then
1799 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1800 echo "$as_me: loading cache $cache_file" >&6;}
1802 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1803 *) . "./$cache_file";;
1807 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1808 echo "$as_me: creating cache $cache_file" >&6;}
1812 # Check that the precious variables saved in the cache have kept the same
1814 ac_cache_corrupted=false
1815 for ac_var in $ac_precious_vars; do
1816 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1817 eval ac_new_set=\$ac_env_${ac_var}_set
1818 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1819 eval ac_new_val=\$ac_env_${ac_var}_value
1820 case $ac_old_set,$ac_new_set in
1822 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1823 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1824 ac_cache_corrupted=: ;;
1826 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1827 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1828 ac_cache_corrupted=: ;;
1831 if test "x$ac_old_val" != "x$ac_new_val"; then
1832 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1833 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1834 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1835 echo "$as_me: former value: $ac_old_val" >&2;}
1836 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1837 echo "$as_me: current value: $ac_new_val" >&2;}
1838 ac_cache_corrupted=:
1841 # Pass precious variables to config.status.
1842 if test "$ac_new_set" = set; then
1844 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1845 *) ac_arg=$ac_var=$ac_new_val ;;
1847 case " $ac_configure_args " in
1848 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1849 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1853 if $ac_cache_corrupted; then
1854 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1855 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1856 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1857 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1858 { (exit 1); exit 1; }; }
1886 ac_cpp='$CPP $CPPFLAGS'
1887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1893 LLVM_COPYRIGHT="Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign."
1902 for ac_dir in autoconf "$srcdir"/autoconf; do
1903 if test -f "$ac_dir/install-sh"; then
1905 ac_install_sh="$ac_aux_dir/install-sh -c"
1907 elif test -f "$ac_dir/install.sh"; then
1909 ac_install_sh="$ac_aux_dir/install.sh -c"
1911 elif test -f "$ac_dir/shtool"; then
1913 ac_install_sh="$ac_aux_dir/shtool install -c"
1917 if test -z "$ac_aux_dir"; then
1918 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1919 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1920 { (exit 1); exit 1; }; }
1923 # These three variables are undocumented and unsupported,
1924 # and are intended to be withdrawn in a future Autoconf release.
1925 # They can cause serious problems if a builder's source tree is in a directory
1926 # whose full name contains unusual characters.
1927 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1928 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1929 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1933 if test ${srcdir} != "." ; then
1934 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1935 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1936 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1937 { (exit 1); exit 1; }; }
1941 for i in `ls ${srcdir}/projects`
1943 if test -d ${srcdir}/projects/${i} ; then
1946 sample) subdirs="$subdirs projects/sample"
1948 privbracket) subdirs="$subdirs projects/privbracket"
1950 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
1952 # llvm-test is the old name of the test-suite, kept here for backwards
1954 llvm-test) subdirs="$subdirs projects/llvm-test"
1956 test-suite) subdirs="$subdirs projects/test-suite"
1958 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
1960 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
1962 llvm-java) subdirs="$subdirs projects/llvm-java"
1964 llvm-tv) subdirs="$subdirs projects/llvm-tv"
1966 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
1968 poolalloc) subdirs="$subdirs projects/poolalloc"
1970 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
1973 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1974 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1981 # Make sure we can run config.sub.
1982 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1983 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1984 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1985 { (exit 1); exit 1; }; }
1987 { echo "$as_me:$LINENO: checking build system type" >&5
1988 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1989 if test "${ac_cv_build+set}" = set; then
1990 echo $ECHO_N "(cached) $ECHO_C" >&6
1992 ac_build_alias=$build_alias
1993 test "x$ac_build_alias" = x &&
1994 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1995 test "x$ac_build_alias" = x &&
1996 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1997 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1998 { (exit 1); exit 1; }; }
1999 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2000 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2001 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2002 { (exit 1); exit 1; }; }
2005 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2006 echo "${ECHO_T}$ac_cv_build" >&6; }
2007 case $ac_cv_build in
2009 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2010 echo "$as_me: error: invalid value of canonical build" >&2;}
2011 { (exit 1); exit 1; }; };;
2014 ac_save_IFS=$IFS; IFS='-'
2020 # Remember, the first character of IFS is used to create $*,
2021 # except with old shells:
2024 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2027 { echo "$as_me:$LINENO: checking host system type" >&5
2028 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2029 if test "${ac_cv_host+set}" = set; then
2030 echo $ECHO_N "(cached) $ECHO_C" >&6
2032 if test "x$host_alias" = x; then
2033 ac_cv_host=$ac_cv_build
2035 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2036 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2037 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2038 { (exit 1); exit 1; }; }
2042 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2043 echo "${ECHO_T}$ac_cv_host" >&6; }
2046 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2047 echo "$as_me: error: invalid value of canonical host" >&2;}
2048 { (exit 1); exit 1; }; };;
2051 ac_save_IFS=$IFS; IFS='-'
2057 # Remember, the first character of IFS is used to create $*,
2058 # except with old shells:
2061 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2064 { echo "$as_me:$LINENO: checking target system type" >&5
2065 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2066 if test "${ac_cv_target+set}" = set; then
2067 echo $ECHO_N "(cached) $ECHO_C" >&6
2069 if test "x$target_alias" = x; then
2070 ac_cv_target=$ac_cv_host
2072 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2073 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2074 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2075 { (exit 1); exit 1; }; }
2079 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2080 echo "${ECHO_T}$ac_cv_target" >&6; }
2081 case $ac_cv_target in
2083 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2084 echo "$as_me: error: invalid value of canonical target" >&2;}
2085 { (exit 1); exit 1; }; };;
2087 target=$ac_cv_target
2088 ac_save_IFS=$IFS; IFS='-'
2094 # Remember, the first character of IFS is used to create $*,
2095 # except with old shells:
2098 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2101 # The aliases save the names the user supplied, while $host etc.
2102 # will get canonicalized.
2103 test -n "$target_alias" &&
2104 test "$program_prefix$program_suffix$program_transform_name" = \
2106 program_prefix=${target_alias}-
2108 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2109 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2110 if test "${llvm_cv_os_type+set}" = set; then
2111 echo $ECHO_N "(cached) $ECHO_C" >&6
2115 llvm_cv_link_all_option="-Wl,--whole-archive"
2116 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2117 llvm_cv_os_type="AIX"
2118 llvm_cv_platform_type="Unix" ;;
2120 llvm_cv_link_all_option="-Wl,--whole-archive"
2121 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2122 llvm_cv_os_type="IRIX"
2123 llvm_cv_platform_type="Unix" ;;
2125 llvm_cv_link_all_option="-Wl,--whole-archive"
2126 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2127 llvm_cv_os_type="Cygwin"
2128 llvm_cv_platform_type="Unix" ;;
2130 llvm_cv_link_all_option="-Wl,-all_load"
2131 llvm_cv_no_link_all_option="-Wl,-noall_load"
2132 llvm_cv_os_type="Darwin"
2133 llvm_cv_platform_type="Unix" ;;
2135 llvm_cv_link_all_option="-Wl,--whole-archive"
2136 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2137 llvm_cv_os_type="FreeBSD"
2138 llvm_cv_platform_type="Unix" ;;
2140 llvm_cv_link_all_option="-Wl,--whole-archive"
2141 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2142 llvm_cv_os_type="OpenBSD"
2143 llvm_cv_platform_type="Unix" ;;
2145 llvm_cv_link_all_option="-Wl,--whole-archive"
2146 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2147 llvm_cv_os_type="NetBSD"
2148 llvm_cv_platform_type="Unix" ;;
2150 llvm_cv_link_all_option="-Wl,--whole-archive"
2151 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2152 llvm_cv_os_type="DragonFly"
2153 llvm_cv_platform_type="Unix" ;;
2155 llvm_cv_link_all_option="-Wl,--whole-archive"
2156 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2157 llvm_cv_os_type="HP-UX"
2158 llvm_cv_platform_type="Unix" ;;
2160 llvm_cv_link_all_option="-Wl,--whole-archive"
2161 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2162 llvm_cv_os_type="Interix"
2163 llvm_cv_platform_type="Unix" ;;
2165 llvm_cv_link_all_option="-Wl,--whole-archive"
2166 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2167 llvm_cv_os_type="Linux"
2168 llvm_cv_platform_type="Unix" ;;
2170 llvm_cv_link_all_option="-Wl,-z,allextract"
2171 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2172 llvm_cv_os_type="SunOS"
2173 llvm_cv_platform_type="Unix" ;;
2175 llvm_cv_link_all_option="-Wl,-z,allextract"
2176 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2177 llvm_cv_os_type="AuroraUX"
2178 llvm_cv_platform_type="Unix" ;;
2180 llvm_cv_link_all_option="-Wl,--whole-archive"
2181 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2182 llvm_cv_os_type="Win32"
2183 llvm_cv_platform_type="Win32" ;;
2185 llvm_cv_link_all_option="-Wl,--whole-archive"
2186 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2187 llvm_cv_os_type="MingW"
2188 llvm_cv_platform_type="Win32" ;;
2190 llvm_cv_link_all_option="-Wl,--whole-archive"
2191 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2192 llvm_cv_os_type="Haiku"
2193 llvm_cv_platform_type="Unix" ;;
2195 llvm_cv_link_all_option="-Wl,--whole-archive"
2196 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2197 llvm_cv_os_type="Freestanding"
2198 llvm_cv_platform_type="Unix" ;;
2200 llvm_cv_link_all_option="-Wl,--whole-archive"
2201 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2202 llvm_cv_os_type="Freestanding"
2203 llvm_cv_platform_type="Unix" ;;
2205 llvm_cv_link_all_option=""
2206 llvm_cv_no_link_all_option=""
2207 llvm_cv_os_type="Unknown"
2208 llvm_cv_platform_type="Unknown" ;;
2211 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2212 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2214 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2215 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2216 if test "${llvm_cv_target_os_type+set}" = set; then
2217 echo $ECHO_N "(cached) $ECHO_C" >&6
2221 llvm_cv_target_os_type="AIX" ;;
2223 llvm_cv_target_os_type="IRIX" ;;
2225 llvm_cv_target_os_type="Cygwin" ;;
2227 llvm_cv_target_os_type="Darwin" ;;
2229 llvm_cv_target_os_type="FreeBSD" ;;
2231 llvm_cv_target_os_type="OpenBSD" ;;
2233 llvm_cv_target_os_type="NetBSD" ;;
2235 llvm_cv_target_os_type="DragonFly" ;;
2237 llvm_cv_target_os_type="HP-UX" ;;
2239 llvm_cv_target_os_type="Interix" ;;
2241 llvm_cv_target_os_type="Linux" ;;
2243 llvm_cv_target_os_type="SunOS" ;;
2245 llvm_cv_target_os_type="AuroraUX" ;;
2247 llvm_cv_target_os_type="Win32" ;;
2249 llvm_cv_target_os_type="MingW" ;;
2251 llvm_cv_target_os_type="Haiku" ;;
2253 llvm_cv_target_os_type="Freestanding" ;;
2255 llvm_cv_target_os_type="Unknown" ;;
2258 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2259 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2261 if test "$llvm_cv_os_type" = "Unknown" ; then
2262 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2263 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2264 { (exit 1); exit 1; }; }
2269 HOST_OS=$llvm_cv_os_type
2271 TARGET_OS=$llvm_cv_target_os_type
2274 LINKALL=$llvm_cv_link_all_option
2276 NOLINKALL=$llvm_cv_no_link_all_option
2279 case $llvm_cv_platform_type in
2282 cat >>confdefs.h <<\_ACEOF
2283 #define LLVM_ON_UNIX 1
2293 cat >>confdefs.h <<\_ACEOF
2294 #define LLVM_ON_WIN32 1
2304 { echo "$as_me:$LINENO: checking target architecture" >&5
2305 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2306 if test "${llvm_cv_target_arch+set}" = set; then
2307 echo $ECHO_N "(cached) $ECHO_C" >&6
2310 i?86-*) llvm_cv_target_arch="x86" ;;
2311 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2312 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2313 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2314 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2315 arm*-*) llvm_cv_target_arch="ARM" ;;
2316 mips-*) llvm_cv_target_arch="Mips" ;;
2317 pic16-*) llvm_cv_target_arch="PIC16" ;;
2318 xcore-*) llvm_cv_target_arch="XCore" ;;
2319 msp430-*) llvm_cv_target_arch="MSP430" ;;
2320 s390x-*) llvm_cv_target_arch="SystemZ" ;;
2321 bfin-*) llvm_cv_target_arch="Blackfin" ;;
2322 *) llvm_cv_target_arch="Unknown" ;;
2325 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2326 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2328 if test "$llvm_cv_target_arch" = "Unknown" ; then
2329 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2330 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2333 # Determine the LLVM native architecture for the target
2334 case "$llvm_cv_target_arch" in
2335 x86) LLVM_NATIVE_ARCH="X86" ;;
2336 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2337 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2340 ARCH=$llvm_cv_target_arch
2344 ac_cpp='$CPP $CPPFLAGS'
2345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2348 if test -n "$ac_tool_prefix"; then
2349 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2350 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2351 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2353 if test "${ac_cv_prog_CC+set}" = set; then
2354 echo $ECHO_N "(cached) $ECHO_C" >&6
2356 if test -n "$CC"; then
2357 ac_cv_prog_CC="$CC" # Let the user override the test.
2359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2363 test -z "$as_dir" && as_dir=.
2364 for ac_exec_ext in '' $ac_executable_extensions; do
2365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2366 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2377 if test -n "$CC"; then
2378 { echo "$as_me:$LINENO: result: $CC" >&5
2379 echo "${ECHO_T}$CC" >&6; }
2381 { echo "$as_me:$LINENO: result: no" >&5
2382 echo "${ECHO_T}no" >&6; }
2387 if test -z "$ac_cv_prog_CC"; then
2389 # Extract the first word of "gcc", so it can be a program name with args.
2390 set dummy gcc; ac_word=$2
2391 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2393 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2394 echo $ECHO_N "(cached) $ECHO_C" >&6
2396 if test -n "$ac_ct_CC"; then
2397 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2403 test -z "$as_dir" && as_dir=.
2404 for ac_exec_ext in '' $ac_executable_extensions; do
2405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2406 ac_cv_prog_ac_ct_CC="gcc"
2407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2416 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2417 if test -n "$ac_ct_CC"; then
2418 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2419 echo "${ECHO_T}$ac_ct_CC" >&6; }
2421 { echo "$as_me:$LINENO: result: no" >&5
2422 echo "${ECHO_T}no" >&6; }
2425 if test "x$ac_ct_CC" = x; then
2428 case $cross_compiling:$ac_tool_warned in
2430 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2431 whose name does not start with the host triplet. If you think this
2432 configuration is useful to you, please write to autoconf@gnu.org." >&5
2433 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2434 whose name does not start with the host triplet. If you think this
2435 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2436 ac_tool_warned=yes ;;
2444 if test -z "$CC"; then
2445 if test -n "$ac_tool_prefix"; then
2446 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2447 set dummy ${ac_tool_prefix}cc; ac_word=$2
2448 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2450 if test "${ac_cv_prog_CC+set}" = set; then
2451 echo $ECHO_N "(cached) $ECHO_C" >&6
2453 if test -n "$CC"; then
2454 ac_cv_prog_CC="$CC" # Let the user override the test.
2456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2460 test -z "$as_dir" && as_dir=.
2461 for ac_exec_ext in '' $ac_executable_extensions; do
2462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2463 ac_cv_prog_CC="${ac_tool_prefix}cc"
2464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2474 if test -n "$CC"; then
2475 { echo "$as_me:$LINENO: result: $CC" >&5
2476 echo "${ECHO_T}$CC" >&6; }
2478 { echo "$as_me:$LINENO: result: no" >&5
2479 echo "${ECHO_T}no" >&6; }
2485 if test -z "$CC"; then
2486 # Extract the first word of "cc", so it can be a program name with args.
2487 set dummy cc; ac_word=$2
2488 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2490 if test "${ac_cv_prog_CC+set}" = set; then
2491 echo $ECHO_N "(cached) $ECHO_C" >&6
2493 if test -n "$CC"; then
2494 ac_cv_prog_CC="$CC" # Let the user override the test.
2497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2501 test -z "$as_dir" && as_dir=.
2502 for ac_exec_ext in '' $ac_executable_extensions; do
2503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2504 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2505 ac_prog_rejected=yes
2509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2516 if test $ac_prog_rejected = yes; then
2517 # We found a bogon in the path, so make sure we never use it.
2518 set dummy $ac_cv_prog_CC
2520 if test $# != 0; then
2521 # We chose a different compiler from the bogus one.
2522 # However, it has the same basename, so the bogon will be chosen
2523 # first if we set CC to just the basename; use the full file name.
2525 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2531 if test -n "$CC"; then
2532 { echo "$as_me:$LINENO: result: $CC" >&5
2533 echo "${ECHO_T}$CC" >&6; }
2535 { echo "$as_me:$LINENO: result: no" >&5
2536 echo "${ECHO_T}no" >&6; }
2541 if test -z "$CC"; then
2542 if test -n "$ac_tool_prefix"; then
2543 for ac_prog in cl.exe
2545 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2546 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2547 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2549 if test "${ac_cv_prog_CC+set}" = set; then
2550 echo $ECHO_N "(cached) $ECHO_C" >&6
2552 if test -n "$CC"; then
2553 ac_cv_prog_CC="$CC" # Let the user override the test.
2555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2559 test -z "$as_dir" && as_dir=.
2560 for ac_exec_ext in '' $ac_executable_extensions; do
2561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2562 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2573 if test -n "$CC"; then
2574 { echo "$as_me:$LINENO: result: $CC" >&5
2575 echo "${ECHO_T}$CC" >&6; }
2577 { echo "$as_me:$LINENO: result: no" >&5
2578 echo "${ECHO_T}no" >&6; }
2582 test -n "$CC" && break
2585 if test -z "$CC"; then
2587 for ac_prog in cl.exe
2589 # Extract the first word of "$ac_prog", so it can be a program name with args.
2590 set dummy $ac_prog; ac_word=$2
2591 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2593 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2594 echo $ECHO_N "(cached) $ECHO_C" >&6
2596 if test -n "$ac_ct_CC"; then
2597 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2603 test -z "$as_dir" && as_dir=.
2604 for ac_exec_ext in '' $ac_executable_extensions; do
2605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2606 ac_cv_prog_ac_ct_CC="$ac_prog"
2607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2616 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2617 if test -n "$ac_ct_CC"; then
2618 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2619 echo "${ECHO_T}$ac_ct_CC" >&6; }
2621 { echo "$as_me:$LINENO: result: no" >&5
2622 echo "${ECHO_T}no" >&6; }
2626 test -n "$ac_ct_CC" && break
2629 if test "x$ac_ct_CC" = x; then
2632 case $cross_compiling:$ac_tool_warned in
2634 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2635 whose name does not start with the host triplet. If you think this
2636 configuration is useful to you, please write to autoconf@gnu.org." >&5
2637 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2638 whose name does not start with the host triplet. If you think this
2639 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2640 ac_tool_warned=yes ;;
2649 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2650 See \`config.log' for more details." >&5
2651 echo "$as_me: error: no acceptable C compiler found in \$PATH
2652 See \`config.log' for more details." >&2;}
2653 { (exit 1); exit 1; }; }
2655 # Provide some information about the compiler.
2656 echo "$as_me:$LINENO: checking for C compiler version" >&5
2657 ac_compiler=`set X $ac_compile; echo $2`
2658 { (ac_try="$ac_compiler --version >&5"
2660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2661 *) ac_try_echo=$ac_try;;
2663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2664 (eval "$ac_compiler --version >&5") 2>&5
2666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667 (exit $ac_status); }
2668 { (ac_try="$ac_compiler -v >&5"
2670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2671 *) ac_try_echo=$ac_try;;
2673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2674 (eval "$ac_compiler -v >&5") 2>&5
2676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677 (exit $ac_status); }
2678 { (ac_try="$ac_compiler -V >&5"
2680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2681 *) ac_try_echo=$ac_try;;
2683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2684 (eval "$ac_compiler -V >&5") 2>&5
2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687 (exit $ac_status); }
2689 cat >conftest.$ac_ext <<_ACEOF
2692 cat confdefs.h >>conftest.$ac_ext
2693 cat >>conftest.$ac_ext <<_ACEOF
2694 /* end confdefs.h. */
2704 ac_clean_files_save=$ac_clean_files
2705 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2706 # Try to create an executable without -o first, disregard a.out.
2707 # It will help us diagnose broken compilers, and finding out an intuition
2709 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2710 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2711 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2713 # List of possible output files, starting from the most likely.
2714 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2715 # only as a last resort. b.out is created by i960 compilers.
2716 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2718 # The IRIX 6 linker writes into existing files which may not be
2719 # executable, retaining their permissions. Remove them first so a
2720 # subsequent execution test works.
2722 for ac_file in $ac_files
2725 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2726 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2731 if { (ac_try="$ac_link_default"
2733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2734 *) ac_try_echo=$ac_try;;
2736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2737 (eval "$ac_link_default") 2>&5
2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); }; then
2741 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2742 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2743 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2744 # so that the user can short-circuit this test for compilers unknown to
2746 for ac_file in $ac_files
2748 test -f "$ac_file" || continue
2750 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2753 # We found the default executable, but exeext='' is most
2757 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2759 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2761 # We set ac_cv_exeext here because the later test for it is not
2762 # safe: cross compilers may not add the suffix if given an `-o'
2763 # argument, so we may need to know it at that point already.
2764 # Even if this section looks crufty: it has the advantage of
2771 test "$ac_cv_exeext" = no && ac_cv_exeext=
2774 echo "$as_me: failed program was:" >&5
2775 sed 's/^/| /' conftest.$ac_ext >&5
2777 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2778 See \`config.log' for more details." >&5
2779 echo "$as_me: error: C compiler cannot create executables
2780 See \`config.log' for more details." >&2;}
2781 { (exit 77); exit 77; }; }
2784 ac_exeext=$ac_cv_exeext
2785 { echo "$as_me:$LINENO: result: $ac_file" >&5
2786 echo "${ECHO_T}$ac_file" >&6; }
2788 # Check that the compiler produces executables we can run. If not, either
2789 # the compiler is broken, or we cross compile.
2790 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2791 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2792 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2793 # If not cross compiling, check that we can run a simple program.
2794 if test "$cross_compiling" != yes; then
2795 if { ac_try='./$ac_file'
2796 { (case "(($ac_try" in
2797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2798 *) ac_try_echo=$ac_try;;
2800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2801 (eval "$ac_try") 2>&5
2803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804 (exit $ac_status); }; }; then
2807 if test "$cross_compiling" = maybe; then
2810 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2811 If you meant to cross compile, use \`--host'.
2812 See \`config.log' for more details." >&5
2813 echo "$as_me: error: cannot run C compiled programs.
2814 If you meant to cross compile, use \`--host'.
2815 See \`config.log' for more details." >&2;}
2816 { (exit 1); exit 1; }; }
2820 { echo "$as_me:$LINENO: result: yes" >&5
2821 echo "${ECHO_T}yes" >&6; }
2823 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2824 ac_clean_files=$ac_clean_files_save
2825 # Check that the compiler produces executables we can run. If not, either
2826 # the compiler is broken, or we cross compile.
2827 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2828 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2829 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2830 echo "${ECHO_T}$cross_compiling" >&6; }
2832 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2833 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2834 if { (ac_try="$ac_link"
2836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2837 *) ac_try_echo=$ac_try;;
2839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2840 (eval "$ac_link") 2>&5
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); }; then
2844 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2845 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2846 # work properly (i.e., refer to `conftest.exe'), while it won't with
2848 for ac_file in conftest.exe conftest conftest.*; do
2849 test -f "$ac_file" || continue
2851 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2852 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2858 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2859 See \`config.log' for more details." >&5
2860 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2861 See \`config.log' for more details." >&2;}
2862 { (exit 1); exit 1; }; }
2865 rm -f conftest$ac_cv_exeext
2866 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2867 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2869 rm -f conftest.$ac_ext
2870 EXEEXT=$ac_cv_exeext
2872 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2873 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2874 if test "${ac_cv_objext+set}" = set; then
2875 echo $ECHO_N "(cached) $ECHO_C" >&6
2877 cat >conftest.$ac_ext <<_ACEOF
2880 cat confdefs.h >>conftest.$ac_ext
2881 cat >>conftest.$ac_ext <<_ACEOF
2882 /* end confdefs.h. */
2892 rm -f conftest.o conftest.obj
2893 if { (ac_try="$ac_compile"
2895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2896 *) ac_try_echo=$ac_try;;
2898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2899 (eval "$ac_compile") 2>&5
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); }; then
2903 for ac_file in conftest.o conftest.obj conftest.*; do
2904 test -f "$ac_file" || continue;
2906 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2907 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2912 echo "$as_me: failed program was:" >&5
2913 sed 's/^/| /' conftest.$ac_ext >&5
2915 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2916 See \`config.log' for more details." >&5
2917 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2918 See \`config.log' for more details." >&2;}
2919 { (exit 1); exit 1; }; }
2922 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2924 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2925 echo "${ECHO_T}$ac_cv_objext" >&6; }
2926 OBJEXT=$ac_cv_objext
2928 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2929 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2930 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2931 echo $ECHO_N "(cached) $ECHO_C" >&6
2933 cat >conftest.$ac_ext <<_ACEOF
2936 cat confdefs.h >>conftest.$ac_ext
2937 cat >>conftest.$ac_ext <<_ACEOF
2938 /* end confdefs.h. */
2951 rm -f conftest.$ac_objext
2952 if { (ac_try="$ac_compile"
2954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2955 *) ac_try_echo=$ac_try;;
2957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2958 (eval "$ac_compile") 2>conftest.er1
2960 grep -v '^ *+' conftest.er1 >conftest.err
2962 cat conftest.err >&5
2963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964 (exit $ac_status); } &&
2965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2966 { (case "(($ac_try" in
2967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2968 *) ac_try_echo=$ac_try;;
2970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2971 (eval "$ac_try") 2>&5
2973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974 (exit $ac_status); }; } &&
2975 { ac_try='test -s conftest.$ac_objext'
2976 { (case "(($ac_try" in
2977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2978 *) ac_try_echo=$ac_try;;
2980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2981 (eval "$ac_try") 2>&5
2983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984 (exit $ac_status); }; }; then
2987 echo "$as_me: failed program was:" >&5
2988 sed 's/^/| /' conftest.$ac_ext >&5
2993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2994 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2997 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2998 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2999 GCC=`test $ac_compiler_gnu = yes && echo yes`
3000 ac_test_CFLAGS=${CFLAGS+set}
3001 ac_save_CFLAGS=$CFLAGS
3002 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3003 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3004 if test "${ac_cv_prog_cc_g+set}" = set; then
3005 echo $ECHO_N "(cached) $ECHO_C" >&6
3007 ac_save_c_werror_flag=$ac_c_werror_flag
3008 ac_c_werror_flag=yes
3011 cat >conftest.$ac_ext <<_ACEOF
3014 cat confdefs.h >>conftest.$ac_ext
3015 cat >>conftest.$ac_ext <<_ACEOF
3016 /* end confdefs.h. */
3026 rm -f conftest.$ac_objext
3027 if { (ac_try="$ac_compile"
3029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3030 *) ac_try_echo=$ac_try;;
3032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3033 (eval "$ac_compile") 2>conftest.er1
3035 grep -v '^ *+' conftest.er1 >conftest.err
3037 cat conftest.err >&5
3038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039 (exit $ac_status); } &&
3040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3041 { (case "(($ac_try" in
3042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3043 *) ac_try_echo=$ac_try;;
3045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3046 (eval "$ac_try") 2>&5
3048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049 (exit $ac_status); }; } &&
3050 { ac_try='test -s conftest.$ac_objext'
3051 { (case "(($ac_try" in
3052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3053 *) ac_try_echo=$ac_try;;
3055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3056 (eval "$ac_try") 2>&5
3058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059 (exit $ac_status); }; }; then
3062 echo "$as_me: failed program was:" >&5
3063 sed 's/^/| /' conftest.$ac_ext >&5
3066 cat >conftest.$ac_ext <<_ACEOF
3069 cat confdefs.h >>conftest.$ac_ext
3070 cat >>conftest.$ac_ext <<_ACEOF
3071 /* end confdefs.h. */
3081 rm -f conftest.$ac_objext
3082 if { (ac_try="$ac_compile"
3084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3085 *) ac_try_echo=$ac_try;;
3087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3088 (eval "$ac_compile") 2>conftest.er1
3090 grep -v '^ *+' conftest.er1 >conftest.err
3092 cat conftest.err >&5
3093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094 (exit $ac_status); } &&
3095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3096 { (case "(($ac_try" in
3097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098 *) ac_try_echo=$ac_try;;
3100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3101 (eval "$ac_try") 2>&5
3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104 (exit $ac_status); }; } &&
3105 { ac_try='test -s conftest.$ac_objext'
3106 { (case "(($ac_try" in
3107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3108 *) ac_try_echo=$ac_try;;
3110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3111 (eval "$ac_try") 2>&5
3113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114 (exit $ac_status); }; }; then
3117 echo "$as_me: failed program was:" >&5
3118 sed 's/^/| /' conftest.$ac_ext >&5
3120 ac_c_werror_flag=$ac_save_c_werror_flag
3122 cat >conftest.$ac_ext <<_ACEOF
3125 cat confdefs.h >>conftest.$ac_ext
3126 cat >>conftest.$ac_ext <<_ACEOF
3127 /* end confdefs.h. */
3137 rm -f conftest.$ac_objext
3138 if { (ac_try="$ac_compile"
3140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141 *) ac_try_echo=$ac_try;;
3143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3144 (eval "$ac_compile") 2>conftest.er1
3146 grep -v '^ *+' conftest.er1 >conftest.err
3148 cat conftest.err >&5
3149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150 (exit $ac_status); } &&
3151 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3152 { (case "(($ac_try" in
3153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3154 *) ac_try_echo=$ac_try;;
3156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3157 (eval "$ac_try") 2>&5
3159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160 (exit $ac_status); }; } &&
3161 { ac_try='test -s conftest.$ac_objext'
3162 { (case "(($ac_try" in
3163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3164 *) ac_try_echo=$ac_try;;
3166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3167 (eval "$ac_try") 2>&5
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); }; }; then
3173 echo "$as_me: failed program was:" >&5
3174 sed 's/^/| /' conftest.$ac_ext >&5
3179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3186 ac_c_werror_flag=$ac_save_c_werror_flag
3188 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3189 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3190 if test "$ac_test_CFLAGS" = set; then
3191 CFLAGS=$ac_save_CFLAGS
3192 elif test $ac_cv_prog_cc_g = yes; then
3193 if test "$GCC" = yes; then
3199 if test "$GCC" = yes; then
3205 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3206 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3207 if test "${ac_cv_prog_cc_c89+set}" = set; then
3208 echo $ECHO_N "(cached) $ECHO_C" >&6
3210 ac_cv_prog_cc_c89=no
3212 cat >conftest.$ac_ext <<_ACEOF
3215 cat confdefs.h >>conftest.$ac_ext
3216 cat >>conftest.$ac_ext <<_ACEOF
3217 /* end confdefs.h. */
3220 #include <sys/types.h>
3221 #include <sys/stat.h>
3222 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3223 struct buf { int x; };
3224 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3225 static char *e (p, i)
3231 static char *f (char * (*g) (char **, int), char **p, ...)
3236 s = g (p, va_arg (v,int));
3241 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3242 function prototypes and stuff, but not '\xHH' hex character constants.
3243 These don't provoke an error unfortunately, instead are silently treated
3244 as 'x'. The following induces an error, until -std is added to get
3245 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3246 array size at least. It's necessary to write '\x00'==0 to get something
3247 that's true only with -std. */
3248 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3250 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3251 inside strings and character constants. */
3253 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3255 int test (int i, double x);
3256 struct s1 {int (*f) (int a);};
3257 struct s2 {int (*f) (double a);};
3258 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3264 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3269 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3270 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3272 CC="$ac_save_CC $ac_arg"
3273 rm -f conftest.$ac_objext
3274 if { (ac_try="$ac_compile"
3276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277 *) ac_try_echo=$ac_try;;
3279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3280 (eval "$ac_compile") 2>conftest.er1
3282 grep -v '^ *+' conftest.er1 >conftest.err
3284 cat conftest.err >&5
3285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); } &&
3287 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3288 { (case "(($ac_try" in
3289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3290 *) ac_try_echo=$ac_try;;
3292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3293 (eval "$ac_try") 2>&5
3295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296 (exit $ac_status); }; } &&
3297 { ac_try='test -s conftest.$ac_objext'
3298 { (case "(($ac_try" in
3299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3300 *) ac_try_echo=$ac_try;;
3302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3303 (eval "$ac_try") 2>&5
3305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306 (exit $ac_status); }; }; then
3307 ac_cv_prog_cc_c89=$ac_arg
3309 echo "$as_me: failed program was:" >&5
3310 sed 's/^/| /' conftest.$ac_ext >&5
3315 rm -f core conftest.err conftest.$ac_objext
3316 test "x$ac_cv_prog_cc_c89" != "xno" && break
3318 rm -f conftest.$ac_ext
3323 case "x$ac_cv_prog_cc_c89" in
3325 { echo "$as_me:$LINENO: result: none needed" >&5
3326 echo "${ECHO_T}none needed" >&6; } ;;
3328 { echo "$as_me:$LINENO: result: unsupported" >&5
3329 echo "${ECHO_T}unsupported" >&6; } ;;
3331 CC="$CC $ac_cv_prog_cc_c89"
3332 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3333 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3338 ac_cpp='$CPP $CPPFLAGS'
3339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3345 ac_cpp='$CPP $CPPFLAGS'
3346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3349 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3350 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3351 # On Suns, sometimes $CPP names a directory.
3352 if test -n "$CPP" && test -d "$CPP"; then
3355 if test -z "$CPP"; then
3356 if test "${ac_cv_prog_CPP+set}" = set; then
3357 echo $ECHO_N "(cached) $ECHO_C" >&6
3359 # Double quotes because CPP needs to be expanded
3360 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3363 for ac_c_preproc_warn_flag in '' yes
3365 # Use a header file that comes with gcc, so configuring glibc
3366 # with a fresh cross-compiler works.
3367 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3368 # <limits.h> exists even on freestanding compilers.
3369 # On the NeXT, cc -E runs the code through the compiler's parser,
3370 # not just through cpp. "Syntax error" is here to catch this case.
3371 cat >conftest.$ac_ext <<_ACEOF
3374 cat confdefs.h >>conftest.$ac_ext
3375 cat >>conftest.$ac_ext <<_ACEOF
3376 /* end confdefs.h. */
3378 # include <limits.h>
3380 # include <assert.h>
3384 if { (ac_try="$ac_cpp conftest.$ac_ext"
3386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3387 *) ac_try_echo=$ac_try;;
3389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3390 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3392 grep -v '^ *+' conftest.er1 >conftest.err
3394 cat conftest.err >&5
3395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396 (exit $ac_status); } >/dev/null; then
3397 if test -s conftest.err; then
3398 ac_cpp_err=$ac_c_preproc_warn_flag
3399 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3406 if test -z "$ac_cpp_err"; then
3409 echo "$as_me: failed program was:" >&5
3410 sed 's/^/| /' conftest.$ac_ext >&5
3412 # Broken: fails on valid input.
3416 rm -f conftest.err conftest.$ac_ext
3418 # OK, works on sane cases. Now check whether nonexistent headers
3419 # can be detected and how.
3420 cat >conftest.$ac_ext <<_ACEOF
3423 cat confdefs.h >>conftest.$ac_ext
3424 cat >>conftest.$ac_ext <<_ACEOF
3425 /* end confdefs.h. */
3426 #include <ac_nonexistent.h>
3428 if { (ac_try="$ac_cpp conftest.$ac_ext"
3430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3431 *) ac_try_echo=$ac_try;;
3433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3434 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3436 grep -v '^ *+' conftest.er1 >conftest.err
3438 cat conftest.err >&5
3439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440 (exit $ac_status); } >/dev/null; then
3441 if test -s conftest.err; then
3442 ac_cpp_err=$ac_c_preproc_warn_flag
3443 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3450 if test -z "$ac_cpp_err"; then
3451 # Broken: success on invalid input.
3454 echo "$as_me: failed program was:" >&5
3455 sed 's/^/| /' conftest.$ac_ext >&5
3457 # Passes both tests.
3462 rm -f conftest.err conftest.$ac_ext
3465 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3466 rm -f conftest.err conftest.$ac_ext
3467 if $ac_preproc_ok; then
3479 { echo "$as_me:$LINENO: result: $CPP" >&5
3480 echo "${ECHO_T}$CPP" >&6; }
3482 for ac_c_preproc_warn_flag in '' yes
3484 # Use a header file that comes with gcc, so configuring glibc
3485 # with a fresh cross-compiler works.
3486 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3487 # <limits.h> exists even on freestanding compilers.
3488 # On the NeXT, cc -E runs the code through the compiler's parser,
3489 # not just through cpp. "Syntax error" is here to catch this case.
3490 cat >conftest.$ac_ext <<_ACEOF
3493 cat confdefs.h >>conftest.$ac_ext
3494 cat >>conftest.$ac_ext <<_ACEOF
3495 /* end confdefs.h. */
3497 # include <limits.h>
3499 # include <assert.h>
3503 if { (ac_try="$ac_cpp conftest.$ac_ext"
3505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3506 *) ac_try_echo=$ac_try;;
3508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3509 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3511 grep -v '^ *+' conftest.er1 >conftest.err
3513 cat conftest.err >&5
3514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); } >/dev/null; then
3516 if test -s conftest.err; then
3517 ac_cpp_err=$ac_c_preproc_warn_flag
3518 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3525 if test -z "$ac_cpp_err"; then
3528 echo "$as_me: failed program was:" >&5
3529 sed 's/^/| /' conftest.$ac_ext >&5
3531 # Broken: fails on valid input.
3535 rm -f conftest.err conftest.$ac_ext
3537 # OK, works on sane cases. Now check whether nonexistent headers
3538 # can be detected and how.
3539 cat >conftest.$ac_ext <<_ACEOF
3542 cat confdefs.h >>conftest.$ac_ext
3543 cat >>conftest.$ac_ext <<_ACEOF
3544 /* end confdefs.h. */
3545 #include <ac_nonexistent.h>
3547 if { (ac_try="$ac_cpp conftest.$ac_ext"
3549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3550 *) ac_try_echo=$ac_try;;
3552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3553 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3555 grep -v '^ *+' conftest.er1 >conftest.err
3557 cat conftest.err >&5
3558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559 (exit $ac_status); } >/dev/null; then
3560 if test -s conftest.err; then
3561 ac_cpp_err=$ac_c_preproc_warn_flag
3562 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3569 if test -z "$ac_cpp_err"; then
3570 # Broken: success on invalid input.
3573 echo "$as_me: failed program was:" >&5
3574 sed 's/^/| /' conftest.$ac_ext >&5
3576 # Passes both tests.
3581 rm -f conftest.err conftest.$ac_ext
3584 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3585 rm -f conftest.err conftest.$ac_ext
3586 if $ac_preproc_ok; then
3589 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3590 See \`config.log' for more details." >&5
3591 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3592 See \`config.log' for more details." >&2;}
3593 { (exit 1); exit 1; }; }
3597 ac_cpp='$CPP $CPPFLAGS'
3598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3603 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3604 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3605 if test "${ac_cv_path_GREP+set}" = set; then
3606 echo $ECHO_N "(cached) $ECHO_C" >&6
3608 # Extract the first word of "grep ggrep" to use in msg output
3609 if test -z "$GREP"; then
3610 set dummy grep ggrep; ac_prog_name=$2
3611 if test "${ac_cv_path_GREP+set}" = set; then
3612 echo $ECHO_N "(cached) $ECHO_C" >&6
3614 ac_path_GREP_found=false
3615 # Loop through the user's path and test for each of PROGNAME-LIST
3616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3617 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3620 test -z "$as_dir" && as_dir=.
3621 for ac_prog in grep ggrep; do
3622 for ac_exec_ext in '' $ac_executable_extensions; do
3623 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3624 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3625 # Check for GNU ac_path_GREP and select it if it is found.
3626 # Check for GNU $ac_path_GREP
3627 case `"$ac_path_GREP" --version 2>&1` in
3629 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3632 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3635 cat "conftest.in" "conftest.in" >"conftest.tmp"
3636 mv "conftest.tmp" "conftest.in"
3637 cp "conftest.in" "conftest.nl"
3638 echo 'GREP' >> "conftest.nl"
3639 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3640 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3641 ac_count=`expr $ac_count + 1`
3642 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3643 # Best one so far, save it but keep looking for a better one
3644 ac_cv_path_GREP="$ac_path_GREP"
3645 ac_path_GREP_max=$ac_count
3647 # 10*(2^10) chars as input seems more than enough
3648 test $ac_count -gt 10 && break
3650 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3654 $ac_path_GREP_found && break 3
3664 GREP="$ac_cv_path_GREP"
3665 if test -z "$GREP"; then
3666 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3667 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3668 { (exit 1); exit 1; }; }
3672 ac_cv_path_GREP=$GREP
3677 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3678 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3679 GREP="$ac_cv_path_GREP"
3682 { echo "$as_me:$LINENO: checking for egrep" >&5
3683 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3684 if test "${ac_cv_path_EGREP+set}" = set; then
3685 echo $ECHO_N "(cached) $ECHO_C" >&6
3687 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3688 then ac_cv_path_EGREP="$GREP -E"
3690 # Extract the first word of "egrep" to use in msg output
3691 if test -z "$EGREP"; then
3692 set dummy egrep; ac_prog_name=$2
3693 if test "${ac_cv_path_EGREP+set}" = set; then
3694 echo $ECHO_N "(cached) $ECHO_C" >&6
3696 ac_path_EGREP_found=false
3697 # Loop through the user's path and test for each of PROGNAME-LIST
3698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3699 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3702 test -z "$as_dir" && as_dir=.
3703 for ac_prog in egrep; do
3704 for ac_exec_ext in '' $ac_executable_extensions; do
3705 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3706 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3707 # Check for GNU ac_path_EGREP and select it if it is found.
3708 # Check for GNU $ac_path_EGREP
3709 case `"$ac_path_EGREP" --version 2>&1` in
3711 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3714 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3717 cat "conftest.in" "conftest.in" >"conftest.tmp"
3718 mv "conftest.tmp" "conftest.in"
3719 cp "conftest.in" "conftest.nl"
3720 echo 'EGREP' >> "conftest.nl"
3721 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3722 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3723 ac_count=`expr $ac_count + 1`
3724 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3725 # Best one so far, save it but keep looking for a better one
3726 ac_cv_path_EGREP="$ac_path_EGREP"
3727 ac_path_EGREP_max=$ac_count
3729 # 10*(2^10) chars as input seems more than enough
3730 test $ac_count -gt 10 && break
3732 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3736 $ac_path_EGREP_found && break 3
3746 EGREP="$ac_cv_path_EGREP"
3747 if test -z "$EGREP"; then
3748 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3749 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3750 { (exit 1); exit 1; }; }
3754 ac_cv_path_EGREP=$EGREP
3760 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3761 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3762 EGREP="$ac_cv_path_EGREP"
3765 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3766 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3767 if test "${ac_cv_header_stdc+set}" = set; then
3768 echo $ECHO_N "(cached) $ECHO_C" >&6
3770 cat >conftest.$ac_ext <<_ACEOF
3773 cat confdefs.h >>conftest.$ac_ext
3774 cat >>conftest.$ac_ext <<_ACEOF
3775 /* end confdefs.h. */
3789 rm -f conftest.$ac_objext
3790 if { (ac_try="$ac_compile"
3792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3793 *) ac_try_echo=$ac_try;;
3795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3796 (eval "$ac_compile") 2>conftest.er1
3798 grep -v '^ *+' conftest.er1 >conftest.err
3800 cat conftest.err >&5
3801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802 (exit $ac_status); } &&
3803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3804 { (case "(($ac_try" in
3805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3806 *) ac_try_echo=$ac_try;;
3808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3809 (eval "$ac_try") 2>&5
3811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812 (exit $ac_status); }; } &&
3813 { ac_try='test -s conftest.$ac_objext'
3814 { (case "(($ac_try" in
3815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3816 *) ac_try_echo=$ac_try;;
3818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3819 (eval "$ac_try") 2>&5
3821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822 (exit $ac_status); }; }; then
3823 ac_cv_header_stdc=yes
3825 echo "$as_me: failed program was:" >&5
3826 sed 's/^/| /' conftest.$ac_ext >&5
3828 ac_cv_header_stdc=no
3831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3833 if test $ac_cv_header_stdc = yes; then
3834 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3835 cat >conftest.$ac_ext <<_ACEOF
3838 cat confdefs.h >>conftest.$ac_ext
3839 cat >>conftest.$ac_ext <<_ACEOF
3840 /* end confdefs.h. */
3844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3845 $EGREP "memchr" >/dev/null 2>&1; then
3848 ac_cv_header_stdc=no
3854 if test $ac_cv_header_stdc = yes; then
3855 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3856 cat >conftest.$ac_ext <<_ACEOF
3859 cat confdefs.h >>conftest.$ac_ext
3860 cat >>conftest.$ac_ext <<_ACEOF
3861 /* end confdefs.h. */
3865 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3866 $EGREP "free" >/dev/null 2>&1; then
3869 ac_cv_header_stdc=no
3875 if test $ac_cv_header_stdc = yes; then
3876 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3877 if test "$cross_compiling" = yes; then
3880 cat >conftest.$ac_ext <<_ACEOF
3883 cat confdefs.h >>conftest.$ac_ext
3884 cat >>conftest.$ac_ext <<_ACEOF
3885 /* end confdefs.h. */
3888 #if ((' ' & 0x0FF) == 0x020)
3889 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3890 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3892 # define ISLOWER(c) \
3893 (('a' <= (c) && (c) <= 'i') \
3894 || ('j' <= (c) && (c) <= 'r') \
3895 || ('s' <= (c) && (c) <= 'z'))
3896 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3899 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3904 for (i = 0; i < 256; i++)
3905 if (XOR (islower (i), ISLOWER (i))
3906 || toupper (i) != TOUPPER (i))
3911 rm -f conftest$ac_exeext
3912 if { (ac_try="$ac_link"
3914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3915 *) ac_try_echo=$ac_try;;
3917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3918 (eval "$ac_link") 2>&5
3920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3922 { (case "(($ac_try" in
3923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3924 *) ac_try_echo=$ac_try;;
3926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3927 (eval "$ac_try") 2>&5
3929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930 (exit $ac_status); }; }; then
3933 echo "$as_me: program exited with status $ac_status" >&5
3934 echo "$as_me: failed program was:" >&5
3935 sed 's/^/| /' conftest.$ac_ext >&5
3938 ac_cv_header_stdc=no
3940 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3946 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3947 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3948 if test $ac_cv_header_stdc = yes; then
3950 cat >>confdefs.h <<\_ACEOF
3951 #define STDC_HEADERS 1
3956 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3966 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3967 inttypes.h stdint.h unistd.h
3969 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3970 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3971 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3972 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3973 echo $ECHO_N "(cached) $ECHO_C" >&6
3975 cat >conftest.$ac_ext <<_ACEOF
3978 cat confdefs.h >>conftest.$ac_ext
3979 cat >>conftest.$ac_ext <<_ACEOF
3980 /* end confdefs.h. */
3981 $ac_includes_default
3983 #include <$ac_header>
3985 rm -f conftest.$ac_objext
3986 if { (ac_try="$ac_compile"
3988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3989 *) ac_try_echo=$ac_try;;
3991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3992 (eval "$ac_compile") 2>conftest.er1
3994 grep -v '^ *+' conftest.er1 >conftest.err
3996 cat conftest.err >&5
3997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998 (exit $ac_status); } &&
3999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4000 { (case "(($ac_try" in
4001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4002 *) ac_try_echo=$ac_try;;
4004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4005 (eval "$ac_try") 2>&5
4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); }; } &&
4009 { ac_try='test -s conftest.$ac_objext'
4010 { (case "(($ac_try" in
4011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4012 *) ac_try_echo=$ac_try;;
4014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4015 (eval "$ac_try") 2>&5
4017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018 (exit $ac_status); }; }; then
4019 eval "$as_ac_Header=yes"
4021 echo "$as_me: failed program was:" >&5
4022 sed 's/^/| /' conftest.$ac_ext >&5
4024 eval "$as_ac_Header=no"
4027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4029 ac_res=`eval echo '${'$as_ac_Header'}'`
4030 { echo "$as_me:$LINENO: result: $ac_res" >&5
4031 echo "${ECHO_T}$ac_res" >&6; }
4032 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4033 cat >>confdefs.h <<_ACEOF
4034 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4042 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4043 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4044 if test "${ac_cv_c_bigendian+set}" = set; then
4045 echo $ECHO_N "(cached) $ECHO_C" >&6
4047 # See if sys/param.h defines the BYTE_ORDER macro.
4048 cat >conftest.$ac_ext <<_ACEOF
4051 cat confdefs.h >>conftest.$ac_ext
4052 cat >>conftest.$ac_ext <<_ACEOF
4053 /* end confdefs.h. */
4054 #include <sys/types.h>
4055 #include <sys/param.h>
4060 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4068 rm -f conftest.$ac_objext
4069 if { (ac_try="$ac_compile"
4071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4072 *) ac_try_echo=$ac_try;;
4074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4075 (eval "$ac_compile") 2>conftest.er1
4077 grep -v '^ *+' conftest.er1 >conftest.err
4079 cat conftest.err >&5
4080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081 (exit $ac_status); } &&
4082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4083 { (case "(($ac_try" in
4084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4085 *) ac_try_echo=$ac_try;;
4087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4088 (eval "$ac_try") 2>&5
4090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091 (exit $ac_status); }; } &&
4092 { ac_try='test -s conftest.$ac_objext'
4093 { (case "(($ac_try" in
4094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4095 *) ac_try_echo=$ac_try;;
4097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4098 (eval "$ac_try") 2>&5
4100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101 (exit $ac_status); }; }; then
4102 # It does; now see whether it defined to BIG_ENDIAN or not.
4103 cat >conftest.$ac_ext <<_ACEOF
4106 cat confdefs.h >>conftest.$ac_ext
4107 cat >>conftest.$ac_ext <<_ACEOF
4108 /* end confdefs.h. */
4109 #include <sys/types.h>
4110 #include <sys/param.h>
4115 #if BYTE_ORDER != BIG_ENDIAN
4123 rm -f conftest.$ac_objext
4124 if { (ac_try="$ac_compile"
4126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4127 *) ac_try_echo=$ac_try;;
4129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4130 (eval "$ac_compile") 2>conftest.er1
4132 grep -v '^ *+' conftest.er1 >conftest.err
4134 cat conftest.err >&5
4135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136 (exit $ac_status); } &&
4137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4138 { (case "(($ac_try" in
4139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4140 *) ac_try_echo=$ac_try;;
4142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4143 (eval "$ac_try") 2>&5
4145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146 (exit $ac_status); }; } &&
4147 { ac_try='test -s conftest.$ac_objext'
4148 { (case "(($ac_try" in
4149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4150 *) ac_try_echo=$ac_try;;
4152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4153 (eval "$ac_try") 2>&5
4155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156 (exit $ac_status); }; }; then
4157 ac_cv_c_bigendian=yes
4159 echo "$as_me: failed program was:" >&5
4160 sed 's/^/| /' conftest.$ac_ext >&5
4162 ac_cv_c_bigendian=no
4165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4167 echo "$as_me: failed program was:" >&5
4168 sed 's/^/| /' conftest.$ac_ext >&5
4170 # It does not; compile a test program.
4171 if test "$cross_compiling" = yes; then
4172 # try to guess the endianness by grepping values into an object file
4173 ac_cv_c_bigendian=unknown
4174 cat >conftest.$ac_ext <<_ACEOF
4177 cat confdefs.h >>conftest.$ac_ext
4178 cat >>conftest.$ac_ext <<_ACEOF
4179 /* end confdefs.h. */
4180 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4181 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4182 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4183 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4184 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4185 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4189 _ascii (); _ebcdic ();
4194 rm -f conftest.$ac_objext
4195 if { (ac_try="$ac_compile"
4197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4198 *) ac_try_echo=$ac_try;;
4200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4201 (eval "$ac_compile") 2>conftest.er1
4203 grep -v '^ *+' conftest.er1 >conftest.err
4205 cat conftest.err >&5
4206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207 (exit $ac_status); } &&
4208 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4209 { (case "(($ac_try" in
4210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4211 *) ac_try_echo=$ac_try;;
4213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4214 (eval "$ac_try") 2>&5
4216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217 (exit $ac_status); }; } &&
4218 { ac_try='test -s conftest.$ac_objext'
4219 { (case "(($ac_try" in
4220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4221 *) ac_try_echo=$ac_try;;
4223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4224 (eval "$ac_try") 2>&5
4226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227 (exit $ac_status); }; }; then
4228 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4229 ac_cv_c_bigendian=yes
4231 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4232 if test "$ac_cv_c_bigendian" = unknown; then
4233 ac_cv_c_bigendian=no
4235 # finding both strings is unlikely to happen, but who knows?
4236 ac_cv_c_bigendian=unknown
4240 echo "$as_me: failed program was:" >&5
4241 sed 's/^/| /' conftest.$ac_ext >&5
4246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4248 cat >conftest.$ac_ext <<_ACEOF
4251 cat confdefs.h >>conftest.$ac_ext
4252 cat >>conftest.$ac_ext <<_ACEOF
4253 /* end confdefs.h. */
4254 $ac_includes_default
4259 /* Are we little or big endian? From Harbison&Steele. */
4263 char c[sizeof (long int)];
4266 return u.c[sizeof (long int) - 1] == 1;
4272 rm -f conftest$ac_exeext
4273 if { (ac_try="$ac_link"
4275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4276 *) ac_try_echo=$ac_try;;
4278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4279 (eval "$ac_link") 2>&5
4281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4283 { (case "(($ac_try" in
4284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4285 *) ac_try_echo=$ac_try;;
4287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4288 (eval "$ac_try") 2>&5
4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); }; }; then
4292 ac_cv_c_bigendian=no
4294 echo "$as_me: program exited with status $ac_status" >&5
4295 echo "$as_me: failed program was:" >&5
4296 sed 's/^/| /' conftest.$ac_ext >&5
4299 ac_cv_c_bigendian=yes
4301 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4309 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4310 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4311 case $ac_cv_c_bigendian in
4319 { { echo "$as_me:$LINENO: error: unknown endianness
4320 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4321 echo "$as_me: error: unknown endianness
4322 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4323 { (exit 1); exit 1; }; } ;;
4327 if test "$cross_compiling" = yes; then
4328 LLVM_CROSS_COMPILING=1
4331 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4332 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4333 if test "${ac_cv_build_exeext+set}" = set; then
4334 echo $ECHO_N "(cached) $ECHO_C" >&6
4336 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4337 ac_cv_build_exeext=.exe
4339 ac_build_prefix=${build_alias}-
4341 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4342 set dummy ${ac_build_prefix}gcc; ac_word=$2
4343 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4345 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4346 echo $ECHO_N "(cached) $ECHO_C" >&6
4348 if test -n "$BUILD_CC"; then
4349 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4355 test -z "$as_dir" && as_dir=.
4356 for ac_exec_ext in '' $ac_executable_extensions; do
4357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4358 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4368 BUILD_CC=$ac_cv_prog_BUILD_CC
4369 if test -n "$BUILD_CC"; then
4370 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4371 echo "${ECHO_T}$BUILD_CC" >&6; }
4373 { echo "$as_me:$LINENO: result: no" >&5
4374 echo "${ECHO_T}no" >&6; }
4378 if test -z "$BUILD_CC"; then
4379 # Extract the first word of "gcc", so it can be a program name with args.
4380 set dummy gcc; ac_word=$2
4381 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4383 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4384 echo $ECHO_N "(cached) $ECHO_C" >&6
4386 if test -n "$BUILD_CC"; then
4387 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4393 test -z "$as_dir" && as_dir=.
4394 for ac_exec_ext in '' $ac_executable_extensions; do
4395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4396 ac_cv_prog_BUILD_CC="gcc"
4397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4406 BUILD_CC=$ac_cv_prog_BUILD_CC
4407 if test -n "$BUILD_CC"; then
4408 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4409 echo "${ECHO_T}$BUILD_CC" >&6; }
4411 { echo "$as_me:$LINENO: result: no" >&5
4412 echo "${ECHO_T}no" >&6; }
4416 if test -z "$BUILD_CC"; then
4417 # Extract the first word of "cc", so it can be a program name with args.
4418 set dummy cc; ac_word=$2
4419 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4421 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4422 echo $ECHO_N "(cached) $ECHO_C" >&6
4424 if test -n "$BUILD_CC"; then
4425 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4432 test -z "$as_dir" && as_dir=.
4433 for ac_exec_ext in '' $ac_executable_extensions; do
4434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4435 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4436 ac_prog_rejected=yes
4439 ac_cv_prog_BUILD_CC="cc"
4440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4447 if test $ac_prog_rejected = yes; then
4448 # We found a bogon in the path, so make sure we never use it.
4449 set dummy $ac_cv_prog_BUILD_CC
4451 if test $# != 0; then
4452 # We chose a different compiler from the bogus one.
4453 # However, it has the same basename, so the bogon will be chosen
4454 # first if we set BUILD_CC to just the basename; use the full file name.
4456 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4461 BUILD_CC=$ac_cv_prog_BUILD_CC
4462 if test -n "$BUILD_CC"; then
4463 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4464 echo "${ECHO_T}$BUILD_CC" >&6; }
4466 { echo "$as_me:$LINENO: result: no" >&5
4467 echo "${ECHO_T}no" >&6; }
4473 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4474 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4475 { (exit 1); exit 1; }; }
4476 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4478 echo 'int main () { return 0; }' > conftest.$ac_ext
4480 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4481 (eval $ac_build_link) 2>&5
4483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484 (exit $ac_status); }; then
4485 for file in conftest.*; do
4487 *.c | *.o | *.obj | *.dSYM) ;;
4488 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4492 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4493 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4494 { (exit 1); exit 1; }; }
4497 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4502 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4503 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4504 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4505 ac_build_exeext=$BUILD_EXEEXT
4507 ac_build_prefix=${build_alias}-
4508 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4509 set dummy ${ac_build_prefix}g++; ac_word=$2
4510 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4512 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4513 echo $ECHO_N "(cached) $ECHO_C" >&6
4515 if test -n "$BUILD_CXX"; then
4516 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4522 test -z "$as_dir" && as_dir=.
4523 for ac_exec_ext in '' $ac_executable_extensions; do
4524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4525 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4535 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4536 if test -n "$BUILD_CXX"; then
4537 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4538 echo "${ECHO_T}$BUILD_CXX" >&6; }
4540 { echo "$as_me:$LINENO: result: no" >&5
4541 echo "${ECHO_T}no" >&6; }
4545 if test -z "$BUILD_CXX"; then
4546 # Extract the first word of "g++", so it can be a program name with args.
4547 set dummy g++; ac_word=$2
4548 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4550 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4551 echo $ECHO_N "(cached) $ECHO_C" >&6
4553 if test -n "$BUILD_CXX"; then
4554 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4560 test -z "$as_dir" && as_dir=.
4561 for ac_exec_ext in '' $ac_executable_extensions; do
4562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4563 ac_cv_prog_BUILD_CXX="g++"
4564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4573 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4574 if test -n "$BUILD_CXX"; then
4575 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4576 echo "${ECHO_T}$BUILD_CXX" >&6; }
4578 { echo "$as_me:$LINENO: result: no" >&5
4579 echo "${ECHO_T}no" >&6; }
4583 if test -z "$BUILD_CXX"; then
4584 # Extract the first word of "c++", so it can be a program name with args.
4585 set dummy c++; ac_word=$2
4586 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4588 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4589 echo $ECHO_N "(cached) $ECHO_C" >&6
4591 if test -n "$BUILD_CXX"; then
4592 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4599 test -z "$as_dir" && as_dir=.
4600 for ac_exec_ext in '' $ac_executable_extensions; do
4601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4602 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4603 ac_prog_rejected=yes
4606 ac_cv_prog_BUILD_CXX="c++"
4607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4614 if test $ac_prog_rejected = yes; then
4615 # We found a bogon in the path, so make sure we never use it.
4616 set dummy $ac_cv_prog_BUILD_CXX
4618 if test $# != 0; then
4619 # We chose a different compiler from the bogus one.
4620 # However, it has the same basename, so the bogon will be chosen
4621 # first if we set BUILD_CXX to just the basename; use the full file name.
4623 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4628 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4629 if test -n "$BUILD_CXX"; then
4630 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4631 echo "${ECHO_T}$BUILD_CXX" >&6; }
4633 { echo "$as_me:$LINENO: result: no" >&5
4634 echo "${ECHO_T}no" >&6; }
4641 LLVM_CROSS_COMPILING=0
4645 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4656 # Check whether --enable-optimized was given.
4657 if test "${enable_optimized+set}" = set; then
4658 enableval=$enable_optimized;
4663 if test ${enableval} = "no" ; then
4667 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4671 # Check whether --enable-profiling was given.
4672 if test "${enable_profiling+set}" = set; then
4673 enableval=$enable_profiling;
4678 if test ${enableval} = "no" ; then
4682 ENABLE_PROFILING=ENABLE_PROFILING=1
4686 # Check whether --enable-assertions was given.
4687 if test "${enable_assertions+set}" = set; then
4688 enableval=$enable_assertions;
4693 if test ${enableval} = "yes" ; then
4697 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4701 # Check whether --enable-expensive-checks was given.
4702 if test "${enable_expensive_checks+set}" = set; then
4703 enableval=$enable_expensive_checks;
4708 if test ${enableval} = "yes" ; then
4709 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4711 EXPENSIVE_CHECKS=yes
4714 ENABLE_EXPENSIVE_CHECKS=
4720 # Check whether --enable-debug-runtime was given.
4721 if test "${enable_debug_runtime+set}" = set; then
4722 enableval=$enable_debug_runtime;
4727 if test ${enableval} = "no" ; then
4731 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4735 # Check whether --enable-debug-symbols was given.
4736 if test "${enable_debug_symbols+set}" = set; then
4737 enableval=$enable_debug_symbols;
4742 if test ${enableval} = "no" ; then
4746 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4750 # Check whether --enable-jit was given.
4751 if test "${enable_jit+set}" = set; then
4752 enableval=$enable_jit;
4757 if test ${enableval} = "no"
4762 case "$llvm_cv_target_arch" in
4763 x86) TARGET_HAS_JIT=1
4765 Sparc) TARGET_HAS_JIT=0
4767 PowerPC) TARGET_HAS_JIT=1
4769 x86_64) TARGET_HAS_JIT=1
4771 Alpha) TARGET_HAS_JIT=1
4773 ARM) TARGET_HAS_JIT=1
4775 Mips) TARGET_HAS_JIT=0
4777 PIC16) TARGET_HAS_JIT=0
4779 XCore) TARGET_HAS_JIT=0
4781 MSP430) TARGET_HAS_JIT=0
4783 SystemZ) TARGET_HAS_JIT=0
4785 Blackfin) TARGET_HAS_JIT=0
4792 # Check whether --enable-doxygen was given.
4793 if test "${enable_doxygen+set}" = set; then
4794 enableval=$enable_doxygen;
4799 case "$enableval" in
4800 yes) ENABLE_DOXYGEN=1
4802 no) ENABLE_DOXYGEN=0
4804 default) ENABLE_DOXYGEN=0
4806 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4807 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4808 { (exit 1); exit 1; }; } ;;
4811 # Check whether --enable-threads was given.
4812 if test "${enable_threads+set}" = set; then
4813 enableval=$enable_threads;
4818 case "$enableval" in
4819 yes) ENABLE_THREADS=1
4821 no) ENABLE_THREADS=0
4823 default) ENABLE_THREADS=1
4825 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4826 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4827 { (exit 1); exit 1; }; } ;;
4830 cat >>confdefs.h <<_ACEOF
4831 #define ENABLE_THREADS $ENABLE_THREADS
4835 # Check whether --enable-pic was given.
4836 if test "${enable_pic+set}" = set; then
4837 enableval=$enable_pic;
4842 case "$enableval" in
4847 default) ENABLE_PIC=1
4849 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4850 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4851 { (exit 1); exit 1; }; } ;;
4854 cat >>confdefs.h <<_ACEOF
4855 #define ENABLE_PIC $ENABLE_PIC
4860 # Check whether --enable-targets was given.
4861 if test "${enable_targets+set}" = set; then
4862 enableval=$enable_targets;
4867 if test "$enableval" = host-only ; then
4870 case "$enableval" in
4871 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend" ;;
4872 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4874 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4875 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4876 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4877 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4878 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4879 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4880 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4881 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4882 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4883 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4884 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4885 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4886 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4887 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4888 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4889 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4890 host) case "$llvm_cv_target_arch" in
4891 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4892 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4893 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4894 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4895 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4896 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4897 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4898 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4899 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4900 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4901 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4902 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4903 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4904 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4905 echo "$as_me: error: Can not set target to build" >&2;}
4906 { (exit 1); exit 1; }; } ;;
4908 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4909 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4910 { (exit 1); exit 1; }; } ;;
4915 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4918 # Determine whether we are building LLVM support for the native architecture.
4919 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
4920 for a_target in $TARGETS_TO_BUILD; do
4921 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
4922 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
4924 cat >>confdefs.h <<_ACEOF
4925 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
4931 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
4932 # target feature def files.
4933 LLVM_ENUM_TARGETS=""
4934 LLVM_ENUM_ASM_PRINTERS=""
4935 LLVM_ENUM_ASM_PARSERS=""
4936 LLVM_ENUM_DISASSEMBLERS=""
4937 for target_to_build in $TARGETS_TO_BUILD; do
4938 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
4939 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
4940 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
4942 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
4943 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
4945 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
4946 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
4954 # Check whether --enable-cbe-printf-a was given.
4955 if test "${enable_cbe_printf_a+set}" = set; then
4956 enableval=$enable_cbe_printf_a;
4961 case "$enableval" in
4962 yes) ENABLE_CBE_PRINTF_A=1
4964 no) ENABLE_CBE_PRINTF_A=0
4966 default) ENABLE_CBE_PRINTF_A=1
4968 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4969 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4970 { (exit 1); exit 1; }; } ;;
4973 cat >>confdefs.h <<_ACEOF
4974 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4979 # Check whether --with-llvmgccdir was given.
4980 if test "${with_llvmgccdir+set}" = set; then
4981 withval=$with_llvmgccdir;
4987 default) WITH_LLVMGCCDIR=default ;;
4988 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4989 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4990 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4991 { (exit 1); exit 1; }; } ;;
4995 # Check whether --with-llvmgcc was given.
4996 if test "${with_llvmgcc+set}" = set; then
4997 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5003 # Check whether --with-llvmgxx was given.
5004 if test "${with_llvmgxx+set}" = set; then
5005 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5010 if test -n "$LLVMGCC"; then
5011 LLVMGCCCOMMAND="$LLVMGCC"
5014 if test -n "$LLVMGXX"; then
5015 LLVMGXXCOMMAND="$LLVMGXX"
5018 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5019 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5020 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5021 { (exit 1); exit 1; }; };
5024 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5025 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5026 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5027 { (exit 1); exit 1; }; };
5031 # Check whether --with-optimize-option was given.
5032 if test "${with_optimize_option+set}" = set; then
5033 withval=$with_optimize_option;
5038 { echo "$as_me:$LINENO: checking optimization flags" >&5
5039 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5042 case "$llvm_cv_os_type" in
5043 MingW) optimize_option=-O3 ;;
5044 *) optimize_option=-O2 ;;
5046 *) optimize_option="$withval" ;;
5048 OPTIMIZE_OPTION=$optimize_option
5050 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5051 echo "${ECHO_T}$optimize_option" >&6; }
5054 # Check whether --with-extra-options was given.
5055 if test "${with_extra_options+set}" = set; then
5056 withval=$with_extra_options;
5062 default) EXTRA_OPTIONS= ;;
5063 *) EXTRA_OPTIONS=$withval ;;
5065 EXTRA_OPTIONS=$EXTRA_OPTIONS
5068 # Check whether --enable-bindings was given.
5069 if test "${enable_bindings+set}" = set; then
5070 enableval=$enable_bindings;
5075 BINDINGS_TO_BUILD=""
5076 case "$enableval" in
5077 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5078 all ) BINDINGS_TO_BUILD="ocaml" ;;
5079 none | no) BINDINGS_TO_BUILD="" ;;
5080 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5081 case "$a_binding" in
5082 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5083 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5084 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5085 { (exit 1); exit 1; }; } ;;
5092 # Check whether --with-ocaml-libdir was given.
5093 if test "${with_ocaml_libdir+set}" = set; then
5094 withval=$with_ocaml_libdir;
5100 auto) with_ocaml_libdir="$withval" ;;
5101 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5102 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5103 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5104 { (exit 1); exit 1; }; } ;;
5108 # Check whether --with-c-include-dirs was given.
5109 if test "${with_c_include_dirs+set}" = set; then
5110 withval=$with_c_include_dirs;
5116 cat >>confdefs.h <<_ACEOF
5117 #define C_INCLUDE_DIRS "$withval"
5122 # Check whether --with-cxx-include-root was given.
5123 if test "${with_cxx_include_root+set}" = set; then
5124 withval=$with_cxx_include_root;
5130 cat >>confdefs.h <<_ACEOF
5131 #define CXX_INCLUDE_ROOT "$withval"
5136 # Check whether --with-cxx-include-arch was given.
5137 if test "${with_cxx_include_arch+set}" = set; then
5138 withval=$with_cxx_include_arch;
5144 cat >>confdefs.h <<_ACEOF
5145 #define CXX_INCLUDE_ARCH "$withval"
5150 # Check whether --with-cxx-include-32bit-dir was given.
5151 if test "${with_cxx_include_32bit_dir+set}" = set; then
5152 withval=$with_cxx_include_32bit_dir;
5158 cat >>confdefs.h <<_ACEOF
5159 #define CXX_INCLUDE_32BIT_DIR "$withval"
5164 # Check whether --with-cxx-include-64bit-dir was given.
5165 if test "${with_cxx_include_64bit_dir+set}" = set; then
5166 withval=$with_cxx_include_64bit_dir;
5172 cat >>confdefs.h <<_ACEOF
5173 #define CXX_INCLUDE_64BIT_DIR "$withval"
5178 # Check whether --with-binutils-include was given.
5179 if test "${with_binutils_include+set}" = set; then
5180 withval=$with_binutils_include;
5186 default) WITH_BINUTILS_INCDIR=default ;;
5187 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5188 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5189 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5190 { (exit 1); exit 1; }; } ;;
5192 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5193 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5195 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5196 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5197 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5198 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5199 { (exit 1); exit 1; }; };
5203 # Check whether --enable-libffi was given.
5204 if test "${enable_libffi+set}" = set; then
5205 enableval=$enable_libffi; case "$enableval" in
5206 yes) llvm_cv_enable_libffi="yes" ;;
5207 no) llvm_cv_enable_libffi="no" ;;
5208 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5209 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5210 { (exit 1); exit 1; }; } ;;
5213 llvm_cv_enable_libffi=no
5217 if test "$llvm_cv_os_type" = "Win32" ; then
5223 # Check whether --enable-llvmc-dynamic was given.
5224 if test "${enable_llvmc_dynamic+set}" = set; then
5225 enableval=$enable_llvmc_dynamic;
5227 enableval=$llvmc_dynamic
5230 if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5231 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5234 ENABLE_LLVMC_DYNAMIC=
5238 # Check whether --enable-llvmc-dynamic-plugins was given.
5239 if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5240 enableval=$enable_llvmc_dynamic_plugins;
5245 if test ${enableval} = "yes" ; then
5246 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5249 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5255 ac_cpp='$CPP $CPPFLAGS'
5256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5259 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5260 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5261 # On Suns, sometimes $CPP names a directory.
5262 if test -n "$CPP" && test -d "$CPP"; then
5265 if test -z "$CPP"; then
5266 if test "${ac_cv_prog_CPP+set}" = set; then
5267 echo $ECHO_N "(cached) $ECHO_C" >&6
5269 # Double quotes because CPP needs to be expanded
5270 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5273 for ac_c_preproc_warn_flag in '' yes
5275 # Use a header file that comes with gcc, so configuring glibc
5276 # with a fresh cross-compiler works.
5277 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5278 # <limits.h> exists even on freestanding compilers.
5279 # On the NeXT, cc -E runs the code through the compiler's parser,
5280 # not just through cpp. "Syntax error" is here to catch this case.
5281 cat >conftest.$ac_ext <<_ACEOF
5284 cat confdefs.h >>conftest.$ac_ext
5285 cat >>conftest.$ac_ext <<_ACEOF
5286 /* end confdefs.h. */
5288 # include <limits.h>
5290 # include <assert.h>
5294 if { (ac_try="$ac_cpp conftest.$ac_ext"
5296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5297 *) ac_try_echo=$ac_try;;
5299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5300 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5302 grep -v '^ *+' conftest.er1 >conftest.err
5304 cat conftest.err >&5
5305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306 (exit $ac_status); } >/dev/null; then
5307 if test -s conftest.err; then
5308 ac_cpp_err=$ac_c_preproc_warn_flag
5309 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5316 if test -z "$ac_cpp_err"; then
5319 echo "$as_me: failed program was:" >&5
5320 sed 's/^/| /' conftest.$ac_ext >&5
5322 # Broken: fails on valid input.
5326 rm -f conftest.err conftest.$ac_ext
5328 # OK, works on sane cases. Now check whether nonexistent headers
5329 # can be detected and how.
5330 cat >conftest.$ac_ext <<_ACEOF
5333 cat confdefs.h >>conftest.$ac_ext
5334 cat >>conftest.$ac_ext <<_ACEOF
5335 /* end confdefs.h. */
5336 #include <ac_nonexistent.h>
5338 if { (ac_try="$ac_cpp conftest.$ac_ext"
5340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5341 *) ac_try_echo=$ac_try;;
5343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5344 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5346 grep -v '^ *+' conftest.er1 >conftest.err
5348 cat conftest.err >&5
5349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5350 (exit $ac_status); } >/dev/null; then
5351 if test -s conftest.err; then
5352 ac_cpp_err=$ac_c_preproc_warn_flag
5353 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5360 if test -z "$ac_cpp_err"; then
5361 # Broken: success on invalid input.
5364 echo "$as_me: failed program was:" >&5
5365 sed 's/^/| /' conftest.$ac_ext >&5
5367 # Passes both tests.
5372 rm -f conftest.err conftest.$ac_ext
5375 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5376 rm -f conftest.err conftest.$ac_ext
5377 if $ac_preproc_ok; then
5389 { echo "$as_me:$LINENO: result: $CPP" >&5
5390 echo "${ECHO_T}$CPP" >&6; }
5392 for ac_c_preproc_warn_flag in '' yes
5394 # Use a header file that comes with gcc, so configuring glibc
5395 # with a fresh cross-compiler works.
5396 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5397 # <limits.h> exists even on freestanding compilers.
5398 # On the NeXT, cc -E runs the code through the compiler's parser,
5399 # not just through cpp. "Syntax error" is here to catch this case.
5400 cat >conftest.$ac_ext <<_ACEOF
5403 cat confdefs.h >>conftest.$ac_ext
5404 cat >>conftest.$ac_ext <<_ACEOF
5405 /* end confdefs.h. */
5407 # include <limits.h>
5409 # include <assert.h>
5413 if { (ac_try="$ac_cpp conftest.$ac_ext"
5415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5416 *) ac_try_echo=$ac_try;;
5418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5419 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5421 grep -v '^ *+' conftest.er1 >conftest.err
5423 cat conftest.err >&5
5424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5425 (exit $ac_status); } >/dev/null; then
5426 if test -s conftest.err; then
5427 ac_cpp_err=$ac_c_preproc_warn_flag
5428 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5435 if test -z "$ac_cpp_err"; then
5438 echo "$as_me: failed program was:" >&5
5439 sed 's/^/| /' conftest.$ac_ext >&5
5441 # Broken: fails on valid input.
5445 rm -f conftest.err conftest.$ac_ext
5447 # OK, works on sane cases. Now check whether nonexistent headers
5448 # can be detected and how.
5449 cat >conftest.$ac_ext <<_ACEOF
5452 cat confdefs.h >>conftest.$ac_ext
5453 cat >>conftest.$ac_ext <<_ACEOF
5454 /* end confdefs.h. */
5455 #include <ac_nonexistent.h>
5457 if { (ac_try="$ac_cpp conftest.$ac_ext"
5459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5460 *) ac_try_echo=$ac_try;;
5462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5463 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5465 grep -v '^ *+' conftest.er1 >conftest.err
5467 cat conftest.err >&5
5468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469 (exit $ac_status); } >/dev/null; then
5470 if test -s conftest.err; then
5471 ac_cpp_err=$ac_c_preproc_warn_flag
5472 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5479 if test -z "$ac_cpp_err"; then
5480 # Broken: success on invalid input.
5483 echo "$as_me: failed program was:" >&5
5484 sed 's/^/| /' conftest.$ac_ext >&5
5486 # Passes both tests.
5491 rm -f conftest.err conftest.$ac_ext
5494 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5495 rm -f conftest.err conftest.$ac_ext
5496 if $ac_preproc_ok; then
5499 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5500 See \`config.log' for more details." >&5
5501 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5502 See \`config.log' for more details." >&2;}
5503 { (exit 1); exit 1; }; }
5507 ac_cpp='$CPP $CPPFLAGS'
5508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5513 ac_cpp='$CPP $CPPFLAGS'
5514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5517 if test -n "$ac_tool_prefix"; then
5520 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5521 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5522 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5524 if test "${ac_cv_prog_CC+set}" = set; then
5525 echo $ECHO_N "(cached) $ECHO_C" >&6
5527 if test -n "$CC"; then
5528 ac_cv_prog_CC="$CC" # Let the user override the test.
5530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5534 test -z "$as_dir" && as_dir=.
5535 for ac_exec_ext in '' $ac_executable_extensions; do
5536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5537 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5548 if test -n "$CC"; then
5549 { echo "$as_me:$LINENO: result: $CC" >&5
5550 echo "${ECHO_T}$CC" >&6; }
5552 { echo "$as_me:$LINENO: result: no" >&5
5553 echo "${ECHO_T}no" >&6; }
5557 test -n "$CC" && break
5560 if test -z "$CC"; then
5564 # Extract the first word of "$ac_prog", so it can be a program name with args.
5565 set dummy $ac_prog; ac_word=$2
5566 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5568 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5569 echo $ECHO_N "(cached) $ECHO_C" >&6
5571 if test -n "$ac_ct_CC"; then
5572 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5578 test -z "$as_dir" && as_dir=.
5579 for ac_exec_ext in '' $ac_executable_extensions; do
5580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5581 ac_cv_prog_ac_ct_CC="$ac_prog"
5582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5591 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5592 if test -n "$ac_ct_CC"; then
5593 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5594 echo "${ECHO_T}$ac_ct_CC" >&6; }
5596 { echo "$as_me:$LINENO: result: no" >&5
5597 echo "${ECHO_T}no" >&6; }
5601 test -n "$ac_ct_CC" && break
5604 if test "x$ac_ct_CC" = x; then
5607 case $cross_compiling:$ac_tool_warned in
5609 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5610 whose name does not start with the host triplet. If you think this
5611 configuration is useful to you, please write to autoconf@gnu.org." >&5
5612 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5613 whose name does not start with the host triplet. If you think this
5614 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5615 ac_tool_warned=yes ;;
5622 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5623 See \`config.log' for more details." >&5
5624 echo "$as_me: error: no acceptable C compiler found in \$PATH
5625 See \`config.log' for more details." >&2;}
5626 { (exit 1); exit 1; }; }
5628 # Provide some information about the compiler.
5629 echo "$as_me:$LINENO: checking for C compiler version" >&5
5630 ac_compiler=`set X $ac_compile; echo $2`
5631 { (ac_try="$ac_compiler --version >&5"
5633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5634 *) ac_try_echo=$ac_try;;
5636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5637 (eval "$ac_compiler --version >&5") 2>&5
5639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640 (exit $ac_status); }
5641 { (ac_try="$ac_compiler -v >&5"
5643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5644 *) ac_try_echo=$ac_try;;
5646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5647 (eval "$ac_compiler -v >&5") 2>&5
5649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5650 (exit $ac_status); }
5651 { (ac_try="$ac_compiler -V >&5"
5653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5654 *) ac_try_echo=$ac_try;;
5656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5657 (eval "$ac_compiler -V >&5") 2>&5
5659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660 (exit $ac_status); }
5662 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5663 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5664 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5665 echo $ECHO_N "(cached) $ECHO_C" >&6
5667 cat >conftest.$ac_ext <<_ACEOF
5670 cat confdefs.h >>conftest.$ac_ext
5671 cat >>conftest.$ac_ext <<_ACEOF
5672 /* end confdefs.h. */
5685 rm -f conftest.$ac_objext
5686 if { (ac_try="$ac_compile"
5688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5689 *) ac_try_echo=$ac_try;;
5691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5692 (eval "$ac_compile") 2>conftest.er1
5694 grep -v '^ *+' conftest.er1 >conftest.err
5696 cat conftest.err >&5
5697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698 (exit $ac_status); } &&
5699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5700 { (case "(($ac_try" in
5701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5702 *) ac_try_echo=$ac_try;;
5704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5705 (eval "$ac_try") 2>&5
5707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5708 (exit $ac_status); }; } &&
5709 { ac_try='test -s conftest.$ac_objext'
5710 { (case "(($ac_try" in
5711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5712 *) ac_try_echo=$ac_try;;
5714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5715 (eval "$ac_try") 2>&5
5717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718 (exit $ac_status); }; }; then
5721 echo "$as_me: failed program was:" >&5
5722 sed 's/^/| /' conftest.$ac_ext >&5
5727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5728 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5731 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5732 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5733 GCC=`test $ac_compiler_gnu = yes && echo yes`
5734 ac_test_CFLAGS=${CFLAGS+set}
5735 ac_save_CFLAGS=$CFLAGS
5736 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5737 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5738 if test "${ac_cv_prog_cc_g+set}" = set; then
5739 echo $ECHO_N "(cached) $ECHO_C" >&6
5741 ac_save_c_werror_flag=$ac_c_werror_flag
5742 ac_c_werror_flag=yes
5745 cat >conftest.$ac_ext <<_ACEOF
5748 cat confdefs.h >>conftest.$ac_ext
5749 cat >>conftest.$ac_ext <<_ACEOF
5750 /* end confdefs.h. */
5760 rm -f conftest.$ac_objext
5761 if { (ac_try="$ac_compile"
5763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5764 *) ac_try_echo=$ac_try;;
5766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5767 (eval "$ac_compile") 2>conftest.er1
5769 grep -v '^ *+' conftest.er1 >conftest.err
5771 cat conftest.err >&5
5772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773 (exit $ac_status); } &&
5774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5775 { (case "(($ac_try" in
5776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5777 *) ac_try_echo=$ac_try;;
5779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5780 (eval "$ac_try") 2>&5
5782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783 (exit $ac_status); }; } &&
5784 { ac_try='test -s conftest.$ac_objext'
5785 { (case "(($ac_try" in
5786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5787 *) ac_try_echo=$ac_try;;
5789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5790 (eval "$ac_try") 2>&5
5792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793 (exit $ac_status); }; }; then
5796 echo "$as_me: failed program was:" >&5
5797 sed 's/^/| /' conftest.$ac_ext >&5
5800 cat >conftest.$ac_ext <<_ACEOF
5803 cat confdefs.h >>conftest.$ac_ext
5804 cat >>conftest.$ac_ext <<_ACEOF
5805 /* end confdefs.h. */
5815 rm -f conftest.$ac_objext
5816 if { (ac_try="$ac_compile"
5818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5819 *) ac_try_echo=$ac_try;;
5821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5822 (eval "$ac_compile") 2>conftest.er1
5824 grep -v '^ *+' conftest.er1 >conftest.err
5826 cat conftest.err >&5
5827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828 (exit $ac_status); } &&
5829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5830 { (case "(($ac_try" in
5831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5832 *) ac_try_echo=$ac_try;;
5834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5835 (eval "$ac_try") 2>&5
5837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838 (exit $ac_status); }; } &&
5839 { ac_try='test -s conftest.$ac_objext'
5840 { (case "(($ac_try" in
5841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5842 *) ac_try_echo=$ac_try;;
5844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5845 (eval "$ac_try") 2>&5
5847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848 (exit $ac_status); }; }; then
5851 echo "$as_me: failed program was:" >&5
5852 sed 's/^/| /' conftest.$ac_ext >&5
5854 ac_c_werror_flag=$ac_save_c_werror_flag
5856 cat >conftest.$ac_ext <<_ACEOF
5859 cat confdefs.h >>conftest.$ac_ext
5860 cat >>conftest.$ac_ext <<_ACEOF
5861 /* end confdefs.h. */
5871 rm -f conftest.$ac_objext
5872 if { (ac_try="$ac_compile"
5874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5875 *) ac_try_echo=$ac_try;;
5877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5878 (eval "$ac_compile") 2>conftest.er1
5880 grep -v '^ *+' conftest.er1 >conftest.err
5882 cat conftest.err >&5
5883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884 (exit $ac_status); } &&
5885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5886 { (case "(($ac_try" in
5887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5888 *) ac_try_echo=$ac_try;;
5890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5891 (eval "$ac_try") 2>&5
5893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894 (exit $ac_status); }; } &&
5895 { ac_try='test -s conftest.$ac_objext'
5896 { (case "(($ac_try" in
5897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5898 *) ac_try_echo=$ac_try;;
5900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5901 (eval "$ac_try") 2>&5
5903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904 (exit $ac_status); }; }; then
5907 echo "$as_me: failed program was:" >&5
5908 sed 's/^/| /' conftest.$ac_ext >&5
5913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5920 ac_c_werror_flag=$ac_save_c_werror_flag
5922 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5923 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5924 if test "$ac_test_CFLAGS" = set; then
5925 CFLAGS=$ac_save_CFLAGS
5926 elif test $ac_cv_prog_cc_g = yes; then
5927 if test "$GCC" = yes; then
5933 if test "$GCC" = yes; then
5939 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5940 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5941 if test "${ac_cv_prog_cc_c89+set}" = set; then
5942 echo $ECHO_N "(cached) $ECHO_C" >&6
5944 ac_cv_prog_cc_c89=no
5946 cat >conftest.$ac_ext <<_ACEOF
5949 cat confdefs.h >>conftest.$ac_ext
5950 cat >>conftest.$ac_ext <<_ACEOF
5951 /* end confdefs.h. */
5954 #include <sys/types.h>
5955 #include <sys/stat.h>
5956 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5957 struct buf { int x; };
5958 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5959 static char *e (p, i)
5965 static char *f (char * (*g) (char **, int), char **p, ...)
5970 s = g (p, va_arg (v,int));
5975 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5976 function prototypes and stuff, but not '\xHH' hex character constants.
5977 These don't provoke an error unfortunately, instead are silently treated
5978 as 'x'. The following induces an error, until -std is added to get
5979 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5980 array size at least. It's necessary to write '\x00'==0 to get something
5981 that's true only with -std. */
5982 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5984 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5985 inside strings and character constants. */
5987 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5989 int test (int i, double x);
5990 struct s1 {int (*f) (int a);};
5991 struct s2 {int (*f) (double a);};
5992 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5998 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6003 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6004 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6006 CC="$ac_save_CC $ac_arg"
6007 rm -f conftest.$ac_objext
6008 if { (ac_try="$ac_compile"
6010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6011 *) ac_try_echo=$ac_try;;
6013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6014 (eval "$ac_compile") 2>conftest.er1
6016 grep -v '^ *+' conftest.er1 >conftest.err
6018 cat conftest.err >&5
6019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020 (exit $ac_status); } &&
6021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6022 { (case "(($ac_try" in
6023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6024 *) ac_try_echo=$ac_try;;
6026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6027 (eval "$ac_try") 2>&5
6029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6030 (exit $ac_status); }; } &&
6031 { ac_try='test -s conftest.$ac_objext'
6032 { (case "(($ac_try" in
6033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6034 *) ac_try_echo=$ac_try;;
6036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6037 (eval "$ac_try") 2>&5
6039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040 (exit $ac_status); }; }; then
6041 ac_cv_prog_cc_c89=$ac_arg
6043 echo "$as_me: failed program was:" >&5
6044 sed 's/^/| /' conftest.$ac_ext >&5
6049 rm -f core conftest.err conftest.$ac_objext
6050 test "x$ac_cv_prog_cc_c89" != "xno" && break
6052 rm -f conftest.$ac_ext
6057 case "x$ac_cv_prog_cc_c89" in
6059 { echo "$as_me:$LINENO: result: none needed" >&5
6060 echo "${ECHO_T}none needed" >&6; } ;;
6062 { echo "$as_me:$LINENO: result: unsupported" >&5
6063 echo "${ECHO_T}unsupported" >&6; } ;;
6065 CC="$CC $ac_cv_prog_cc_c89"
6066 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6067 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6072 ac_cpp='$CPP $CPPFLAGS'
6073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6078 ac_cpp='$CXXCPP $CPPFLAGS'
6079 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6080 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6081 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6082 if test -z "$CXX"; then
6083 if test -n "$CCC"; then
6086 if test -n "$ac_tool_prefix"; then
6089 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6090 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6091 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6093 if test "${ac_cv_prog_CXX+set}" = set; then
6094 echo $ECHO_N "(cached) $ECHO_C" >&6
6096 if test -n "$CXX"; then
6097 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6103 test -z "$as_dir" && as_dir=.
6104 for ac_exec_ext in '' $ac_executable_extensions; do
6105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6106 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6117 if test -n "$CXX"; then
6118 { echo "$as_me:$LINENO: result: $CXX" >&5
6119 echo "${ECHO_T}$CXX" >&6; }
6121 { echo "$as_me:$LINENO: result: no" >&5
6122 echo "${ECHO_T}no" >&6; }
6126 test -n "$CXX" && break
6129 if test -z "$CXX"; then
6133 # Extract the first word of "$ac_prog", so it can be a program name with args.
6134 set dummy $ac_prog; ac_word=$2
6135 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6137 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6138 echo $ECHO_N "(cached) $ECHO_C" >&6
6140 if test -n "$ac_ct_CXX"; then
6141 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6147 test -z "$as_dir" && as_dir=.
6148 for ac_exec_ext in '' $ac_executable_extensions; do
6149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6150 ac_cv_prog_ac_ct_CXX="$ac_prog"
6151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6160 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6161 if test -n "$ac_ct_CXX"; then
6162 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6163 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6165 { echo "$as_me:$LINENO: result: no" >&5
6166 echo "${ECHO_T}no" >&6; }
6170 test -n "$ac_ct_CXX" && break
6173 if test "x$ac_ct_CXX" = x; then
6176 case $cross_compiling:$ac_tool_warned in
6178 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6179 whose name does not start with the host triplet. If you think this
6180 configuration is useful to you, please write to autoconf@gnu.org." >&5
6181 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6182 whose name does not start with the host triplet. If you think this
6183 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6184 ac_tool_warned=yes ;;
6192 # Provide some information about the compiler.
6193 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6194 ac_compiler=`set X $ac_compile; echo $2`
6195 { (ac_try="$ac_compiler --version >&5"
6197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6198 *) ac_try_echo=$ac_try;;
6200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6201 (eval "$ac_compiler --version >&5") 2>&5
6203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204 (exit $ac_status); }
6205 { (ac_try="$ac_compiler -v >&5"
6207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6208 *) ac_try_echo=$ac_try;;
6210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6211 (eval "$ac_compiler -v >&5") 2>&5
6213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6214 (exit $ac_status); }
6215 { (ac_try="$ac_compiler -V >&5"
6217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6218 *) ac_try_echo=$ac_try;;
6220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6221 (eval "$ac_compiler -V >&5") 2>&5
6223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224 (exit $ac_status); }
6226 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6227 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6228 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6229 echo $ECHO_N "(cached) $ECHO_C" >&6
6231 cat >conftest.$ac_ext <<_ACEOF
6234 cat confdefs.h >>conftest.$ac_ext
6235 cat >>conftest.$ac_ext <<_ACEOF
6236 /* end confdefs.h. */
6249 rm -f conftest.$ac_objext
6250 if { (ac_try="$ac_compile"
6252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6253 *) ac_try_echo=$ac_try;;
6255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6256 (eval "$ac_compile") 2>conftest.er1
6258 grep -v '^ *+' conftest.er1 >conftest.err
6260 cat conftest.err >&5
6261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6262 (exit $ac_status); } &&
6263 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6264 { (case "(($ac_try" in
6265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6266 *) ac_try_echo=$ac_try;;
6268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6269 (eval "$ac_try") 2>&5
6271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272 (exit $ac_status); }; } &&
6273 { ac_try='test -s conftest.$ac_objext'
6274 { (case "(($ac_try" in
6275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6276 *) ac_try_echo=$ac_try;;
6278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6279 (eval "$ac_try") 2>&5
6281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282 (exit $ac_status); }; }; then
6285 echo "$as_me: failed program was:" >&5
6286 sed 's/^/| /' conftest.$ac_ext >&5
6291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6292 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6295 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6296 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6297 GXX=`test $ac_compiler_gnu = yes && echo yes`
6298 ac_test_CXXFLAGS=${CXXFLAGS+set}
6299 ac_save_CXXFLAGS=$CXXFLAGS
6300 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6301 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6302 if test "${ac_cv_prog_cxx_g+set}" = set; then
6303 echo $ECHO_N "(cached) $ECHO_C" >&6
6305 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6306 ac_cxx_werror_flag=yes
6309 cat >conftest.$ac_ext <<_ACEOF
6312 cat confdefs.h >>conftest.$ac_ext
6313 cat >>conftest.$ac_ext <<_ACEOF
6314 /* end confdefs.h. */
6324 rm -f conftest.$ac_objext
6325 if { (ac_try="$ac_compile"
6327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6328 *) ac_try_echo=$ac_try;;
6330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6331 (eval "$ac_compile") 2>conftest.er1
6333 grep -v '^ *+' conftest.er1 >conftest.err
6335 cat conftest.err >&5
6336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337 (exit $ac_status); } &&
6338 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6339 { (case "(($ac_try" in
6340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6341 *) ac_try_echo=$ac_try;;
6343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6344 (eval "$ac_try") 2>&5
6346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347 (exit $ac_status); }; } &&
6348 { ac_try='test -s conftest.$ac_objext'
6349 { (case "(($ac_try" in
6350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6351 *) ac_try_echo=$ac_try;;
6353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6354 (eval "$ac_try") 2>&5
6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357 (exit $ac_status); }; }; then
6358 ac_cv_prog_cxx_g=yes
6360 echo "$as_me: failed program was:" >&5
6361 sed 's/^/| /' conftest.$ac_ext >&5
6364 cat >conftest.$ac_ext <<_ACEOF
6367 cat confdefs.h >>conftest.$ac_ext
6368 cat >>conftest.$ac_ext <<_ACEOF
6369 /* end confdefs.h. */
6379 rm -f conftest.$ac_objext
6380 if { (ac_try="$ac_compile"
6382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6383 *) ac_try_echo=$ac_try;;
6385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6386 (eval "$ac_compile") 2>conftest.er1
6388 grep -v '^ *+' conftest.er1 >conftest.err
6390 cat conftest.err >&5
6391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392 (exit $ac_status); } &&
6393 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6394 { (case "(($ac_try" in
6395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6396 *) ac_try_echo=$ac_try;;
6398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6399 (eval "$ac_try") 2>&5
6401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402 (exit $ac_status); }; } &&
6403 { ac_try='test -s conftest.$ac_objext'
6404 { (case "(($ac_try" in
6405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6406 *) ac_try_echo=$ac_try;;
6408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6409 (eval "$ac_try") 2>&5
6411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412 (exit $ac_status); }; }; then
6415 echo "$as_me: failed program was:" >&5
6416 sed 's/^/| /' conftest.$ac_ext >&5
6418 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6420 cat >conftest.$ac_ext <<_ACEOF
6423 cat confdefs.h >>conftest.$ac_ext
6424 cat >>conftest.$ac_ext <<_ACEOF
6425 /* end confdefs.h. */
6435 rm -f conftest.$ac_objext
6436 if { (ac_try="$ac_compile"
6438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6439 *) ac_try_echo=$ac_try;;
6441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6442 (eval "$ac_compile") 2>conftest.er1
6444 grep -v '^ *+' conftest.er1 >conftest.err
6446 cat conftest.err >&5
6447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448 (exit $ac_status); } &&
6449 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6450 { (case "(($ac_try" in
6451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6452 *) ac_try_echo=$ac_try;;
6454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6455 (eval "$ac_try") 2>&5
6457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458 (exit $ac_status); }; } &&
6459 { ac_try='test -s conftest.$ac_objext'
6460 { (case "(($ac_try" in
6461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6462 *) ac_try_echo=$ac_try;;
6464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6465 (eval "$ac_try") 2>&5
6467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468 (exit $ac_status); }; }; then
6469 ac_cv_prog_cxx_g=yes
6471 echo "$as_me: failed program was:" >&5
6472 sed 's/^/| /' conftest.$ac_ext >&5
6477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6484 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6486 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6487 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6488 if test "$ac_test_CXXFLAGS" = set; then
6489 CXXFLAGS=$ac_save_CXXFLAGS
6490 elif test $ac_cv_prog_cxx_g = yes; then
6491 if test "$GXX" = yes; then
6497 if test "$GXX" = yes; then
6504 ac_cpp='$CPP $CPPFLAGS'
6505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6510 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6511 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6512 if test "${lt_cv_path_NM+set}" = set; then
6513 echo $ECHO_N "(cached) $ECHO_C" >&6
6515 if test -n "$NM"; then
6516 # Let the user override the test.
6519 lt_nm_to_check="${ac_tool_prefix}nm"
6520 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6521 lt_nm_to_check="$lt_nm_to_check nm"
6523 for lt_tmp_nm in $lt_nm_to_check; do
6524 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6525 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6527 test -z "$ac_dir" && ac_dir=.
6528 tmp_nm="$ac_dir/$lt_tmp_nm"
6529 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6530 # Check to see if the nm accepts a BSD-compat flag.
6531 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6532 # nm: unknown option "B" ignored
6533 # Tru64's nm complains that /dev/null is an invalid object file
6534 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6535 */dev/null* | *'Invalid file or object type'*)
6536 lt_cv_path_NM="$tmp_nm -B"
6540 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6542 lt_cv_path_NM="$tmp_nm -p"
6546 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6547 continue # so that we can try to find one that supports BSD flags
6556 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6559 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6560 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6565 { echo "$as_me:$LINENO: checking for GNU make" >&5
6566 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6567 if test "${llvm_cv_gnu_make_command+set}" = set; then
6568 echo $ECHO_N "(cached) $ECHO_C" >&6
6570 llvm_cv_gnu_make_command=''
6571 for a in "$MAKE" make gmake gnumake ; do
6572 if test -z "$a" ; then continue ; fi ;
6573 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6575 llvm_cv_gnu_make_command=$a ;
6580 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6581 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6582 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6586 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6587 echo "${ECHO_T}\"Not found\"" >&6; };
6591 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6592 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6594 if test "$LN_S" = "ln -s"; then
6595 { echo "$as_me:$LINENO: result: yes" >&5
6596 echo "${ECHO_T}yes" >&6; }
6598 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6599 echo "${ECHO_T}no, using $LN_S" >&6; }
6602 # Extract the first word of "cmp", so it can be a program name with args.
6603 set dummy cmp; ac_word=$2
6604 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6606 if test "${ac_cv_path_CMP+set}" = set; then
6607 echo $ECHO_N "(cached) $ECHO_C" >&6
6611 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6618 test -z "$as_dir" && as_dir=.
6619 for ac_exec_ext in '' $ac_executable_extensions; do
6620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6621 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6629 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6634 if test -n "$CMP"; then
6635 { echo "$as_me:$LINENO: result: $CMP" >&5
6636 echo "${ECHO_T}$CMP" >&6; }
6638 { echo "$as_me:$LINENO: result: no" >&5
6639 echo "${ECHO_T}no" >&6; }
6643 # Extract the first word of "cp", so it can be a program name with args.
6644 set dummy cp; ac_word=$2
6645 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6647 if test "${ac_cv_path_CP+set}" = set; then
6648 echo $ECHO_N "(cached) $ECHO_C" >&6
6652 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6659 test -z "$as_dir" && as_dir=.
6660 for ac_exec_ext in '' $ac_executable_extensions; do
6661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6662 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6670 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6675 if test -n "$CP"; then
6676 { echo "$as_me:$LINENO: result: $CP" >&5
6677 echo "${ECHO_T}$CP" >&6; }
6679 { echo "$as_me:$LINENO: result: no" >&5
6680 echo "${ECHO_T}no" >&6; }
6684 # Extract the first word of "date", so it can be a program name with args.
6685 set dummy date; ac_word=$2
6686 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6688 if test "${ac_cv_path_DATE+set}" = set; then
6689 echo $ECHO_N "(cached) $ECHO_C" >&6
6693 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6700 test -z "$as_dir" && as_dir=.
6701 for ac_exec_ext in '' $ac_executable_extensions; do
6702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6703 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6711 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6715 DATE=$ac_cv_path_DATE
6716 if test -n "$DATE"; then
6717 { echo "$as_me:$LINENO: result: $DATE" >&5
6718 echo "${ECHO_T}$DATE" >&6; }
6720 { echo "$as_me:$LINENO: result: no" >&5
6721 echo "${ECHO_T}no" >&6; }
6725 # Extract the first word of "find", so it can be a program name with args.
6726 set dummy find; ac_word=$2
6727 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6729 if test "${ac_cv_path_FIND+set}" = set; then
6730 echo $ECHO_N "(cached) $ECHO_C" >&6
6734 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6741 test -z "$as_dir" && as_dir=.
6742 for ac_exec_ext in '' $ac_executable_extensions; do
6743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6744 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6752 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6756 FIND=$ac_cv_path_FIND
6757 if test -n "$FIND"; then
6758 { echo "$as_me:$LINENO: result: $FIND" >&5
6759 echo "${ECHO_T}$FIND" >&6; }
6761 { echo "$as_me:$LINENO: result: no" >&5
6762 echo "${ECHO_T}no" >&6; }
6766 # Extract the first word of "grep", so it can be a program name with args.
6767 set dummy grep; ac_word=$2
6768 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6770 if test "${ac_cv_path_GREP+set}" = set; then
6771 echo $ECHO_N "(cached) $ECHO_C" >&6
6775 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6782 test -z "$as_dir" && as_dir=.
6783 for ac_exec_ext in '' $ac_executable_extensions; do
6784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6785 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6793 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6797 GREP=$ac_cv_path_GREP
6798 if test -n "$GREP"; then
6799 { echo "$as_me:$LINENO: result: $GREP" >&5
6800 echo "${ECHO_T}$GREP" >&6; }
6802 { echo "$as_me:$LINENO: result: no" >&5
6803 echo "${ECHO_T}no" >&6; }
6807 # Extract the first word of "mkdir", so it can be a program name with args.
6808 set dummy mkdir; ac_word=$2
6809 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6811 if test "${ac_cv_path_MKDIR+set}" = set; then
6812 echo $ECHO_N "(cached) $ECHO_C" >&6
6816 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6823 test -z "$as_dir" && as_dir=.
6824 for ac_exec_ext in '' $ac_executable_extensions; do
6825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6826 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6834 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6838 MKDIR=$ac_cv_path_MKDIR
6839 if test -n "$MKDIR"; then
6840 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6841 echo "${ECHO_T}$MKDIR" >&6; }
6843 { echo "$as_me:$LINENO: result: no" >&5
6844 echo "${ECHO_T}no" >&6; }
6848 # Extract the first word of "mv", so it can be a program name with args.
6849 set dummy mv; ac_word=$2
6850 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6852 if test "${ac_cv_path_MV+set}" = set; then
6853 echo $ECHO_N "(cached) $ECHO_C" >&6
6857 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6864 test -z "$as_dir" && as_dir=.
6865 for ac_exec_ext in '' $ac_executable_extensions; do
6866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6867 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6875 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6880 if test -n "$MV"; then
6881 { echo "$as_me:$LINENO: result: $MV" >&5
6882 echo "${ECHO_T}$MV" >&6; }
6884 { echo "$as_me:$LINENO: result: no" >&5
6885 echo "${ECHO_T}no" >&6; }
6889 if test -n "$ac_tool_prefix"; then
6890 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6891 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6892 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6894 if test "${ac_cv_prog_RANLIB+set}" = set; then
6895 echo $ECHO_N "(cached) $ECHO_C" >&6
6897 if test -n "$RANLIB"; then
6898 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6904 test -z "$as_dir" && as_dir=.
6905 for ac_exec_ext in '' $ac_executable_extensions; do
6906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6907 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6917 RANLIB=$ac_cv_prog_RANLIB
6918 if test -n "$RANLIB"; then
6919 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6920 echo "${ECHO_T}$RANLIB" >&6; }
6922 { echo "$as_me:$LINENO: result: no" >&5
6923 echo "${ECHO_T}no" >&6; }
6928 if test -z "$ac_cv_prog_RANLIB"; then
6929 ac_ct_RANLIB=$RANLIB
6930 # Extract the first word of "ranlib", so it can be a program name with args.
6931 set dummy ranlib; ac_word=$2
6932 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6934 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6935 echo $ECHO_N "(cached) $ECHO_C" >&6
6937 if test -n "$ac_ct_RANLIB"; then
6938 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6944 test -z "$as_dir" && as_dir=.
6945 for ac_exec_ext in '' $ac_executable_extensions; do
6946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6947 ac_cv_prog_ac_ct_RANLIB="ranlib"
6948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6957 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6958 if test -n "$ac_ct_RANLIB"; then
6959 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6960 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6962 { echo "$as_me:$LINENO: result: no" >&5
6963 echo "${ECHO_T}no" >&6; }
6966 if test "x$ac_ct_RANLIB" = x; then
6969 case $cross_compiling:$ac_tool_warned in
6971 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6972 whose name does not start with the host triplet. If you think this
6973 configuration is useful to you, please write to autoconf@gnu.org." >&5
6974 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6975 whose name does not start with the host triplet. If you think this
6976 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6977 ac_tool_warned=yes ;;
6979 RANLIB=$ac_ct_RANLIB
6982 RANLIB="$ac_cv_prog_RANLIB"
6985 if test -n "$ac_tool_prefix"; then
6986 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6987 set dummy ${ac_tool_prefix}ar; ac_word=$2
6988 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6990 if test "${ac_cv_prog_AR+set}" = set; then
6991 echo $ECHO_N "(cached) $ECHO_C" >&6
6993 if test -n "$AR"; then
6994 ac_cv_prog_AR="$AR" # Let the user override the test.
6996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7000 test -z "$as_dir" && as_dir=.
7001 for ac_exec_ext in '' $ac_executable_extensions; do
7002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7003 ac_cv_prog_AR="${ac_tool_prefix}ar"
7004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7014 if test -n "$AR"; then
7015 { echo "$as_me:$LINENO: result: $AR" >&5
7016 echo "${ECHO_T}$AR" >&6; }
7018 { echo "$as_me:$LINENO: result: no" >&5
7019 echo "${ECHO_T}no" >&6; }
7024 if test -z "$ac_cv_prog_AR"; then
7026 # Extract the first word of "ar", so it can be a program name with args.
7027 set dummy ar; ac_word=$2
7028 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7030 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7031 echo $ECHO_N "(cached) $ECHO_C" >&6
7033 if test -n "$ac_ct_AR"; then
7034 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7040 test -z "$as_dir" && as_dir=.
7041 for ac_exec_ext in '' $ac_executable_extensions; do
7042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7043 ac_cv_prog_ac_ct_AR="ar"
7044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7053 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7054 if test -n "$ac_ct_AR"; then
7055 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7056 echo "${ECHO_T}$ac_ct_AR" >&6; }
7058 { echo "$as_me:$LINENO: result: no" >&5
7059 echo "${ECHO_T}no" >&6; }
7062 if test "x$ac_ct_AR" = x; then
7065 case $cross_compiling:$ac_tool_warned in
7067 { echo "$as_me:$LINENO: 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." >&5
7070 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7071 whose name does not start with the host triplet. If you think this
7072 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7073 ac_tool_warned=yes ;;
7081 # Extract the first word of "rm", so it can be a program name with args.
7082 set dummy rm; ac_word=$2
7083 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7085 if test "${ac_cv_path_RM+set}" = set; then
7086 echo $ECHO_N "(cached) $ECHO_C" >&6
7090 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7097 test -z "$as_dir" && as_dir=.
7098 for ac_exec_ext in '' $ac_executable_extensions; do
7099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7100 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7108 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7113 if test -n "$RM"; then
7114 { echo "$as_me:$LINENO: result: $RM" >&5
7115 echo "${ECHO_T}$RM" >&6; }
7117 { echo "$as_me:$LINENO: result: no" >&5
7118 echo "${ECHO_T}no" >&6; }
7122 # Extract the first word of "sed", so it can be a program name with args.
7123 set dummy sed; ac_word=$2
7124 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7126 if test "${ac_cv_path_SED+set}" = set; then
7127 echo $ECHO_N "(cached) $ECHO_C" >&6
7131 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7138 test -z "$as_dir" && as_dir=.
7139 for ac_exec_ext in '' $ac_executable_extensions; do
7140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7141 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7149 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7154 if test -n "$SED"; then
7155 { echo "$as_me:$LINENO: result: $SED" >&5
7156 echo "${ECHO_T}$SED" >&6; }
7158 { echo "$as_me:$LINENO: result: no" >&5
7159 echo "${ECHO_T}no" >&6; }
7163 # Extract the first word of "tar", so it can be a program name with args.
7164 set dummy tar; ac_word=$2
7165 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7167 if test "${ac_cv_path_TAR+set}" = set; then
7168 echo $ECHO_N "(cached) $ECHO_C" >&6
7172 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7179 test -z "$as_dir" && as_dir=.
7180 for ac_exec_ext in '' $ac_executable_extensions; do
7181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7182 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7190 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7195 if test -n "$TAR"; then
7196 { echo "$as_me:$LINENO: result: $TAR" >&5
7197 echo "${ECHO_T}$TAR" >&6; }
7199 { echo "$as_me:$LINENO: result: no" >&5
7200 echo "${ECHO_T}no" >&6; }
7204 # Extract the first word of "pwd", so it can be a program name with args.
7205 set dummy pwd; ac_word=$2
7206 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7208 if test "${ac_cv_path_BINPWD+set}" = set; then
7209 echo $ECHO_N "(cached) $ECHO_C" >&6
7213 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7220 test -z "$as_dir" && as_dir=.
7221 for ac_exec_ext in '' $ac_executable_extensions; do
7222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7223 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7231 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7235 BINPWD=$ac_cv_path_BINPWD
7236 if test -n "$BINPWD"; then
7237 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7238 echo "${ECHO_T}$BINPWD" >&6; }
7240 { echo "$as_me:$LINENO: result: no" >&5
7241 echo "${ECHO_T}no" >&6; }
7246 # Extract the first word of "Graphviz", so it can be a program name with args.
7247 set dummy Graphviz; ac_word=$2
7248 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7250 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7251 echo $ECHO_N "(cached) $ECHO_C" >&6
7255 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7262 test -z "$as_dir" && as_dir=.
7263 for ac_exec_ext in '' $ac_executable_extensions; do
7264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7265 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7273 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7277 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7278 if test -n "$GRAPHVIZ"; then
7279 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7280 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7282 { echo "$as_me:$LINENO: result: no" >&5
7283 echo "${ECHO_T}no" >&6; }
7287 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7289 cat >>confdefs.h <<\_ACEOF
7290 #define HAVE_GRAPHVIZ 1
7293 if test "$llvm_cv_os_type" = "MingW" ; then
7294 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7297 cat >>confdefs.h <<_ACEOF
7298 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7302 # Extract the first word of "dot", so it can be a program name with args.
7303 set dummy dot; ac_word=$2
7304 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7306 if test "${ac_cv_path_DOT+set}" = set; then
7307 echo $ECHO_N "(cached) $ECHO_C" >&6
7311 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7318 test -z "$as_dir" && as_dir=.
7319 for ac_exec_ext in '' $ac_executable_extensions; do
7320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7321 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7329 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7334 if test -n "$DOT"; then
7335 { echo "$as_me:$LINENO: result: $DOT" >&5
7336 echo "${ECHO_T}$DOT" >&6; }
7338 { echo "$as_me:$LINENO: result: no" >&5
7339 echo "${ECHO_T}no" >&6; }
7343 if test "$DOT" != "echo dot" ; then
7345 cat >>confdefs.h <<\_ACEOF
7349 if test "$llvm_cv_os_type" = "MingW" ; then
7350 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7353 cat >>confdefs.h <<_ACEOF
7354 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7358 # Extract the first word of "fdp", so it can be a program name with args.
7359 set dummy fdp; ac_word=$2
7360 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7362 if test "${ac_cv_path_FDP+set}" = set; then
7363 echo $ECHO_N "(cached) $ECHO_C" >&6
7367 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7374 test -z "$as_dir" && as_dir=.
7375 for ac_exec_ext in '' $ac_executable_extensions; do
7376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7377 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7385 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7390 if test -n "$FDP"; then
7391 { echo "$as_me:$LINENO: result: $FDP" >&5
7392 echo "${ECHO_T}$FDP" >&6; }
7394 { echo "$as_me:$LINENO: result: no" >&5
7395 echo "${ECHO_T}no" >&6; }
7399 if test "$FDP" != "echo fdp" ; then
7401 cat >>confdefs.h <<\_ACEOF
7405 if test "$llvm_cv_os_type" = "MingW" ; then
7406 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7409 cat >>confdefs.h <<_ACEOF
7410 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7414 # Extract the first word of "neato", so it can be a program name with args.
7415 set dummy neato; ac_word=$2
7416 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7418 if test "${ac_cv_path_NEATO+set}" = set; then
7419 echo $ECHO_N "(cached) $ECHO_C" >&6
7423 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7430 test -z "$as_dir" && as_dir=.
7431 for ac_exec_ext in '' $ac_executable_extensions; do
7432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7433 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7441 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7445 NEATO=$ac_cv_path_NEATO
7446 if test -n "$NEATO"; then
7447 { echo "$as_me:$LINENO: result: $NEATO" >&5
7448 echo "${ECHO_T}$NEATO" >&6; }
7450 { echo "$as_me:$LINENO: result: no" >&5
7451 echo "${ECHO_T}no" >&6; }
7455 if test "$NEATO" != "echo neato" ; then
7457 cat >>confdefs.h <<\_ACEOF
7458 #define HAVE_NEATO 1
7461 if test "$llvm_cv_os_type" = "MingW" ; then
7462 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7465 cat >>confdefs.h <<_ACEOF
7466 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7470 # Extract the first word of "twopi", so it can be a program name with args.
7471 set dummy twopi; ac_word=$2
7472 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7474 if test "${ac_cv_path_TWOPI+set}" = set; then
7475 echo $ECHO_N "(cached) $ECHO_C" >&6
7479 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7486 test -z "$as_dir" && as_dir=.
7487 for ac_exec_ext in '' $ac_executable_extensions; do
7488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7489 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7497 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7501 TWOPI=$ac_cv_path_TWOPI
7502 if test -n "$TWOPI"; then
7503 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7504 echo "${ECHO_T}$TWOPI" >&6; }
7506 { echo "$as_me:$LINENO: result: no" >&5
7507 echo "${ECHO_T}no" >&6; }
7511 if test "$TWOPI" != "echo twopi" ; then
7513 cat >>confdefs.h <<\_ACEOF
7514 #define HAVE_TWOPI 1
7517 if test "$llvm_cv_os_type" = "MingW" ; then
7518 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7521 cat >>confdefs.h <<_ACEOF
7522 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7526 # Extract the first word of "circo", so it can be a program name with args.
7527 set dummy circo; ac_word=$2
7528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7530 if test "${ac_cv_path_CIRCO+set}" = set; then
7531 echo $ECHO_N "(cached) $ECHO_C" >&6
7535 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7542 test -z "$as_dir" && as_dir=.
7543 for ac_exec_ext in '' $ac_executable_extensions; do
7544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7545 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7553 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7557 CIRCO=$ac_cv_path_CIRCO
7558 if test -n "$CIRCO"; then
7559 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7560 echo "${ECHO_T}$CIRCO" >&6; }
7562 { echo "$as_me:$LINENO: result: no" >&5
7563 echo "${ECHO_T}no" >&6; }
7567 if test "$CIRCO" != "echo circo" ; then
7569 cat >>confdefs.h <<\_ACEOF
7570 #define HAVE_CIRCO 1
7573 if test "$llvm_cv_os_type" = "MingW" ; then
7574 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7577 cat >>confdefs.h <<_ACEOF
7578 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7582 for ac_prog in gv gsview32
7584 # Extract the first word of "$ac_prog", so it can be a program name with args.
7585 set dummy $ac_prog; ac_word=$2
7586 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7588 if test "${ac_cv_path_GV+set}" = set; then
7589 echo $ECHO_N "(cached) $ECHO_C" >&6
7593 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7600 test -z "$as_dir" && as_dir=.
7601 for ac_exec_ext in '' $ac_executable_extensions; do
7602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7603 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7615 if test -n "$GV"; then
7616 { echo "$as_me:$LINENO: result: $GV" >&5
7617 echo "${ECHO_T}$GV" >&6; }
7619 { echo "$as_me:$LINENO: result: no" >&5
7620 echo "${ECHO_T}no" >&6; }
7624 test -n "$GV" && break
7626 test -n "$GV" || GV="echo gv"
7628 if test "$GV" != "echo gv" ; then
7630 cat >>confdefs.h <<\_ACEOF
7634 if test "$llvm_cv_os_type" = "MingW" ; then
7635 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7638 cat >>confdefs.h <<_ACEOF
7639 #define LLVM_PATH_GV "$GV${EXEEXT}"
7643 # Extract the first word of "dotty", so it can be a program name with args.
7644 set dummy dotty; ac_word=$2
7645 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7647 if test "${ac_cv_path_DOTTY+set}" = set; then
7648 echo $ECHO_N "(cached) $ECHO_C" >&6
7652 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7659 test -z "$as_dir" && as_dir=.
7660 for ac_exec_ext in '' $ac_executable_extensions; do
7661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7662 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7670 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7674 DOTTY=$ac_cv_path_DOTTY
7675 if test -n "$DOTTY"; then
7676 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7677 echo "${ECHO_T}$DOTTY" >&6; }
7679 { echo "$as_me:$LINENO: result: no" >&5
7680 echo "${ECHO_T}no" >&6; }
7684 if test "$DOTTY" != "echo dotty" ; then
7686 cat >>confdefs.h <<\_ACEOF
7687 #define HAVE_DOTTY 1
7690 if test "$llvm_cv_os_type" = "MingW" ; then
7691 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7694 cat >>confdefs.h <<_ACEOF
7695 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7701 # Extract the first word of "perl", so it can be a program name with args.
7702 set dummy perl; ac_word=$2
7703 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7705 if test "${ac_cv_path_PERL+set}" = set; then
7706 echo $ECHO_N "(cached) $ECHO_C" >&6
7710 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7717 test -z "$as_dir" && as_dir=.
7718 for ac_exec_ext in '' $ac_executable_extensions; do
7719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7720 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7728 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7732 PERL=$ac_cv_path_PERL
7733 if test -n "$PERL"; then
7734 { echo "$as_me:$LINENO: result: $PERL" >&5
7735 echo "${ECHO_T}$PERL" >&6; }
7737 { echo "$as_me:$LINENO: result: no" >&5
7738 echo "${ECHO_T}no" >&6; }
7742 if test "$PERL" != "none"; then
7743 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7744 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7745 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7746 { echo "$as_me:$LINENO: result: yes" >&5
7747 echo "${ECHO_T}yes" >&6; }
7750 { echo "$as_me:$LINENO: result: not found" >&5
7751 echo "${ECHO_T}not found" >&6; }
7756 if test x"$PERL" = xnone; then
7759 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7760 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7761 { (exit 1); exit 1; }; }
7767 # Find a good install program. We prefer a C program (faster),
7768 # so one script is as good as another. But avoid the broken or
7769 # incompatible versions:
7770 # SysV /etc/install, /usr/sbin/install
7771 # SunOS /usr/etc/install
7772 # IRIX /sbin/install
7774 # AmigaOS /C/install, which installs bootblocks on floppy discs
7775 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7776 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7777 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7778 # OS/2's system install, which has a completely different semantic
7779 # ./install, which can be erroneously created by make from ./install.sh.
7780 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7781 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7782 if test -z "$INSTALL"; then
7783 if test "${ac_cv_path_install+set}" = set; then
7784 echo $ECHO_N "(cached) $ECHO_C" >&6
7786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7790 test -z "$as_dir" && as_dir=.
7791 # Account for people who put trailing slashes in PATH elements.
7793 ./ | .// | /cC/* | \
7794 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7795 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7798 # OSF1 and SCO ODT 3.0 have their own names for install.
7799 # Don't use installbsd from OSF since it installs stuff as root
7801 for ac_prog in ginstall scoinst install; do
7802 for ac_exec_ext in '' $ac_executable_extensions; do
7803 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7804 if test $ac_prog = install &&
7805 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7806 # AIX install. It has an incompatible calling convention.
7808 elif test $ac_prog = install &&
7809 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7810 # program-specific install script used by HP pwplus--don't use.
7813 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7826 if test "${ac_cv_path_install+set}" = set; then
7827 INSTALL=$ac_cv_path_install
7829 # As a last resort, use the slow shell script. Don't cache a
7830 # value for INSTALL within a source directory, because that will
7831 # break other packages using the cache if that directory is
7832 # removed, or if the value is a relative name.
7833 INSTALL=$ac_install_sh
7836 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7837 echo "${ECHO_T}$INSTALL" >&6; }
7839 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7840 # It thinks the first close brace ends the variable substitution.
7841 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7843 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7845 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7848 # Extract the first word of "bzip2", so it can be a program name with args.
7849 set dummy bzip2; ac_word=$2
7850 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7852 if test "${ac_cv_path_BZIP2+set}" = set; then
7853 echo $ECHO_N "(cached) $ECHO_C" >&6
7857 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7864 test -z "$as_dir" && as_dir=.
7865 for ac_exec_ext in '' $ac_executable_extensions; do
7866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7867 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7878 BZIP2=$ac_cv_path_BZIP2
7879 if test -n "$BZIP2"; then
7880 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7881 echo "${ECHO_T}$BZIP2" >&6; }
7883 { echo "$as_me:$LINENO: result: no" >&5
7884 echo "${ECHO_T}no" >&6; }
7888 # Extract the first word of "doxygen", so it can be a program name with args.
7889 set dummy doxygen; ac_word=$2
7890 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7892 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7893 echo $ECHO_N "(cached) $ECHO_C" >&6
7897 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7904 test -z "$as_dir" && as_dir=.
7905 for ac_exec_ext in '' $ac_executable_extensions; do
7906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7907 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7918 DOXYGEN=$ac_cv_path_DOXYGEN
7919 if test -n "$DOXYGEN"; then
7920 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7921 echo "${ECHO_T}$DOXYGEN" >&6; }
7923 { echo "$as_me:$LINENO: result: no" >&5
7924 echo "${ECHO_T}no" >&6; }
7928 # Extract the first word of "groff", so it can be a program name with args.
7929 set dummy groff; ac_word=$2
7930 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7932 if test "${ac_cv_path_GROFF+set}" = set; then
7933 echo $ECHO_N "(cached) $ECHO_C" >&6
7937 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7944 test -z "$as_dir" && as_dir=.
7945 for ac_exec_ext in '' $ac_executable_extensions; do
7946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7947 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7958 GROFF=$ac_cv_path_GROFF
7959 if test -n "$GROFF"; then
7960 { echo "$as_me:$LINENO: result: $GROFF" >&5
7961 echo "${ECHO_T}$GROFF" >&6; }
7963 { echo "$as_me:$LINENO: result: no" >&5
7964 echo "${ECHO_T}no" >&6; }
7968 # Extract the first word of "gzip", so it can be a program name with args.
7969 set dummy gzip; ac_word=$2
7970 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7972 if test "${ac_cv_path_GZIP+set}" = set; then
7973 echo $ECHO_N "(cached) $ECHO_C" >&6
7977 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7984 test -z "$as_dir" && as_dir=.
7985 for ac_exec_ext in '' $ac_executable_extensions; do
7986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7987 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7998 GZIP=$ac_cv_path_GZIP
7999 if test -n "$GZIP"; then
8000 { echo "$as_me:$LINENO: result: $GZIP" >&5
8001 echo "${ECHO_T}$GZIP" >&6; }
8003 { echo "$as_me:$LINENO: result: no" >&5
8004 echo "${ECHO_T}no" >&6; }
8008 # Extract the first word of "pod2html", so it can be a program name with args.
8009 set dummy pod2html; ac_word=$2
8010 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8012 if test "${ac_cv_path_POD2HTML+set}" = set; then
8013 echo $ECHO_N "(cached) $ECHO_C" >&6
8017 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8024 test -z "$as_dir" && as_dir=.
8025 for ac_exec_ext in '' $ac_executable_extensions; do
8026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8027 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8038 POD2HTML=$ac_cv_path_POD2HTML
8039 if test -n "$POD2HTML"; then
8040 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8041 echo "${ECHO_T}$POD2HTML" >&6; }
8043 { echo "$as_me:$LINENO: result: no" >&5
8044 echo "${ECHO_T}no" >&6; }
8048 # Extract the first word of "pod2man", so it can be a program name with args.
8049 set dummy pod2man; ac_word=$2
8050 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8052 if test "${ac_cv_path_POD2MAN+set}" = set; then
8053 echo $ECHO_N "(cached) $ECHO_C" >&6
8057 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8064 test -z "$as_dir" && as_dir=.
8065 for ac_exec_ext in '' $ac_executable_extensions; do
8066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8067 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8078 POD2MAN=$ac_cv_path_POD2MAN
8079 if test -n "$POD2MAN"; then
8080 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8081 echo "${ECHO_T}$POD2MAN" >&6; }
8083 { echo "$as_me:$LINENO: result: no" >&5
8084 echo "${ECHO_T}no" >&6; }
8088 # Extract the first word of "runtest", so it can be a program name with args.
8089 set dummy runtest; ac_word=$2
8090 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8092 if test "${ac_cv_path_RUNTEST+set}" = set; then
8093 echo $ECHO_N "(cached) $ECHO_C" >&6
8097 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8104 test -z "$as_dir" && as_dir=.
8105 for ac_exec_ext in '' $ac_executable_extensions; do
8106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8107 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8118 RUNTEST=$ac_cv_path_RUNTEST
8119 if test -n "$RUNTEST"; then
8120 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8121 echo "${ECHO_T}$RUNTEST" >&6; }
8123 { echo "$as_me:$LINENO: result: no" >&5
8124 echo "${ECHO_T}no" >&6; }
8130 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8131 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8133 # Check whether --with-tclinclude was given.
8134 if test "${with_tclinclude+set}" = set; then
8135 withval=$with_tclinclude; with_tclinclude=${withval}
8140 if test "${ac_cv_path_tclsh+set}" = set; then
8141 echo $ECHO_N "(cached) $ECHO_C" >&6
8144 if test x"${with_tclinclude}" != x ; then
8145 if test -f ${with_tclinclude}/tclsh ; then
8146 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8147 elif test -f ${with_tclinclude}/src/tclsh ; then
8148 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8150 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8151 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8152 { (exit 1); exit 1; }; }
8158 if test x"${ac_cv_path_tclsh}" = x ; then
8159 { echo "$as_me:$LINENO: result: none" >&5
8160 echo "${ECHO_T}none" >&6; }
8161 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
8163 # Extract the first word of "$ac_prog", so it can be a program name with args.
8164 set dummy $ac_prog; ac_word=$2
8165 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8167 if test "${ac_cv_path_TCLSH+set}" = set; then
8168 echo $ECHO_N "(cached) $ECHO_C" >&6
8172 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8179 test -z "$as_dir" && as_dir=.
8180 for ac_exec_ext in '' $ac_executable_extensions; do
8181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8182 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8193 TCLSH=$ac_cv_path_TCLSH
8194 if test -n "$TCLSH"; then
8195 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8196 echo "${ECHO_T}$TCLSH" >&6; }
8198 { echo "$as_me:$LINENO: result: no" >&5
8199 echo "${ECHO_T}no" >&6; }
8203 test -n "$TCLSH" && break
8206 if test x"${TCLSH}" = x ; then
8207 ac_cv_path_tclsh='';
8209 ac_cv_path_tclsh="${TCLSH}";
8212 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8213 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8214 TCLSH="${ac_cv_path_tclsh}"
8218 # Extract the first word of "zip", so it can be a program name with args.
8219 set dummy zip; ac_word=$2
8220 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8222 if test "${ac_cv_path_ZIP+set}" = set; then
8223 echo $ECHO_N "(cached) $ECHO_C" >&6
8227 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8234 test -z "$as_dir" && as_dir=.
8235 for ac_exec_ext in '' $ac_executable_extensions; do
8236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8237 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8249 if test -n "$ZIP"; then
8250 { echo "$as_me:$LINENO: result: $ZIP" >&5
8251 echo "${ECHO_T}$ZIP" >&6; }
8253 { echo "$as_me:$LINENO: result: no" >&5
8254 echo "${ECHO_T}no" >&6; }
8258 for ac_prog in ocamlc
8260 # Extract the first word of "$ac_prog", so it can be a program name with args.
8261 set dummy $ac_prog; ac_word=$2
8262 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8264 if test "${ac_cv_path_OCAMLC+set}" = set; then
8265 echo $ECHO_N "(cached) $ECHO_C" >&6
8269 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8276 test -z "$as_dir" && as_dir=.
8277 for ac_exec_ext in '' $ac_executable_extensions; do
8278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8279 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8290 OCAMLC=$ac_cv_path_OCAMLC
8291 if test -n "$OCAMLC"; then
8292 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8293 echo "${ECHO_T}$OCAMLC" >&6; }
8295 { echo "$as_me:$LINENO: result: no" >&5
8296 echo "${ECHO_T}no" >&6; }
8300 test -n "$OCAMLC" && break
8303 for ac_prog in ocamlopt
8305 # Extract the first word of "$ac_prog", so it can be a program name with args.
8306 set dummy $ac_prog; ac_word=$2
8307 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8309 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8310 echo $ECHO_N "(cached) $ECHO_C" >&6
8314 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8321 test -z "$as_dir" && as_dir=.
8322 for ac_exec_ext in '' $ac_executable_extensions; do
8323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8324 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8335 OCAMLOPT=$ac_cv_path_OCAMLOPT
8336 if test -n "$OCAMLOPT"; then
8337 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8338 echo "${ECHO_T}$OCAMLOPT" >&6; }
8340 { echo "$as_me:$LINENO: result: no" >&5
8341 echo "${ECHO_T}no" >&6; }
8345 test -n "$OCAMLOPT" && break
8348 for ac_prog in ocamldep
8350 # Extract the first word of "$ac_prog", so it can be a program name with args.
8351 set dummy $ac_prog; ac_word=$2
8352 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8354 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8355 echo $ECHO_N "(cached) $ECHO_C" >&6
8359 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8366 test -z "$as_dir" && as_dir=.
8367 for ac_exec_ext in '' $ac_executable_extensions; do
8368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8369 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8380 OCAMLDEP=$ac_cv_path_OCAMLDEP
8381 if test -n "$OCAMLDEP"; then
8382 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8383 echo "${ECHO_T}$OCAMLDEP" >&6; }
8385 { echo "$as_me:$LINENO: result: no" >&5
8386 echo "${ECHO_T}no" >&6; }
8390 test -n "$OCAMLDEP" && break
8393 for ac_prog in ocamldoc
8395 # Extract the first word of "$ac_prog", so it can be a program name with args.
8396 set dummy $ac_prog; ac_word=$2
8397 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8399 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8400 echo $ECHO_N "(cached) $ECHO_C" >&6
8404 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8411 test -z "$as_dir" && as_dir=.
8412 for ac_exec_ext in '' $ac_executable_extensions; do
8413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8414 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8425 OCAMLDOC=$ac_cv_path_OCAMLDOC
8426 if test -n "$OCAMLDOC"; then
8427 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8428 echo "${ECHO_T}$OCAMLDOC" >&6; }
8430 { echo "$as_me:$LINENO: result: no" >&5
8431 echo "${ECHO_T}no" >&6; }
8435 test -n "$OCAMLDOC" && break
8438 for ac_prog in gas as
8440 # Extract the first word of "$ac_prog", so it can be a program name with args.
8441 set dummy $ac_prog; ac_word=$2
8442 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8444 if test "${ac_cv_path_GAS+set}" = set; then
8445 echo $ECHO_N "(cached) $ECHO_C" >&6
8449 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8456 test -z "$as_dir" && as_dir=.
8457 for ac_exec_ext in '' $ac_executable_extensions; do
8458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8459 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8471 if test -n "$GAS"; then
8472 { echo "$as_me:$LINENO: result: $GAS" >&5
8473 echo "${ECHO_T}$GAS" >&6; }
8475 { echo "$as_me:$LINENO: result: no" >&5
8476 echo "${ECHO_T}no" >&6; }
8480 test -n "$GAS" && break
8484 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8485 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8486 if test "${llvm_cv_link_use_r+set}" = set; then
8487 echo $ECHO_N "(cached) $ECHO_C" >&6
8490 ac_cpp='$CPP $CPPFLAGS'
8491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8496 CFLAGS="$CFLAGS -Wl,-R."
8497 cat >conftest.$ac_ext <<_ACEOF
8500 cat confdefs.h >>conftest.$ac_ext
8501 cat >>conftest.$ac_ext <<_ACEOF
8502 /* end confdefs.h. */
8507 int main() { return 0; }
8512 rm -f conftest.$ac_objext conftest$ac_exeext
8513 if { (ac_try="$ac_link"
8515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8516 *) ac_try_echo=$ac_try;;
8518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8519 (eval "$ac_link") 2>conftest.er1
8521 grep -v '^ *+' conftest.er1 >conftest.err
8523 cat conftest.err >&5
8524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525 (exit $ac_status); } &&
8526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8527 { (case "(($ac_try" in
8528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8529 *) ac_try_echo=$ac_try;;
8531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8532 (eval "$ac_try") 2>&5
8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 (exit $ac_status); }; } &&
8536 { ac_try='test -s conftest$ac_exeext'
8537 { (case "(($ac_try" in
8538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8539 *) ac_try_echo=$ac_try;;
8541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8542 (eval "$ac_try") 2>&5
8544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545 (exit $ac_status); }; }; then
8546 llvm_cv_link_use_r=yes
8548 echo "$as_me: failed program was:" >&5
8549 sed 's/^/| /' conftest.$ac_ext >&5
8551 llvm_cv_link_use_r=no
8554 rm -f core conftest.err conftest.$ac_objext \
8555 conftest$ac_exeext conftest.$ac_ext
8558 ac_cpp='$CPP $CPPFLAGS'
8559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8565 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8566 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8567 if test "$llvm_cv_link_use_r" = yes ; then
8569 cat >>confdefs.h <<\_ACEOF
8570 #define HAVE_LINK_R 1
8576 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8577 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8578 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8579 echo $ECHO_N "(cached) $ECHO_C" >&6
8582 ac_cpp='$CPP $CPPFLAGS'
8583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8588 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8589 cat >conftest.$ac_ext <<_ACEOF
8592 cat confdefs.h >>conftest.$ac_ext
8593 cat >>conftest.$ac_ext <<_ACEOF
8594 /* end confdefs.h. */
8599 int main() { return 0; }
8604 rm -f conftest.$ac_objext conftest$ac_exeext
8605 if { (ac_try="$ac_link"
8607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8608 *) ac_try_echo=$ac_try;;
8610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8611 (eval "$ac_link") 2>conftest.er1
8613 grep -v '^ *+' conftest.er1 >conftest.err
8615 cat conftest.err >&5
8616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617 (exit $ac_status); } &&
8618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8619 { (case "(($ac_try" in
8620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8621 *) ac_try_echo=$ac_try;;
8623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8624 (eval "$ac_try") 2>&5
8626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627 (exit $ac_status); }; } &&
8628 { ac_try='test -s conftest$ac_exeext'
8629 { (case "(($ac_try" in
8630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8631 *) ac_try_echo=$ac_try;;
8633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8634 (eval "$ac_try") 2>&5
8636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637 (exit $ac_status); }; }; then
8638 llvm_cv_link_use_export_dynamic=yes
8640 echo "$as_me: failed program was:" >&5
8641 sed 's/^/| /' conftest.$ac_ext >&5
8643 llvm_cv_link_use_export_dynamic=no
8646 rm -f core conftest.err conftest.$ac_objext \
8647 conftest$ac_exeext conftest.$ac_ext
8650 ac_cpp='$CPP $CPPFLAGS'
8651 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8652 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8653 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8657 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8658 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8659 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8661 cat >>confdefs.h <<\_ACEOF
8662 #define HAVE_LINK_EXPORT_DYNAMIC 1
8670 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8671 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8672 if test "${ac_cv_c_const+set}" = set; then
8673 echo $ECHO_N "(cached) $ECHO_C" >&6
8675 cat >conftest.$ac_ext <<_ACEOF
8678 cat confdefs.h >>conftest.$ac_ext
8679 cat >>conftest.$ac_ext <<_ACEOF
8680 /* end confdefs.h. */
8685 /* FIXME: Include the comments suggested by Paul. */
8687 /* Ultrix mips cc rejects this. */
8688 typedef int charset[2];
8690 /* SunOS 4.1.1 cc rejects this. */
8691 char const *const *ccp;
8693 /* NEC SVR4.0.2 mips cc rejects this. */
8694 struct point {int x, y;};
8695 static struct point const zero = {0,0};
8696 /* AIX XL C 1.02.0.0 rejects this.
8697 It does not let you subtract one const X* pointer from another in
8698 an arm of an if-expression whose if-part is not a constant
8700 const char *g = "string";
8701 ccp = &g + (g ? g-g : 0);
8702 /* HPUX 7.0 cc rejects these. */
8705 ccp = (char const *const *) p;
8706 { /* SCO 3.2v4 cc rejects this. */
8708 char const *s = 0 ? (char *) 0 : (char const *) 0;
8713 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8715 const int *foo = &x[0];
8718 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8719 typedef const int *iptr;
8723 { /* AIX XL C 1.02.0.0 rejects this saying
8724 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8725 struct s { int j; const int *ap[3]; };
8726 struct s *b; b->j = 5;
8728 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8732 return !x[0] && !zero.x;
8739 rm -f conftest.$ac_objext
8740 if { (ac_try="$ac_compile"
8742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8743 *) ac_try_echo=$ac_try;;
8745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8746 (eval "$ac_compile") 2>conftest.er1
8748 grep -v '^ *+' conftest.er1 >conftest.err
8750 cat conftest.err >&5
8751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752 (exit $ac_status); } &&
8753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8754 { (case "(($ac_try" in
8755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8756 *) ac_try_echo=$ac_try;;
8758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8759 (eval "$ac_try") 2>&5
8761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762 (exit $ac_status); }; } &&
8763 { ac_try='test -s conftest.$ac_objext'
8764 { (case "(($ac_try" in
8765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8766 *) ac_try_echo=$ac_try;;
8768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8769 (eval "$ac_try") 2>&5
8771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772 (exit $ac_status); }; }; then
8775 echo "$as_me: failed program was:" >&5
8776 sed 's/^/| /' conftest.$ac_ext >&5
8781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8783 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8784 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8785 if test $ac_cv_c_const = no; then
8787 cat >>confdefs.h <<\_ACEOF
8799 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8800 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8801 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8802 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8804 echo $ECHO_N "(cached) $ECHO_C" >&6
8806 cat >conftest.$ac_ext <<_ACEOF
8809 cat confdefs.h >>conftest.$ac_ext
8810 cat >>conftest.$ac_ext <<_ACEOF
8811 /* end confdefs.h. */
8812 #include <sys/types.h>
8824 rm -f conftest.$ac_objext
8825 if { (ac_try="$ac_compile"
8827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8828 *) ac_try_echo=$ac_try;;
8830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8831 (eval "$ac_compile") 2>conftest.er1
8833 grep -v '^ *+' conftest.er1 >conftest.err
8835 cat conftest.err >&5
8836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837 (exit $ac_status); } &&
8838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8839 { (case "(($ac_try" in
8840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8841 *) ac_try_echo=$ac_try;;
8843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8844 (eval "$ac_try") 2>&5
8846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847 (exit $ac_status); }; } &&
8848 { ac_try='test -s conftest.$ac_objext'
8849 { (case "(($ac_try" in
8850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8851 *) ac_try_echo=$ac_try;;
8853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8854 (eval "$ac_try") 2>&5
8856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857 (exit $ac_status); }; }; then
8858 eval "$as_ac_Header=yes"
8860 echo "$as_me: failed program was:" >&5
8861 sed 's/^/| /' conftest.$ac_ext >&5
8863 eval "$as_ac_Header=no"
8866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8868 ac_res=`eval echo '${'$as_ac_Header'}'`
8869 { echo "$as_me:$LINENO: result: $ac_res" >&5
8870 echo "${ECHO_T}$ac_res" >&6; }
8871 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8872 cat >>confdefs.h <<_ACEOF
8873 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8876 ac_header_dirent=$ac_hdr; break
8880 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8881 if test $ac_header_dirent = dirent.h; then
8882 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8883 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8884 if test "${ac_cv_search_opendir+set}" = set; then
8885 echo $ECHO_N "(cached) $ECHO_C" >&6
8887 ac_func_search_save_LIBS=$LIBS
8888 cat >conftest.$ac_ext <<_ACEOF
8891 cat confdefs.h >>conftest.$ac_ext
8892 cat >>conftest.$ac_ext <<_ACEOF
8893 /* end confdefs.h. */
8895 /* Override any GCC internal prototype to avoid an error.
8896 Use char because int might match the return type of a GCC
8897 builtin and then its argument prototype would still apply. */
8910 for ac_lib in '' dir; do
8911 if test -z "$ac_lib"; then
8912 ac_res="none required"
8915 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8917 rm -f conftest.$ac_objext conftest$ac_exeext
8918 if { (ac_try="$ac_link"
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_link") 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_exeext'
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 ac_cv_search_opendir=$ac_res
8953 echo "$as_me: failed program was:" >&5
8954 sed 's/^/| /' conftest.$ac_ext >&5
8959 rm -f core conftest.err conftest.$ac_objext \
8961 if test "${ac_cv_search_opendir+set}" = set; then
8965 if test "${ac_cv_search_opendir+set}" = set; then
8968 ac_cv_search_opendir=no
8971 LIBS=$ac_func_search_save_LIBS
8973 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8974 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8975 ac_res=$ac_cv_search_opendir
8976 if test "$ac_res" != no; then
8977 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8982 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8983 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8984 if test "${ac_cv_search_opendir+set}" = set; then
8985 echo $ECHO_N "(cached) $ECHO_C" >&6
8987 ac_func_search_save_LIBS=$LIBS
8988 cat >conftest.$ac_ext <<_ACEOF
8991 cat confdefs.h >>conftest.$ac_ext
8992 cat >>conftest.$ac_ext <<_ACEOF
8993 /* end confdefs.h. */
8995 /* Override any GCC internal prototype to avoid an error.
8996 Use char because int might match the return type of a GCC
8997 builtin and then its argument prototype would still apply. */
9010 for ac_lib in '' x; do
9011 if test -z "$ac_lib"; then
9012 ac_res="none required"
9015 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9017 rm -f conftest.$ac_objext conftest$ac_exeext
9018 if { (ac_try="$ac_link"
9020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9021 *) ac_try_echo=$ac_try;;
9023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9024 (eval "$ac_link") 2>conftest.er1
9026 grep -v '^ *+' conftest.er1 >conftest.err
9028 cat conftest.err >&5
9029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9030 (exit $ac_status); } &&
9031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9032 { (case "(($ac_try" in
9033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9034 *) ac_try_echo=$ac_try;;
9036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9037 (eval "$ac_try") 2>&5
9039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040 (exit $ac_status); }; } &&
9041 { ac_try='test -s conftest$ac_exeext'
9042 { (case "(($ac_try" in
9043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9044 *) ac_try_echo=$ac_try;;
9046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9047 (eval "$ac_try") 2>&5
9049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9050 (exit $ac_status); }; }; then
9051 ac_cv_search_opendir=$ac_res
9053 echo "$as_me: failed program was:" >&5
9054 sed 's/^/| /' conftest.$ac_ext >&5
9059 rm -f core conftest.err conftest.$ac_objext \
9061 if test "${ac_cv_search_opendir+set}" = set; then
9065 if test "${ac_cv_search_opendir+set}" = set; then
9068 ac_cv_search_opendir=no
9071 LIBS=$ac_func_search_save_LIBS
9073 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9074 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9075 ac_res=$ac_cv_search_opendir
9076 if test "$ac_res" != no; then
9077 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9084 for ac_header in dlfcn.h
9086 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9087 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9088 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9089 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9090 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9091 echo $ECHO_N "(cached) $ECHO_C" >&6
9093 ac_res=`eval echo '${'$as_ac_Header'}'`
9094 { echo "$as_me:$LINENO: result: $ac_res" >&5
9095 echo "${ECHO_T}$ac_res" >&6; }
9097 # Is the header compilable?
9098 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9099 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9100 cat >conftest.$ac_ext <<_ACEOF
9103 cat confdefs.h >>conftest.$ac_ext
9104 cat >>conftest.$ac_ext <<_ACEOF
9105 /* end confdefs.h. */
9106 $ac_includes_default
9107 #include <$ac_header>
9109 rm -f conftest.$ac_objext
9110 if { (ac_try="$ac_compile"
9112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9113 *) ac_try_echo=$ac_try;;
9115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9116 (eval "$ac_compile") 2>conftest.er1
9118 grep -v '^ *+' conftest.er1 >conftest.err
9120 cat conftest.err >&5
9121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9122 (exit $ac_status); } &&
9123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9124 { (case "(($ac_try" in
9125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9126 *) ac_try_echo=$ac_try;;
9128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9129 (eval "$ac_try") 2>&5
9131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132 (exit $ac_status); }; } &&
9133 { ac_try='test -s conftest.$ac_objext'
9134 { (case "(($ac_try" in
9135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9136 *) ac_try_echo=$ac_try;;
9138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9139 (eval "$ac_try") 2>&5
9141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142 (exit $ac_status); }; }; then
9143 ac_header_compiler=yes
9145 echo "$as_me: failed program was:" >&5
9146 sed 's/^/| /' conftest.$ac_ext >&5
9148 ac_header_compiler=no
9151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9152 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9153 echo "${ECHO_T}$ac_header_compiler" >&6; }
9155 # Is the header present?
9156 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9157 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9158 cat >conftest.$ac_ext <<_ACEOF
9161 cat confdefs.h >>conftest.$ac_ext
9162 cat >>conftest.$ac_ext <<_ACEOF
9163 /* end confdefs.h. */
9164 #include <$ac_header>
9166 if { (ac_try="$ac_cpp conftest.$ac_ext"
9168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9169 *) ac_try_echo=$ac_try;;
9171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9172 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9174 grep -v '^ *+' conftest.er1 >conftest.err
9176 cat conftest.err >&5
9177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178 (exit $ac_status); } >/dev/null; then
9179 if test -s conftest.err; then
9180 ac_cpp_err=$ac_c_preproc_warn_flag
9181 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9188 if test -z "$ac_cpp_err"; then
9189 ac_header_preproc=yes
9191 echo "$as_me: failed program was:" >&5
9192 sed 's/^/| /' conftest.$ac_ext >&5
9194 ac_header_preproc=no
9197 rm -f conftest.err conftest.$ac_ext
9198 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9199 echo "${ECHO_T}$ac_header_preproc" >&6; }
9201 # So? What about this header?
9202 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9204 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9205 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9206 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9207 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9208 ac_header_preproc=yes
9211 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9212 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9213 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9214 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9215 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9216 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9217 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9218 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9219 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9220 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9221 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9222 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9224 ## ----------------------------------- ##
9225 ## Report this to llvmbugs@cs.uiuc.edu ##
9226 ## ----------------------------------- ##
9228 ) | sed "s/^/$as_me: WARNING: /" >&2
9231 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9233 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9234 echo $ECHO_N "(cached) $ECHO_C" >&6
9236 eval "$as_ac_Header=\$ac_header_preproc"
9238 ac_res=`eval echo '${'$as_ac_Header'}'`
9239 { echo "$as_me:$LINENO: result: $ac_res" >&5
9240 echo "${ECHO_T}$ac_res" >&6; }
9243 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9244 cat >>confdefs.h <<_ACEOF
9245 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9252 # Check whether --enable-ltdl-install was given.
9253 if test "${enable_ltdl_install+set}" = set; then
9254 enableval=$enable_ltdl_install;
9260 if test x"${enable_ltdl_install-no}" != xno; then
9262 INSTALL_LTDL_FALSE='#'
9264 INSTALL_LTDL_TRUE='#'
9270 if test x"${enable_ltdl_convenience-no}" != xno; then
9271 CONVENIENCE_LTDL_TRUE=
9272 CONVENIENCE_LTDL_FALSE='#'
9274 CONVENIENCE_LTDL_TRUE='#'
9275 CONVENIENCE_LTDL_FALSE=
9279 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9280 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9282 libname_spec='lib$name'
9290 shlibpath_overrides_runpath=unknown
9292 dynamic_linker="$host_os ld.so"
9293 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9294 if test "$GCC" = yes; then
9295 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9296 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9297 # if the path contains ";" then we assume it to be the separator
9298 # otherwise default to the standard path separator (i.e. ":") - it is
9299 # assumed that no part of a normal pathname contains ";" but that should
9300 # okay in the real world where ";" in dirpaths is itself problematic.
9301 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9303 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9306 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9308 need_lib_prefix=unknown
9309 hardcode_into_libs=no
9311 # when you set need_version to no, make sure it does not cause -set_version
9312 # flags to be left without arguments
9313 need_version=unknown
9318 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9319 shlibpath_var=LIBPATH
9321 # AIX 3 has no versioning support, so we append a major version to the name.
9322 soname_spec='${libname}${release}${shared_ext}$major'
9329 hardcode_into_libs=yes
9330 if test "$host_cpu" = ia64; then
9331 # AIX 5 supports IA64
9332 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9333 shlibpath_var=LD_LIBRARY_PATH
9335 # With GCC up to 2.95.x, collect2 would create an import file
9336 # for dependence libraries. The import file would start with
9337 # the line `#! .'. This would cause the generated library to
9338 # depend on `.', always an invalid library. This was fixed in
9339 # development snapshots of GCC prior to 3.0.
9341 aix4 | aix4.[01] | aix4.[01].*)
9342 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9344 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9351 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9352 # soname into executable. Probably we can add versioning support to
9353 # collect2, so additional links can be useful in future.
9354 if test "$aix_use_runtimelinking" = yes; then
9355 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9356 # instead of lib<name>.a to let people know that these are not
9357 # typical AIX shared libraries.
9358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9360 # We preserve .a as extension for shared libraries through AIX4.2
9361 # and later when we are not doing run time linking.
9362 library_names_spec='${libname}${release}.a $libname.a'
9363 soname_spec='${libname}${release}${shared_ext}$major'
9365 shlibpath_var=LIBPATH
9370 library_names_spec='$libname.ixlibrary $libname.a'
9371 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9372 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'
9376 library_names_spec='${libname}${shared_ext}'
9377 dynamic_linker="$host_os ld.so"
9378 shlibpath_var=LIBRARY_PATH
9384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9385 soname_spec='${libname}${release}${shared_ext}$major'
9386 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9387 shlibpath_var=LD_LIBRARY_PATH
9388 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9389 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9390 # the default ld.so.conf also contains /usr/contrib/lib and
9391 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9392 # libtool to hard-code these into programs
9395 cygwin* | mingw* | pw32*)
9396 version_type=windows
9401 case $GCC,$host_os in
9402 yes,cygwin* | yes,mingw* | yes,pw32*)
9403 library_names_spec='$libname.dll.a'
9404 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9405 postinstall_cmds='base_file=`basename \${file}`~
9406 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9407 dldir=$destdir/`dirname \$dlpath`~
9408 test -d \$dldir || mkdir -p \$dldir~
9409 $install_prog $dir/$dlname \$dldir/$dlname~
9410 chmod a+x \$dldir/$dlname'
9411 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9412 dlpath=$dir/\$dldll~
9414 shlibpath_overrides_runpath=yes
9418 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9419 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9420 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9423 # MinGW DLLs use traditional 'lib' prefix
9424 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9425 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9426 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9427 # It is most probably a Windows format PATH printed by
9428 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9429 # path with ; separators, and with drive letters. We can handle the
9430 # drive letters (cygwin fileutils understands them), so leave them,
9431 # especially as we might pass files found there to a mingw objdump,
9432 # which wouldn't understand a cygwinified path. Ahh.
9433 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9435 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9439 # pw32 DLLs use 'pw' prefix rather than 'lib'
9440 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9446 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9449 dynamic_linker='Win32 ld.exe'
9450 # FIXME: first we should search . and the directory the executable is in
9454 darwin* | rhapsody*)
9455 dynamic_linker="$host_os dyld"
9459 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9460 soname_spec='${libname}${release}${major}$shared_ext'
9461 shlibpath_overrides_runpath=yes
9462 shlibpath_var=DYLD_LIBRARY_PATH
9463 shrext_cmds='.dylib'
9464 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9465 if test "$GCC" = yes; then
9466 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"`
9468 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9470 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
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 shlibpath_var=LD_LIBRARY_PATH
9490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9491 soname_spec='${libname}${release}${shared_ext}$major'
9492 shlibpath_var=LD_LIBRARY_PATH
9493 shlibpath_overrides_runpath=no
9494 hardcode_into_libs=yes
9495 dynamic_linker='GNU ld.so'
9498 freebsd* | dragonfly*)
9499 # DragonFly does not have aout. When/if they implement a new
9500 # versioning mechanism, adjust this.
9501 if test -x /usr/bin/objformat; then
9502 objformat=`/usr/bin/objformat`
9505 freebsd[123]*) objformat=aout ;;
9509 version_type=freebsd-$objformat
9510 case $version_type in
9512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9517 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9521 shlibpath_var=LD_LIBRARY_PATH
9524 shlibpath_overrides_runpath=yes
9526 freebsd3.[01]* | freebsdelf3.[01]*)
9527 shlibpath_overrides_runpath=yes
9528 hardcode_into_libs=yes
9530 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9531 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9532 shlibpath_overrides_runpath=no
9533 hardcode_into_libs=yes
9535 freebsd*) # from 4.6 on
9536 shlibpath_overrides_runpath=yes
9537 hardcode_into_libs=yes
9546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9547 soname_spec='${libname}${release}${shared_ext}$major'
9548 shlibpath_var=LD_LIBRARY_PATH
9549 hardcode_into_libs=yes
9552 hpux9* | hpux10* | hpux11*)
9553 # Give a soname corresponding to the major version so that dld.sl refuses to
9554 # link against other versions.
9561 hardcode_into_libs=yes
9562 dynamic_linker="$host_os dld.so"
9563 shlibpath_var=LD_LIBRARY_PATH
9564 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9566 soname_spec='${libname}${release}${shared_ext}$major'
9567 if test "X$HPUX_IA64_MODE" = X32; then
9568 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9570 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9572 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9576 hardcode_into_libs=yes
9577 dynamic_linker="$host_os dld.sl"
9578 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9579 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9581 soname_spec='${libname}${release}${shared_ext}$major'
9582 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9583 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9587 dynamic_linker="$host_os dld.sl"
9588 shlibpath_var=SHLIB_PATH
9589 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9591 soname_spec='${libname}${release}${shared_ext}$major'
9594 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9595 postinstall_cmds='chmod 555 $lib'
9602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9603 soname_spec='${libname}${release}${shared_ext}$major'
9604 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9605 shlibpath_var=LD_LIBRARY_PATH
9606 shlibpath_overrides_runpath=no
9607 hardcode_into_libs=yes
9610 irix5* | irix6* | nonstopux*)
9612 nonstopux*) version_type=nonstopux ;;
9614 if test "$lt_cv_prog_gnu_ld" = yes; then
9622 soname_spec='${libname}${release}${shared_ext}$major'
9623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9625 irix5* | nonstopux*)
9629 case $LD in # libtool.m4 will add one of these switches to LD
9630 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9631 libsuff= shlibsuff= libmagic=32-bit;;
9632 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9633 libsuff=32 shlibsuff=N32 libmagic=N32;;
9634 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9635 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9636 *) libsuff= shlibsuff= libmagic=never-match;;
9640 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9641 shlibpath_overrides_runpath=no
9642 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9643 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9644 hardcode_into_libs=yes
9647 # No shared lib support for Linux oldld, aout, or coff.
9648 linux*oldld* | linux*aout* | linux*coff*)
9652 # This must be Linux ELF.
9657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9658 soname_spec='${libname}${release}${shared_ext}$major'
9659 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9660 shlibpath_var=LD_LIBRARY_PATH
9661 shlibpath_overrides_runpath=no
9662 # This implies no fast_install, which is unacceptable.
9663 # Some rework will be needed to allow for fast_install
9664 # before this can be enabled.
9665 hardcode_into_libs=yes
9667 # Append ld.so.conf contents to the search path
9668 if test -f /etc/ld.so.conf; then
9669 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' ' '`
9670 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9673 # We used to test for /lib/ld.so.1 and disable shared libraries on
9674 # powerpc, because MkLinux only supported shared libraries with the
9675 # GNU dynamic linker. Since this was broken with cross compilers,
9676 # most powerpc-linux boxes support dynamic linking these days and
9677 # people can always --disable-shared, the test was removed, and we
9678 # assume the GNU/Linux dynamic linker is in use.
9679 dynamic_linker='GNU/Linux ld.so'
9686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9687 soname_spec='${libname}${release}${shared_ext}$major'
9688 shlibpath_var=LD_LIBRARY_PATH
9689 shlibpath_overrides_runpath=no
9690 hardcode_into_libs=yes
9691 dynamic_linker='GNU ld.so'
9698 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9700 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9701 dynamic_linker='NetBSD (a.out) ld.so'
9703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9704 soname_spec='${libname}${release}${shared_ext}$major'
9705 dynamic_linker='NetBSD ld.elf_so'
9707 shlibpath_var=LD_LIBRARY_PATH
9708 shlibpath_overrides_runpath=yes
9709 hardcode_into_libs=yes
9714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9715 shlibpath_var=LD_LIBRARY_PATH
9716 shlibpath_overrides_runpath=yes
9723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9724 soname_spec='${libname}${release}${shared_ext}$major'
9725 shlibpath_var=LD_LIBRARY_PATH
9726 shlibpath_overrides_runpath=yes
9731 sys_lib_dlsearch_path_spec="/usr/lib"
9733 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9735 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9736 *) need_version=no ;;
9738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9739 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9740 shlibpath_var=LD_LIBRARY_PATH
9741 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9743 openbsd2.[89] | openbsd2.[89].*)
9744 shlibpath_overrides_runpath=no
9747 shlibpath_overrides_runpath=yes
9751 shlibpath_overrides_runpath=yes
9756 libname_spec='$name'
9759 library_names_spec='$libname${shared_ext} $libname.a'
9760 dynamic_linker='OS/2 ld.exe'
9761 shlibpath_var=LIBPATH
9764 osf3* | osf4* | osf5*)
9768 soname_spec='${libname}${release}${shared_ext}$major'
9769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9770 shlibpath_var=LD_LIBRARY_PATH
9771 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9772 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
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=yes
9783 hardcode_into_libs=yes
9784 # ldd complains unless libraries are executable
9785 postinstall_cmds='chmod +x $lib'
9790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9791 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9792 shlibpath_var=LD_LIBRARY_PATH
9793 shlibpath_overrides_runpath=yes
9794 if test "$with_gnu_ld" = yes; then
9802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9803 soname_spec='${libname}${release}${shared_ext}$major'
9804 shlibpath_var=LD_LIBRARY_PATH
9805 case $host_vendor in
9807 shlibpath_overrides_runpath=no
9809 export_dynamic_flag_spec='${wl}-Blargedynsym'
9810 runpath_var=LD_RUN_PATH
9818 shlibpath_overrides_runpath=no
9819 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9825 if test -d /usr/nec ;then
9827 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9828 soname_spec='$libname${shared_ext}.$major'
9829 shlibpath_var=LD_LIBRARY_PATH
9833 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9834 version_type=freebsd-elf
9837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9838 soname_spec='${libname}${release}${shared_ext}$major'
9839 shlibpath_var=LD_LIBRARY_PATH
9840 hardcode_into_libs=yes
9841 if test "$with_gnu_ld" = yes; then
9842 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9843 shlibpath_overrides_runpath=no
9845 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9846 shlibpath_overrides_runpath=yes
9849 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9853 sys_lib_dlsearch_path_spec='/usr/lib'
9858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9859 soname_spec='${libname}${release}${shared_ext}$major'
9860 shlibpath_var=LD_LIBRARY_PATH
9867 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9868 echo "${ECHO_T}$dynamic_linker" >&6; }
9869 test "$dynamic_linker" = no && can_build_shared=no
9871 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9872 if test "$GCC" = yes; then
9873 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9877 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9878 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9879 if test "${libltdl_cv_shlibext+set}" = set; then
9880 echo $ECHO_N "(cached) $ECHO_C" >&6
9884 eval libltdl_cv_shlibext=$shrext_cmds
9887 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9888 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9889 if test -n "$libltdl_cv_shlibext"; then
9891 cat >>confdefs.h <<_ACEOF
9892 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9898 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9899 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9900 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9901 echo $ECHO_N "(cached) $ECHO_C" >&6
9903 libltdl_cv_shlibpath_var="$shlibpath_var"
9905 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9906 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9907 if test -n "$libltdl_cv_shlibpath_var"; then
9909 cat >>confdefs.h <<_ACEOF
9910 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9916 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9917 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9918 if test "${libltdl_cv_sys_search_path+set}" = set; then
9919 echo $ECHO_N "(cached) $ECHO_C" >&6
9921 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9923 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9924 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9925 if test -n "$libltdl_cv_sys_search_path"; then
9927 for dir in $libltdl_cv_sys_search_path; do
9928 if test -z "$sys_search_path"; then
9929 sys_search_path="$dir"
9931 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9935 cat >>confdefs.h <<_ACEOF
9936 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9941 { echo "$as_me:$LINENO: checking for objdir" >&5
9942 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9943 if test "${libltdl_cv_objdir+set}" = set; then
9944 echo $ECHO_N "(cached) $ECHO_C" >&6
9946 libltdl_cv_objdir="$objdir"
9947 if test -n "$objdir"; then
9950 rm -f .libs 2>/dev/null
9951 mkdir .libs 2>/dev/null
9952 if test -d .libs; then
9953 libltdl_cv_objdir=.libs
9955 # MS-DOS does not allow filenames that begin with a dot.
9956 libltdl_cv_objdir=_libs
9958 rmdir .libs 2>/dev/null
9962 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9963 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9965 cat >>confdefs.h <<_ACEOF
9966 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9974 # Check for command to grab the raw symbol name followed by C symbol from nm.
9975 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9976 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9977 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9978 echo $ECHO_N "(cached) $ECHO_C" >&6
9981 # These are sane defaults that work on at least a few old systems.
9982 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9984 # Character class describing NM global symbol codes.
9985 symcode='[BCDEGRST]'
9987 # Regexp to match symbols that can be accessed directly from C.
9988 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9990 # Transform an extracted symbol line into a proper C declaration
9991 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9993 # Transform an extracted symbol line into symbol name and symbol address
9994 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'"
9996 # Define system-specific variables.
10001 cygwin* | mingw* | pw32*)
10002 symcode='[ABCDGISTW]'
10004 hpux*) # Its linker distinguishes data from code symbols
10005 if test "$host_cpu" = ia64; then
10006 symcode='[ABCDEGRST]'
10008 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10009 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'"
10012 if test "$host_cpu" = ia64; then
10013 symcode='[ABCDGIRSTW]'
10014 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10015 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'"
10018 irix* | nonstopux*)
10019 symcode='[BCDEGRST]'
10022 symcode='[BCDEGQRST]'
10033 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10041 # Handle CRLF in mingw tool chain
10045 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10049 # If we're using GNU nm, then use its standard symbol codes.
10050 case `$NM -V 2>&1` in
10051 *GNU* | *'with BFD'*)
10052 symcode='[ABCDGIRSTW]' ;;
10055 # Try without a prefix undercore, then with it.
10056 for ac_symprfx in "" "_"; do
10058 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10059 symxfrm="\\1 $ac_symprfx\\2 \\2"
10061 # Write the raw and C identifiers.
10062 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10064 # Check to see that the pipe works correctly.
10068 cat > conftest.$ac_ext <<EOF
10073 void nm_test_func(){}
10077 int main(){nm_test_var='a';nm_test_func();return(0);}
10080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10081 (eval $ac_compile) 2>&5
10083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084 (exit $ac_status); }; then
10085 # Now try to grab the symbols.
10087 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10088 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10091 (exit $ac_status); } && test -s "$nlist"; then
10092 # Try sorting and uniquifying the output.
10093 if sort "$nlist" | uniq > "$nlist"T; then
10094 mv -f "$nlist"T "$nlist"
10099 # Make sure that we snagged all the symbols we need.
10100 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10101 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10102 cat <<EOF > conftest.$ac_ext
10108 # Now generate the symbol file.
10109 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10111 cat <<EOF >> conftest.$ac_ext
10112 #if defined (__STDC__) && __STDC__
10113 # define lt_ptr_t void *
10115 # define lt_ptr_t char *
10119 /* The mapping between symbol names and symbols. */
10124 lt_preloaded_symbols[] =
10127 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10128 cat <<\EOF >> conftest.$ac_ext
10136 # Now try linking the two files.
10137 mv conftest.$ac_objext conftstm.$ac_objext
10138 lt_save_LIBS="$LIBS"
10139 lt_save_CFLAGS="$CFLAGS"
10140 LIBS="conftstm.$ac_objext"
10141 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10143 (eval $ac_link) 2>&5
10145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10149 LIBS="$lt_save_LIBS"
10150 CFLAGS="$lt_save_CFLAGS"
10152 echo "cannot find nm_test_func in $nlist" >&5
10155 echo "cannot find nm_test_var in $nlist" >&5
10158 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10161 echo "$progname: failed program was:" >&5
10162 cat conftest.$ac_ext >&5
10164 rm -f conftest* conftst*
10166 # Do not use the global_symbol_pipe unless it works.
10167 if test "$pipe_works" = yes; then
10170 lt_cv_sys_global_symbol_pipe=
10176 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10177 lt_cv_sys_global_symbol_to_cdecl=
10179 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10180 { echo "$as_me:$LINENO: result: failed" >&5
10181 echo "${ECHO_T}failed" >&6; }
10183 { echo "$as_me:$LINENO: result: ok" >&5
10184 echo "${ECHO_T}ok" >&6; }
10188 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10189 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10190 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10191 echo $ECHO_N "(cached) $ECHO_C" >&6
10193 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10194 libltdl_cv_preloaded_symbols=yes
10196 libltdl_cv_preloaded_symbols=no
10200 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10201 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10202 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10204 cat >>confdefs.h <<\_ACEOF
10205 #define HAVE_PRELOADED_SYMBOLS 1
10213 ac_cpp='$CPP $CPPFLAGS'
10214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10219 { echo "$as_me:$LINENO: checking for shl_load" >&5
10220 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10221 if test "${ac_cv_func_shl_load+set}" = set; then
10222 echo $ECHO_N "(cached) $ECHO_C" >&6
10224 cat >conftest.$ac_ext <<_ACEOF
10227 cat confdefs.h >>conftest.$ac_ext
10228 cat >>conftest.$ac_ext <<_ACEOF
10229 /* end confdefs.h. */
10230 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10231 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10232 #define shl_load innocuous_shl_load
10234 /* System header to define __stub macros and hopefully few prototypes,
10235 which can conflict with char shl_load (); below.
10236 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10237 <limits.h> exists even on freestanding compilers. */
10240 # include <limits.h>
10242 # include <assert.h>
10247 /* Override any GCC internal prototype to avoid an error.
10248 Use char because int might match the return type of a GCC
10249 builtin and then its argument prototype would still apply. */
10254 /* The GNU C library defines this for functions which it implements
10255 to always fail with ENOSYS. Some functions are actually named
10256 something starting with __ and the normal name is an alias. */
10257 #if defined __stub_shl_load || defined __stub___shl_load
10264 return shl_load ();
10269 rm -f conftest.$ac_objext conftest$ac_exeext
10270 if { (ac_try="$ac_link"
10271 case "(($ac_try" in
10272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10273 *) ac_try_echo=$ac_try;;
10275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10276 (eval "$ac_link") 2>conftest.er1
10278 grep -v '^ *+' conftest.er1 >conftest.err
10280 cat conftest.err >&5
10281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282 (exit $ac_status); } &&
10283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10284 { (case "(($ac_try" in
10285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10286 *) ac_try_echo=$ac_try;;
10288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10289 (eval "$ac_try") 2>&5
10291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292 (exit $ac_status); }; } &&
10293 { ac_try='test -s conftest$ac_exeext'
10294 { (case "(($ac_try" in
10295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10296 *) ac_try_echo=$ac_try;;
10298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10299 (eval "$ac_try") 2>&5
10301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302 (exit $ac_status); }; }; then
10303 ac_cv_func_shl_load=yes
10305 echo "$as_me: failed program was:" >&5
10306 sed 's/^/| /' conftest.$ac_ext >&5
10308 ac_cv_func_shl_load=no
10311 rm -f core conftest.err conftest.$ac_objext \
10312 conftest$ac_exeext conftest.$ac_ext
10314 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10315 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10316 if test $ac_cv_func_shl_load = yes; then
10318 cat >>confdefs.h <<\_ACEOF
10319 #define HAVE_SHL_LOAD 1
10323 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10324 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10325 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10326 echo $ECHO_N "(cached) $ECHO_C" >&6
10328 ac_check_lib_save_LIBS=$LIBS
10330 cat >conftest.$ac_ext <<_ACEOF
10333 cat confdefs.h >>conftest.$ac_ext
10334 cat >>conftest.$ac_ext <<_ACEOF
10335 /* end confdefs.h. */
10337 /* Override any GCC internal prototype to avoid an error.
10338 Use char because int might match the return type of a GCC
10339 builtin and then its argument prototype would still apply. */
10347 return shl_load ();
10352 rm -f conftest.$ac_objext conftest$ac_exeext
10353 if { (ac_try="$ac_link"
10354 case "(($ac_try" in
10355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10356 *) ac_try_echo=$ac_try;;
10358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10359 (eval "$ac_link") 2>conftest.er1
10361 grep -v '^ *+' conftest.er1 >conftest.err
10363 cat conftest.err >&5
10364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10365 (exit $ac_status); } &&
10366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10367 { (case "(($ac_try" in
10368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10369 *) ac_try_echo=$ac_try;;
10371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10372 (eval "$ac_try") 2>&5
10374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10375 (exit $ac_status); }; } &&
10376 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
10386 ac_cv_lib_dld_shl_load=yes
10388 echo "$as_me: failed program was:" >&5
10389 sed 's/^/| /' conftest.$ac_ext >&5
10391 ac_cv_lib_dld_shl_load=no
10394 rm -f core conftest.err conftest.$ac_objext \
10395 conftest$ac_exeext conftest.$ac_ext
10396 LIBS=$ac_check_lib_save_LIBS
10398 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10399 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10400 if test $ac_cv_lib_dld_shl_load = yes; then
10402 cat >>confdefs.h <<\_ACEOF
10403 #define HAVE_SHL_LOAD 1
10406 LIBADD_DL="$LIBADD_DL -ldld"
10408 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10409 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10410 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10411 echo $ECHO_N "(cached) $ECHO_C" >&6
10413 ac_check_lib_save_LIBS=$LIBS
10415 cat >conftest.$ac_ext <<_ACEOF
10418 cat confdefs.h >>conftest.$ac_ext
10419 cat >>conftest.$ac_ext <<_ACEOF
10420 /* end confdefs.h. */
10422 /* Override any GCC internal prototype to avoid an error.
10423 Use char because int might match the return type of a GCC
10424 builtin and then its argument prototype would still apply. */
10437 rm -f conftest.$ac_objext conftest$ac_exeext
10438 if { (ac_try="$ac_link"
10439 case "(($ac_try" in
10440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10441 *) ac_try_echo=$ac_try;;
10443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10444 (eval "$ac_link") 2>conftest.er1
10446 grep -v '^ *+' conftest.er1 >conftest.err
10448 cat conftest.err >&5
10449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450 (exit $ac_status); } &&
10451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10452 { (case "(($ac_try" in
10453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10454 *) ac_try_echo=$ac_try;;
10456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10457 (eval "$ac_try") 2>&5
10459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10460 (exit $ac_status); }; } &&
10461 { ac_try='test -s conftest$ac_exeext'
10462 { (case "(($ac_try" in
10463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10464 *) ac_try_echo=$ac_try;;
10466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10467 (eval "$ac_try") 2>&5
10469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470 (exit $ac_status); }; }; then
10471 ac_cv_lib_dl_dlopen=yes
10473 echo "$as_me: failed program was:" >&5
10474 sed 's/^/| /' conftest.$ac_ext >&5
10476 ac_cv_lib_dl_dlopen=no
10479 rm -f core conftest.err conftest.$ac_objext \
10480 conftest$ac_exeext conftest.$ac_ext
10481 LIBS=$ac_check_lib_save_LIBS
10483 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10484 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10485 if test $ac_cv_lib_dl_dlopen = yes; then
10487 cat >>confdefs.h <<\_ACEOF
10488 #define HAVE_LIBDL 1
10491 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10493 cat >conftest.$ac_ext <<_ACEOF
10496 cat confdefs.h >>conftest.$ac_ext
10497 cat >>conftest.$ac_ext <<_ACEOF
10498 /* end confdefs.h. */
10500 # include <dlfcn.h>
10511 rm -f conftest.$ac_objext conftest$ac_exeext
10512 if { (ac_try="$ac_link"
10513 case "(($ac_try" in
10514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10515 *) ac_try_echo=$ac_try;;
10517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10518 (eval "$ac_link") 2>conftest.er1
10520 grep -v '^ *+' conftest.er1 >conftest.err
10522 cat conftest.err >&5
10523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10524 (exit $ac_status); } &&
10525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10526 { (case "(($ac_try" in
10527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10528 *) ac_try_echo=$ac_try;;
10530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10531 (eval "$ac_try") 2>&5
10533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534 (exit $ac_status); }; } &&
10535 { ac_try='test -s conftest$ac_exeext'
10536 { (case "(($ac_try" in
10537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10538 *) ac_try_echo=$ac_try;;
10540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10541 (eval "$ac_try") 2>&5
10543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544 (exit $ac_status); }; }; then
10546 cat >>confdefs.h <<\_ACEOF
10547 #define HAVE_LIBDL 1
10549 libltdl_cv_func_dlopen="yes"
10551 echo "$as_me: failed program was:" >&5
10552 sed 's/^/| /' conftest.$ac_ext >&5
10554 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10555 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10556 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10557 echo $ECHO_N "(cached) $ECHO_C" >&6
10559 ac_check_lib_save_LIBS=$LIBS
10560 LIBS="-lsvld $LIBS"
10561 cat >conftest.$ac_ext <<_ACEOF
10564 cat confdefs.h >>conftest.$ac_ext
10565 cat >>conftest.$ac_ext <<_ACEOF
10566 /* end confdefs.h. */
10568 /* Override any GCC internal prototype to avoid an error.
10569 Use char because int might match the return type of a GCC
10570 builtin and then its argument prototype would still apply. */
10583 rm -f conftest.$ac_objext conftest$ac_exeext
10584 if { (ac_try="$ac_link"
10585 case "(($ac_try" in
10586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10587 *) ac_try_echo=$ac_try;;
10589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10590 (eval "$ac_link") 2>conftest.er1
10592 grep -v '^ *+' conftest.er1 >conftest.err
10594 cat conftest.err >&5
10595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596 (exit $ac_status); } &&
10597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10598 { (case "(($ac_try" in
10599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10600 *) ac_try_echo=$ac_try;;
10602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10603 (eval "$ac_try") 2>&5
10605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606 (exit $ac_status); }; } &&
10607 { ac_try='test -s conftest$ac_exeext'
10608 { (case "(($ac_try" in
10609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10610 *) ac_try_echo=$ac_try;;
10612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10613 (eval "$ac_try") 2>&5
10615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616 (exit $ac_status); }; }; then
10617 ac_cv_lib_svld_dlopen=yes
10619 echo "$as_me: failed program was:" >&5
10620 sed 's/^/| /' conftest.$ac_ext >&5
10622 ac_cv_lib_svld_dlopen=no
10625 rm -f core conftest.err conftest.$ac_objext \
10626 conftest$ac_exeext conftest.$ac_ext
10627 LIBS=$ac_check_lib_save_LIBS
10629 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10630 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10631 if test $ac_cv_lib_svld_dlopen = yes; then
10633 cat >>confdefs.h <<\_ACEOF
10634 #define HAVE_LIBDL 1
10637 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10639 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10640 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10641 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10642 echo $ECHO_N "(cached) $ECHO_C" >&6
10644 ac_check_lib_save_LIBS=$LIBS
10646 cat >conftest.$ac_ext <<_ACEOF
10649 cat confdefs.h >>conftest.$ac_ext
10650 cat >>conftest.$ac_ext <<_ACEOF
10651 /* end confdefs.h. */
10653 /* Override any GCC internal prototype to avoid an error.
10654 Use char because int might match the return type of a GCC
10655 builtin and then its argument prototype would still apply. */
10663 return dld_link ();
10668 rm -f conftest.$ac_objext conftest$ac_exeext
10669 if { (ac_try="$ac_link"
10670 case "(($ac_try" in
10671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10672 *) ac_try_echo=$ac_try;;
10674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10675 (eval "$ac_link") 2>conftest.er1
10677 grep -v '^ *+' conftest.er1 >conftest.err
10679 cat conftest.err >&5
10680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10681 (exit $ac_status); } &&
10682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10683 { (case "(($ac_try" in
10684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10685 *) ac_try_echo=$ac_try;;
10687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10688 (eval "$ac_try") 2>&5
10690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691 (exit $ac_status); }; } &&
10692 { ac_try='test -s conftest$ac_exeext'
10693 { (case "(($ac_try" in
10694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10695 *) ac_try_echo=$ac_try;;
10697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10698 (eval "$ac_try") 2>&5
10700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701 (exit $ac_status); }; }; then
10702 ac_cv_lib_dld_dld_link=yes
10704 echo "$as_me: failed program was:" >&5
10705 sed 's/^/| /' conftest.$ac_ext >&5
10707 ac_cv_lib_dld_dld_link=no
10710 rm -f core conftest.err conftest.$ac_objext \
10711 conftest$ac_exeext conftest.$ac_ext
10712 LIBS=$ac_check_lib_save_LIBS
10714 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10715 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10716 if test $ac_cv_lib_dld_dld_link = yes; then
10718 cat >>confdefs.h <<\_ACEOF
10722 LIBADD_DL="$LIBADD_DL -ldld"
10724 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10725 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10726 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10727 echo $ECHO_N "(cached) $ECHO_C" >&6
10729 cat >conftest.$ac_ext <<_ACEOF
10732 cat confdefs.h >>conftest.$ac_ext
10733 cat >>conftest.$ac_ext <<_ACEOF
10734 /* end confdefs.h. */
10735 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10736 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10737 #define _dyld_func_lookup innocuous__dyld_func_lookup
10739 /* System header to define __stub macros and hopefully few prototypes,
10740 which can conflict with char _dyld_func_lookup (); below.
10741 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10742 <limits.h> exists even on freestanding compilers. */
10745 # include <limits.h>
10747 # include <assert.h>
10750 #undef _dyld_func_lookup
10752 /* Override any GCC internal prototype to avoid an error.
10753 Use char because int might match the return type of a GCC
10754 builtin and then its argument prototype would still apply. */
10758 char _dyld_func_lookup ();
10759 /* The GNU C library defines this for functions which it implements
10760 to always fail with ENOSYS. Some functions are actually named
10761 something starting with __ and the normal name is an alias. */
10762 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10769 return _dyld_func_lookup ();
10774 rm -f conftest.$ac_objext conftest$ac_exeext
10775 if { (ac_try="$ac_link"
10776 case "(($ac_try" in
10777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10778 *) ac_try_echo=$ac_try;;
10780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10781 (eval "$ac_link") 2>conftest.er1
10783 grep -v '^ *+' conftest.er1 >conftest.err
10785 cat conftest.err >&5
10786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787 (exit $ac_status); } &&
10788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10789 { (case "(($ac_try" in
10790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10791 *) ac_try_echo=$ac_try;;
10793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10794 (eval "$ac_try") 2>&5
10796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797 (exit $ac_status); }; } &&
10798 { ac_try='test -s conftest$ac_exeext'
10799 { (case "(($ac_try" in
10800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10801 *) ac_try_echo=$ac_try;;
10803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10804 (eval "$ac_try") 2>&5
10806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807 (exit $ac_status); }; }; then
10808 ac_cv_func__dyld_func_lookup=yes
10810 echo "$as_me: failed program was:" >&5
10811 sed 's/^/| /' conftest.$ac_ext >&5
10813 ac_cv_func__dyld_func_lookup=no
10816 rm -f core conftest.err conftest.$ac_objext \
10817 conftest$ac_exeext conftest.$ac_ext
10819 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10820 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10821 if test $ac_cv_func__dyld_func_lookup = yes; then
10823 cat >>confdefs.h <<\_ACEOF
10824 #define HAVE_DYLD 1
10838 rm -f core conftest.err conftest.$ac_objext \
10839 conftest$ac_exeext conftest.$ac_ext
10850 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10852 lt_save_LIBS="$LIBS"
10853 LIBS="$LIBS $LIBADD_DL"
10855 for ac_func in dlerror
10857 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10858 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10859 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10860 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10861 echo $ECHO_N "(cached) $ECHO_C" >&6
10863 cat >conftest.$ac_ext <<_ACEOF
10866 cat confdefs.h >>conftest.$ac_ext
10867 cat >>conftest.$ac_ext <<_ACEOF
10868 /* end confdefs.h. */
10869 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10870 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10871 #define $ac_func innocuous_$ac_func
10873 /* System header to define __stub macros and hopefully few prototypes,
10874 which can conflict with char $ac_func (); below.
10875 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10876 <limits.h> exists even on freestanding compilers. */
10879 # include <limits.h>
10881 # include <assert.h>
10886 /* Override any GCC internal prototype to avoid an error.
10887 Use char because int might match the return type of a GCC
10888 builtin and then its argument prototype would still apply. */
10893 /* The GNU C library defines this for functions which it implements
10894 to always fail with ENOSYS. Some functions are actually named
10895 something starting with __ and the normal name is an alias. */
10896 #if defined __stub_$ac_func || defined __stub___$ac_func
10903 return $ac_func ();
10908 rm -f conftest.$ac_objext conftest$ac_exeext
10909 if { (ac_try="$ac_link"
10910 case "(($ac_try" in
10911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10912 *) ac_try_echo=$ac_try;;
10914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10915 (eval "$ac_link") 2>conftest.er1
10917 grep -v '^ *+' conftest.er1 >conftest.err
10919 cat conftest.err >&5
10920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10921 (exit $ac_status); } &&
10922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10923 { (case "(($ac_try" in
10924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10925 *) ac_try_echo=$ac_try;;
10927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10928 (eval "$ac_try") 2>&5
10930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931 (exit $ac_status); }; } &&
10932 { ac_try='test -s conftest$ac_exeext'
10933 { (case "(($ac_try" in
10934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10935 *) ac_try_echo=$ac_try;;
10937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10938 (eval "$ac_try") 2>&5
10940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941 (exit $ac_status); }; }; then
10942 eval "$as_ac_var=yes"
10944 echo "$as_me: failed program was:" >&5
10945 sed 's/^/| /' conftest.$ac_ext >&5
10947 eval "$as_ac_var=no"
10950 rm -f core conftest.err conftest.$ac_objext \
10951 conftest$ac_exeext conftest.$ac_ext
10953 ac_res=`eval echo '${'$as_ac_var'}'`
10954 { echo "$as_me:$LINENO: result: $ac_res" >&5
10955 echo "${ECHO_T}$ac_res" >&6; }
10956 if test `eval echo '${'$as_ac_var'}'` = yes; then
10957 cat >>confdefs.h <<_ACEOF
10958 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10964 LIBS="$lt_save_LIBS"
10967 ac_cpp='$CPP $CPPFLAGS'
10968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10974 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10975 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10976 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10977 echo $ECHO_N "(cached) $ECHO_C" >&6
10979 ac_cv_sys_symbol_underscore=no
10980 cat > conftest.$ac_ext <<EOF
10981 void nm_test_func(){}
10982 int main(){nm_test_func;return 0;}
10984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10985 (eval $ac_compile) 2>&5
10987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10988 (exit $ac_status); }; then
10989 # Now try to grab the symbols.
10990 ac_nlist=conftest.nm
10991 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10992 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10995 (exit $ac_status); } && test -s "$ac_nlist"; then
10996 # See whether the symbols have a leading underscore.
10997 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10998 ac_cv_sys_symbol_underscore=yes
11000 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11003 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11007 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11010 echo "configure: failed program was:" >&5
11016 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11017 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11020 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11021 if test x"$libltdl_cv_func_dlopen" = xyes ||
11022 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11023 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11024 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11025 if test "${libltdl_cv_need_uscore+set}" = set; then
11026 echo $ECHO_N "(cached) $ECHO_C" >&6
11028 libltdl_cv_need_uscore=unknown
11030 LIBS="$LIBS $LIBADD_DL"
11031 if test "$cross_compiling" = yes; then :
11032 libltdl_cv_need_uscore=cross
11034 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11035 lt_status=$lt_dlunknown
11036 cat > conftest.$ac_ext <<EOF
11037 #line 11037 "configure"
11038 #include "confdefs.h"
11047 # define LT_DLGLOBAL RTLD_GLOBAL
11050 # define LT_DLGLOBAL DL_GLOBAL
11052 # define LT_DLGLOBAL 0
11056 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11057 find out it does not work in some platform. */
11058 #ifndef LT_DLLAZY_OR_NOW
11060 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11063 # define LT_DLLAZY_OR_NOW DL_LAZY
11066 # define LT_DLLAZY_OR_NOW RTLD_NOW
11069 # define LT_DLLAZY_OR_NOW DL_NOW
11071 # define LT_DLLAZY_OR_NOW 0
11079 extern "C" void exit (int);
11082 void fnord() { int i=42;}
11085 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11086 int status = $lt_dlunknown;
11090 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11091 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11092 /* dlclose (self); */
11100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11101 (eval $ac_link) 2>&5
11103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11105 (./conftest; exit; ) >&5 2>/dev/null
11107 case x$lt_status in
11108 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11109 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11110 x$lt_dlunknown|x*) ;;
11113 # compilation failed
11122 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11123 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11127 if test x"$libltdl_cv_need_uscore" = xyes; then
11129 cat >>confdefs.h <<\_ACEOF
11130 #define NEED_USCORE 1
11136 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11137 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11138 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11139 echo $ECHO_N "(cached) $ECHO_C" >&6
11141 # PORTME does your system automatically load deplibs for dlopen?
11142 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11143 # For now, we just catch OSes we know something about -- in the
11144 # future, we'll try test this programmatically.
11145 libltdl_cv_sys_dlopen_deplibs=unknown
11147 aix3*|aix4.1.*|aix4.2.*)
11148 # Unknown whether this is true for these versions of AIX, but
11149 # we want this `case' here to explicitly catch those versions.
11150 libltdl_cv_sys_dlopen_deplibs=unknown
11153 libltdl_cv_sys_dlopen_deplibs=yes
11156 # Assuming the user has installed a libdl from somewhere, this is true
11157 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11158 libltdl_cv_sys_dlopen_deplibs=yes
11160 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11161 # GNU and its variants, using gnu ld.so (Glibc)
11162 libltdl_cv_sys_dlopen_deplibs=yes
11165 libltdl_cv_sys_dlopen_deplibs=yes
11168 libltdl_cv_sys_dlopen_deplibs=yes
11170 irix[12345]*|irix6.[01]*)
11171 # Catch all versions of IRIX before 6.2, and indicate that we don't
11172 # know how it worked for any of those versions.
11173 libltdl_cv_sys_dlopen_deplibs=unknown
11176 # The case above catches anything before 6.2, and it's known that
11177 # at 6.2 and later dlopen does load deplibs.
11178 libltdl_cv_sys_dlopen_deplibs=yes
11181 libltdl_cv_sys_dlopen_deplibs=yes
11184 libltdl_cv_sys_dlopen_deplibs=yes
11187 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11188 # it did *not* use an RPATH in a shared library to find objects the
11189 # library depends on, so we explictly say `no'.
11190 libltdl_cv_sys_dlopen_deplibs=no
11192 osf5.0|osf5.0a|osf5.1)
11193 # dlopen *does* load deplibs and with the right loader patch applied
11194 # it even uses RPATH in a shared library to search for shared objects
11195 # that the library depends on, but there's no easy way to know if that
11196 # patch is installed. Since this is the case, all we can really
11197 # say is unknown -- it depends on the patch being installed. If
11198 # it is, this changes to `yes'. Without it, it would be `no'.
11199 libltdl_cv_sys_dlopen_deplibs=unknown
11202 # the two cases above should catch all versions of osf <= 5.1. Read
11203 # the comments above for what we know about them.
11204 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11205 # is used to find them so we can finally say `yes'.
11206 libltdl_cv_sys_dlopen_deplibs=yes
11209 libltdl_cv_sys_dlopen_deplibs=yes
11211 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11212 libltdl_cv_sys_dlopen_deplibs=yes
11217 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11218 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11219 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11221 cat >>confdefs.h <<\_ACEOF
11222 #define LTDL_DLOPEN_DEPLIBS 1
11228 for ac_header in argz.h
11230 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11232 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11234 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11235 echo $ECHO_N "(cached) $ECHO_C" >&6
11237 ac_res=`eval echo '${'$as_ac_Header'}'`
11238 { echo "$as_me:$LINENO: result: $ac_res" >&5
11239 echo "${ECHO_T}$ac_res" >&6; }
11241 # Is the header compilable?
11242 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11243 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11244 cat >conftest.$ac_ext <<_ACEOF
11247 cat confdefs.h >>conftest.$ac_ext
11248 cat >>conftest.$ac_ext <<_ACEOF
11249 /* end confdefs.h. */
11250 $ac_includes_default
11251 #include <$ac_header>
11253 rm -f conftest.$ac_objext
11254 if { (ac_try="$ac_compile"
11255 case "(($ac_try" in
11256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11257 *) ac_try_echo=$ac_try;;
11259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11260 (eval "$ac_compile") 2>conftest.er1
11262 grep -v '^ *+' conftest.er1 >conftest.err
11264 cat conftest.err >&5
11265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11266 (exit $ac_status); } &&
11267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11268 { (case "(($ac_try" in
11269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11270 *) ac_try_echo=$ac_try;;
11272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11273 (eval "$ac_try") 2>&5
11275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11276 (exit $ac_status); }; } &&
11277 { ac_try='test -s conftest.$ac_objext'
11278 { (case "(($ac_try" in
11279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11280 *) ac_try_echo=$ac_try;;
11282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11283 (eval "$ac_try") 2>&5
11285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11286 (exit $ac_status); }; }; then
11287 ac_header_compiler=yes
11289 echo "$as_me: failed program was:" >&5
11290 sed 's/^/| /' conftest.$ac_ext >&5
11292 ac_header_compiler=no
11295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11296 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11297 echo "${ECHO_T}$ac_header_compiler" >&6; }
11299 # Is the header present?
11300 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11301 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11302 cat >conftest.$ac_ext <<_ACEOF
11305 cat confdefs.h >>conftest.$ac_ext
11306 cat >>conftest.$ac_ext <<_ACEOF
11307 /* end confdefs.h. */
11308 #include <$ac_header>
11310 if { (ac_try="$ac_cpp conftest.$ac_ext"
11311 case "(($ac_try" in
11312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11313 *) ac_try_echo=$ac_try;;
11315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11316 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11318 grep -v '^ *+' conftest.er1 >conftest.err
11320 cat conftest.err >&5
11321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322 (exit $ac_status); } >/dev/null; then
11323 if test -s conftest.err; then
11324 ac_cpp_err=$ac_c_preproc_warn_flag
11325 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11332 if test -z "$ac_cpp_err"; then
11333 ac_header_preproc=yes
11335 echo "$as_me: failed program was:" >&5
11336 sed 's/^/| /' conftest.$ac_ext >&5
11338 ac_header_preproc=no
11341 rm -f conftest.err conftest.$ac_ext
11342 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11343 echo "${ECHO_T}$ac_header_preproc" >&6; }
11345 # So? What about this header?
11346 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11348 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11349 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11350 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11351 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11352 ac_header_preproc=yes
11355 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11356 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11357 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11358 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11359 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11360 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11361 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11362 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11363 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11364 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11365 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11366 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11368 ## ----------------------------------- ##
11369 ## Report this to llvmbugs@cs.uiuc.edu ##
11370 ## ----------------------------------- ##
11372 ) | sed "s/^/$as_me: WARNING: /" >&2
11375 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11376 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11377 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11378 echo $ECHO_N "(cached) $ECHO_C" >&6
11380 eval "$as_ac_Header=\$ac_header_preproc"
11382 ac_res=`eval echo '${'$as_ac_Header'}'`
11383 { echo "$as_me:$LINENO: result: $ac_res" >&5
11384 echo "${ECHO_T}$ac_res" >&6; }
11387 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11388 cat >>confdefs.h <<_ACEOF
11389 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11397 { echo "$as_me:$LINENO: checking for error_t" >&5
11398 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11399 if test "${ac_cv_type_error_t+set}" = set; then
11400 echo $ECHO_N "(cached) $ECHO_C" >&6
11402 cat >conftest.$ac_ext <<_ACEOF
11405 cat confdefs.h >>conftest.$ac_ext
11406 cat >>conftest.$ac_ext <<_ACEOF
11407 /* end confdefs.h. */
11412 typedef error_t ac__type_new_;
11416 if ((ac__type_new_ *) 0)
11418 if (sizeof (ac__type_new_))
11424 rm -f conftest.$ac_objext
11425 if { (ac_try="$ac_compile"
11426 case "(($ac_try" in
11427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11428 *) ac_try_echo=$ac_try;;
11430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11431 (eval "$ac_compile") 2>conftest.er1
11433 grep -v '^ *+' conftest.er1 >conftest.err
11435 cat conftest.err >&5
11436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437 (exit $ac_status); } &&
11438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11439 { (case "(($ac_try" in
11440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11441 *) ac_try_echo=$ac_try;;
11443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11444 (eval "$ac_try") 2>&5
11446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447 (exit $ac_status); }; } &&
11448 { ac_try='test -s conftest.$ac_objext'
11449 { (case "(($ac_try" in
11450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11451 *) ac_try_echo=$ac_try;;
11453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11454 (eval "$ac_try") 2>&5
11456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457 (exit $ac_status); }; }; then
11458 ac_cv_type_error_t=yes
11460 echo "$as_me: failed program was:" >&5
11461 sed 's/^/| /' conftest.$ac_ext >&5
11463 ac_cv_type_error_t=no
11466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11468 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11469 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11470 if test $ac_cv_type_error_t = yes; then
11472 cat >>confdefs.h <<_ACEOF
11473 #define HAVE_ERROR_T 1
11479 cat >>confdefs.h <<\_ACEOF
11480 #define error_t int
11491 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11493 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11494 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11495 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11496 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11497 echo $ECHO_N "(cached) $ECHO_C" >&6
11499 cat >conftest.$ac_ext <<_ACEOF
11502 cat confdefs.h >>conftest.$ac_ext
11503 cat >>conftest.$ac_ext <<_ACEOF
11504 /* end confdefs.h. */
11505 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11506 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11507 #define $ac_func innocuous_$ac_func
11509 /* System header to define __stub macros and hopefully few prototypes,
11510 which can conflict with char $ac_func (); below.
11511 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11512 <limits.h> exists even on freestanding compilers. */
11515 # include <limits.h>
11517 # include <assert.h>
11522 /* Override any GCC internal prototype to avoid an error.
11523 Use char because int might match the return type of a GCC
11524 builtin and then its argument prototype would still apply. */
11529 /* The GNU C library defines this for functions which it implements
11530 to always fail with ENOSYS. Some functions are actually named
11531 something starting with __ and the normal name is an alias. */
11532 #if defined __stub_$ac_func || defined __stub___$ac_func
11539 return $ac_func ();
11544 rm -f conftest.$ac_objext conftest$ac_exeext
11545 if { (ac_try="$ac_link"
11546 case "(($ac_try" in
11547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11548 *) ac_try_echo=$ac_try;;
11550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11551 (eval "$ac_link") 2>conftest.er1
11553 grep -v '^ *+' conftest.er1 >conftest.err
11555 cat conftest.err >&5
11556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11557 (exit $ac_status); } &&
11558 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11559 { (case "(($ac_try" in
11560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11561 *) ac_try_echo=$ac_try;;
11563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11564 (eval "$ac_try") 2>&5
11566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11567 (exit $ac_status); }; } &&
11568 { ac_try='test -s conftest$ac_exeext'
11569 { (case "(($ac_try" in
11570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11571 *) ac_try_echo=$ac_try;;
11573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11574 (eval "$ac_try") 2>&5
11576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11577 (exit $ac_status); }; }; then
11578 eval "$as_ac_var=yes"
11580 echo "$as_me: failed program was:" >&5
11581 sed 's/^/| /' conftest.$ac_ext >&5
11583 eval "$as_ac_var=no"
11586 rm -f core conftest.err conftest.$ac_objext \
11587 conftest$ac_exeext conftest.$ac_ext
11589 ac_res=`eval echo '${'$as_ac_var'}'`
11590 { echo "$as_me:$LINENO: result: $ac_res" >&5
11591 echo "${ECHO_T}$ac_res" >&6; }
11592 if test `eval echo '${'$as_ac_var'}'` = yes; then
11593 cat >>confdefs.h <<_ACEOF
11594 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11627 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11630 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11631 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11632 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11633 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11634 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11635 echo $ECHO_N "(cached) $ECHO_C" >&6
11637 ac_res=`eval echo '${'$as_ac_Header'}'`
11638 { echo "$as_me:$LINENO: result: $ac_res" >&5
11639 echo "${ECHO_T}$ac_res" >&6; }
11641 # Is the header compilable?
11642 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11643 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11644 cat >conftest.$ac_ext <<_ACEOF
11647 cat confdefs.h >>conftest.$ac_ext
11648 cat >>conftest.$ac_ext <<_ACEOF
11649 /* end confdefs.h. */
11650 $ac_includes_default
11651 #include <$ac_header>
11653 rm -f conftest.$ac_objext
11654 if { (ac_try="$ac_compile"
11655 case "(($ac_try" in
11656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11657 *) ac_try_echo=$ac_try;;
11659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11660 (eval "$ac_compile") 2>conftest.er1
11662 grep -v '^ *+' conftest.er1 >conftest.err
11664 cat conftest.err >&5
11665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666 (exit $ac_status); } &&
11667 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11668 { (case "(($ac_try" in
11669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11670 *) ac_try_echo=$ac_try;;
11672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11673 (eval "$ac_try") 2>&5
11675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676 (exit $ac_status); }; } &&
11677 { ac_try='test -s conftest.$ac_objext'
11678 { (case "(($ac_try" in
11679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11680 *) ac_try_echo=$ac_try;;
11682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11683 (eval "$ac_try") 2>&5
11685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11686 (exit $ac_status); }; }; then
11687 ac_header_compiler=yes
11689 echo "$as_me: failed program was:" >&5
11690 sed 's/^/| /' conftest.$ac_ext >&5
11692 ac_header_compiler=no
11695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11696 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11697 echo "${ECHO_T}$ac_header_compiler" >&6; }
11699 # Is the header present?
11700 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11701 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11702 cat >conftest.$ac_ext <<_ACEOF
11705 cat confdefs.h >>conftest.$ac_ext
11706 cat >>conftest.$ac_ext <<_ACEOF
11707 /* end confdefs.h. */
11708 #include <$ac_header>
11710 if { (ac_try="$ac_cpp conftest.$ac_ext"
11711 case "(($ac_try" in
11712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11713 *) ac_try_echo=$ac_try;;
11715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11716 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11718 grep -v '^ *+' conftest.er1 >conftest.err
11720 cat conftest.err >&5
11721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722 (exit $ac_status); } >/dev/null; then
11723 if test -s conftest.err; then
11724 ac_cpp_err=$ac_c_preproc_warn_flag
11725 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11732 if test -z "$ac_cpp_err"; then
11733 ac_header_preproc=yes
11735 echo "$as_me: failed program was:" >&5
11736 sed 's/^/| /' conftest.$ac_ext >&5
11738 ac_header_preproc=no
11741 rm -f conftest.err conftest.$ac_ext
11742 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11743 echo "${ECHO_T}$ac_header_preproc" >&6; }
11745 # So? What about this header?
11746 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11748 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11749 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11750 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11751 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11752 ac_header_preproc=yes
11755 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11756 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11757 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11758 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11759 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11760 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11761 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11762 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11763 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11764 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11765 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11766 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11768 ## ----------------------------------- ##
11769 ## Report this to llvmbugs@cs.uiuc.edu ##
11770 ## ----------------------------------- ##
11772 ) | sed "s/^/$as_me: WARNING: /" >&2
11775 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11776 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11777 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11778 echo $ECHO_N "(cached) $ECHO_C" >&6
11780 eval "$as_ac_Header=\$ac_header_preproc"
11782 ac_res=`eval echo '${'$as_ac_Header'}'`
11783 { echo "$as_me:$LINENO: result: $ac_res" >&5
11784 echo "${ECHO_T}$ac_res" >&6; }
11787 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11788 cat >>confdefs.h <<_ACEOF
11789 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11800 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11802 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11804 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11806 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11807 echo $ECHO_N "(cached) $ECHO_C" >&6
11809 ac_res=`eval echo '${'$as_ac_Header'}'`
11810 { echo "$as_me:$LINENO: result: $ac_res" >&5
11811 echo "${ECHO_T}$ac_res" >&6; }
11813 # Is the header compilable?
11814 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11815 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11816 cat >conftest.$ac_ext <<_ACEOF
11819 cat confdefs.h >>conftest.$ac_ext
11820 cat >>conftest.$ac_ext <<_ACEOF
11821 /* end confdefs.h. */
11822 $ac_includes_default
11823 #include <$ac_header>
11825 rm -f conftest.$ac_objext
11826 if { (ac_try="$ac_compile"
11827 case "(($ac_try" in
11828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11829 *) ac_try_echo=$ac_try;;
11831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11832 (eval "$ac_compile") 2>conftest.er1
11834 grep -v '^ *+' conftest.er1 >conftest.err
11836 cat conftest.err >&5
11837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11838 (exit $ac_status); } &&
11839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11840 { (case "(($ac_try" in
11841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11842 *) ac_try_echo=$ac_try;;
11844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11845 (eval "$ac_try") 2>&5
11847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848 (exit $ac_status); }; } &&
11849 { ac_try='test -s conftest.$ac_objext'
11850 { (case "(($ac_try" in
11851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11852 *) ac_try_echo=$ac_try;;
11854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11855 (eval "$ac_try") 2>&5
11857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11858 (exit $ac_status); }; }; then
11859 ac_header_compiler=yes
11861 echo "$as_me: failed program was:" >&5
11862 sed 's/^/| /' conftest.$ac_ext >&5
11864 ac_header_compiler=no
11867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11868 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11869 echo "${ECHO_T}$ac_header_compiler" >&6; }
11871 # Is the header present?
11872 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11873 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11874 cat >conftest.$ac_ext <<_ACEOF
11877 cat confdefs.h >>conftest.$ac_ext
11878 cat >>conftest.$ac_ext <<_ACEOF
11879 /* end confdefs.h. */
11880 #include <$ac_header>
11882 if { (ac_try="$ac_cpp conftest.$ac_ext"
11883 case "(($ac_try" in
11884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11885 *) ac_try_echo=$ac_try;;
11887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11888 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11890 grep -v '^ *+' conftest.er1 >conftest.err
11892 cat conftest.err >&5
11893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11894 (exit $ac_status); } >/dev/null; then
11895 if test -s conftest.err; then
11896 ac_cpp_err=$ac_c_preproc_warn_flag
11897 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11904 if test -z "$ac_cpp_err"; then
11905 ac_header_preproc=yes
11907 echo "$as_me: failed program was:" >&5
11908 sed 's/^/| /' conftest.$ac_ext >&5
11910 ac_header_preproc=no
11913 rm -f conftest.err conftest.$ac_ext
11914 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11915 echo "${ECHO_T}$ac_header_preproc" >&6; }
11917 # So? What about this header?
11918 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11920 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11921 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11922 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11923 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11924 ac_header_preproc=yes
11927 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11928 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11929 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11930 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11931 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11932 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11933 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11934 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11935 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11936 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11937 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11938 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11940 ## ----------------------------------- ##
11941 ## Report this to llvmbugs@cs.uiuc.edu ##
11942 ## ----------------------------------- ##
11944 ) | sed "s/^/$as_me: WARNING: /" >&2
11947 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11949 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11950 echo $ECHO_N "(cached) $ECHO_C" >&6
11952 eval "$as_ac_Header=\$ac_header_preproc"
11954 ac_res=`eval echo '${'$as_ac_Header'}'`
11955 { echo "$as_me:$LINENO: result: $ac_res" >&5
11956 echo "${ECHO_T}$ac_res" >&6; }
11959 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11960 cat >>confdefs.h <<_ACEOF
11961 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11970 for ac_header in string.h strings.h
11972 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11973 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11974 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11975 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11976 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11977 echo $ECHO_N "(cached) $ECHO_C" >&6
11979 ac_res=`eval echo '${'$as_ac_Header'}'`
11980 { echo "$as_me:$LINENO: result: $ac_res" >&5
11981 echo "${ECHO_T}$ac_res" >&6; }
11983 # Is the header compilable?
11984 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11985 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11986 cat >conftest.$ac_ext <<_ACEOF
11989 cat confdefs.h >>conftest.$ac_ext
11990 cat >>conftest.$ac_ext <<_ACEOF
11991 /* end confdefs.h. */
11992 $ac_includes_default
11993 #include <$ac_header>
11995 rm -f conftest.$ac_objext
11996 if { (ac_try="$ac_compile"
11997 case "(($ac_try" in
11998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11999 *) ac_try_echo=$ac_try;;
12001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12002 (eval "$ac_compile") 2>conftest.er1
12004 grep -v '^ *+' conftest.er1 >conftest.err
12006 cat conftest.err >&5
12007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12008 (exit $ac_status); } &&
12009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12010 { (case "(($ac_try" in
12011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12012 *) ac_try_echo=$ac_try;;
12014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12015 (eval "$ac_try") 2>&5
12017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12018 (exit $ac_status); }; } &&
12019 { ac_try='test -s conftest.$ac_objext'
12020 { (case "(($ac_try" in
12021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12022 *) ac_try_echo=$ac_try;;
12024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12025 (eval "$ac_try") 2>&5
12027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028 (exit $ac_status); }; }; then
12029 ac_header_compiler=yes
12031 echo "$as_me: failed program was:" >&5
12032 sed 's/^/| /' conftest.$ac_ext >&5
12034 ac_header_compiler=no
12037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12038 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12039 echo "${ECHO_T}$ac_header_compiler" >&6; }
12041 # Is the header present?
12042 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12043 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12044 cat >conftest.$ac_ext <<_ACEOF
12047 cat confdefs.h >>conftest.$ac_ext
12048 cat >>conftest.$ac_ext <<_ACEOF
12049 /* end confdefs.h. */
12050 #include <$ac_header>
12052 if { (ac_try="$ac_cpp conftest.$ac_ext"
12053 case "(($ac_try" in
12054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12055 *) ac_try_echo=$ac_try;;
12057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12058 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12060 grep -v '^ *+' conftest.er1 >conftest.err
12062 cat conftest.err >&5
12063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12064 (exit $ac_status); } >/dev/null; then
12065 if test -s conftest.err; then
12066 ac_cpp_err=$ac_c_preproc_warn_flag
12067 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12074 if test -z "$ac_cpp_err"; then
12075 ac_header_preproc=yes
12077 echo "$as_me: failed program was:" >&5
12078 sed 's/^/| /' conftest.$ac_ext >&5
12080 ac_header_preproc=no
12083 rm -f conftest.err conftest.$ac_ext
12084 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12085 echo "${ECHO_T}$ac_header_preproc" >&6; }
12087 # So? What about this header?
12088 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12090 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12091 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12092 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12093 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12094 ac_header_preproc=yes
12097 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12098 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12099 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12100 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12101 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12102 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12103 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12104 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12105 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12106 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12107 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12108 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12110 ## ----------------------------------- ##
12111 ## Report this to llvmbugs@cs.uiuc.edu ##
12112 ## ----------------------------------- ##
12114 ) | sed "s/^/$as_me: WARNING: /" >&2
12117 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12118 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12119 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12120 echo $ECHO_N "(cached) $ECHO_C" >&6
12122 eval "$as_ac_Header=\$ac_header_preproc"
12124 ac_res=`eval echo '${'$as_ac_Header'}'`
12125 { echo "$as_me:$LINENO: result: $ac_res" >&5
12126 echo "${ECHO_T}$ac_res" >&6; }
12129 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12130 cat >>confdefs.h <<_ACEOF
12131 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12141 for ac_func in strchr index
12143 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12144 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12145 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12146 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12147 echo $ECHO_N "(cached) $ECHO_C" >&6
12149 cat >conftest.$ac_ext <<_ACEOF
12152 cat confdefs.h >>conftest.$ac_ext
12153 cat >>conftest.$ac_ext <<_ACEOF
12154 /* end confdefs.h. */
12155 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12156 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12157 #define $ac_func innocuous_$ac_func
12159 /* System header to define __stub macros and hopefully few prototypes,
12160 which can conflict with char $ac_func (); below.
12161 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12162 <limits.h> exists even on freestanding compilers. */
12165 # include <limits.h>
12167 # include <assert.h>
12172 /* Override any GCC internal prototype to avoid an error.
12173 Use char because int might match the return type of a GCC
12174 builtin and then its argument prototype would still apply. */
12179 /* The GNU C library defines this for functions which it implements
12180 to always fail with ENOSYS. Some functions are actually named
12181 something starting with __ and the normal name is an alias. */
12182 #if defined __stub_$ac_func || defined __stub___$ac_func
12189 return $ac_func ();
12194 rm -f conftest.$ac_objext conftest$ac_exeext
12195 if { (ac_try="$ac_link"
12196 case "(($ac_try" in
12197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12198 *) ac_try_echo=$ac_try;;
12200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12201 (eval "$ac_link") 2>conftest.er1
12203 grep -v '^ *+' conftest.er1 >conftest.err
12205 cat conftest.err >&5
12206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207 (exit $ac_status); } &&
12208 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12209 { (case "(($ac_try" in
12210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12211 *) ac_try_echo=$ac_try;;
12213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12214 (eval "$ac_try") 2>&5
12216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217 (exit $ac_status); }; } &&
12218 { ac_try='test -s conftest$ac_exeext'
12219 { (case "(($ac_try" in
12220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12221 *) ac_try_echo=$ac_try;;
12223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12224 (eval "$ac_try") 2>&5
12226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227 (exit $ac_status); }; }; then
12228 eval "$as_ac_var=yes"
12230 echo "$as_me: failed program was:" >&5
12231 sed 's/^/| /' conftest.$ac_ext >&5
12233 eval "$as_ac_var=no"
12236 rm -f core conftest.err conftest.$ac_objext \
12237 conftest$ac_exeext conftest.$ac_ext
12239 ac_res=`eval echo '${'$as_ac_var'}'`
12240 { echo "$as_me:$LINENO: result: $ac_res" >&5
12241 echo "${ECHO_T}$ac_res" >&6; }
12242 if test `eval echo '${'$as_ac_var'}'` = yes; then
12243 cat >>confdefs.h <<_ACEOF
12244 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12252 for ac_func in strrchr rindex
12254 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12255 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12256 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12257 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12258 echo $ECHO_N "(cached) $ECHO_C" >&6
12260 cat >conftest.$ac_ext <<_ACEOF
12263 cat confdefs.h >>conftest.$ac_ext
12264 cat >>conftest.$ac_ext <<_ACEOF
12265 /* end confdefs.h. */
12266 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12267 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12268 #define $ac_func innocuous_$ac_func
12270 /* System header to define __stub macros and hopefully few prototypes,
12271 which can conflict with char $ac_func (); below.
12272 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12273 <limits.h> exists even on freestanding compilers. */
12276 # include <limits.h>
12278 # include <assert.h>
12283 /* Override any GCC internal prototype to avoid an error.
12284 Use char because int might match the return type of a GCC
12285 builtin and then its argument prototype would still apply. */
12290 /* The GNU C library defines this for functions which it implements
12291 to always fail with ENOSYS. Some functions are actually named
12292 something starting with __ and the normal name is an alias. */
12293 #if defined __stub_$ac_func || defined __stub___$ac_func
12300 return $ac_func ();
12305 rm -f conftest.$ac_objext conftest$ac_exeext
12306 if { (ac_try="$ac_link"
12307 case "(($ac_try" in
12308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12309 *) ac_try_echo=$ac_try;;
12311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12312 (eval "$ac_link") 2>conftest.er1
12314 grep -v '^ *+' conftest.er1 >conftest.err
12316 cat conftest.err >&5
12317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318 (exit $ac_status); } &&
12319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12320 { (case "(($ac_try" in
12321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12322 *) ac_try_echo=$ac_try;;
12324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12325 (eval "$ac_try") 2>&5
12327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12328 (exit $ac_status); }; } &&
12329 { ac_try='test -s conftest$ac_exeext'
12330 { (case "(($ac_try" in
12331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12332 *) ac_try_echo=$ac_try;;
12334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12335 (eval "$ac_try") 2>&5
12337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338 (exit $ac_status); }; }; then
12339 eval "$as_ac_var=yes"
12341 echo "$as_me: failed program was:" >&5
12342 sed 's/^/| /' conftest.$ac_ext >&5
12344 eval "$as_ac_var=no"
12347 rm -f core conftest.err conftest.$ac_objext \
12348 conftest$ac_exeext conftest.$ac_ext
12350 ac_res=`eval echo '${'$as_ac_var'}'`
12351 { echo "$as_me:$LINENO: result: $ac_res" >&5
12352 echo "${ECHO_T}$ac_res" >&6; }
12353 if test `eval echo '${'$as_ac_var'}'` = yes; then
12354 cat >>confdefs.h <<_ACEOF
12355 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12363 for ac_func in memcpy bcopy
12365 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12366 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12367 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12368 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12369 echo $ECHO_N "(cached) $ECHO_C" >&6
12371 cat >conftest.$ac_ext <<_ACEOF
12374 cat confdefs.h >>conftest.$ac_ext
12375 cat >>conftest.$ac_ext <<_ACEOF
12376 /* end confdefs.h. */
12377 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12378 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12379 #define $ac_func innocuous_$ac_func
12381 /* System header to define __stub macros and hopefully few prototypes,
12382 which can conflict with char $ac_func (); below.
12383 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12384 <limits.h> exists even on freestanding compilers. */
12387 # include <limits.h>
12389 # include <assert.h>
12394 /* Override any GCC internal prototype to avoid an error.
12395 Use char because int might match the return type of a GCC
12396 builtin and then its argument prototype would still apply. */
12401 /* The GNU C library defines this for functions which it implements
12402 to always fail with ENOSYS. Some functions are actually named
12403 something starting with __ and the normal name is an alias. */
12404 #if defined __stub_$ac_func || defined __stub___$ac_func
12411 return $ac_func ();
12416 rm -f conftest.$ac_objext conftest$ac_exeext
12417 if { (ac_try="$ac_link"
12418 case "(($ac_try" in
12419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12420 *) ac_try_echo=$ac_try;;
12422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12423 (eval "$ac_link") 2>conftest.er1
12425 grep -v '^ *+' conftest.er1 >conftest.err
12427 cat conftest.err >&5
12428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429 (exit $ac_status); } &&
12430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12431 { (case "(($ac_try" in
12432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12433 *) ac_try_echo=$ac_try;;
12435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12436 (eval "$ac_try") 2>&5
12438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439 (exit $ac_status); }; } &&
12440 { ac_try='test -s conftest$ac_exeext'
12441 { (case "(($ac_try" in
12442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12443 *) ac_try_echo=$ac_try;;
12445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12446 (eval "$ac_try") 2>&5
12448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12449 (exit $ac_status); }; }; then
12450 eval "$as_ac_var=yes"
12452 echo "$as_me: failed program was:" >&5
12453 sed 's/^/| /' conftest.$ac_ext >&5
12455 eval "$as_ac_var=no"
12458 rm -f core conftest.err conftest.$ac_objext \
12459 conftest$ac_exeext conftest.$ac_ext
12461 ac_res=`eval echo '${'$as_ac_var'}'`
12462 { echo "$as_me:$LINENO: result: $ac_res" >&5
12463 echo "${ECHO_T}$ac_res" >&6; }
12464 if test `eval echo '${'$as_ac_var'}'` = yes; then
12465 cat >>confdefs.h <<_ACEOF
12466 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12474 for ac_func in memmove strcmp
12476 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12477 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12478 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12479 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12480 echo $ECHO_N "(cached) $ECHO_C" >&6
12482 cat >conftest.$ac_ext <<_ACEOF
12485 cat confdefs.h >>conftest.$ac_ext
12486 cat >>conftest.$ac_ext <<_ACEOF
12487 /* end confdefs.h. */
12488 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12489 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12490 #define $ac_func innocuous_$ac_func
12492 /* System header to define __stub macros and hopefully few prototypes,
12493 which can conflict with char $ac_func (); below.
12494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12495 <limits.h> exists even on freestanding compilers. */
12498 # include <limits.h>
12500 # include <assert.h>
12505 /* Override any GCC internal prototype to avoid an error.
12506 Use char because int might match the return type of a GCC
12507 builtin and then its argument prototype would still apply. */
12512 /* The GNU C library defines this for functions which it implements
12513 to always fail with ENOSYS. Some functions are actually named
12514 something starting with __ and the normal name is an alias. */
12515 #if defined __stub_$ac_func || defined __stub___$ac_func
12522 return $ac_func ();
12527 rm -f conftest.$ac_objext conftest$ac_exeext
12528 if { (ac_try="$ac_link"
12529 case "(($ac_try" in
12530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12531 *) ac_try_echo=$ac_try;;
12533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12534 (eval "$ac_link") 2>conftest.er1
12536 grep -v '^ *+' conftest.er1 >conftest.err
12538 cat conftest.err >&5
12539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540 (exit $ac_status); } &&
12541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12542 { (case "(($ac_try" in
12543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12544 *) ac_try_echo=$ac_try;;
12546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12547 (eval "$ac_try") 2>&5
12549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550 (exit $ac_status); }; } &&
12551 { ac_try='test -s conftest$ac_exeext'
12552 { (case "(($ac_try" in
12553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12554 *) ac_try_echo=$ac_try;;
12556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12557 (eval "$ac_try") 2>&5
12559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560 (exit $ac_status); }; }; then
12561 eval "$as_ac_var=yes"
12563 echo "$as_me: failed program was:" >&5
12564 sed 's/^/| /' conftest.$ac_ext >&5
12566 eval "$as_ac_var=no"
12569 rm -f core conftest.err conftest.$ac_objext \
12570 conftest$ac_exeext conftest.$ac_ext
12572 ac_res=`eval echo '${'$as_ac_var'}'`
12573 { echo "$as_me:$LINENO: result: $ac_res" >&5
12574 echo "${ECHO_T}$ac_res" >&6; }
12575 if test `eval echo '${'$as_ac_var'}'` = yes; then
12576 cat >>confdefs.h <<_ACEOF
12577 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12586 for ac_func in closedir opendir readdir
12588 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12589 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12590 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12591 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12592 echo $ECHO_N "(cached) $ECHO_C" >&6
12594 cat >conftest.$ac_ext <<_ACEOF
12597 cat confdefs.h >>conftest.$ac_ext
12598 cat >>conftest.$ac_ext <<_ACEOF
12599 /* end confdefs.h. */
12600 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12601 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12602 #define $ac_func innocuous_$ac_func
12604 /* System header to define __stub macros and hopefully few prototypes,
12605 which can conflict with char $ac_func (); below.
12606 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12607 <limits.h> exists even on freestanding compilers. */
12610 # include <limits.h>
12612 # include <assert.h>
12617 /* Override any GCC internal prototype to avoid an error.
12618 Use char because int might match the return type of a GCC
12619 builtin and then its argument prototype would still apply. */
12624 /* The GNU C library defines this for functions which it implements
12625 to always fail with ENOSYS. Some functions are actually named
12626 something starting with __ and the normal name is an alias. */
12627 #if defined __stub_$ac_func || defined __stub___$ac_func
12634 return $ac_func ();
12639 rm -f conftest.$ac_objext conftest$ac_exeext
12640 if { (ac_try="$ac_link"
12641 case "(($ac_try" in
12642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12643 *) ac_try_echo=$ac_try;;
12645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12646 (eval "$ac_link") 2>conftest.er1
12648 grep -v '^ *+' conftest.er1 >conftest.err
12650 cat conftest.err >&5
12651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12652 (exit $ac_status); } &&
12653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12654 { (case "(($ac_try" in
12655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12656 *) ac_try_echo=$ac_try;;
12658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12659 (eval "$ac_try") 2>&5
12661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12662 (exit $ac_status); }; } &&
12663 { ac_try='test -s conftest$ac_exeext'
12664 { (case "(($ac_try" in
12665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12666 *) ac_try_echo=$ac_try;;
12668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12669 (eval "$ac_try") 2>&5
12671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672 (exit $ac_status); }; }; then
12673 eval "$as_ac_var=yes"
12675 echo "$as_me: failed program was:" >&5
12676 sed 's/^/| /' conftest.$ac_ext >&5
12678 eval "$as_ac_var=no"
12681 rm -f core conftest.err conftest.$ac_objext \
12682 conftest$ac_exeext conftest.$ac_ext
12684 ac_res=`eval echo '${'$as_ac_var'}'`
12685 { echo "$as_me:$LINENO: result: $ac_res" >&5
12686 echo "${ECHO_T}$ac_res" >&6; }
12687 if test `eval echo '${'$as_ac_var'}'` = yes; then
12688 cat >>confdefs.h <<_ACEOF
12689 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12697 if test "$WITH_LLVMGCCDIR" = "default" ; then
12698 LLVMGCC="llvm-gcc${EXEEXT}"
12699 LLVMGXX="llvm-g++${EXEEXT}"
12700 LLVMGCCCOMMAND="$LLVMGCC"
12701 LLVMGXXCOMMAND="$LLVMGXX"
12702 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12704 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12706 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
12707 set dummy $LLVMGCC; ac_word=$2
12708 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12710 if test "${ac_cv_path_LLVMGCC+set}" = set; then
12711 echo $ECHO_N "(cached) $ECHO_C" >&6
12715 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
12718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12719 for as_dir in $PATH
12722 test -z "$as_dir" && as_dir=.
12723 for ac_exec_ext in '' $ac_executable_extensions; do
12724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12725 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
12726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12736 LLVMGCC=$ac_cv_path_LLVMGCC
12737 if test -n "$LLVMGCC"; then
12738 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
12739 echo "${ECHO_T}$LLVMGCC" >&6; }
12741 { echo "$as_me:$LINENO: result: no" >&5
12742 echo "${ECHO_T}no" >&6; }
12746 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
12747 set dummy $LLVMGXX; ac_word=$2
12748 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12750 if test "${ac_cv_path_LLVMGXX+set}" = set; then
12751 echo $ECHO_N "(cached) $ECHO_C" >&6
12755 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
12758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12759 for as_dir in $PATH
12762 test -z "$as_dir" && as_dir=.
12763 for ac_exec_ext in '' $ac_executable_extensions; do
12764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12765 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
12766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12776 LLVMGXX=$ac_cv_path_LLVMGXX
12777 if test -n "$LLVMGXX"; then
12778 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
12779 echo "${ECHO_T}$LLVMGXX" >&6; }
12781 { echo "$as_me:$LINENO: result: no" >&5
12782 echo "${ECHO_T}no" >&6; }
12787 if test -z "$LLVMGCC"; then
12788 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
12789 LLVMGCCCOMMAND="$LLVMGCC"
12791 if test -z "$LLVMGXX"; then
12792 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
12793 LLVMGXXCOMMAND="$LLVMGXX"
12800 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12802 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12807 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12808 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12821 if test "$GCC" != "yes" && test "$ICC" != "yes"
12823 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12824 echo "$as_me: error: gcc|icc required but not found" >&2;}
12825 { (exit 1); exit 1; }; }
12828 if test "$GXX" != "yes" && test "$IXX" != "yes"
12830 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
12831 echo "$as_me: error: g++|icc required but not found" >&2;}
12832 { (exit 1); exit 1; }; }
12835 if test "$GCC" = "yes"
12837 cat >conftest.$ac_ext <<_ACEOF
12838 #if !defined(__GNUC__) || __GNUC__ < 3
12839 #error Unsupported GCC version
12843 rm -f conftest.$ac_objext
12844 if { (ac_try="$ac_compile"
12845 case "(($ac_try" in
12846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12847 *) ac_try_echo=$ac_try;;
12849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12850 (eval "$ac_compile") 2>conftest.er1
12852 grep -v '^ *+' conftest.er1 >conftest.err
12854 cat conftest.err >&5
12855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856 (exit $ac_status); } &&
12857 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12858 { (case "(($ac_try" in
12859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12860 *) ac_try_echo=$ac_try;;
12862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12863 (eval "$ac_try") 2>&5
12865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12866 (exit $ac_status); }; } &&
12867 { ac_try='test -s conftest.$ac_objext'
12868 { (case "(($ac_try" in
12869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12870 *) ac_try_echo=$ac_try;;
12872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12873 (eval "$ac_try") 2>&5
12875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12876 (exit $ac_status); }; }; then
12879 echo "$as_me: failed program was:" >&5
12880 sed 's/^/| /' conftest.$ac_ext >&5
12882 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12883 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12884 { (exit 1); exit 1; }; }
12887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12890 if test -z "$llvm_cv_gnu_make_command"
12892 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12893 echo "$as_me: error: GNU Make required but not found" >&2;}
12894 { (exit 1); exit 1; }; }
12897 { echo "$as_me:$LINENO: result: ok" >&5
12898 echo "${ECHO_T}ok" >&6; }
12900 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12901 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12902 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12904 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12906 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12907 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
12911 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12912 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12913 if test "${ac_cv_lib_m_sin+set}" = set; then
12914 echo $ECHO_N "(cached) $ECHO_C" >&6
12916 ac_check_lib_save_LIBS=$LIBS
12918 cat >conftest.$ac_ext <<_ACEOF
12921 cat confdefs.h >>conftest.$ac_ext
12922 cat >>conftest.$ac_ext <<_ACEOF
12923 /* end confdefs.h. */
12925 /* Override any GCC internal prototype to avoid an error.
12926 Use char because int might match the return type of a GCC
12927 builtin and then its argument prototype would still apply. */
12940 rm -f conftest.$ac_objext conftest$ac_exeext
12941 if { (ac_try="$ac_link"
12942 case "(($ac_try" in
12943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12944 *) ac_try_echo=$ac_try;;
12946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12947 (eval "$ac_link") 2>conftest.er1
12949 grep -v '^ *+' conftest.er1 >conftest.err
12951 cat conftest.err >&5
12952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12953 (exit $ac_status); } &&
12954 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12955 { (case "(($ac_try" in
12956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12957 *) ac_try_echo=$ac_try;;
12959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12960 (eval "$ac_try") 2>&5
12962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12963 (exit $ac_status); }; } &&
12964 { ac_try='test -s conftest$ac_exeext'
12965 { (case "(($ac_try" in
12966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12967 *) ac_try_echo=$ac_try;;
12969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12970 (eval "$ac_try") 2>&5
12972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12973 (exit $ac_status); }; }; then
12974 ac_cv_lib_m_sin=yes
12976 echo "$as_me: failed program was:" >&5
12977 sed 's/^/| /' conftest.$ac_ext >&5
12982 rm -f core conftest.err conftest.$ac_objext \
12983 conftest$ac_exeext conftest.$ac_ext
12984 LIBS=$ac_check_lib_save_LIBS
12986 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12987 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12988 if test $ac_cv_lib_m_sin = yes; then
12989 cat >>confdefs.h <<_ACEOF
12990 #define HAVE_LIBM 1
12997 if test "$llvm_cv_os_type" = "MingW" ; then
12999 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13000 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13001 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13002 echo $ECHO_N "(cached) $ECHO_C" >&6
13004 ac_check_lib_save_LIBS=$LIBS
13005 LIBS="-limagehlp $LIBS"
13006 cat >conftest.$ac_ext <<_ACEOF
13009 cat confdefs.h >>conftest.$ac_ext
13010 cat >>conftest.$ac_ext <<_ACEOF
13011 /* end confdefs.h. */
13022 rm -f conftest.$ac_objext conftest$ac_exeext
13023 if { (ac_try="$ac_link"
13024 case "(($ac_try" in
13025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13026 *) ac_try_echo=$ac_try;;
13028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13029 (eval "$ac_link") 2>conftest.er1
13031 grep -v '^ *+' conftest.er1 >conftest.err
13033 cat conftest.err >&5
13034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13035 (exit $ac_status); } &&
13036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13037 { (case "(($ac_try" in
13038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13039 *) ac_try_echo=$ac_try;;
13041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13042 (eval "$ac_try") 2>&5
13044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13045 (exit $ac_status); }; } &&
13046 { ac_try='test -s conftest$ac_exeext'
13047 { (case "(($ac_try" in
13048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13049 *) ac_try_echo=$ac_try;;
13051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13052 (eval "$ac_try") 2>&5
13054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13055 (exit $ac_status); }; }; then
13056 ac_cv_lib_imagehlp_main=yes
13058 echo "$as_me: failed program was:" >&5
13059 sed 's/^/| /' conftest.$ac_ext >&5
13061 ac_cv_lib_imagehlp_main=no
13064 rm -f core conftest.err conftest.$ac_objext \
13065 conftest$ac_exeext conftest.$ac_ext
13066 LIBS=$ac_check_lib_save_LIBS
13068 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13069 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13070 if test $ac_cv_lib_imagehlp_main = yes; then
13071 cat >>confdefs.h <<_ACEOF
13072 #define HAVE_LIBIMAGEHLP 1
13075 LIBS="-limagehlp $LIBS"
13080 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13081 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13082 if test "${ac_cv_lib_psapi_main+set}" = set; then
13083 echo $ECHO_N "(cached) $ECHO_C" >&6
13085 ac_check_lib_save_LIBS=$LIBS
13086 LIBS="-lpsapi $LIBS"
13087 cat >conftest.$ac_ext <<_ACEOF
13090 cat confdefs.h >>conftest.$ac_ext
13091 cat >>conftest.$ac_ext <<_ACEOF
13092 /* end confdefs.h. */
13103 rm -f conftest.$ac_objext conftest$ac_exeext
13104 if { (ac_try="$ac_link"
13105 case "(($ac_try" in
13106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13107 *) ac_try_echo=$ac_try;;
13109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13110 (eval "$ac_link") 2>conftest.er1
13112 grep -v '^ *+' conftest.er1 >conftest.err
13114 cat conftest.err >&5
13115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116 (exit $ac_status); } &&
13117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13118 { (case "(($ac_try" in
13119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13120 *) ac_try_echo=$ac_try;;
13122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13123 (eval "$ac_try") 2>&5
13125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126 (exit $ac_status); }; } &&
13127 { ac_try='test -s conftest$ac_exeext'
13128 { (case "(($ac_try" in
13129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13130 *) ac_try_echo=$ac_try;;
13132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13133 (eval "$ac_try") 2>&5
13135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13136 (exit $ac_status); }; }; then
13137 ac_cv_lib_psapi_main=yes
13139 echo "$as_me: failed program was:" >&5
13140 sed 's/^/| /' conftest.$ac_ext >&5
13142 ac_cv_lib_psapi_main=no
13145 rm -f core conftest.err conftest.$ac_objext \
13146 conftest$ac_exeext conftest.$ac_ext
13147 LIBS=$ac_check_lib_save_LIBS
13149 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13150 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13151 if test $ac_cv_lib_psapi_main = yes; then
13152 cat >>confdefs.h <<_ACEOF
13153 #define HAVE_LIBPSAPI 1
13156 LIBS="-lpsapi $LIBS"
13162 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13163 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13164 if test "${ac_cv_search_dlopen+set}" = set; then
13165 echo $ECHO_N "(cached) $ECHO_C" >&6
13167 ac_func_search_save_LIBS=$LIBS
13168 cat >conftest.$ac_ext <<_ACEOF
13171 cat confdefs.h >>conftest.$ac_ext
13172 cat >>conftest.$ac_ext <<_ACEOF
13173 /* end confdefs.h. */
13175 /* Override any GCC internal prototype to avoid an error.
13176 Use char because int might match the return type of a GCC
13177 builtin and then its argument prototype would still apply. */
13190 for ac_lib in '' dl; do
13191 if test -z "$ac_lib"; then
13192 ac_res="none required"
13195 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13197 rm -f conftest.$ac_objext conftest$ac_exeext
13198 if { (ac_try="$ac_link"
13199 case "(($ac_try" in
13200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13201 *) ac_try_echo=$ac_try;;
13203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13204 (eval "$ac_link") 2>conftest.er1
13206 grep -v '^ *+' conftest.er1 >conftest.err
13208 cat conftest.err >&5
13209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210 (exit $ac_status); } &&
13211 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13212 { (case "(($ac_try" in
13213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13214 *) ac_try_echo=$ac_try;;
13216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13217 (eval "$ac_try") 2>&5
13219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13220 (exit $ac_status); }; } &&
13221 { ac_try='test -s conftest$ac_exeext'
13222 { (case "(($ac_try" in
13223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13224 *) ac_try_echo=$ac_try;;
13226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13227 (eval "$ac_try") 2>&5
13229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13230 (exit $ac_status); }; }; then
13231 ac_cv_search_dlopen=$ac_res
13233 echo "$as_me: failed program was:" >&5
13234 sed 's/^/| /' conftest.$ac_ext >&5
13239 rm -f core conftest.err conftest.$ac_objext \
13241 if test "${ac_cv_search_dlopen+set}" = set; then
13245 if test "${ac_cv_search_dlopen+set}" = set; then
13248 ac_cv_search_dlopen=no
13250 rm conftest.$ac_ext
13251 LIBS=$ac_func_search_save_LIBS
13253 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13254 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13255 ac_res=$ac_cv_search_dlopen
13256 if test "$ac_res" != no; then
13257 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13259 cat >>confdefs.h <<\_ACEOF
13260 #define HAVE_DLOPEN 1
13264 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13265 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
13269 if test "$llvm_cv_enable_libffi" = "yes" ; then
13270 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13271 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13272 if test "${ac_cv_search_ffi_call+set}" = set; then
13273 echo $ECHO_N "(cached) $ECHO_C" >&6
13275 ac_func_search_save_LIBS=$LIBS
13276 cat >conftest.$ac_ext <<_ACEOF
13279 cat confdefs.h >>conftest.$ac_ext
13280 cat >>conftest.$ac_ext <<_ACEOF
13281 /* end confdefs.h. */
13283 /* Override any GCC internal prototype to avoid an error.
13284 Use char because int might match the return type of a GCC
13285 builtin and then its argument prototype would still apply. */
13293 return ffi_call ();
13298 for ac_lib in '' ffi; do
13299 if test -z "$ac_lib"; then
13300 ac_res="none required"
13303 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13305 rm -f conftest.$ac_objext conftest$ac_exeext
13306 if { (ac_try="$ac_link"
13307 case "(($ac_try" in
13308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13309 *) ac_try_echo=$ac_try;;
13311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13312 (eval "$ac_link") 2>conftest.er1
13314 grep -v '^ *+' conftest.er1 >conftest.err
13316 cat conftest.err >&5
13317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318 (exit $ac_status); } &&
13319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13320 { (case "(($ac_try" in
13321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13322 *) ac_try_echo=$ac_try;;
13324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13325 (eval "$ac_try") 2>&5
13327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13328 (exit $ac_status); }; } &&
13329 { ac_try='test -s conftest$ac_exeext'
13330 { (case "(($ac_try" in
13331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13332 *) ac_try_echo=$ac_try;;
13334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13335 (eval "$ac_try") 2>&5
13337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13338 (exit $ac_status); }; }; then
13339 ac_cv_search_ffi_call=$ac_res
13341 echo "$as_me: failed program was:" >&5
13342 sed 's/^/| /' conftest.$ac_ext >&5
13347 rm -f core conftest.err conftest.$ac_objext \
13349 if test "${ac_cv_search_ffi_call+set}" = set; then
13353 if test "${ac_cv_search_ffi_call+set}" = set; then
13356 ac_cv_search_ffi_call=no
13358 rm conftest.$ac_ext
13359 LIBS=$ac_func_search_save_LIBS
13361 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13362 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
13363 ac_res=$ac_cv_search_ffi_call
13364 if test "$ac_res" != no; then
13365 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13367 cat >>confdefs.h <<\_ACEOF
13368 #define HAVE_FFI_CALL 1
13372 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13373 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13374 { (exit 1); exit 1; }; }
13379 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13380 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13381 if test "${ac_cv_search_mallinfo+set}" = set; then
13382 echo $ECHO_N "(cached) $ECHO_C" >&6
13384 ac_func_search_save_LIBS=$LIBS
13385 cat >conftest.$ac_ext <<_ACEOF
13388 cat confdefs.h >>conftest.$ac_ext
13389 cat >>conftest.$ac_ext <<_ACEOF
13390 /* end confdefs.h. */
13392 /* Override any GCC internal prototype to avoid an error.
13393 Use char because int might match the return type of a GCC
13394 builtin and then its argument prototype would still apply. */
13402 return mallinfo ();
13407 for ac_lib in '' malloc; do
13408 if test -z "$ac_lib"; then
13409 ac_res="none required"
13412 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13414 rm -f conftest.$ac_objext conftest$ac_exeext
13415 if { (ac_try="$ac_link"
13416 case "(($ac_try" in
13417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13418 *) ac_try_echo=$ac_try;;
13420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13421 (eval "$ac_link") 2>conftest.er1
13423 grep -v '^ *+' conftest.er1 >conftest.err
13425 cat conftest.err >&5
13426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427 (exit $ac_status); } &&
13428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13429 { (case "(($ac_try" in
13430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13431 *) ac_try_echo=$ac_try;;
13433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13434 (eval "$ac_try") 2>&5
13436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437 (exit $ac_status); }; } &&
13438 { ac_try='test -s conftest$ac_exeext'
13439 { (case "(($ac_try" in
13440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13441 *) ac_try_echo=$ac_try;;
13443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13444 (eval "$ac_try") 2>&5
13446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447 (exit $ac_status); }; }; then
13448 ac_cv_search_mallinfo=$ac_res
13450 echo "$as_me: failed program was:" >&5
13451 sed 's/^/| /' conftest.$ac_ext >&5
13456 rm -f core conftest.err conftest.$ac_objext \
13458 if test "${ac_cv_search_mallinfo+set}" = set; then
13462 if test "${ac_cv_search_mallinfo+set}" = set; then
13465 ac_cv_search_mallinfo=no
13467 rm conftest.$ac_ext
13468 LIBS=$ac_func_search_save_LIBS
13470 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13471 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13472 ac_res=$ac_cv_search_mallinfo
13473 if test "$ac_res" != no; then
13474 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13476 cat >>confdefs.h <<\_ACEOF
13477 #define HAVE_MALLINFO 1
13483 if test "$ENABLE_THREADS" -eq 1 ; then
13485 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13486 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13487 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13488 echo $ECHO_N "(cached) $ECHO_C" >&6
13490 ac_check_lib_save_LIBS=$LIBS
13491 LIBS="-lpthread $LIBS"
13492 cat >conftest.$ac_ext <<_ACEOF
13495 cat confdefs.h >>conftest.$ac_ext
13496 cat >>conftest.$ac_ext <<_ACEOF
13497 /* end confdefs.h. */
13499 /* Override any GCC internal prototype to avoid an error.
13500 Use char because int might match the return type of a GCC
13501 builtin and then its argument prototype would still apply. */
13505 char pthread_mutex_init ();
13509 return pthread_mutex_init ();
13514 rm -f conftest.$ac_objext conftest$ac_exeext
13515 if { (ac_try="$ac_link"
13516 case "(($ac_try" in
13517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13518 *) ac_try_echo=$ac_try;;
13520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13521 (eval "$ac_link") 2>conftest.er1
13523 grep -v '^ *+' conftest.er1 >conftest.err
13525 cat conftest.err >&5
13526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527 (exit $ac_status); } &&
13528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13529 { (case "(($ac_try" in
13530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13531 *) ac_try_echo=$ac_try;;
13533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13534 (eval "$ac_try") 2>&5
13536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13537 (exit $ac_status); }; } &&
13538 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
13546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547 (exit $ac_status); }; }; then
13548 ac_cv_lib_pthread_pthread_mutex_init=yes
13550 echo "$as_me: failed program was:" >&5
13551 sed 's/^/| /' conftest.$ac_ext >&5
13553 ac_cv_lib_pthread_pthread_mutex_init=no
13556 rm -f core conftest.err conftest.$ac_objext \
13557 conftest$ac_exeext conftest.$ac_ext
13558 LIBS=$ac_check_lib_save_LIBS
13560 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13561 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13562 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13563 cat >>confdefs.h <<_ACEOF
13564 #define HAVE_LIBPTHREAD 1
13567 LIBS="-lpthread $LIBS"
13571 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13572 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13573 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13574 echo $ECHO_N "(cached) $ECHO_C" >&6
13576 ac_func_search_save_LIBS=$LIBS
13577 cat >conftest.$ac_ext <<_ACEOF
13580 cat confdefs.h >>conftest.$ac_ext
13581 cat >>conftest.$ac_ext <<_ACEOF
13582 /* end confdefs.h. */
13584 /* Override any GCC internal prototype to avoid an error.
13585 Use char because int might match the return type of a GCC
13586 builtin and then its argument prototype would still apply. */
13590 char pthread_mutex_lock ();
13594 return pthread_mutex_lock ();
13599 for ac_lib in '' pthread; do
13600 if test -z "$ac_lib"; then
13601 ac_res="none required"
13604 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13606 rm -f conftest.$ac_objext conftest$ac_exeext
13607 if { (ac_try="$ac_link"
13608 case "(($ac_try" in
13609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13610 *) ac_try_echo=$ac_try;;
13612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13613 (eval "$ac_link") 2>conftest.er1
13615 grep -v '^ *+' conftest.er1 >conftest.err
13617 cat conftest.err >&5
13618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13619 (exit $ac_status); } &&
13620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13621 { (case "(($ac_try" in
13622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13623 *) ac_try_echo=$ac_try;;
13625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13626 (eval "$ac_try") 2>&5
13628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629 (exit $ac_status); }; } &&
13630 { ac_try='test -s conftest$ac_exeext'
13631 { (case "(($ac_try" in
13632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13633 *) ac_try_echo=$ac_try;;
13635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13636 (eval "$ac_try") 2>&5
13638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639 (exit $ac_status); }; }; then
13640 ac_cv_search_pthread_mutex_lock=$ac_res
13642 echo "$as_me: failed program was:" >&5
13643 sed 's/^/| /' conftest.$ac_ext >&5
13648 rm -f core conftest.err conftest.$ac_objext \
13650 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13654 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13657 ac_cv_search_pthread_mutex_lock=no
13659 rm conftest.$ac_ext
13660 LIBS=$ac_func_search_save_LIBS
13662 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13663 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13664 ac_res=$ac_cv_search_pthread_mutex_lock
13665 if test "$ac_res" != no; then
13666 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13668 cat >>confdefs.h <<\_ACEOF
13669 #define HAVE_PTHREAD_MUTEX_LOCK 1
13674 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13675 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13676 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13677 echo $ECHO_N "(cached) $ECHO_C" >&6
13679 ac_func_search_save_LIBS=$LIBS
13680 cat >conftest.$ac_ext <<_ACEOF
13683 cat confdefs.h >>conftest.$ac_ext
13684 cat >>conftest.$ac_ext <<_ACEOF
13685 /* end confdefs.h. */
13687 /* Override any GCC internal prototype to avoid an error.
13688 Use char because int might match the return type of a GCC
13689 builtin and then its argument prototype would still apply. */
13693 char pthread_rwlock_init ();
13697 return pthread_rwlock_init ();
13702 for ac_lib in '' pthread; do
13703 if test -z "$ac_lib"; then
13704 ac_res="none required"
13707 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13709 rm -f conftest.$ac_objext conftest$ac_exeext
13710 if { (ac_try="$ac_link"
13711 case "(($ac_try" in
13712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13713 *) ac_try_echo=$ac_try;;
13715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13716 (eval "$ac_link") 2>conftest.er1
13718 grep -v '^ *+' conftest.er1 >conftest.err
13720 cat conftest.err >&5
13721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13722 (exit $ac_status); } &&
13723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13724 { (case "(($ac_try" in
13725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13726 *) ac_try_echo=$ac_try;;
13728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13729 (eval "$ac_try") 2>&5
13731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13732 (exit $ac_status); }; } &&
13733 { ac_try='test -s conftest$ac_exeext'
13734 { (case "(($ac_try" in
13735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13736 *) ac_try_echo=$ac_try;;
13738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13739 (eval "$ac_try") 2>&5
13741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742 (exit $ac_status); }; }; then
13743 ac_cv_search_pthread_rwlock_init=$ac_res
13745 echo "$as_me: failed program was:" >&5
13746 sed 's/^/| /' conftest.$ac_ext >&5
13751 rm -f core conftest.err conftest.$ac_objext \
13753 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13757 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13760 ac_cv_search_pthread_rwlock_init=no
13762 rm conftest.$ac_ext
13763 LIBS=$ac_func_search_save_LIBS
13765 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13766 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13767 ac_res=$ac_cv_search_pthread_rwlock_init
13768 if test "$ac_res" != no; then
13769 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13771 cat >>confdefs.h <<\_ACEOF
13772 #define HAVE_PTHREAD_RWLOCK_INIT 1
13777 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13778 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13779 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13780 echo $ECHO_N "(cached) $ECHO_C" >&6
13782 ac_func_search_save_LIBS=$LIBS
13783 cat >conftest.$ac_ext <<_ACEOF
13786 cat confdefs.h >>conftest.$ac_ext
13787 cat >>conftest.$ac_ext <<_ACEOF
13788 /* end confdefs.h. */
13790 /* Override any GCC internal prototype to avoid an error.
13791 Use char because int might match the return type of a GCC
13792 builtin and then its argument prototype would still apply. */
13796 char pthread_getspecific ();
13800 return pthread_getspecific ();
13805 for ac_lib in '' pthread; do
13806 if test -z "$ac_lib"; then
13807 ac_res="none required"
13810 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13812 rm -f conftest.$ac_objext conftest$ac_exeext
13813 if { (ac_try="$ac_link"
13814 case "(($ac_try" in
13815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13816 *) ac_try_echo=$ac_try;;
13818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13819 (eval "$ac_link") 2>conftest.er1
13821 grep -v '^ *+' conftest.er1 >conftest.err
13823 cat conftest.err >&5
13824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13825 (exit $ac_status); } &&
13826 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13827 { (case "(($ac_try" in
13828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13829 *) ac_try_echo=$ac_try;;
13831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13832 (eval "$ac_try") 2>&5
13834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835 (exit $ac_status); }; } &&
13836 { ac_try='test -s conftest$ac_exeext'
13837 { (case "(($ac_try" in
13838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13839 *) ac_try_echo=$ac_try;;
13841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13842 (eval "$ac_try") 2>&5
13844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13845 (exit $ac_status); }; }; then
13846 ac_cv_search_pthread_getspecific=$ac_res
13848 echo "$as_me: failed program was:" >&5
13849 sed 's/^/| /' conftest.$ac_ext >&5
13854 rm -f core conftest.err conftest.$ac_objext \
13856 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13860 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13863 ac_cv_search_pthread_getspecific=no
13865 rm conftest.$ac_ext
13866 LIBS=$ac_func_search_save_LIBS
13868 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13869 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13870 ac_res=$ac_cv_search_pthread_getspecific
13871 if test "$ac_res" != no; then
13872 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13874 cat >>confdefs.h <<\_ACEOF
13875 #define HAVE_PTHREAD_GETSPECIFIC 1
13883 # Check whether --with-udis86 was given.
13884 if test "${with_udis86+set}" = set; then
13885 withval=$with_udis86;
13890 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13893 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13894 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13895 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13896 echo $ECHO_N "(cached) $ECHO_C" >&6
13898 ac_check_lib_save_LIBS=$LIBS
13899 LIBS="-ludis86 $LIBS"
13900 cat >conftest.$ac_ext <<_ACEOF
13903 cat confdefs.h >>conftest.$ac_ext
13904 cat >>conftest.$ac_ext <<_ACEOF
13905 /* end confdefs.h. */
13907 /* Override any GCC internal prototype to avoid an error.
13908 Use char because int might match the return type of a GCC
13909 builtin and then its argument prototype would still apply. */
13922 rm -f conftest.$ac_objext conftest$ac_exeext
13923 if { (ac_try="$ac_link"
13924 case "(($ac_try" in
13925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13926 *) ac_try_echo=$ac_try;;
13928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13929 (eval "$ac_link") 2>conftest.er1
13931 grep -v '^ *+' conftest.er1 >conftest.err
13933 cat conftest.err >&5
13934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935 (exit $ac_status); } &&
13936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
13944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945 (exit $ac_status); }; } &&
13946 { ac_try='test -s conftest$ac_exeext'
13947 { (case "(($ac_try" in
13948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13949 *) ac_try_echo=$ac_try;;
13951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13952 (eval "$ac_try") 2>&5
13954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13955 (exit $ac_status); }; }; then
13956 ac_cv_lib_udis86_ud_init=yes
13958 echo "$as_me: failed program was:" >&5
13959 sed 's/^/| /' conftest.$ac_ext >&5
13961 ac_cv_lib_udis86_ud_init=no
13964 rm -f core conftest.err conftest.$ac_objext \
13965 conftest$ac_exeext conftest.$ac_ext
13966 LIBS=$ac_check_lib_save_LIBS
13968 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13969 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13970 if test $ac_cv_lib_udis86_ud_init = yes; then
13971 cat >>confdefs.h <<_ACEOF
13972 #define HAVE_LIBUDIS86 1
13975 LIBS="-ludis86 $LIBS"
13979 echo "Error! You need to have libudis86 around."
13991 cat >>confdefs.h <<_ACEOF
13992 #define USE_UDIS86 $USE_UDIS86
13997 # Check whether --with-oprofile was given.
13998 if test "${with_oprofile+set}" = set; then
13999 withval=$with_oprofile;
14003 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
14004 no) llvm_cv_oppath=
14007 *) llvm_cv_oppath="${withval}/lib/oprofile"
14008 CPPFLAGS="-I${withval}/include";;
14010 if test -n "$llvm_cv_oppath" ; then
14011 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
14012 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14013 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14014 if test "${ac_cv_search_bfd_init+set}" = set; then
14015 echo $ECHO_N "(cached) $ECHO_C" >&6
14017 ac_func_search_save_LIBS=$LIBS
14018 cat >conftest.$ac_ext <<_ACEOF
14021 cat confdefs.h >>conftest.$ac_ext
14022 cat >>conftest.$ac_ext <<_ACEOF
14023 /* end confdefs.h. */
14025 /* Override any GCC internal prototype to avoid an error.
14026 Use char because int might match the return type of a GCC
14027 builtin and then its argument prototype would still apply. */
14035 return bfd_init ();
14040 for ac_lib in '' bfd; do
14041 if test -z "$ac_lib"; then
14042 ac_res="none required"
14045 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14047 rm -f conftest.$ac_objext conftest$ac_exeext
14048 if { (ac_try="$ac_link"
14049 case "(($ac_try" in
14050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14051 *) ac_try_echo=$ac_try;;
14053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14054 (eval "$ac_link") 2>conftest.er1
14056 grep -v '^ *+' conftest.er1 >conftest.err
14058 cat conftest.err >&5
14059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14060 (exit $ac_status); } &&
14061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14062 { (case "(($ac_try" in
14063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14064 *) ac_try_echo=$ac_try;;
14066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14067 (eval "$ac_try") 2>&5
14069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14070 (exit $ac_status); }; } &&
14071 { ac_try='test -s conftest$ac_exeext'
14072 { (case "(($ac_try" in
14073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14074 *) ac_try_echo=$ac_try;;
14076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14077 (eval "$ac_try") 2>&5
14079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14080 (exit $ac_status); }; }; then
14081 ac_cv_search_bfd_init=$ac_res
14083 echo "$as_me: failed program was:" >&5
14084 sed 's/^/| /' conftest.$ac_ext >&5
14089 rm -f core conftest.err conftest.$ac_objext \
14091 if test "${ac_cv_search_bfd_init+set}" = set; then
14095 if test "${ac_cv_search_bfd_init+set}" = set; then
14098 ac_cv_search_bfd_init=no
14100 rm conftest.$ac_ext
14101 LIBS=$ac_func_search_save_LIBS
14103 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14104 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
14105 ac_res=$ac_cv_search_bfd_init
14106 if test "$ac_res" != no; then
14107 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14111 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14112 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14113 if test "${ac_cv_search_op_open_agent+set}" = set; then
14114 echo $ECHO_N "(cached) $ECHO_C" >&6
14116 ac_func_search_save_LIBS=$LIBS
14117 cat >conftest.$ac_ext <<_ACEOF
14120 cat confdefs.h >>conftest.$ac_ext
14121 cat >>conftest.$ac_ext <<_ACEOF
14122 /* end confdefs.h. */
14124 /* Override any GCC internal prototype to avoid an error.
14125 Use char because int might match the return type of a GCC
14126 builtin and then its argument prototype would still apply. */
14130 char op_open_agent ();
14134 return op_open_agent ();
14139 for ac_lib in '' opagent; do
14140 if test -z "$ac_lib"; then
14141 ac_res="none required"
14144 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14146 rm -f conftest.$ac_objext conftest$ac_exeext
14147 if { (ac_try="$ac_link"
14148 case "(($ac_try" in
14149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14150 *) ac_try_echo=$ac_try;;
14152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14153 (eval "$ac_link") 2>conftest.er1
14155 grep -v '^ *+' conftest.er1 >conftest.err
14157 cat conftest.err >&5
14158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14159 (exit $ac_status); } &&
14160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14161 { (case "(($ac_try" in
14162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14163 *) ac_try_echo=$ac_try;;
14165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14166 (eval "$ac_try") 2>&5
14168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169 (exit $ac_status); }; } &&
14170 { ac_try='test -s conftest$ac_exeext'
14171 { (case "(($ac_try" in
14172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14173 *) ac_try_echo=$ac_try;;
14175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14176 (eval "$ac_try") 2>&5
14178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179 (exit $ac_status); }; }; then
14180 ac_cv_search_op_open_agent=$ac_res
14182 echo "$as_me: failed program was:" >&5
14183 sed 's/^/| /' conftest.$ac_ext >&5
14188 rm -f core conftest.err conftest.$ac_objext \
14190 if test "${ac_cv_search_op_open_agent+set}" = set; then
14194 if test "${ac_cv_search_op_open_agent+set}" = set; then
14197 ac_cv_search_op_open_agent=no
14199 rm conftest.$ac_ext
14200 LIBS=$ac_func_search_save_LIBS
14202 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14203 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
14204 ac_res=$ac_cv_search_op_open_agent
14205 if test "$ac_res" != no; then
14206 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14210 echo "Error! You need to have libopagent around."
14215 if test "${ac_cv_header_opagent_h+set}" = set; then
14216 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14217 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14218 if test "${ac_cv_header_opagent_h+set}" = set; then
14219 echo $ECHO_N "(cached) $ECHO_C" >&6
14221 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14222 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14224 # Is the header compilable?
14225 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
14226 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14227 cat >conftest.$ac_ext <<_ACEOF
14230 cat confdefs.h >>conftest.$ac_ext
14231 cat >>conftest.$ac_ext <<_ACEOF
14232 /* end confdefs.h. */
14233 $ac_includes_default
14234 #include <opagent.h>
14236 rm -f conftest.$ac_objext
14237 if { (ac_try="$ac_compile"
14238 case "(($ac_try" in
14239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14240 *) ac_try_echo=$ac_try;;
14242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14243 (eval "$ac_compile") 2>conftest.er1
14245 grep -v '^ *+' conftest.er1 >conftest.err
14247 cat conftest.err >&5
14248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14249 (exit $ac_status); } &&
14250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14251 { (case "(($ac_try" in
14252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14253 *) ac_try_echo=$ac_try;;
14255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14256 (eval "$ac_try") 2>&5
14258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14259 (exit $ac_status); }; } &&
14260 { ac_try='test -s conftest.$ac_objext'
14261 { (case "(($ac_try" in
14262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14263 *) ac_try_echo=$ac_try;;
14265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14266 (eval "$ac_try") 2>&5
14268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14269 (exit $ac_status); }; }; then
14270 ac_header_compiler=yes
14272 echo "$as_me: failed program was:" >&5
14273 sed 's/^/| /' conftest.$ac_ext >&5
14275 ac_header_compiler=no
14278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14279 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14280 echo "${ECHO_T}$ac_header_compiler" >&6; }
14282 # Is the header present?
14283 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
14284 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14285 cat >conftest.$ac_ext <<_ACEOF
14288 cat confdefs.h >>conftest.$ac_ext
14289 cat >>conftest.$ac_ext <<_ACEOF
14290 /* end confdefs.h. */
14291 #include <opagent.h>
14293 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
14301 grep -v '^ *+' conftest.er1 >conftest.err
14303 cat conftest.err >&5
14304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14305 (exit $ac_status); } >/dev/null; then
14306 if test -s conftest.err; then
14307 ac_cpp_err=$ac_c_preproc_warn_flag
14308 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14315 if test -z "$ac_cpp_err"; then
14316 ac_header_preproc=yes
14318 echo "$as_me: failed program was:" >&5
14319 sed 's/^/| /' conftest.$ac_ext >&5
14321 ac_header_preproc=no
14324 rm -f conftest.err conftest.$ac_ext
14325 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14326 echo "${ECHO_T}$ac_header_preproc" >&6; }
14328 # So? What about this header?
14329 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14331 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14332 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14333 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14334 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14335 ac_header_preproc=yes
14338 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14339 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14340 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14341 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14342 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14343 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14344 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14345 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14346 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14347 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14348 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14349 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14351 ## ----------------------------------- ##
14352 ## Report this to llvmbugs@cs.uiuc.edu ##
14353 ## ----------------------------------- ##
14355 ) | sed "s/^/$as_me: WARNING: /" >&2
14358 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14359 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14360 if test "${ac_cv_header_opagent_h+set}" = set; then
14361 echo $ECHO_N "(cached) $ECHO_C" >&6
14363 ac_cv_header_opagent_h=$ac_header_preproc
14365 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14366 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14369 if test $ac_cv_header_opagent_h = yes; then
14373 echo "Error! You need to have opagent.h around."
14389 cat >>confdefs.h <<_ACEOF
14390 #define USE_OPROFILE $USE_OPROFILE
14400 ac_header_dirent=no
14401 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14402 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14403 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14404 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14405 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14406 echo $ECHO_N "(cached) $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 <sys/types.h>
14426 rm -f conftest.$ac_objext
14427 if { (ac_try="$ac_compile"
14428 case "(($ac_try" in
14429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14430 *) ac_try_echo=$ac_try;;
14432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14433 (eval "$ac_compile") 2>conftest.er1
14435 grep -v '^ *+' conftest.er1 >conftest.err
14437 cat conftest.err >&5
14438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14439 (exit $ac_status); } &&
14440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14441 { (case "(($ac_try" in
14442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14443 *) ac_try_echo=$ac_try;;
14445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14446 (eval "$ac_try") 2>&5
14448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14449 (exit $ac_status); }; } &&
14450 { ac_try='test -s conftest.$ac_objext'
14451 { (case "(($ac_try" in
14452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14453 *) ac_try_echo=$ac_try;;
14455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14456 (eval "$ac_try") 2>&5
14458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14459 (exit $ac_status); }; }; then
14460 eval "$as_ac_Header=yes"
14462 echo "$as_me: failed program was:" >&5
14463 sed 's/^/| /' conftest.$ac_ext >&5
14465 eval "$as_ac_Header=no"
14468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14470 ac_res=`eval echo '${'$as_ac_Header'}'`
14471 { echo "$as_me:$LINENO: result: $ac_res" >&5
14472 echo "${ECHO_T}$ac_res" >&6; }
14473 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14474 cat >>confdefs.h <<_ACEOF
14475 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14478 ac_header_dirent=$ac_hdr; break
14482 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14483 if test $ac_header_dirent = dirent.h; then
14484 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14485 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14486 if test "${ac_cv_search_opendir+set}" = set; then
14487 echo $ECHO_N "(cached) $ECHO_C" >&6
14489 ac_func_search_save_LIBS=$LIBS
14490 cat >conftest.$ac_ext <<_ACEOF
14493 cat confdefs.h >>conftest.$ac_ext
14494 cat >>conftest.$ac_ext <<_ACEOF
14495 /* end confdefs.h. */
14497 /* Override any GCC internal prototype to avoid an error.
14498 Use char because int might match the return type of a GCC
14499 builtin and then its argument prototype would still apply. */
14512 for ac_lib in '' dir; do
14513 if test -z "$ac_lib"; then
14514 ac_res="none required"
14517 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14519 rm -f conftest.$ac_objext conftest$ac_exeext
14520 if { (ac_try="$ac_link"
14521 case "(($ac_try" in
14522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14523 *) ac_try_echo=$ac_try;;
14525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14526 (eval "$ac_link") 2>conftest.er1
14528 grep -v '^ *+' conftest.er1 >conftest.err
14530 cat conftest.err >&5
14531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532 (exit $ac_status); } &&
14533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14534 { (case "(($ac_try" in
14535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14536 *) ac_try_echo=$ac_try;;
14538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14539 (eval "$ac_try") 2>&5
14541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14542 (exit $ac_status); }; } &&
14543 { ac_try='test -s conftest$ac_exeext'
14544 { (case "(($ac_try" in
14545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14546 *) ac_try_echo=$ac_try;;
14548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14549 (eval "$ac_try") 2>&5
14551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552 (exit $ac_status); }; }; then
14553 ac_cv_search_opendir=$ac_res
14555 echo "$as_me: failed program was:" >&5
14556 sed 's/^/| /' conftest.$ac_ext >&5
14561 rm -f core conftest.err conftest.$ac_objext \
14563 if test "${ac_cv_search_opendir+set}" = set; then
14567 if test "${ac_cv_search_opendir+set}" = set; then
14570 ac_cv_search_opendir=no
14572 rm conftest.$ac_ext
14573 LIBS=$ac_func_search_save_LIBS
14575 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14576 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14577 ac_res=$ac_cv_search_opendir
14578 if test "$ac_res" != no; then
14579 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14584 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14585 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14586 if test "${ac_cv_search_opendir+set}" = set; then
14587 echo $ECHO_N "(cached) $ECHO_C" >&6
14589 ac_func_search_save_LIBS=$LIBS
14590 cat >conftest.$ac_ext <<_ACEOF
14593 cat confdefs.h >>conftest.$ac_ext
14594 cat >>conftest.$ac_ext <<_ACEOF
14595 /* end confdefs.h. */
14597 /* Override any GCC internal prototype to avoid an error.
14598 Use char because int might match the return type of a GCC
14599 builtin and then its argument prototype would still apply. */
14612 for ac_lib in '' x; do
14613 if test -z "$ac_lib"; then
14614 ac_res="none required"
14617 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14619 rm -f conftest.$ac_objext conftest$ac_exeext
14620 if { (ac_try="$ac_link"
14621 case "(($ac_try" in
14622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14623 *) ac_try_echo=$ac_try;;
14625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14626 (eval "$ac_link") 2>conftest.er1
14628 grep -v '^ *+' conftest.er1 >conftest.err
14630 cat conftest.err >&5
14631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14632 (exit $ac_status); } &&
14633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14634 { (case "(($ac_try" in
14635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14636 *) ac_try_echo=$ac_try;;
14638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14639 (eval "$ac_try") 2>&5
14641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14642 (exit $ac_status); }; } &&
14643 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
14651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14652 (exit $ac_status); }; }; then
14653 ac_cv_search_opendir=$ac_res
14655 echo "$as_me: failed program was:" >&5
14656 sed 's/^/| /' conftest.$ac_ext >&5
14661 rm -f core conftest.err conftest.$ac_objext \
14663 if test "${ac_cv_search_opendir+set}" = set; then
14667 if test "${ac_cv_search_opendir+set}" = set; then
14670 ac_cv_search_opendir=no
14672 rm conftest.$ac_ext
14673 LIBS=$ac_func_search_save_LIBS
14675 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14676 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14677 ac_res=$ac_cv_search_opendir
14678 if test "$ac_res" != no; then
14679 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14685 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14686 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14687 if test "${ac_cv_header_mmap_anon+set}" = set; then
14688 echo $ECHO_N "(cached) $ECHO_C" >&6
14691 ac_cpp='$CPP $CPPFLAGS'
14692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14696 cat >conftest.$ac_ext <<_ACEOF
14699 cat confdefs.h >>conftest.$ac_ext
14700 cat >>conftest.$ac_ext <<_ACEOF
14701 /* end confdefs.h. */
14702 #include <sys/mman.h>
14703 #include <unistd.h>
14708 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14713 rm -f conftest.$ac_objext
14714 if { (ac_try="$ac_compile"
14715 case "(($ac_try" in
14716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14717 *) ac_try_echo=$ac_try;;
14719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14720 (eval "$ac_compile") 2>conftest.er1
14722 grep -v '^ *+' conftest.er1 >conftest.err
14724 cat conftest.err >&5
14725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14726 (exit $ac_status); } &&
14727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14728 { (case "(($ac_try" in
14729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14730 *) ac_try_echo=$ac_try;;
14732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14733 (eval "$ac_try") 2>&5
14735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14736 (exit $ac_status); }; } &&
14737 { ac_try='test -s conftest.$ac_objext'
14738 { (case "(($ac_try" in
14739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14740 *) ac_try_echo=$ac_try;;
14742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14743 (eval "$ac_try") 2>&5
14745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14746 (exit $ac_status); }; }; then
14747 ac_cv_header_mmap_anon=yes
14749 echo "$as_me: failed program was:" >&5
14750 sed 's/^/| /' conftest.$ac_ext >&5
14752 ac_cv_header_mmap_anon=no
14755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14757 ac_cpp='$CPP $CPPFLAGS'
14758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14764 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14765 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14766 if test "$ac_cv_header_mmap_anon" = yes; then
14768 cat >>confdefs.h <<\_ACEOF
14769 #define HAVE_MMAP_ANONYMOUS 1
14774 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14775 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14776 if test "${ac_cv_header_stat_broken+set}" = set; then
14777 echo $ECHO_N "(cached) $ECHO_C" >&6
14779 cat >conftest.$ac_ext <<_ACEOF
14782 cat confdefs.h >>conftest.$ac_ext
14783 cat >>conftest.$ac_ext <<_ACEOF
14784 /* end confdefs.h. */
14785 #include <sys/types.h>
14786 #include <sys/stat.h>
14788 #if defined S_ISBLK && defined S_IFDIR
14789 # if S_ISBLK (S_IFDIR)
14794 #if defined S_ISBLK && defined S_IFCHR
14795 # if S_ISBLK (S_IFCHR)
14800 #if defined S_ISLNK && defined S_IFREG
14801 # if S_ISLNK (S_IFREG)
14806 #if defined S_ISSOCK && defined S_IFREG
14807 # if S_ISSOCK (S_IFREG)
14813 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14814 $EGREP "You lose" >/dev/null 2>&1; then
14815 ac_cv_header_stat_broken=yes
14817 ac_cv_header_stat_broken=no
14822 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14823 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14824 if test $ac_cv_header_stat_broken = yes; then
14826 cat >>confdefs.h <<\_ACEOF
14827 #define STAT_MACROS_BROKEN 1
14832 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14833 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
14834 if test "${ac_cv_header_stdc+set}" = set; then
14835 echo $ECHO_N "(cached) $ECHO_C" >&6
14837 cat >conftest.$ac_ext <<_ACEOF
14840 cat confdefs.h >>conftest.$ac_ext
14841 cat >>conftest.$ac_ext <<_ACEOF
14842 /* end confdefs.h. */
14843 #include <stdlib.h>
14844 #include <stdarg.h>
14845 #include <string.h>
14856 rm -f conftest.$ac_objext
14857 if { (ac_try="$ac_compile"
14858 case "(($ac_try" in
14859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14860 *) ac_try_echo=$ac_try;;
14862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14863 (eval "$ac_compile") 2>conftest.er1
14865 grep -v '^ *+' conftest.er1 >conftest.err
14867 cat conftest.err >&5
14868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14869 (exit $ac_status); } &&
14870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14871 { (case "(($ac_try" in
14872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14873 *) ac_try_echo=$ac_try;;
14875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14876 (eval "$ac_try") 2>&5
14878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14879 (exit $ac_status); }; } &&
14880 { ac_try='test -s conftest.$ac_objext'
14881 { (case "(($ac_try" in
14882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14883 *) ac_try_echo=$ac_try;;
14885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14886 (eval "$ac_try") 2>&5
14888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14889 (exit $ac_status); }; }; then
14890 ac_cv_header_stdc=yes
14892 echo "$as_me: failed program was:" >&5
14893 sed 's/^/| /' conftest.$ac_ext >&5
14895 ac_cv_header_stdc=no
14898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14900 if test $ac_cv_header_stdc = yes; then
14901 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
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 <string.h>
14911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14912 $EGREP "memchr" >/dev/null 2>&1; then
14915 ac_cv_header_stdc=no
14921 if test $ac_cv_header_stdc = yes; then
14922 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14923 cat >conftest.$ac_ext <<_ACEOF
14926 cat confdefs.h >>conftest.$ac_ext
14927 cat >>conftest.$ac_ext <<_ACEOF
14928 /* end confdefs.h. */
14929 #include <stdlib.h>
14932 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14933 $EGREP "free" >/dev/null 2>&1; then
14936 ac_cv_header_stdc=no
14942 if test $ac_cv_header_stdc = yes; then
14943 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14944 if test "$cross_compiling" = yes; then
14947 cat >conftest.$ac_ext <<_ACEOF
14950 cat confdefs.h >>conftest.$ac_ext
14951 cat >>conftest.$ac_ext <<_ACEOF
14952 /* end confdefs.h. */
14954 #include <stdlib.h>
14955 #if ((' ' & 0x0FF) == 0x020)
14956 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14957 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14959 # define ISLOWER(c) \
14960 (('a' <= (c) && (c) <= 'i') \
14961 || ('j' <= (c) && (c) <= 'r') \
14962 || ('s' <= (c) && (c) <= 'z'))
14963 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14966 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14971 for (i = 0; i < 256; i++)
14972 if (XOR (islower (i), ISLOWER (i))
14973 || toupper (i) != TOUPPER (i))
14978 rm -f conftest$ac_exeext
14979 if { (ac_try="$ac_link"
14980 case "(($ac_try" in
14981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14982 *) ac_try_echo=$ac_try;;
14984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14985 (eval "$ac_link") 2>&5
14987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14988 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14989 { (case "(($ac_try" in
14990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14991 *) ac_try_echo=$ac_try;;
14993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14994 (eval "$ac_try") 2>&5
14996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14997 (exit $ac_status); }; }; then
15000 echo "$as_me: program exited with status $ac_status" >&5
15001 echo "$as_me: failed program was:" >&5
15002 sed 's/^/| /' conftest.$ac_ext >&5
15004 ( exit $ac_status )
15005 ac_cv_header_stdc=no
15007 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15013 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15014 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15015 if test $ac_cv_header_stdc = yes; then
15017 cat >>confdefs.h <<\_ACEOF
15018 #define STDC_HEADERS 1
15023 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15024 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15025 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15026 echo $ECHO_N "(cached) $ECHO_C" >&6
15028 cat >conftest.$ac_ext <<_ACEOF
15031 cat confdefs.h >>conftest.$ac_ext
15032 cat >>conftest.$ac_ext <<_ACEOF
15033 /* end confdefs.h. */
15034 #include <sys/types.h>
15035 #include <sys/wait.h>
15036 #ifndef WEXITSTATUS
15037 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15040 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15048 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15053 rm -f conftest.$ac_objext
15054 if { (ac_try="$ac_compile"
15055 case "(($ac_try" in
15056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15057 *) ac_try_echo=$ac_try;;
15059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15060 (eval "$ac_compile") 2>conftest.er1
15062 grep -v '^ *+' conftest.er1 >conftest.err
15064 cat conftest.err >&5
15065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15066 (exit $ac_status); } &&
15067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15068 { (case "(($ac_try" in
15069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15070 *) ac_try_echo=$ac_try;;
15072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15073 (eval "$ac_try") 2>&5
15075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15076 (exit $ac_status); }; } &&
15077 { ac_try='test -s conftest.$ac_objext'
15078 { (case "(($ac_try" in
15079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15080 *) ac_try_echo=$ac_try;;
15082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15083 (eval "$ac_try") 2>&5
15085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15086 (exit $ac_status); }; }; then
15087 ac_cv_header_sys_wait_h=yes
15089 echo "$as_me: failed program was:" >&5
15090 sed 's/^/| /' conftest.$ac_ext >&5
15092 ac_cv_header_sys_wait_h=no
15095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15097 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15098 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15099 if test $ac_cv_header_sys_wait_h = yes; then
15101 cat >>confdefs.h <<\_ACEOF
15102 #define HAVE_SYS_WAIT_H 1
15107 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15108 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15109 if test "${ac_cv_header_time+set}" = set; then
15110 echo $ECHO_N "(cached) $ECHO_C" >&6
15112 cat >conftest.$ac_ext <<_ACEOF
15115 cat confdefs.h >>conftest.$ac_ext
15116 cat >>conftest.$ac_ext <<_ACEOF
15117 /* end confdefs.h. */
15118 #include <sys/types.h>
15119 #include <sys/time.h>
15125 if ((struct tm *) 0)
15131 rm -f conftest.$ac_objext
15132 if { (ac_try="$ac_compile"
15133 case "(($ac_try" in
15134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15135 *) ac_try_echo=$ac_try;;
15137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15138 (eval "$ac_compile") 2>conftest.er1
15140 grep -v '^ *+' conftest.er1 >conftest.err
15142 cat conftest.err >&5
15143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15144 (exit $ac_status); } &&
15145 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15146 { (case "(($ac_try" in
15147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15148 *) ac_try_echo=$ac_try;;
15150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15151 (eval "$ac_try") 2>&5
15153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15154 (exit $ac_status); }; } &&
15155 { ac_try='test -s conftest.$ac_objext'
15156 { (case "(($ac_try" in
15157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15158 *) ac_try_echo=$ac_try;;
15160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15161 (eval "$ac_try") 2>&5
15163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15164 (exit $ac_status); }; }; then
15165 ac_cv_header_time=yes
15167 echo "$as_me: failed program was:" >&5
15168 sed 's/^/| /' conftest.$ac_ext >&5
15170 ac_cv_header_time=no
15173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15175 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15176 echo "${ECHO_T}$ac_cv_header_time" >&6; }
15177 if test $ac_cv_header_time = yes; then
15179 cat >>confdefs.h <<\_ACEOF
15180 #define TIME_WITH_SYS_TIME 1
15192 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15194 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15195 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15196 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15198 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15199 echo $ECHO_N "(cached) $ECHO_C" >&6
15201 ac_res=`eval echo '${'$as_ac_Header'}'`
15202 { echo "$as_me:$LINENO: result: $ac_res" >&5
15203 echo "${ECHO_T}$ac_res" >&6; }
15205 # Is the header compilable?
15206 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15207 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15208 cat >conftest.$ac_ext <<_ACEOF
15211 cat confdefs.h >>conftest.$ac_ext
15212 cat >>conftest.$ac_ext <<_ACEOF
15213 /* end confdefs.h. */
15214 $ac_includes_default
15215 #include <$ac_header>
15217 rm -f conftest.$ac_objext
15218 if { (ac_try="$ac_compile"
15219 case "(($ac_try" in
15220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15221 *) ac_try_echo=$ac_try;;
15223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15224 (eval "$ac_compile") 2>conftest.er1
15226 grep -v '^ *+' conftest.er1 >conftest.err
15228 cat conftest.err >&5
15229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15230 (exit $ac_status); } &&
15231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15232 { (case "(($ac_try" in
15233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15234 *) ac_try_echo=$ac_try;;
15236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15237 (eval "$ac_try") 2>&5
15239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15240 (exit $ac_status); }; } &&
15241 { ac_try='test -s conftest.$ac_objext'
15242 { (case "(($ac_try" in
15243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15244 *) ac_try_echo=$ac_try;;
15246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15247 (eval "$ac_try") 2>&5
15249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15250 (exit $ac_status); }; }; then
15251 ac_header_compiler=yes
15253 echo "$as_me: failed program was:" >&5
15254 sed 's/^/| /' conftest.$ac_ext >&5
15256 ac_header_compiler=no
15259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15260 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15261 echo "${ECHO_T}$ac_header_compiler" >&6; }
15263 # Is the header present?
15264 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15265 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15266 cat >conftest.$ac_ext <<_ACEOF
15269 cat confdefs.h >>conftest.$ac_ext
15270 cat >>conftest.$ac_ext <<_ACEOF
15271 /* end confdefs.h. */
15272 #include <$ac_header>
15274 if { (ac_try="$ac_cpp conftest.$ac_ext"
15275 case "(($ac_try" in
15276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15277 *) ac_try_echo=$ac_try;;
15279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15280 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15282 grep -v '^ *+' conftest.er1 >conftest.err
15284 cat conftest.err >&5
15285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286 (exit $ac_status); } >/dev/null; then
15287 if test -s conftest.err; then
15288 ac_cpp_err=$ac_c_preproc_warn_flag
15289 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15296 if test -z "$ac_cpp_err"; then
15297 ac_header_preproc=yes
15299 echo "$as_me: failed program was:" >&5
15300 sed 's/^/| /' conftest.$ac_ext >&5
15302 ac_header_preproc=no
15305 rm -f conftest.err conftest.$ac_ext
15306 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15307 echo "${ECHO_T}$ac_header_preproc" >&6; }
15309 # So? What about this header?
15310 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15312 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15313 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15314 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15315 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15316 ac_header_preproc=yes
15319 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15320 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15321 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15322 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15323 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15324 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15325 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15326 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15327 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15328 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15329 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15330 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15332 ## ----------------------------------- ##
15333 ## Report this to llvmbugs@cs.uiuc.edu ##
15334 ## ----------------------------------- ##
15336 ) | sed "s/^/$as_me: WARNING: /" >&2
15339 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15341 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15342 echo $ECHO_N "(cached) $ECHO_C" >&6
15344 eval "$as_ac_Header=\$ac_header_preproc"
15346 ac_res=`eval echo '${'$as_ac_Header'}'`
15347 { echo "$as_me:$LINENO: result: $ac_res" >&5
15348 echo "${ECHO_T}$ac_res" >&6; }
15351 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15352 cat >>confdefs.h <<_ACEOF
15353 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15366 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15368 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15369 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15370 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15372 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15373 echo $ECHO_N "(cached) $ECHO_C" >&6
15375 ac_res=`eval echo '${'$as_ac_Header'}'`
15376 { echo "$as_me:$LINENO: result: $ac_res" >&5
15377 echo "${ECHO_T}$ac_res" >&6; }
15379 # Is the header compilable?
15380 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15381 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15382 cat >conftest.$ac_ext <<_ACEOF
15385 cat confdefs.h >>conftest.$ac_ext
15386 cat >>conftest.$ac_ext <<_ACEOF
15387 /* end confdefs.h. */
15388 $ac_includes_default
15389 #include <$ac_header>
15391 rm -f conftest.$ac_objext
15392 if { (ac_try="$ac_compile"
15393 case "(($ac_try" in
15394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15395 *) ac_try_echo=$ac_try;;
15397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15398 (eval "$ac_compile") 2>conftest.er1
15400 grep -v '^ *+' conftest.er1 >conftest.err
15402 cat conftest.err >&5
15403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15404 (exit $ac_status); } &&
15405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15406 { (case "(($ac_try" in
15407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15408 *) ac_try_echo=$ac_try;;
15410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15411 (eval "$ac_try") 2>&5
15413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15414 (exit $ac_status); }; } &&
15415 { ac_try='test -s conftest.$ac_objext'
15416 { (case "(($ac_try" in
15417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15418 *) ac_try_echo=$ac_try;;
15420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15421 (eval "$ac_try") 2>&5
15423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15424 (exit $ac_status); }; }; then
15425 ac_header_compiler=yes
15427 echo "$as_me: failed program was:" >&5
15428 sed 's/^/| /' conftest.$ac_ext >&5
15430 ac_header_compiler=no
15433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15434 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15435 echo "${ECHO_T}$ac_header_compiler" >&6; }
15437 # Is the header present?
15438 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15439 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15440 cat >conftest.$ac_ext <<_ACEOF
15443 cat confdefs.h >>conftest.$ac_ext
15444 cat >>conftest.$ac_ext <<_ACEOF
15445 /* end confdefs.h. */
15446 #include <$ac_header>
15448 if { (ac_try="$ac_cpp conftest.$ac_ext"
15449 case "(($ac_try" in
15450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15451 *) ac_try_echo=$ac_try;;
15453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15454 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15456 grep -v '^ *+' conftest.er1 >conftest.err
15458 cat conftest.err >&5
15459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15460 (exit $ac_status); } >/dev/null; then
15461 if test -s conftest.err; then
15462 ac_cpp_err=$ac_c_preproc_warn_flag
15463 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15470 if test -z "$ac_cpp_err"; then
15471 ac_header_preproc=yes
15473 echo "$as_me: failed program was:" >&5
15474 sed 's/^/| /' conftest.$ac_ext >&5
15476 ac_header_preproc=no
15479 rm -f conftest.err conftest.$ac_ext
15480 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15481 echo "${ECHO_T}$ac_header_preproc" >&6; }
15483 # So? What about this header?
15484 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15486 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15487 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15488 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15489 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15490 ac_header_preproc=yes
15493 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15494 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15495 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15496 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15497 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15498 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15499 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15500 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15501 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15502 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15503 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15504 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15506 ## ----------------------------------- ##
15507 ## Report this to llvmbugs@cs.uiuc.edu ##
15508 ## ----------------------------------- ##
15510 ) | sed "s/^/$as_me: WARNING: /" >&2
15513 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15515 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15516 echo $ECHO_N "(cached) $ECHO_C" >&6
15518 eval "$as_ac_Header=\$ac_header_preproc"
15520 ac_res=`eval echo '${'$as_ac_Header'}'`
15521 { echo "$as_me:$LINENO: result: $ac_res" >&5
15522 echo "${ECHO_T}$ac_res" >&6; }
15525 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15526 cat >>confdefs.h <<_ACEOF
15527 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15536 for ac_header in utime.h windows.h
15538 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15539 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15540 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15541 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15542 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15543 echo $ECHO_N "(cached) $ECHO_C" >&6
15545 ac_res=`eval echo '${'$as_ac_Header'}'`
15546 { echo "$as_me:$LINENO: result: $ac_res" >&5
15547 echo "${ECHO_T}$ac_res" >&6; }
15549 # Is the header compilable?
15550 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15551 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15552 cat >conftest.$ac_ext <<_ACEOF
15555 cat confdefs.h >>conftest.$ac_ext
15556 cat >>conftest.$ac_ext <<_ACEOF
15557 /* end confdefs.h. */
15558 $ac_includes_default
15559 #include <$ac_header>
15561 rm -f conftest.$ac_objext
15562 if { (ac_try="$ac_compile"
15563 case "(($ac_try" in
15564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15565 *) ac_try_echo=$ac_try;;
15567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15568 (eval "$ac_compile") 2>conftest.er1
15570 grep -v '^ *+' conftest.er1 >conftest.err
15572 cat conftest.err >&5
15573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15574 (exit $ac_status); } &&
15575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15576 { (case "(($ac_try" in
15577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15578 *) ac_try_echo=$ac_try;;
15580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15581 (eval "$ac_try") 2>&5
15583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584 (exit $ac_status); }; } &&
15585 { ac_try='test -s conftest.$ac_objext'
15586 { (case "(($ac_try" in
15587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15588 *) ac_try_echo=$ac_try;;
15590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15591 (eval "$ac_try") 2>&5
15593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594 (exit $ac_status); }; }; then
15595 ac_header_compiler=yes
15597 echo "$as_me: failed program was:" >&5
15598 sed 's/^/| /' conftest.$ac_ext >&5
15600 ac_header_compiler=no
15603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15604 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15605 echo "${ECHO_T}$ac_header_compiler" >&6; }
15607 # Is the header present?
15608 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15609 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15610 cat >conftest.$ac_ext <<_ACEOF
15613 cat confdefs.h >>conftest.$ac_ext
15614 cat >>conftest.$ac_ext <<_ACEOF
15615 /* end confdefs.h. */
15616 #include <$ac_header>
15618 if { (ac_try="$ac_cpp conftest.$ac_ext"
15619 case "(($ac_try" in
15620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15621 *) ac_try_echo=$ac_try;;
15623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15624 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15626 grep -v '^ *+' conftest.er1 >conftest.err
15628 cat conftest.err >&5
15629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15630 (exit $ac_status); } >/dev/null; then
15631 if test -s conftest.err; then
15632 ac_cpp_err=$ac_c_preproc_warn_flag
15633 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15640 if test -z "$ac_cpp_err"; then
15641 ac_header_preproc=yes
15643 echo "$as_me: failed program was:" >&5
15644 sed 's/^/| /' conftest.$ac_ext >&5
15646 ac_header_preproc=no
15649 rm -f conftest.err conftest.$ac_ext
15650 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15651 echo "${ECHO_T}$ac_header_preproc" >&6; }
15653 # So? What about this header?
15654 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15656 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15657 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15658 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15659 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15660 ac_header_preproc=yes
15663 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15664 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15665 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15666 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15667 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15668 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15669 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15670 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15671 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15672 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15673 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15674 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15676 ## ----------------------------------- ##
15677 ## Report this to llvmbugs@cs.uiuc.edu ##
15678 ## ----------------------------------- ##
15680 ) | sed "s/^/$as_me: WARNING: /" >&2
15683 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15685 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15686 echo $ECHO_N "(cached) $ECHO_C" >&6
15688 eval "$as_ac_Header=\$ac_header_preproc"
15690 ac_res=`eval echo '${'$as_ac_Header'}'`
15691 { echo "$as_me:$LINENO: result: $ac_res" >&5
15692 echo "${ECHO_T}$ac_res" >&6; }
15695 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15696 cat >>confdefs.h <<_ACEOF
15697 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15708 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
15710 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15711 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15712 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15715 echo $ECHO_N "(cached) $ECHO_C" >&6
15717 ac_res=`eval echo '${'$as_ac_Header'}'`
15718 { echo "$as_me:$LINENO: result: $ac_res" >&5
15719 echo "${ECHO_T}$ac_res" >&6; }
15721 # Is the header compilable?
15722 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15723 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15724 cat >conftest.$ac_ext <<_ACEOF
15727 cat confdefs.h >>conftest.$ac_ext
15728 cat >>conftest.$ac_ext <<_ACEOF
15729 /* end confdefs.h. */
15730 $ac_includes_default
15731 #include <$ac_header>
15733 rm -f conftest.$ac_objext
15734 if { (ac_try="$ac_compile"
15735 case "(($ac_try" in
15736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15737 *) ac_try_echo=$ac_try;;
15739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15740 (eval "$ac_compile") 2>conftest.er1
15742 grep -v '^ *+' conftest.er1 >conftest.err
15744 cat conftest.err >&5
15745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15746 (exit $ac_status); } &&
15747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15748 { (case "(($ac_try" in
15749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15750 *) ac_try_echo=$ac_try;;
15752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15753 (eval "$ac_try") 2>&5
15755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15756 (exit $ac_status); }; } &&
15757 { ac_try='test -s conftest.$ac_objext'
15758 { (case "(($ac_try" in
15759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15760 *) ac_try_echo=$ac_try;;
15762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15763 (eval "$ac_try") 2>&5
15765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15766 (exit $ac_status); }; }; then
15767 ac_header_compiler=yes
15769 echo "$as_me: failed program was:" >&5
15770 sed 's/^/| /' conftest.$ac_ext >&5
15772 ac_header_compiler=no
15775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15776 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15777 echo "${ECHO_T}$ac_header_compiler" >&6; }
15779 # Is the header present?
15780 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15781 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15782 cat >conftest.$ac_ext <<_ACEOF
15785 cat confdefs.h >>conftest.$ac_ext
15786 cat >>conftest.$ac_ext <<_ACEOF
15787 /* end confdefs.h. */
15788 #include <$ac_header>
15790 if { (ac_try="$ac_cpp conftest.$ac_ext"
15791 case "(($ac_try" in
15792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15793 *) ac_try_echo=$ac_try;;
15795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15796 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15798 grep -v '^ *+' conftest.er1 >conftest.err
15800 cat conftest.err >&5
15801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15802 (exit $ac_status); } >/dev/null; then
15803 if test -s conftest.err; then
15804 ac_cpp_err=$ac_c_preproc_warn_flag
15805 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15812 if test -z "$ac_cpp_err"; then
15813 ac_header_preproc=yes
15815 echo "$as_me: failed program was:" >&5
15816 sed 's/^/| /' conftest.$ac_ext >&5
15818 ac_header_preproc=no
15821 rm -f conftest.err conftest.$ac_ext
15822 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15823 echo "${ECHO_T}$ac_header_preproc" >&6; }
15825 # So? What about this header?
15826 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15828 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15829 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15830 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15831 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15832 ac_header_preproc=yes
15835 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15836 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15837 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15838 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15839 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15840 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15841 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15842 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15843 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15844 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15845 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15846 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15848 ## ----------------------------------- ##
15849 ## Report this to llvmbugs@cs.uiuc.edu ##
15850 ## ----------------------------------- ##
15852 ) | sed "s/^/$as_me: WARNING: /" >&2
15855 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15857 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15858 echo $ECHO_N "(cached) $ECHO_C" >&6
15860 eval "$as_ac_Header=\$ac_header_preproc"
15862 ac_res=`eval echo '${'$as_ac_Header'}'`
15863 { echo "$as_me:$LINENO: result: $ac_res" >&5
15864 echo "${ECHO_T}$ac_res" >&6; }
15867 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15868 cat >>confdefs.h <<_ACEOF
15869 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15880 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15882 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15883 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15884 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15885 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15886 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15887 echo $ECHO_N "(cached) $ECHO_C" >&6
15889 ac_res=`eval echo '${'$as_ac_Header'}'`
15890 { echo "$as_me:$LINENO: result: $ac_res" >&5
15891 echo "${ECHO_T}$ac_res" >&6; }
15893 # Is the header compilable?
15894 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15895 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15896 cat >conftest.$ac_ext <<_ACEOF
15899 cat confdefs.h >>conftest.$ac_ext
15900 cat >>conftest.$ac_ext <<_ACEOF
15901 /* end confdefs.h. */
15902 $ac_includes_default
15903 #include <$ac_header>
15905 rm -f conftest.$ac_objext
15906 if { (ac_try="$ac_compile"
15907 case "(($ac_try" in
15908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15909 *) ac_try_echo=$ac_try;;
15911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15912 (eval "$ac_compile") 2>conftest.er1
15914 grep -v '^ *+' conftest.er1 >conftest.err
15916 cat conftest.err >&5
15917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15918 (exit $ac_status); } &&
15919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15920 { (case "(($ac_try" in
15921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15922 *) ac_try_echo=$ac_try;;
15924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15925 (eval "$ac_try") 2>&5
15927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15928 (exit $ac_status); }; } &&
15929 { ac_try='test -s conftest.$ac_objext'
15930 { (case "(($ac_try" in
15931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15932 *) ac_try_echo=$ac_try;;
15934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15935 (eval "$ac_try") 2>&5
15937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15938 (exit $ac_status); }; }; then
15939 ac_header_compiler=yes
15941 echo "$as_me: failed program was:" >&5
15942 sed 's/^/| /' conftest.$ac_ext >&5
15944 ac_header_compiler=no
15947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15948 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15949 echo "${ECHO_T}$ac_header_compiler" >&6; }
15951 # Is the header present?
15952 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15953 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15954 cat >conftest.$ac_ext <<_ACEOF
15957 cat confdefs.h >>conftest.$ac_ext
15958 cat >>conftest.$ac_ext <<_ACEOF
15959 /* end confdefs.h. */
15960 #include <$ac_header>
15962 if { (ac_try="$ac_cpp conftest.$ac_ext"
15963 case "(($ac_try" in
15964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15965 *) ac_try_echo=$ac_try;;
15967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15968 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15970 grep -v '^ *+' conftest.er1 >conftest.err
15972 cat conftest.err >&5
15973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15974 (exit $ac_status); } >/dev/null; then
15975 if test -s conftest.err; then
15976 ac_cpp_err=$ac_c_preproc_warn_flag
15977 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15984 if test -z "$ac_cpp_err"; then
15985 ac_header_preproc=yes
15987 echo "$as_me: failed program was:" >&5
15988 sed 's/^/| /' conftest.$ac_ext >&5
15990 ac_header_preproc=no
15993 rm -f conftest.err conftest.$ac_ext
15994 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15995 echo "${ECHO_T}$ac_header_preproc" >&6; }
15997 # So? What about this header?
15998 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16000 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16001 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16002 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16003 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16004 ac_header_preproc=yes
16007 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16008 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16009 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16010 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16011 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16012 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16013 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16014 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16015 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16016 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16017 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16018 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16020 ## ----------------------------------- ##
16021 ## Report this to llvmbugs@cs.uiuc.edu ##
16022 ## ----------------------------------- ##
16024 ) | sed "s/^/$as_me: WARNING: /" >&2
16027 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16028 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16029 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16030 echo $ECHO_N "(cached) $ECHO_C" >&6
16032 eval "$as_ac_Header=\$ac_header_preproc"
16034 ac_res=`eval echo '${'$as_ac_Header'}'`
16035 { echo "$as_me:$LINENO: result: $ac_res" >&5
16036 echo "${ECHO_T}$ac_res" >&6; }
16039 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16040 cat >>confdefs.h <<_ACEOF
16041 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16048 if test "$ENABLE_THREADS" -eq 1 ; then
16050 for ac_header in pthread.h
16052 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16053 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16054 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16056 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16057 echo $ECHO_N "(cached) $ECHO_C" >&6
16059 ac_res=`eval echo '${'$as_ac_Header'}'`
16060 { echo "$as_me:$LINENO: result: $ac_res" >&5
16061 echo "${ECHO_T}$ac_res" >&6; }
16063 # Is the header compilable?
16064 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16065 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16066 cat >conftest.$ac_ext <<_ACEOF
16069 cat confdefs.h >>conftest.$ac_ext
16070 cat >>conftest.$ac_ext <<_ACEOF
16071 /* end confdefs.h. */
16072 $ac_includes_default
16073 #include <$ac_header>
16075 rm -f conftest.$ac_objext
16076 if { (ac_try="$ac_compile"
16077 case "(($ac_try" in
16078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16079 *) ac_try_echo=$ac_try;;
16081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16082 (eval "$ac_compile") 2>conftest.er1
16084 grep -v '^ *+' conftest.er1 >conftest.err
16086 cat conftest.err >&5
16087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16088 (exit $ac_status); } &&
16089 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16090 { (case "(($ac_try" in
16091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16092 *) ac_try_echo=$ac_try;;
16094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16095 (eval "$ac_try") 2>&5
16097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16098 (exit $ac_status); }; } &&
16099 { ac_try='test -s conftest.$ac_objext'
16100 { (case "(($ac_try" in
16101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16102 *) ac_try_echo=$ac_try;;
16104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16105 (eval "$ac_try") 2>&5
16107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16108 (exit $ac_status); }; }; then
16109 ac_header_compiler=yes
16111 echo "$as_me: failed program was:" >&5
16112 sed 's/^/| /' conftest.$ac_ext >&5
16114 ac_header_compiler=no
16117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16118 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16119 echo "${ECHO_T}$ac_header_compiler" >&6; }
16121 # Is the header present?
16122 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16123 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16124 cat >conftest.$ac_ext <<_ACEOF
16127 cat confdefs.h >>conftest.$ac_ext
16128 cat >>conftest.$ac_ext <<_ACEOF
16129 /* end confdefs.h. */
16130 #include <$ac_header>
16132 if { (ac_try="$ac_cpp conftest.$ac_ext"
16133 case "(($ac_try" in
16134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16135 *) ac_try_echo=$ac_try;;
16137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16138 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16140 grep -v '^ *+' conftest.er1 >conftest.err
16142 cat conftest.err >&5
16143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16144 (exit $ac_status); } >/dev/null; then
16145 if test -s conftest.err; then
16146 ac_cpp_err=$ac_c_preproc_warn_flag
16147 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16154 if test -z "$ac_cpp_err"; then
16155 ac_header_preproc=yes
16157 echo "$as_me: failed program was:" >&5
16158 sed 's/^/| /' conftest.$ac_ext >&5
16160 ac_header_preproc=no
16163 rm -f conftest.err conftest.$ac_ext
16164 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16165 echo "${ECHO_T}$ac_header_preproc" >&6; }
16167 # So? What about this header?
16168 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16170 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16171 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16172 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16173 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16174 ac_header_preproc=yes
16177 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16178 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16179 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16180 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16181 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16182 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16183 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16184 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16186 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16187 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16188 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16190 ## ----------------------------------- ##
16191 ## Report this to llvmbugs@cs.uiuc.edu ##
16192 ## ----------------------------------- ##
16194 ) | sed "s/^/$as_me: WARNING: /" >&2
16197 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16200 echo $ECHO_N "(cached) $ECHO_C" >&6
16202 eval "$as_ac_Header=\$ac_header_preproc"
16204 ac_res=`eval echo '${'$as_ac_Header'}'`
16205 { echo "$as_me:$LINENO: result: $ac_res" >&5
16206 echo "${ECHO_T}$ac_res" >&6; }
16209 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16210 cat >>confdefs.h <<_ACEOF
16211 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16227 if test "$llvm_cv_enable_libffi" = "yes" ; then
16230 for ac_header in ffi.h ffi/ffi.h
16232 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16233 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16234 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16235 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16236 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16237 echo $ECHO_N "(cached) $ECHO_C" >&6
16239 ac_res=`eval echo '${'$as_ac_Header'}'`
16240 { echo "$as_me:$LINENO: result: $ac_res" >&5
16241 echo "${ECHO_T}$ac_res" >&6; }
16243 # Is the header compilable?
16244 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16245 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16246 cat >conftest.$ac_ext <<_ACEOF
16249 cat confdefs.h >>conftest.$ac_ext
16250 cat >>conftest.$ac_ext <<_ACEOF
16251 /* end confdefs.h. */
16252 $ac_includes_default
16253 #include <$ac_header>
16255 rm -f conftest.$ac_objext
16256 if { (ac_try="$ac_compile"
16257 case "(($ac_try" in
16258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16259 *) ac_try_echo=$ac_try;;
16261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16262 (eval "$ac_compile") 2>conftest.er1
16264 grep -v '^ *+' conftest.er1 >conftest.err
16266 cat conftest.err >&5
16267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16268 (exit $ac_status); } &&
16269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16270 { (case "(($ac_try" in
16271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16272 *) ac_try_echo=$ac_try;;
16274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16275 (eval "$ac_try") 2>&5
16277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16278 (exit $ac_status); }; } &&
16279 { ac_try='test -s conftest.$ac_objext'
16280 { (case "(($ac_try" in
16281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16282 *) ac_try_echo=$ac_try;;
16284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16285 (eval "$ac_try") 2>&5
16287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16288 (exit $ac_status); }; }; then
16289 ac_header_compiler=yes
16291 echo "$as_me: failed program was:" >&5
16292 sed 's/^/| /' conftest.$ac_ext >&5
16294 ac_header_compiler=no
16297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16298 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16299 echo "${ECHO_T}$ac_header_compiler" >&6; }
16301 # Is the header present?
16302 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16303 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16304 cat >conftest.$ac_ext <<_ACEOF
16307 cat confdefs.h >>conftest.$ac_ext
16308 cat >>conftest.$ac_ext <<_ACEOF
16309 /* end confdefs.h. */
16310 #include <$ac_header>
16312 if { (ac_try="$ac_cpp conftest.$ac_ext"
16313 case "(($ac_try" in
16314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16315 *) ac_try_echo=$ac_try;;
16317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16318 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16320 grep -v '^ *+' conftest.er1 >conftest.err
16322 cat conftest.err >&5
16323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16324 (exit $ac_status); } >/dev/null; then
16325 if test -s conftest.err; then
16326 ac_cpp_err=$ac_c_preproc_warn_flag
16327 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16334 if test -z "$ac_cpp_err"; then
16335 ac_header_preproc=yes
16337 echo "$as_me: failed program was:" >&5
16338 sed 's/^/| /' conftest.$ac_ext >&5
16340 ac_header_preproc=no
16343 rm -f conftest.err conftest.$ac_ext
16344 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16345 echo "${ECHO_T}$ac_header_preproc" >&6; }
16347 # So? What about this header?
16348 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16350 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16351 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16353 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16354 ac_header_preproc=yes
16357 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16358 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16359 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16360 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16361 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16362 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16363 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16364 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16365 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16366 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16367 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16368 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16370 ## ----------------------------------- ##
16371 ## Report this to llvmbugs@cs.uiuc.edu ##
16372 ## ----------------------------------- ##
16374 ) | sed "s/^/$as_me: WARNING: /" >&2
16377 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16378 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16379 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16380 echo $ECHO_N "(cached) $ECHO_C" >&6
16382 eval "$as_ac_Header=\$ac_header_preproc"
16384 ac_res=`eval echo '${'$as_ac_Header'}'`
16385 { echo "$as_me:$LINENO: result: $ac_res" >&5
16386 echo "${ECHO_T}$ac_res" >&6; }
16389 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16390 cat >>confdefs.h <<_ACEOF
16391 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16403 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16404 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16405 if test "${ac_cv_huge_val_sanity+set}" = set; then
16406 echo $ECHO_N "(cached) $ECHO_C" >&6
16410 ac_cpp='$CXXCPP $CPPFLAGS'
16411 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16412 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16413 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16416 if test "$cross_compiling" = yes; then
16417 ac_cv_huge_val_sanity=yes
16419 cat >conftest.$ac_ext <<_ACEOF
16422 cat confdefs.h >>conftest.$ac_ext
16423 cat >>conftest.$ac_ext <<_ACEOF
16424 /* end confdefs.h. */
16429 double x = HUGE_VAL; return x != x;
16434 rm -f conftest$ac_exeext
16435 if { (ac_try="$ac_link"
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_link") 2>&5
16443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16444 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16445 { (case "(($ac_try" in
16446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16447 *) ac_try_echo=$ac_try;;
16449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16450 (eval "$ac_try") 2>&5
16452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16453 (exit $ac_status); }; }; then
16454 ac_cv_huge_val_sanity=yes
16456 echo "$as_me: program exited with status $ac_status" >&5
16457 echo "$as_me: failed program was:" >&5
16458 sed 's/^/| /' conftest.$ac_ext >&5
16460 ( exit $ac_status )
16461 ac_cv_huge_val_sanity=no
16463 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16468 ac_cpp='$CPP $CPPFLAGS'
16469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16475 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16476 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16477 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16480 { echo "$as_me:$LINENO: checking for pid_t" >&5
16481 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16482 if test "${ac_cv_type_pid_t+set}" = set; then
16483 echo $ECHO_N "(cached) $ECHO_C" >&6
16485 cat >conftest.$ac_ext <<_ACEOF
16488 cat confdefs.h >>conftest.$ac_ext
16489 cat >>conftest.$ac_ext <<_ACEOF
16490 /* end confdefs.h. */
16491 $ac_includes_default
16492 typedef pid_t ac__type_new_;
16496 if ((ac__type_new_ *) 0)
16498 if (sizeof (ac__type_new_))
16504 rm -f conftest.$ac_objext
16505 if { (ac_try="$ac_compile"
16506 case "(($ac_try" in
16507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16508 *) ac_try_echo=$ac_try;;
16510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16511 (eval "$ac_compile") 2>conftest.er1
16513 grep -v '^ *+' conftest.er1 >conftest.err
16515 cat conftest.err >&5
16516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16517 (exit $ac_status); } &&
16518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16519 { (case "(($ac_try" in
16520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16521 *) ac_try_echo=$ac_try;;
16523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16524 (eval "$ac_try") 2>&5
16526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527 (exit $ac_status); }; } &&
16528 { ac_try='test -s conftest.$ac_objext'
16529 { (case "(($ac_try" in
16530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16531 *) ac_try_echo=$ac_try;;
16533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16534 (eval "$ac_try") 2>&5
16536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16537 (exit $ac_status); }; }; then
16538 ac_cv_type_pid_t=yes
16540 echo "$as_me: failed program was:" >&5
16541 sed 's/^/| /' conftest.$ac_ext >&5
16543 ac_cv_type_pid_t=no
16546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16548 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16549 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16550 if test $ac_cv_type_pid_t = yes; then
16554 cat >>confdefs.h <<_ACEOF
16560 { echo "$as_me:$LINENO: checking for size_t" >&5
16561 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16562 if test "${ac_cv_type_size_t+set}" = set; then
16563 echo $ECHO_N "(cached) $ECHO_C" >&6
16565 cat >conftest.$ac_ext <<_ACEOF
16568 cat confdefs.h >>conftest.$ac_ext
16569 cat >>conftest.$ac_ext <<_ACEOF
16570 /* end confdefs.h. */
16571 $ac_includes_default
16572 typedef size_t ac__type_new_;
16576 if ((ac__type_new_ *) 0)
16578 if (sizeof (ac__type_new_))
16584 rm -f conftest.$ac_objext
16585 if { (ac_try="$ac_compile"
16586 case "(($ac_try" in
16587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16588 *) ac_try_echo=$ac_try;;
16590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16591 (eval "$ac_compile") 2>conftest.er1
16593 grep -v '^ *+' conftest.er1 >conftest.err
16595 cat conftest.err >&5
16596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16597 (exit $ac_status); } &&
16598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16599 { (case "(($ac_try" in
16600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16601 *) ac_try_echo=$ac_try;;
16603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16604 (eval "$ac_try") 2>&5
16606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16607 (exit $ac_status); }; } &&
16608 { ac_try='test -s conftest.$ac_objext'
16609 { (case "(($ac_try" in
16610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16611 *) ac_try_echo=$ac_try;;
16613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16614 (eval "$ac_try") 2>&5
16616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16617 (exit $ac_status); }; }; then
16618 ac_cv_type_size_t=yes
16620 echo "$as_me: failed program was:" >&5
16621 sed 's/^/| /' conftest.$ac_ext >&5
16623 ac_cv_type_size_t=no
16626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16628 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16629 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16630 if test $ac_cv_type_size_t = yes; then
16634 cat >>confdefs.h <<_ACEOF
16635 #define size_t unsigned int
16641 cat >>confdefs.h <<_ACEOF
16642 #define RETSIGTYPE void
16645 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16646 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16647 if test "${ac_cv_struct_tm+set}" = set; then
16648 echo $ECHO_N "(cached) $ECHO_C" >&6
16650 cat >conftest.$ac_ext <<_ACEOF
16653 cat confdefs.h >>conftest.$ac_ext
16654 cat >>conftest.$ac_ext <<_ACEOF
16655 /* end confdefs.h. */
16656 #include <sys/types.h>
16662 struct tm *tp; tp->tm_sec;
16667 rm -f conftest.$ac_objext
16668 if { (ac_try="$ac_compile"
16669 case "(($ac_try" in
16670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16671 *) ac_try_echo=$ac_try;;
16673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16674 (eval "$ac_compile") 2>conftest.er1
16676 grep -v '^ *+' conftest.er1 >conftest.err
16678 cat conftest.err >&5
16679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16680 (exit $ac_status); } &&
16681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16682 { (case "(($ac_try" in
16683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16684 *) ac_try_echo=$ac_try;;
16686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16687 (eval "$ac_try") 2>&5
16689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16690 (exit $ac_status); }; } &&
16691 { ac_try='test -s conftest.$ac_objext'
16692 { (case "(($ac_try" in
16693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16694 *) ac_try_echo=$ac_try;;
16696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16697 (eval "$ac_try") 2>&5
16699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16700 (exit $ac_status); }; }; then
16701 ac_cv_struct_tm=time.h
16703 echo "$as_me: failed program was:" >&5
16704 sed 's/^/| /' conftest.$ac_ext >&5
16706 ac_cv_struct_tm=sys/time.h
16709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16711 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16712 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16713 if test $ac_cv_struct_tm = sys/time.h; then
16715 cat >>confdefs.h <<\_ACEOF
16716 #define TM_IN_SYS_TIME 1
16721 { echo "$as_me:$LINENO: checking for int64_t" >&5
16722 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16723 if test "${ac_cv_type_int64_t+set}" = set; then
16724 echo $ECHO_N "(cached) $ECHO_C" >&6
16726 cat >conftest.$ac_ext <<_ACEOF
16729 cat confdefs.h >>conftest.$ac_ext
16730 cat >>conftest.$ac_ext <<_ACEOF
16731 /* end confdefs.h. */
16732 $ac_includes_default
16733 typedef int64_t ac__type_new_;
16737 if ((ac__type_new_ *) 0)
16739 if (sizeof (ac__type_new_))
16745 rm -f conftest.$ac_objext
16746 if { (ac_try="$ac_compile"
16747 case "(($ac_try" in
16748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16749 *) ac_try_echo=$ac_try;;
16751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16752 (eval "$ac_compile") 2>conftest.er1
16754 grep -v '^ *+' conftest.er1 >conftest.err
16756 cat conftest.err >&5
16757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16758 (exit $ac_status); } &&
16759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16760 { (case "(($ac_try" in
16761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16762 *) ac_try_echo=$ac_try;;
16764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16765 (eval "$ac_try") 2>&5
16767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16768 (exit $ac_status); }; } &&
16769 { ac_try='test -s conftest.$ac_objext'
16770 { (case "(($ac_try" in
16771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16772 *) ac_try_echo=$ac_try;;
16774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16775 (eval "$ac_try") 2>&5
16777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16778 (exit $ac_status); }; }; then
16779 ac_cv_type_int64_t=yes
16781 echo "$as_me: failed program was:" >&5
16782 sed 's/^/| /' conftest.$ac_ext >&5
16784 ac_cv_type_int64_t=no
16787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16789 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16790 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16791 if test $ac_cv_type_int64_t = yes; then
16793 cat >>confdefs.h <<_ACEOF
16794 #define HAVE_INT64_T 1
16799 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16800 echo "$as_me: error: Type int64_t required but not found" >&2;}
16801 { (exit 1); exit 1; }; }
16804 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16805 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16806 if test "${ac_cv_type_uint64_t+set}" = set; then
16807 echo $ECHO_N "(cached) $ECHO_C" >&6
16809 cat >conftest.$ac_ext <<_ACEOF
16812 cat confdefs.h >>conftest.$ac_ext
16813 cat >>conftest.$ac_ext <<_ACEOF
16814 /* end confdefs.h. */
16815 $ac_includes_default
16816 typedef uint64_t ac__type_new_;
16820 if ((ac__type_new_ *) 0)
16822 if (sizeof (ac__type_new_))
16828 rm -f conftest.$ac_objext
16829 if { (ac_try="$ac_compile"
16830 case "(($ac_try" in
16831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16832 *) ac_try_echo=$ac_try;;
16834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16835 (eval "$ac_compile") 2>conftest.er1
16837 grep -v '^ *+' conftest.er1 >conftest.err
16839 cat conftest.err >&5
16840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16841 (exit $ac_status); } &&
16842 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16843 { (case "(($ac_try" in
16844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16845 *) ac_try_echo=$ac_try;;
16847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16848 (eval "$ac_try") 2>&5
16850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851 (exit $ac_status); }; } &&
16852 { ac_try='test -s conftest.$ac_objext'
16853 { (case "(($ac_try" in
16854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16855 *) ac_try_echo=$ac_try;;
16857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16858 (eval "$ac_try") 2>&5
16860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16861 (exit $ac_status); }; }; then
16862 ac_cv_type_uint64_t=yes
16864 echo "$as_me: failed program was:" >&5
16865 sed 's/^/| /' conftest.$ac_ext >&5
16867 ac_cv_type_uint64_t=no
16870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16872 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16873 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16874 if test $ac_cv_type_uint64_t = yes; then
16876 cat >>confdefs.h <<_ACEOF
16877 #define HAVE_UINT64_T 1
16882 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16883 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16884 if test "${ac_cv_type_u_int64_t+set}" = set; then
16885 echo $ECHO_N "(cached) $ECHO_C" >&6
16887 cat >conftest.$ac_ext <<_ACEOF
16890 cat confdefs.h >>conftest.$ac_ext
16891 cat >>conftest.$ac_ext <<_ACEOF
16892 /* end confdefs.h. */
16893 $ac_includes_default
16894 typedef u_int64_t ac__type_new_;
16898 if ((ac__type_new_ *) 0)
16900 if (sizeof (ac__type_new_))
16906 rm -f conftest.$ac_objext
16907 if { (ac_try="$ac_compile"
16908 case "(($ac_try" in
16909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16910 *) ac_try_echo=$ac_try;;
16912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16913 (eval "$ac_compile") 2>conftest.er1
16915 grep -v '^ *+' conftest.er1 >conftest.err
16917 cat conftest.err >&5
16918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16919 (exit $ac_status); } &&
16920 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16921 { (case "(($ac_try" in
16922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16923 *) ac_try_echo=$ac_try;;
16925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16926 (eval "$ac_try") 2>&5
16928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929 (exit $ac_status); }; } &&
16930 { ac_try='test -s conftest.$ac_objext'
16931 { (case "(($ac_try" in
16932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16933 *) ac_try_echo=$ac_try;;
16935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16936 (eval "$ac_try") 2>&5
16938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16939 (exit $ac_status); }; }; then
16940 ac_cv_type_u_int64_t=yes
16942 echo "$as_me: failed program was:" >&5
16943 sed 's/^/| /' conftest.$ac_ext >&5
16945 ac_cv_type_u_int64_t=no
16948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16950 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16951 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16952 if test $ac_cv_type_u_int64_t = yes; then
16954 cat >>confdefs.h <<_ACEOF
16955 #define HAVE_U_INT64_T 1
16960 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16961 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16962 { (exit 1); exit 1; }; }
16976 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16978 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16979 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16980 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16981 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16982 echo $ECHO_N "(cached) $ECHO_C" >&6
16984 cat >conftest.$ac_ext <<_ACEOF
16987 cat confdefs.h >>conftest.$ac_ext
16988 cat >>conftest.$ac_ext <<_ACEOF
16989 /* end confdefs.h. */
16990 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16991 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16992 #define $ac_func innocuous_$ac_func
16994 /* System header to define __stub macros and hopefully few prototypes,
16995 which can conflict with char $ac_func (); below.
16996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16997 <limits.h> exists even on freestanding compilers. */
17000 # include <limits.h>
17002 # include <assert.h>
17007 /* Override any GCC internal prototype to avoid an error.
17008 Use char because int might match the return type of a GCC
17009 builtin and then its argument prototype would still apply. */
17014 /* The GNU C library defines this for functions which it implements
17015 to always fail with ENOSYS. Some functions are actually named
17016 something starting with __ and the normal name is an alias. */
17017 #if defined __stub_$ac_func || defined __stub___$ac_func
17024 return $ac_func ();
17029 rm -f conftest.$ac_objext conftest$ac_exeext
17030 if { (ac_try="$ac_link"
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_link") 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_exeext'
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 eval "$as_ac_var=yes"
17065 echo "$as_me: failed program was:" >&5
17066 sed 's/^/| /' conftest.$ac_ext >&5
17068 eval "$as_ac_var=no"
17071 rm -f core conftest.err conftest.$ac_objext \
17072 conftest$ac_exeext conftest.$ac_ext
17074 ac_res=`eval echo '${'$as_ac_var'}'`
17075 { echo "$as_me:$LINENO: result: $ac_res" >&5
17076 echo "${ECHO_T}$ac_res" >&6; }
17077 if test `eval echo '${'$as_ac_var'}'` = yes; then
17078 cat >>confdefs.h <<_ACEOF
17079 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17089 for ac_func in powf fmodf strtof round
17091 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17092 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17093 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17094 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17095 echo $ECHO_N "(cached) $ECHO_C" >&6
17097 cat >conftest.$ac_ext <<_ACEOF
17100 cat confdefs.h >>conftest.$ac_ext
17101 cat >>conftest.$ac_ext <<_ACEOF
17102 /* end confdefs.h. */
17103 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17104 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17105 #define $ac_func innocuous_$ac_func
17107 /* System header to define __stub macros and hopefully few prototypes,
17108 which can conflict with char $ac_func (); below.
17109 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17110 <limits.h> exists even on freestanding compilers. */
17113 # include <limits.h>
17115 # include <assert.h>
17120 /* Override any GCC internal prototype to avoid an error.
17121 Use char because int might match the return type of a GCC
17122 builtin and then its argument prototype would still apply. */
17127 /* The GNU C library defines this for functions which it implements
17128 to always fail with ENOSYS. Some functions are actually named
17129 something starting with __ and the normal name is an alias. */
17130 #if defined __stub_$ac_func || defined __stub___$ac_func
17137 return $ac_func ();
17142 rm -f conftest.$ac_objext conftest$ac_exeext
17143 if { (ac_try="$ac_link"
17144 case "(($ac_try" in
17145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17146 *) ac_try_echo=$ac_try;;
17148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17149 (eval "$ac_link") 2>conftest.er1
17151 grep -v '^ *+' conftest.er1 >conftest.err
17153 cat conftest.err >&5
17154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155 (exit $ac_status); } &&
17156 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17157 { (case "(($ac_try" in
17158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17159 *) ac_try_echo=$ac_try;;
17161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17162 (eval "$ac_try") 2>&5
17164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17165 (exit $ac_status); }; } &&
17166 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17176 eval "$as_ac_var=yes"
17178 echo "$as_me: failed program was:" >&5
17179 sed 's/^/| /' conftest.$ac_ext >&5
17181 eval "$as_ac_var=no"
17184 rm -f core conftest.err conftest.$ac_objext \
17185 conftest$ac_exeext conftest.$ac_ext
17187 ac_res=`eval echo '${'$as_ac_var'}'`
17188 { echo "$as_me:$LINENO: result: $ac_res" >&5
17189 echo "${ECHO_T}$ac_res" >&6; }
17190 if test `eval echo '${'$as_ac_var'}'` = yes; then
17191 cat >>confdefs.h <<_ACEOF
17192 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17203 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17205 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17206 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17207 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17208 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17209 echo $ECHO_N "(cached) $ECHO_C" >&6
17211 cat >conftest.$ac_ext <<_ACEOF
17214 cat confdefs.h >>conftest.$ac_ext
17215 cat >>conftest.$ac_ext <<_ACEOF
17216 /* end confdefs.h. */
17217 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17218 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17219 #define $ac_func innocuous_$ac_func
17221 /* System header to define __stub macros and hopefully few prototypes,
17222 which can conflict with char $ac_func (); below.
17223 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17224 <limits.h> exists even on freestanding compilers. */
17227 # include <limits.h>
17229 # include <assert.h>
17234 /* Override any GCC internal prototype to avoid an error.
17235 Use char because int might match the return type of a GCC
17236 builtin and then its argument prototype would still apply. */
17241 /* The GNU C library defines this for functions which it implements
17242 to always fail with ENOSYS. Some functions are actually named
17243 something starting with __ and the normal name is an alias. */
17244 #if defined __stub_$ac_func || defined __stub___$ac_func
17251 return $ac_func ();
17256 rm -f conftest.$ac_objext conftest$ac_exeext
17257 if { (ac_try="$ac_link"
17258 case "(($ac_try" in
17259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17260 *) ac_try_echo=$ac_try;;
17262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17263 (eval "$ac_link") 2>conftest.er1
17265 grep -v '^ *+' conftest.er1 >conftest.err
17267 cat conftest.err >&5
17268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17269 (exit $ac_status); } &&
17270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17271 { (case "(($ac_try" in
17272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17273 *) ac_try_echo=$ac_try;;
17275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17276 (eval "$ac_try") 2>&5
17278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17279 (exit $ac_status); }; } &&
17280 { ac_try='test -s conftest$ac_exeext'
17281 { (case "(($ac_try" in
17282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17283 *) ac_try_echo=$ac_try;;
17285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17286 (eval "$ac_try") 2>&5
17288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17289 (exit $ac_status); }; }; then
17290 eval "$as_ac_var=yes"
17292 echo "$as_me: failed program was:" >&5
17293 sed 's/^/| /' conftest.$ac_ext >&5
17295 eval "$as_ac_var=no"
17298 rm -f core conftest.err conftest.$ac_objext \
17299 conftest$ac_exeext conftest.$ac_ext
17301 ac_res=`eval echo '${'$as_ac_var'}'`
17302 { echo "$as_me:$LINENO: result: $ac_res" >&5
17303 echo "${ECHO_T}$ac_res" >&6; }
17304 if test `eval echo '${'$as_ac_var'}'` = yes; then
17305 cat >>confdefs.h <<_ACEOF
17306 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17315 for ac_func in isatty mkdtemp mkstemp
17317 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17318 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17319 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17320 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17321 echo $ECHO_N "(cached) $ECHO_C" >&6
17323 cat >conftest.$ac_ext <<_ACEOF
17326 cat confdefs.h >>conftest.$ac_ext
17327 cat >>conftest.$ac_ext <<_ACEOF
17328 /* end confdefs.h. */
17329 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17330 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17331 #define $ac_func innocuous_$ac_func
17333 /* System header to define __stub macros and hopefully few prototypes,
17334 which can conflict with char $ac_func (); below.
17335 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17336 <limits.h> exists even on freestanding compilers. */
17339 # include <limits.h>
17341 # include <assert.h>
17346 /* Override any GCC internal prototype to avoid an error.
17347 Use char because int might match the return type of a GCC
17348 builtin and then its argument prototype would still apply. */
17353 /* The GNU C library defines this for functions which it implements
17354 to always fail with ENOSYS. Some functions are actually named
17355 something starting with __ and the normal name is an alias. */
17356 #if defined __stub_$ac_func || defined __stub___$ac_func
17363 return $ac_func ();
17368 rm -f conftest.$ac_objext conftest$ac_exeext
17369 if { (ac_try="$ac_link"
17370 case "(($ac_try" in
17371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17372 *) ac_try_echo=$ac_try;;
17374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17375 (eval "$ac_link") 2>conftest.er1
17377 grep -v '^ *+' conftest.er1 >conftest.err
17379 cat conftest.err >&5
17380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17381 (exit $ac_status); } &&
17382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17383 { (case "(($ac_try" in
17384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17385 *) ac_try_echo=$ac_try;;
17387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17388 (eval "$ac_try") 2>&5
17390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17391 (exit $ac_status); }; } &&
17392 { ac_try='test -s conftest$ac_exeext'
17393 { (case "(($ac_try" in
17394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17395 *) ac_try_echo=$ac_try;;
17397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17398 (eval "$ac_try") 2>&5
17400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17401 (exit $ac_status); }; }; then
17402 eval "$as_ac_var=yes"
17404 echo "$as_me: failed program was:" >&5
17405 sed 's/^/| /' conftest.$ac_ext >&5
17407 eval "$as_ac_var=no"
17410 rm -f core conftest.err conftest.$ac_objext \
17411 conftest$ac_exeext conftest.$ac_ext
17413 ac_res=`eval echo '${'$as_ac_var'}'`
17414 { echo "$as_me:$LINENO: result: $ac_res" >&5
17415 echo "${ECHO_T}$ac_res" >&6; }
17416 if test `eval echo '${'$as_ac_var'}'` = yes; then
17417 cat >>confdefs.h <<_ACEOF
17418 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17429 for ac_func in mktemp realpath sbrk setrlimit strdup
17431 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17432 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17433 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17434 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17435 echo $ECHO_N "(cached) $ECHO_C" >&6
17437 cat >conftest.$ac_ext <<_ACEOF
17440 cat confdefs.h >>conftest.$ac_ext
17441 cat >>conftest.$ac_ext <<_ACEOF
17442 /* end confdefs.h. */
17443 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17444 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17445 #define $ac_func innocuous_$ac_func
17447 /* System header to define __stub macros and hopefully few prototypes,
17448 which can conflict with char $ac_func (); below.
17449 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17450 <limits.h> exists even on freestanding compilers. */
17453 # include <limits.h>
17455 # include <assert.h>
17460 /* Override any GCC internal prototype to avoid an error.
17461 Use char because int might match the return type of a GCC
17462 builtin and then its argument prototype would still apply. */
17467 /* The GNU C library defines this for functions which it implements
17468 to always fail with ENOSYS. Some functions are actually named
17469 something starting with __ and the normal name is an alias. */
17470 #if defined __stub_$ac_func || defined __stub___$ac_func
17477 return $ac_func ();
17482 rm -f conftest.$ac_objext conftest$ac_exeext
17483 if { (ac_try="$ac_link"
17484 case "(($ac_try" in
17485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17486 *) ac_try_echo=$ac_try;;
17488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17489 (eval "$ac_link") 2>conftest.er1
17491 grep -v '^ *+' conftest.er1 >conftest.err
17493 cat conftest.err >&5
17494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17495 (exit $ac_status); } &&
17496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17497 { (case "(($ac_try" in
17498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17499 *) ac_try_echo=$ac_try;;
17501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17502 (eval "$ac_try") 2>&5
17504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17505 (exit $ac_status); }; } &&
17506 { ac_try='test -s conftest$ac_exeext'
17507 { (case "(($ac_try" in
17508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17509 *) ac_try_echo=$ac_try;;
17511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17512 (eval "$ac_try") 2>&5
17514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17515 (exit $ac_status); }; }; then
17516 eval "$as_ac_var=yes"
17518 echo "$as_me: failed program was:" >&5
17519 sed 's/^/| /' conftest.$ac_ext >&5
17521 eval "$as_ac_var=no"
17524 rm -f core conftest.err conftest.$ac_objext \
17525 conftest$ac_exeext conftest.$ac_ext
17527 ac_res=`eval echo '${'$as_ac_var'}'`
17528 { echo "$as_me:$LINENO: result: $ac_res" >&5
17529 echo "${ECHO_T}$ac_res" >&6; }
17530 if test `eval echo '${'$as_ac_var'}'` = yes; then
17531 cat >>confdefs.h <<_ACEOF
17532 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17542 for ac_func in strerror strerror_r strerror_s setenv
17544 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17545 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17546 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17547 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17548 echo $ECHO_N "(cached) $ECHO_C" >&6
17550 cat >conftest.$ac_ext <<_ACEOF
17553 cat confdefs.h >>conftest.$ac_ext
17554 cat >>conftest.$ac_ext <<_ACEOF
17555 /* end confdefs.h. */
17556 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17557 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17558 #define $ac_func innocuous_$ac_func
17560 /* System header to define __stub macros and hopefully few prototypes,
17561 which can conflict with char $ac_func (); below.
17562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17563 <limits.h> exists even on freestanding compilers. */
17566 # include <limits.h>
17568 # include <assert.h>
17573 /* Override any GCC internal prototype to avoid an error.
17574 Use char because int might match the return type of a GCC
17575 builtin and then its argument prototype would still apply. */
17580 /* The GNU C library defines this for functions which it implements
17581 to always fail with ENOSYS. Some functions are actually named
17582 something starting with __ and the normal name is an alias. */
17583 #if defined __stub_$ac_func || defined __stub___$ac_func
17590 return $ac_func ();
17595 rm -f conftest.$ac_objext conftest$ac_exeext
17596 if { (ac_try="$ac_link"
17597 case "(($ac_try" in
17598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17599 *) ac_try_echo=$ac_try;;
17601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17602 (eval "$ac_link") 2>conftest.er1
17604 grep -v '^ *+' conftest.er1 >conftest.err
17606 cat conftest.err >&5
17607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17608 (exit $ac_status); } &&
17609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17610 { (case "(($ac_try" in
17611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17612 *) ac_try_echo=$ac_try;;
17614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17615 (eval "$ac_try") 2>&5
17617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17618 (exit $ac_status); }; } &&
17619 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17629 eval "$as_ac_var=yes"
17631 echo "$as_me: failed program was:" >&5
17632 sed 's/^/| /' conftest.$ac_ext >&5
17634 eval "$as_ac_var=no"
17637 rm -f core conftest.err conftest.$ac_objext \
17638 conftest$ac_exeext conftest.$ac_ext
17640 ac_res=`eval echo '${'$as_ac_var'}'`
17641 { echo "$as_me:$LINENO: result: $ac_res" >&5
17642 echo "${ECHO_T}$ac_res" >&6; }
17643 if test `eval echo '${'$as_ac_var'}'` = yes; then
17644 cat >>confdefs.h <<_ACEOF
17645 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17655 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17657 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17658 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17659 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17660 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17661 echo $ECHO_N "(cached) $ECHO_C" >&6
17663 cat >conftest.$ac_ext <<_ACEOF
17666 cat confdefs.h >>conftest.$ac_ext
17667 cat >>conftest.$ac_ext <<_ACEOF
17668 /* end confdefs.h. */
17669 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17670 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17671 #define $ac_func innocuous_$ac_func
17673 /* System header to define __stub macros and hopefully few prototypes,
17674 which can conflict with char $ac_func (); below.
17675 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17676 <limits.h> exists even on freestanding compilers. */
17679 # include <limits.h>
17681 # include <assert.h>
17686 /* Override any GCC internal prototype to avoid an error.
17687 Use char because int might match the return type of a GCC
17688 builtin and then its argument prototype would still apply. */
17693 /* The GNU C library defines this for functions which it implements
17694 to always fail with ENOSYS. Some functions are actually named
17695 something starting with __ and the normal name is an alias. */
17696 #if defined __stub_$ac_func || defined __stub___$ac_func
17703 return $ac_func ();
17708 rm -f conftest.$ac_objext conftest$ac_exeext
17709 if { (ac_try="$ac_link"
17710 case "(($ac_try" in
17711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17712 *) ac_try_echo=$ac_try;;
17714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17715 (eval "$ac_link") 2>conftest.er1
17717 grep -v '^ *+' conftest.er1 >conftest.err
17719 cat conftest.err >&5
17720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721 (exit $ac_status); } &&
17722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17723 { (case "(($ac_try" in
17724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17725 *) ac_try_echo=$ac_try;;
17727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17728 (eval "$ac_try") 2>&5
17730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17731 (exit $ac_status); }; } &&
17732 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17742 eval "$as_ac_var=yes"
17744 echo "$as_me: failed program was:" >&5
17745 sed 's/^/| /' conftest.$ac_ext >&5
17747 eval "$as_ac_var=no"
17750 rm -f core conftest.err conftest.$ac_objext \
17751 conftest$ac_exeext conftest.$ac_ext
17753 ac_res=`eval echo '${'$as_ac_var'}'`
17754 { echo "$as_me:$LINENO: result: $ac_res" >&5
17755 echo "${ECHO_T}$ac_res" >&6; }
17756 if test `eval echo '${'$as_ac_var'}'` = yes; then
17757 cat >>confdefs.h <<_ACEOF
17758 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17768 for ac_func in setjmp longjmp sigsetjmp siglongjmp
17770 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17771 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17772 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17773 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17774 echo $ECHO_N "(cached) $ECHO_C" >&6
17776 cat >conftest.$ac_ext <<_ACEOF
17779 cat confdefs.h >>conftest.$ac_ext
17780 cat >>conftest.$ac_ext <<_ACEOF
17781 /* end confdefs.h. */
17782 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17783 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17784 #define $ac_func innocuous_$ac_func
17786 /* System header to define __stub macros and hopefully few prototypes,
17787 which can conflict with char $ac_func (); below.
17788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17789 <limits.h> exists even on freestanding compilers. */
17792 # include <limits.h>
17794 # include <assert.h>
17799 /* Override any GCC internal prototype to avoid an error.
17800 Use char because int might match the return type of a GCC
17801 builtin and then its argument prototype would still apply. */
17806 /* The GNU C library defines this for functions which it implements
17807 to always fail with ENOSYS. Some functions are actually named
17808 something starting with __ and the normal name is an alias. */
17809 #if defined __stub_$ac_func || defined __stub___$ac_func
17816 return $ac_func ();
17821 rm -f conftest.$ac_objext conftest$ac_exeext
17822 if { (ac_try="$ac_link"
17823 case "(($ac_try" in
17824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17825 *) ac_try_echo=$ac_try;;
17827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17828 (eval "$ac_link") 2>conftest.er1
17830 grep -v '^ *+' conftest.er1 >conftest.err
17832 cat conftest.err >&5
17833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17834 (exit $ac_status); } &&
17835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17836 { (case "(($ac_try" in
17837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17838 *) ac_try_echo=$ac_try;;
17840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17841 (eval "$ac_try") 2>&5
17843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17844 (exit $ac_status); }; } &&
17845 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17855 eval "$as_ac_var=yes"
17857 echo "$as_me: failed program was:" >&5
17858 sed 's/^/| /' conftest.$ac_ext >&5
17860 eval "$as_ac_var=no"
17863 rm -f core conftest.err conftest.$ac_objext \
17864 conftest$ac_exeext conftest.$ac_ext
17866 ac_res=`eval echo '${'$as_ac_var'}'`
17867 { echo "$as_me:$LINENO: result: $ac_res" >&5
17868 echo "${ECHO_T}$ac_res" >&6; }
17869 if test `eval echo '${'$as_ac_var'}'` = yes; then
17870 cat >>confdefs.h <<_ACEOF
17871 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17877 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17878 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17879 if test "${llvm_cv_c_printf_a+set}" = set; then
17880 echo $ECHO_N "(cached) $ECHO_C" >&6
17883 ac_cpp='$CPP $CPPFLAGS'
17884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17888 if test "$cross_compiling" = yes; then
17889 llvmac_cv_c_printf_a=no
17891 cat >conftest.$ac_ext <<_ACEOF
17895 cat confdefs.h >>conftest.$ac_ext
17896 cat >>conftest.$ac_ext <<_ACEOF
17897 /* end confdefs.h. */
17900 #include <stdlib.h>
17906 volatile double A, B;
17910 sprintf(Buffer, "%a", A);
17914 if (A != 0x1.999999999999ap-4)
17921 rm -f conftest$ac_exeext
17922 if { (ac_try="$ac_link"
17923 case "(($ac_try" in
17924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17925 *) ac_try_echo=$ac_try;;
17927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17928 (eval "$ac_link") 2>&5
17930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17931 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17932 { (case "(($ac_try" in
17933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17934 *) ac_try_echo=$ac_try;;
17936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17937 (eval "$ac_try") 2>&5
17939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17940 (exit $ac_status); }; }; then
17941 llvm_cv_c_printf_a=yes
17943 echo "$as_me: program exited with status $ac_status" >&5
17944 echo "$as_me: failed program was:" >&5
17945 sed 's/^/| /' conftest.$ac_ext >&5
17947 ( exit $ac_status )
17948 llvmac_cv_c_printf_a=no
17950 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17955 ac_cpp='$CPP $CPPFLAGS'
17956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17961 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17962 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17963 if test "$llvm_cv_c_printf_a" = "yes"; then
17965 cat >>confdefs.h <<\_ACEOF
17966 #define HAVE_PRINTF_A 1
17972 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17973 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17974 if test "${ac_cv_func_rand48+set}" = set; then
17975 echo $ECHO_N "(cached) $ECHO_C" >&6
17978 ac_cpp='$CXXCPP $CPPFLAGS'
17979 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17980 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17981 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17983 cat >conftest.$ac_ext <<_ACEOF
17986 cat confdefs.h >>conftest.$ac_ext
17987 cat >>conftest.$ac_ext <<_ACEOF
17988 /* end confdefs.h. */
17989 #include <stdlib.h>
17993 srand48(0);lrand48();drand48();
17998 rm -f conftest.$ac_objext
17999 if { (ac_try="$ac_compile"
18000 case "(($ac_try" in
18001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18002 *) ac_try_echo=$ac_try;;
18004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18005 (eval "$ac_compile") 2>conftest.er1
18007 grep -v '^ *+' conftest.er1 >conftest.err
18009 cat conftest.err >&5
18010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18011 (exit $ac_status); } &&
18012 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18013 { (case "(($ac_try" in
18014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18015 *) ac_try_echo=$ac_try;;
18017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18018 (eval "$ac_try") 2>&5
18020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18021 (exit $ac_status); }; } &&
18022 { ac_try='test -s conftest.$ac_objext'
18023 { (case "(($ac_try" in
18024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18025 *) ac_try_echo=$ac_try;;
18027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18028 (eval "$ac_try") 2>&5
18030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18031 (exit $ac_status); }; }; then
18032 ac_cv_func_rand48=yes
18034 echo "$as_me: failed program was:" >&5
18035 sed 's/^/| /' conftest.$ac_ext >&5
18037 ac_cv_func_rand48=no
18040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18042 ac_cpp='$CPP $CPPFLAGS'
18043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18048 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18049 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18051 if test "$ac_cv_func_rand48" = "yes" ; then
18053 cat >>confdefs.h <<\_ACEOF
18054 #define HAVE_RAND48 1
18061 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
18062 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
18063 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
18064 echo $ECHO_N "(cached) $ECHO_C" >&6
18067 ac_cpp='$CXXCPP $CPPFLAGS'
18068 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18069 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18070 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18072 cat >conftest.$ac_ext <<_ACEOF
18075 cat confdefs.h >>conftest.$ac_ext
18076 cat >>conftest.$ac_ext <<_ACEOF
18077 /* end confdefs.h. */
18087 rm -f conftest.$ac_objext
18088 if { (ac_try="$ac_compile"
18089 case "(($ac_try" in
18090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18091 *) ac_try_echo=$ac_try;;
18093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18094 (eval "$ac_compile") 2>conftest.er1
18096 grep -v '^ *+' conftest.er1 >conftest.err
18098 cat conftest.err >&5
18099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18100 (exit $ac_status); } &&
18101 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18102 { (case "(($ac_try" in
18103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18104 *) ac_try_echo=$ac_try;;
18106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18107 (eval "$ac_try") 2>&5
18109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18110 (exit $ac_status); }; } &&
18111 { ac_try='test -s conftest.$ac_objext'
18112 { (case "(($ac_try" in
18113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18114 *) ac_try_echo=$ac_try;;
18116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18117 (eval "$ac_try") 2>&5
18119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18120 (exit $ac_status); }; }; then
18121 ac_cv_func_isnan_in_math_h=yes
18123 echo "$as_me: failed program was:" >&5
18124 sed 's/^/| /' conftest.$ac_ext >&5
18126 ac_cv_func_isnan_in_math_h=no
18129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18131 ac_cpp='$CPP $CPPFLAGS'
18132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18137 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
18138 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
18141 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
18143 cat >>confdefs.h <<\_ACEOF
18144 #define HAVE_ISNAN_IN_MATH_H 1
18149 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
18150 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
18151 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
18152 echo $ECHO_N "(cached) $ECHO_C" >&6
18155 ac_cpp='$CXXCPP $CPPFLAGS'
18156 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18157 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18158 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18160 cat >conftest.$ac_ext <<_ACEOF
18163 cat confdefs.h >>conftest.$ac_ext
18164 cat >>conftest.$ac_ext <<_ACEOF
18165 /* end confdefs.h. */
18175 rm -f conftest.$ac_objext
18176 if { (ac_try="$ac_compile"
18177 case "(($ac_try" in
18178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18179 *) ac_try_echo=$ac_try;;
18181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18182 (eval "$ac_compile") 2>conftest.er1
18184 grep -v '^ *+' conftest.er1 >conftest.err
18186 cat conftest.err >&5
18187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18188 (exit $ac_status); } &&
18189 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18190 { (case "(($ac_try" in
18191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18192 *) ac_try_echo=$ac_try;;
18194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18195 (eval "$ac_try") 2>&5
18197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18198 (exit $ac_status); }; } &&
18199 { ac_try='test -s conftest.$ac_objext'
18200 { (case "(($ac_try" in
18201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18202 *) ac_try_echo=$ac_try;;
18204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18205 (eval "$ac_try") 2>&5
18207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18208 (exit $ac_status); }; }; then
18209 ac_cv_func_isnan_in_cmath=yes
18211 echo "$as_me: failed program was:" >&5
18212 sed 's/^/| /' conftest.$ac_ext >&5
18214 ac_cv_func_isnan_in_cmath=no
18217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18219 ac_cpp='$CPP $CPPFLAGS'
18220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18225 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
18226 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
18228 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
18230 cat >>confdefs.h <<\_ACEOF
18231 #define HAVE_ISNAN_IN_CMATH 1
18236 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
18237 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
18238 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
18239 echo $ECHO_N "(cached) $ECHO_C" >&6
18242 ac_cpp='$CXXCPP $CPPFLAGS'
18243 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18244 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18245 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18247 cat >conftest.$ac_ext <<_ACEOF
18250 cat confdefs.h >>conftest.$ac_ext
18251 cat >>conftest.$ac_ext <<_ACEOF
18252 /* end confdefs.h. */
18257 float f; std::isnan(f);
18262 rm -f conftest.$ac_objext
18263 if { (ac_try="$ac_compile"
18264 case "(($ac_try" in
18265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18266 *) ac_try_echo=$ac_try;;
18268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18269 (eval "$ac_compile") 2>conftest.er1
18271 grep -v '^ *+' conftest.er1 >conftest.err
18273 cat conftest.err >&5
18274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18275 (exit $ac_status); } &&
18276 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18277 { (case "(($ac_try" in
18278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18279 *) ac_try_echo=$ac_try;;
18281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18282 (eval "$ac_try") 2>&5
18284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285 (exit $ac_status); }; } &&
18286 { ac_try='test -s conftest.$ac_objext'
18287 { (case "(($ac_try" in
18288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18289 *) ac_try_echo=$ac_try;;
18291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18292 (eval "$ac_try") 2>&5
18294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18295 (exit $ac_status); }; }; then
18296 ac_cv_func_std_isnan_in_cmath=yes
18298 echo "$as_me: failed program was:" >&5
18299 sed 's/^/| /' conftest.$ac_ext >&5
18301 ac_cv_func_std_isnan_in_cmath=no
18304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18306 ac_cpp='$CPP $CPPFLAGS'
18307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18312 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
18313 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
18315 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
18317 cat >>confdefs.h <<\_ACEOF
18318 #define HAVE_STD_ISNAN_IN_CMATH 1
18324 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
18325 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
18326 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
18327 echo $ECHO_N "(cached) $ECHO_C" >&6
18330 ac_cpp='$CXXCPP $CPPFLAGS'
18331 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18332 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18333 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18335 cat >conftest.$ac_ext <<_ACEOF
18338 cat confdefs.h >>conftest.$ac_ext
18339 cat >>conftest.$ac_ext <<_ACEOF
18340 /* end confdefs.h. */
18350 rm -f conftest.$ac_objext
18351 if { (ac_try="$ac_compile"
18352 case "(($ac_try" in
18353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18354 *) ac_try_echo=$ac_try;;
18356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18357 (eval "$ac_compile") 2>conftest.er1
18359 grep -v '^ *+' conftest.er1 >conftest.err
18361 cat conftest.err >&5
18362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18363 (exit $ac_status); } &&
18364 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18365 { (case "(($ac_try" in
18366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18367 *) ac_try_echo=$ac_try;;
18369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18370 (eval "$ac_try") 2>&5
18372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18373 (exit $ac_status); }; } &&
18374 { ac_try='test -s conftest.$ac_objext'
18375 { (case "(($ac_try" in
18376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18377 *) ac_try_echo=$ac_try;;
18379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18380 (eval "$ac_try") 2>&5
18382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18383 (exit $ac_status); }; }; then
18384 ac_cv_func_isinf_in_math_h=yes
18386 echo "$as_me: failed program was:" >&5
18387 sed 's/^/| /' conftest.$ac_ext >&5
18389 ac_cv_func_isinf_in_math_h=no
18392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18394 ac_cpp='$CPP $CPPFLAGS'
18395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18400 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
18401 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
18403 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
18405 cat >>confdefs.h <<\_ACEOF
18406 #define HAVE_ISINF_IN_MATH_H 1
18411 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
18412 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
18413 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
18414 echo $ECHO_N "(cached) $ECHO_C" >&6
18417 ac_cpp='$CXXCPP $CPPFLAGS'
18418 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18419 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18420 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18422 cat >conftest.$ac_ext <<_ACEOF
18425 cat confdefs.h >>conftest.$ac_ext
18426 cat >>conftest.$ac_ext <<_ACEOF
18427 /* end confdefs.h. */
18437 rm -f conftest.$ac_objext
18438 if { (ac_try="$ac_compile"
18439 case "(($ac_try" in
18440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18441 *) ac_try_echo=$ac_try;;
18443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18444 (eval "$ac_compile") 2>conftest.er1
18446 grep -v '^ *+' conftest.er1 >conftest.err
18448 cat conftest.err >&5
18449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450 (exit $ac_status); } &&
18451 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18452 { (case "(($ac_try" in
18453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18454 *) ac_try_echo=$ac_try;;
18456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18457 (eval "$ac_try") 2>&5
18459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18460 (exit $ac_status); }; } &&
18461 { ac_try='test -s conftest.$ac_objext'
18462 { (case "(($ac_try" in
18463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18464 *) ac_try_echo=$ac_try;;
18466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18467 (eval "$ac_try") 2>&5
18469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18470 (exit $ac_status); }; }; then
18471 ac_cv_func_isinf_in_cmath=yes
18473 echo "$as_me: failed program was:" >&5
18474 sed 's/^/| /' conftest.$ac_ext >&5
18476 ac_cv_func_isinf_in_cmath=no
18479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18481 ac_cpp='$CPP $CPPFLAGS'
18482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18487 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
18488 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
18490 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
18492 cat >>confdefs.h <<\_ACEOF
18493 #define HAVE_ISINF_IN_CMATH 1
18498 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
18499 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
18500 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
18501 echo $ECHO_N "(cached) $ECHO_C" >&6
18504 ac_cpp='$CXXCPP $CPPFLAGS'
18505 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18506 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18507 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18509 cat >conftest.$ac_ext <<_ACEOF
18512 cat confdefs.h >>conftest.$ac_ext
18513 cat >>conftest.$ac_ext <<_ACEOF
18514 /* end confdefs.h. */
18519 float f; std::isinf(f)}
18524 rm -f conftest.$ac_objext
18525 if { (ac_try="$ac_compile"
18526 case "(($ac_try" in
18527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18528 *) ac_try_echo=$ac_try;;
18530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18531 (eval "$ac_compile") 2>conftest.er1
18533 grep -v '^ *+' conftest.er1 >conftest.err
18535 cat conftest.err >&5
18536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18537 (exit $ac_status); } &&
18538 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18539 { (case "(($ac_try" in
18540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18541 *) ac_try_echo=$ac_try;;
18543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18544 (eval "$ac_try") 2>&5
18546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18547 (exit $ac_status); }; } &&
18548 { ac_try='test -s conftest.$ac_objext'
18549 { (case "(($ac_try" in
18550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18551 *) ac_try_echo=$ac_try;;
18553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18554 (eval "$ac_try") 2>&5
18556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18557 (exit $ac_status); }; }; then
18558 ac_cv_func_std_isinf_in_cmath=yes
18560 echo "$as_me: failed program was:" >&5
18561 sed 's/^/| /' conftest.$ac_ext >&5
18563 ac_cv_func_std_isinf_in_cmath=no
18566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18568 ac_cpp='$CPP $CPPFLAGS'
18569 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18570 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18571 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18574 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
18575 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
18577 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
18579 cat >>confdefs.h <<\_ACEOF
18580 #define HAVE_STD_ISINF_IN_CMATH 1
18585 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
18586 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
18587 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
18588 echo $ECHO_N "(cached) $ECHO_C" >&6
18591 ac_cpp='$CXXCPP $CPPFLAGS'
18592 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18593 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18594 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18596 cat >conftest.$ac_ext <<_ACEOF
18599 cat confdefs.h >>conftest.$ac_ext
18600 cat >>conftest.$ac_ext <<_ACEOF
18601 /* end confdefs.h. */
18602 #include <ieeefp.h>
18606 float f; finite(f);
18611 rm -f conftest.$ac_objext
18612 if { (ac_try="$ac_compile"
18613 case "(($ac_try" in
18614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18615 *) ac_try_echo=$ac_try;;
18617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18618 (eval "$ac_compile") 2>conftest.er1
18620 grep -v '^ *+' conftest.er1 >conftest.err
18622 cat conftest.err >&5
18623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18624 (exit $ac_status); } &&
18625 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18626 { (case "(($ac_try" in
18627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18628 *) ac_try_echo=$ac_try;;
18630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18631 (eval "$ac_try") 2>&5
18633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18634 (exit $ac_status); }; } &&
18635 { ac_try='test -s conftest.$ac_objext'
18636 { (case "(($ac_try" in
18637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18638 *) ac_try_echo=$ac_try;;
18640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18641 (eval "$ac_try") 2>&5
18643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18644 (exit $ac_status); }; }; then
18645 ac_cv_func_finite_in_ieeefp_h=yes
18647 echo "$as_me: failed program was:" >&5
18648 sed 's/^/| /' conftest.$ac_ext >&5
18650 ac_cv_func_finite_in_ieeefp_h=no
18653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18655 ac_cpp='$CPP $CPPFLAGS'
18656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18661 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
18662 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
18664 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
18666 cat >>confdefs.h <<\_ACEOF
18667 #define HAVE_FINITE_IN_IEEEFP_H 1
18674 if test "$llvm_cv_platform_type" = "Unix" ; then
18677 for ac_header in stdlib.h unistd.h
18679 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18680 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18681 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18683 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18684 echo $ECHO_N "(cached) $ECHO_C" >&6
18686 ac_res=`eval echo '${'$as_ac_Header'}'`
18687 { echo "$as_me:$LINENO: result: $ac_res" >&5
18688 echo "${ECHO_T}$ac_res" >&6; }
18690 # Is the header compilable?
18691 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18692 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18693 cat >conftest.$ac_ext <<_ACEOF
18696 cat confdefs.h >>conftest.$ac_ext
18697 cat >>conftest.$ac_ext <<_ACEOF
18698 /* end confdefs.h. */
18699 $ac_includes_default
18700 #include <$ac_header>
18702 rm -f conftest.$ac_objext
18703 if { (ac_try="$ac_compile"
18704 case "(($ac_try" in
18705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18706 *) ac_try_echo=$ac_try;;
18708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18709 (eval "$ac_compile") 2>conftest.er1
18711 grep -v '^ *+' conftest.er1 >conftest.err
18713 cat conftest.err >&5
18714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18715 (exit $ac_status); } &&
18716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18717 { (case "(($ac_try" in
18718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18719 *) ac_try_echo=$ac_try;;
18721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18722 (eval "$ac_try") 2>&5
18724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18725 (exit $ac_status); }; } &&
18726 { ac_try='test -s conftest.$ac_objext'
18727 { (case "(($ac_try" in
18728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18729 *) ac_try_echo=$ac_try;;
18731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18732 (eval "$ac_try") 2>&5
18734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18735 (exit $ac_status); }; }; then
18736 ac_header_compiler=yes
18738 echo "$as_me: failed program was:" >&5
18739 sed 's/^/| /' conftest.$ac_ext >&5
18741 ac_header_compiler=no
18744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18745 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18746 echo "${ECHO_T}$ac_header_compiler" >&6; }
18748 # Is the header present?
18749 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18750 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18751 cat >conftest.$ac_ext <<_ACEOF
18754 cat confdefs.h >>conftest.$ac_ext
18755 cat >>conftest.$ac_ext <<_ACEOF
18756 /* end confdefs.h. */
18757 #include <$ac_header>
18759 if { (ac_try="$ac_cpp conftest.$ac_ext"
18760 case "(($ac_try" in
18761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18762 *) ac_try_echo=$ac_try;;
18764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18765 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18767 grep -v '^ *+' conftest.er1 >conftest.err
18769 cat conftest.err >&5
18770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18771 (exit $ac_status); } >/dev/null; then
18772 if test -s conftest.err; then
18773 ac_cpp_err=$ac_c_preproc_warn_flag
18774 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18781 if test -z "$ac_cpp_err"; then
18782 ac_header_preproc=yes
18784 echo "$as_me: failed program was:" >&5
18785 sed 's/^/| /' conftest.$ac_ext >&5
18787 ac_header_preproc=no
18790 rm -f conftest.err conftest.$ac_ext
18791 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18792 echo "${ECHO_T}$ac_header_preproc" >&6; }
18794 # So? What about this header?
18795 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18797 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18798 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18800 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18801 ac_header_preproc=yes
18804 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18805 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18806 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18807 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18808 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18809 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18810 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18811 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18812 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18813 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18814 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18815 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18817 ## ----------------------------------- ##
18818 ## Report this to llvmbugs@cs.uiuc.edu ##
18819 ## ----------------------------------- ##
18821 ) | sed "s/^/$as_me: WARNING: /" >&2
18824 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18825 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18826 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18827 echo $ECHO_N "(cached) $ECHO_C" >&6
18829 eval "$as_ac_Header=\$ac_header_preproc"
18831 ac_res=`eval echo '${'$as_ac_Header'}'`
18832 { echo "$as_me:$LINENO: result: $ac_res" >&5
18833 echo "${ECHO_T}$ac_res" >&6; }
18836 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18837 cat >>confdefs.h <<_ACEOF
18838 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18846 for ac_func in getpagesize
18848 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18849 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18850 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18851 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18852 echo $ECHO_N "(cached) $ECHO_C" >&6
18854 cat >conftest.$ac_ext <<_ACEOF
18857 cat confdefs.h >>conftest.$ac_ext
18858 cat >>conftest.$ac_ext <<_ACEOF
18859 /* end confdefs.h. */
18860 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18861 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18862 #define $ac_func innocuous_$ac_func
18864 /* System header to define __stub macros and hopefully few prototypes,
18865 which can conflict with char $ac_func (); below.
18866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18867 <limits.h> exists even on freestanding compilers. */
18870 # include <limits.h>
18872 # include <assert.h>
18877 /* Override any GCC internal prototype to avoid an error.
18878 Use char because int might match the return type of a GCC
18879 builtin and then its argument prototype would still apply. */
18884 /* The GNU C library defines this for functions which it implements
18885 to always fail with ENOSYS. Some functions are actually named
18886 something starting with __ and the normal name is an alias. */
18887 #if defined __stub_$ac_func || defined __stub___$ac_func
18894 return $ac_func ();
18899 rm -f conftest.$ac_objext conftest$ac_exeext
18900 if { (ac_try="$ac_link"
18901 case "(($ac_try" in
18902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18903 *) ac_try_echo=$ac_try;;
18905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18906 (eval "$ac_link") 2>conftest.er1
18908 grep -v '^ *+' conftest.er1 >conftest.err
18910 cat conftest.err >&5
18911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18912 (exit $ac_status); } &&
18913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18914 { (case "(($ac_try" in
18915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18916 *) ac_try_echo=$ac_try;;
18918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18919 (eval "$ac_try") 2>&5
18921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18922 (exit $ac_status); }; } &&
18923 { ac_try='test -s conftest$ac_exeext'
18924 { (case "(($ac_try" in
18925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18926 *) ac_try_echo=$ac_try;;
18928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18929 (eval "$ac_try") 2>&5
18931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18932 (exit $ac_status); }; }; then
18933 eval "$as_ac_var=yes"
18935 echo "$as_me: failed program was:" >&5
18936 sed 's/^/| /' conftest.$ac_ext >&5
18938 eval "$as_ac_var=no"
18941 rm -f core conftest.err conftest.$ac_objext \
18942 conftest$ac_exeext conftest.$ac_ext
18944 ac_res=`eval echo '${'$as_ac_var'}'`
18945 { echo "$as_me:$LINENO: result: $ac_res" >&5
18946 echo "${ECHO_T}$ac_res" >&6; }
18947 if test `eval echo '${'$as_ac_var'}'` = yes; then
18948 cat >>confdefs.h <<_ACEOF
18949 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18955 { echo "$as_me:$LINENO: checking for working mmap" >&5
18956 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
18957 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
18958 echo $ECHO_N "(cached) $ECHO_C" >&6
18960 if test "$cross_compiling" = yes; then
18961 ac_cv_func_mmap_fixed_mapped=no
18963 cat >conftest.$ac_ext <<_ACEOF
18966 cat confdefs.h >>conftest.$ac_ext
18967 cat >>conftest.$ac_ext <<_ACEOF
18968 /* end confdefs.h. */
18969 $ac_includes_default
18970 /* malloc might have been renamed as rpl_malloc. */
18973 /* Thanks to Mike Haertel and Jim Avera for this test.
18974 Here is a matrix of mmap possibilities:
18975 mmap private not fixed
18976 mmap private fixed at somewhere currently unmapped
18977 mmap private fixed at somewhere already mapped
18978 mmap shared not fixed
18979 mmap shared fixed at somewhere currently unmapped
18980 mmap shared fixed at somewhere already mapped
18981 For private mappings, we should verify that changes cannot be read()
18982 back from the file, nor mmap's back from the file at a different
18983 address. (There have been systems where private was not correctly
18984 implemented like the infamous i386 svr4.0, and systems where the
18985 VM page cache was not coherent with the file system buffer cache
18986 like early versions of FreeBSD and possibly contemporary NetBSD.)
18987 For shared mappings, we should conversely verify that changes get
18988 propagated back to all the places they're supposed to be.
18990 Grep wants private fixed already mapped.
18991 The main things grep needs to know about mmap are:
18992 * does it exist and is it safe to write into the mmap'd area
18993 * how to use it (BSD variants) */
18996 #include <sys/mman.h>
18998 #if !STDC_HEADERS && !HAVE_STDLIB_H
19002 /* This mess was copied from the GNU getpagesize.h. */
19003 #if !HAVE_GETPAGESIZE
19004 /* Assume that all systems that can run configure have sys/param.h. */
19005 # if !HAVE_SYS_PARAM_H
19006 # define HAVE_SYS_PARAM_H 1
19009 # ifdef _SC_PAGESIZE
19010 # define getpagesize() sysconf(_SC_PAGESIZE)
19011 # else /* no _SC_PAGESIZE */
19012 # if HAVE_SYS_PARAM_H
19013 # include <sys/param.h>
19014 # ifdef EXEC_PAGESIZE
19015 # define getpagesize() EXEC_PAGESIZE
19016 # else /* no EXEC_PAGESIZE */
19018 # define getpagesize() NBPG * CLSIZE
19021 # endif /* no CLSIZE */
19022 # else /* no NBPG */
19024 # define getpagesize() NBPC
19025 # else /* no NBPC */
19027 # define getpagesize() PAGESIZE
19028 # endif /* PAGESIZE */
19029 # endif /* no NBPC */
19030 # endif /* no NBPG */
19031 # endif /* no EXEC_PAGESIZE */
19032 # else /* no HAVE_SYS_PARAM_H */
19033 # define getpagesize() 8192 /* punt totally */
19034 # endif /* no HAVE_SYS_PARAM_H */
19035 # endif /* no _SC_PAGESIZE */
19037 #endif /* no HAVE_GETPAGESIZE */
19042 char *data, *data2, *data3;
19046 pagesize = getpagesize ();
19048 /* First, make a file with some known garbage in it. */
19049 data = (char *) malloc (pagesize);
19052 for (i = 0; i < pagesize; ++i)
19053 *(data + i) = rand ();
19055 fd = creat ("conftest.mmap", 0600);
19058 if (write (fd, data, pagesize) != pagesize)
19062 /* Next, try to mmap the file at a fixed address which already has
19063 something else allocated at it. If we can, also make sure that
19064 we see the same garbage. */
19065 fd = open ("conftest.mmap", O_RDWR);
19068 data2 = (char *) malloc (2 * pagesize);
19071 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
19072 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19073 MAP_PRIVATE | MAP_FIXED, fd, 0L))
19075 for (i = 0; i < pagesize; ++i)
19076 if (*(data + i) != *(data2 + i))
19079 /* Finally, make sure that changes to the mapped area do not
19080 percolate back to the file as seen by read(). (This is a bug on
19081 some variants of i386 svr4.0.) */
19082 for (i = 0; i < pagesize; ++i)
19083 *(data2 + i) = *(data2 + i) + 1;
19084 data3 = (char *) malloc (pagesize);
19087 if (read (fd, data3, pagesize) != pagesize)
19089 for (i = 0; i < pagesize; ++i)
19090 if (*(data + i) != *(data3 + i))
19096 rm -f conftest$ac_exeext
19097 if { (ac_try="$ac_link"
19098 case "(($ac_try" in
19099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19100 *) ac_try_echo=$ac_try;;
19102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19103 (eval "$ac_link") 2>&5
19105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19106 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19107 { (case "(($ac_try" in
19108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19109 *) ac_try_echo=$ac_try;;
19111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19112 (eval "$ac_try") 2>&5
19114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19115 (exit $ac_status); }; }; then
19116 ac_cv_func_mmap_fixed_mapped=yes
19118 echo "$as_me: program exited with status $ac_status" >&5
19119 echo "$as_me: failed program was:" >&5
19120 sed 's/^/| /' conftest.$ac_ext >&5
19122 ( exit $ac_status )
19123 ac_cv_func_mmap_fixed_mapped=no
19125 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19130 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
19131 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
19132 if test $ac_cv_func_mmap_fixed_mapped = yes; then
19134 cat >>confdefs.h <<\_ACEOF
19135 #define HAVE_MMAP 1
19139 rm -f conftest.mmap
19141 { echo "$as_me:$LINENO: checking for mmap of files" >&5
19142 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
19143 if test "${ac_cv_func_mmap_file+set}" = set; then
19144 echo $ECHO_N "(cached) $ECHO_C" >&6
19147 ac_cpp='$CPP $CPPFLAGS'
19148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19152 if test "$cross_compiling" = yes; then
19153 ac_cv_func_mmap_file=no
19155 cat >conftest.$ac_ext <<_ACEOF
19159 cat confdefs.h >>conftest.$ac_ext
19160 cat >>conftest.$ac_ext <<_ACEOF
19161 /* end confdefs.h. */
19163 #include <sys/types.h>
19164 #include <sys/mman.h>
19172 fd = creat ("foo",0777);
19173 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
19175 return (fd != (int) MAP_FAILED);
19180 rm -f conftest$ac_exeext
19181 if { (ac_try="$ac_link"
19182 case "(($ac_try" in
19183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19184 *) ac_try_echo=$ac_try;;
19186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19187 (eval "$ac_link") 2>&5
19189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19190 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19191 { (case "(($ac_try" in
19192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19193 *) ac_try_echo=$ac_try;;
19195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19196 (eval "$ac_try") 2>&5
19198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19199 (exit $ac_status); }; }; then
19200 ac_cv_func_mmap_file=yes
19202 echo "$as_me: program exited with status $ac_status" >&5
19203 echo "$as_me: failed program was:" >&5
19204 sed 's/^/| /' conftest.$ac_ext >&5
19206 ( exit $ac_status )
19207 ac_cv_func_mmap_file=no
19209 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19214 ac_cpp='$CPP $CPPFLAGS'
19215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19221 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
19222 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
19223 if test "$ac_cv_func_mmap_file" = yes; then
19225 cat >>confdefs.h <<\_ACEOF
19226 #define HAVE_MMAP_FILE
19233 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
19234 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
19235 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
19236 echo $ECHO_N "(cached) $ECHO_C" >&6
19238 if test "$llvm_cv_os_type" = "Interix" ; then
19239 ac_cv_need_dev_zero_for_mmap=yes
19241 ac_cv_need_dev_zero_for_mmap=no
19245 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
19246 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
19247 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
19249 cat >>confdefs.h <<\_ACEOF
19250 #define NEED_DEV_ZERO_FOR_MMAP 1
19255 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
19257 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
19258 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
19260 if test "$ac_cv_func_mmap_file" = "no"
19262 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
19263 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
19267 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
19268 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
19269 cat >conftest.$ac_ext <<_ACEOF
19272 cat confdefs.h >>conftest.$ac_ext
19273 cat >>conftest.$ac_ext <<_ACEOF
19274 /* end confdefs.h. */
19276 volatile unsigned long val = 1;
19277 __sync_synchronize();
19278 __sync_val_compare_and_swap(&val, 1, 0);
19279 __sync_add_and_fetch(&val, 1);
19280 __sync_sub_and_fetch(&val, 1);
19285 rm -f conftest.$ac_objext conftest$ac_exeext
19286 if { (ac_try="$ac_link"
19287 case "(($ac_try" in
19288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19289 *) ac_try_echo=$ac_try;;
19291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19292 (eval "$ac_link") 2>conftest.er1
19294 grep -v '^ *+' conftest.er1 >conftest.err
19296 cat conftest.err >&5
19297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19298 (exit $ac_status); } &&
19299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19300 { (case "(($ac_try" in
19301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19302 *) ac_try_echo=$ac_try;;
19304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19305 (eval "$ac_try") 2>&5
19307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19308 (exit $ac_status); }; } &&
19309 { ac_try='test -s conftest$ac_exeext'
19310 { (case "(($ac_try" in
19311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19312 *) ac_try_echo=$ac_try;;
19314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19315 (eval "$ac_try") 2>&5
19317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19318 (exit $ac_status); }; }; then
19319 { echo "$as_me:$LINENO: result: yes" >&5
19320 echo "${ECHO_T}yes" >&6; }
19322 cat >>confdefs.h <<\_ACEOF
19323 #define LLVM_MULTITHREADED 1
19327 echo "$as_me: failed program was:" >&5
19328 sed 's/^/| /' conftest.$ac_ext >&5
19330 { echo "$as_me:$LINENO: result: no" >&5
19331 echo "${ECHO_T}no" >&6; }
19333 cat >>confdefs.h <<\_ACEOF
19334 #define LLVM_MULTITHREADED 0
19337 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
19338 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
19341 rm -f core conftest.err conftest.$ac_objext \
19342 conftest$ac_exeext conftest.$ac_ext
19346 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
19347 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
19348 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
19349 if test "${llvm_cv_linux_mixed+set}" = set; then
19350 echo $ECHO_N "(cached) $ECHO_C" >&6
19353 ac_cpp='$CPP $CPPFLAGS'
19354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19358 cat >conftest.$ac_ext <<_ACEOF
19361 cat confdefs.h >>conftest.$ac_ext
19362 cat >>conftest.$ac_ext <<_ACEOF
19363 /* end confdefs.h. */
19365 error: Not x86-64 even if uname says so!
19376 rm -f conftest.$ac_objext
19377 if { (ac_try="$ac_compile"
19378 case "(($ac_try" in
19379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19380 *) ac_try_echo=$ac_try;;
19382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19383 (eval "$ac_compile") 2>conftest.er1
19385 grep -v '^ *+' conftest.er1 >conftest.err
19387 cat conftest.err >&5
19388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19389 (exit $ac_status); } &&
19390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19391 { (case "(($ac_try" in
19392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19393 *) ac_try_echo=$ac_try;;
19395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19396 (eval "$ac_try") 2>&5
19398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19399 (exit $ac_status); }; } &&
19400 { ac_try='test -s conftest.$ac_objext'
19401 { (case "(($ac_try" in
19402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19403 *) ac_try_echo=$ac_try;;
19405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19406 (eval "$ac_try") 2>&5
19408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19409 (exit $ac_status); }; }; then
19410 llvm_cv_linux_mixed=no
19412 echo "$as_me: failed program was:" >&5
19413 sed 's/^/| /' conftest.$ac_ext >&5
19415 llvm_cv_linux_mixed=yes
19418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19420 ac_cpp='$CPP $CPPFLAGS'
19421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19427 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
19428 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
19430 if test "$llvm_cv_linux_mixed" = "yes"; then
19431 llvm_cv_target_arch="x86"
19437 for ac_func in __dso_handle
19439 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19440 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19441 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19442 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19443 echo $ECHO_N "(cached) $ECHO_C" >&6
19445 cat >conftest.$ac_ext <<_ACEOF
19448 cat confdefs.h >>conftest.$ac_ext
19449 cat >>conftest.$ac_ext <<_ACEOF
19450 /* end confdefs.h. */
19451 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19452 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19453 #define $ac_func innocuous_$ac_func
19455 /* System header to define __stub macros and hopefully few prototypes,
19456 which can conflict with char $ac_func (); below.
19457 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19458 <limits.h> exists even on freestanding compilers. */
19461 # include <limits.h>
19463 # include <assert.h>
19468 /* Override any GCC internal prototype to avoid an error.
19469 Use char because int might match the return type of a GCC
19470 builtin and then its argument prototype would still apply. */
19475 /* The GNU C library defines this for functions which it implements
19476 to always fail with ENOSYS. Some functions are actually named
19477 something starting with __ and the normal name is an alias. */
19478 #if defined __stub_$ac_func || defined __stub___$ac_func
19485 return $ac_func ();
19490 rm -f conftest.$ac_objext conftest$ac_exeext
19491 if { (ac_try="$ac_link"
19492 case "(($ac_try" in
19493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19494 *) ac_try_echo=$ac_try;;
19496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19497 (eval "$ac_link") 2>conftest.er1
19499 grep -v '^ *+' conftest.er1 >conftest.err
19501 cat conftest.err >&5
19502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503 (exit $ac_status); } &&
19504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19505 { (case "(($ac_try" in
19506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19507 *) ac_try_echo=$ac_try;;
19509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19510 (eval "$ac_try") 2>&5
19512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19513 (exit $ac_status); }; } &&
19514 { ac_try='test -s conftest$ac_exeext'
19515 { (case "(($ac_try" in
19516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19517 *) ac_try_echo=$ac_try;;
19519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19520 (eval "$ac_try") 2>&5
19522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19523 (exit $ac_status); }; }; then
19524 eval "$as_ac_var=yes"
19526 echo "$as_me: failed program was:" >&5
19527 sed 's/^/| /' conftest.$ac_ext >&5
19529 eval "$as_ac_var=no"
19532 rm -f core conftest.err conftest.$ac_objext \
19533 conftest$ac_exeext conftest.$ac_ext
19535 ac_res=`eval echo '${'$as_ac_var'}'`
19536 { echo "$as_me:$LINENO: result: $ac_res" >&5
19537 echo "${ECHO_T}$ac_res" >&6; }
19538 if test `eval echo '${'$as_ac_var'}'` = yes; then
19539 cat >>confdefs.h <<_ACEOF
19540 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19547 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
19548 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
19549 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
19550 echo $ECHO_N "(cached) $ECHO_C" >&6
19552 llvm_cv_llvmgcc_sanity="no"
19553 if test -x "$LLVMGCC" ; then
19554 cp /dev/null conftest.c
19555 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
19556 grep 'target datalayout =' > /dev/null 2>&1
19557 if test $? -eq 0 ; then
19558 llvm_cv_llvmgcc_sanity="yes"
19563 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
19564 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
19566 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
19567 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
19568 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
19569 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
19570 LLVMCC1=$llvmcc1path
19572 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
19573 LLVMCC1PLUS=$llvmcc1pluspath
19575 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
19576 LLVMGCCDIR=$llvmgccdir
19578 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
19579 LLVMGCCLIBEXEC=$llvmgcclibexec
19581 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
19582 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
19583 LLVMGCC_VERSION=$llvmgccversion
19585 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
19586 LLVMGCC_LANGS=$llvmgcclangs
19588 { echo "$as_me:$LINENO: result: ok" >&5
19589 echo "${ECHO_T}ok" >&6; }
19592 SHLIBEXT=$libltdl_cv_shlibext
19595 # Translate the various configuration directories and other basic
19596 # information into substitutions that will end up in Makefile.config.in
19597 # that these configured values can be used by the makefiles
19598 if test "${prefix}" = "NONE" ; then
19599 prefix="/usr/local"
19601 eval LLVM_PREFIX="${prefix}";
19602 eval LLVM_BINDIR="${prefix}/bin";
19603 eval LLVM_LIBDIR="${prefix}/lib";
19604 eval LLVM_DATADIR="${prefix}/share/llvm";
19605 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
19606 eval LLVM_ETCDIR="${prefix}/etc/llvm";
19607 eval LLVM_INCLUDEDIR="${prefix}/include";
19608 eval LLVM_INFODIR="${prefix}/info";
19609 eval LLVM_MANDIR="${prefix}/man";
19610 LLVM_CONFIGTIME=`date`
19622 # Place the various directores into the config.h file as #defines so that we
19623 # can know about the installation paths within LLVM.
19625 cat >>confdefs.h <<_ACEOF
19626 #define LLVM_PREFIX "$LLVM_PREFIX"
19630 cat >>confdefs.h <<_ACEOF
19631 #define LLVM_BINDIR "$LLVM_BINDIR"
19635 cat >>confdefs.h <<_ACEOF
19636 #define LLVM_LIBDIR "$LLVM_LIBDIR"
19640 cat >>confdefs.h <<_ACEOF
19641 #define LLVM_DATADIR "$LLVM_DATADIR"
19645 cat >>confdefs.h <<_ACEOF
19646 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
19650 cat >>confdefs.h <<_ACEOF
19651 #define LLVM_ETCDIR "$LLVM_ETCDIR"
19655 cat >>confdefs.h <<_ACEOF
19656 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
19660 cat >>confdefs.h <<_ACEOF
19661 #define LLVM_INFODIR "$LLVM_INFODIR"
19665 cat >>confdefs.h <<_ACEOF
19666 #define LLVM_MANDIR "$LLVM_MANDIR"
19670 cat >>confdefs.h <<_ACEOF
19671 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
19675 cat >>confdefs.h <<_ACEOF
19676 #define LLVM_HOSTTRIPLE "$host"
19680 # Determine which bindings to build.
19681 if test "$BINDINGS_TO_BUILD" = auto ; then
19682 BINDINGS_TO_BUILD=""
19683 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
19684 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
19687 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
19690 # This isn't really configurey, but it avoids having to repeat the list in
19695 # Do any work necessary to ensure that bindings have what they need.
19696 binding_prereqs_failed=0
19697 for a_binding in $BINDINGS_TO_BUILD ; do
19698 case "$a_binding" in
19700 if test "x$OCAMLC" = x ; then
19701 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
19702 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
19703 binding_prereqs_failed=1
19705 if test "x$OCAMLDEP" = x ; then
19706 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
19707 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
19708 binding_prereqs_failed=1
19710 if test "x$OCAMLOPT" = x ; then
19711 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
19712 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
19714 if test "x$with_ocaml_libdir" != xauto ; then
19715 OCAML_LIBDIR=$with_ocaml_libdir
19718 ocaml_stdlib="`"$OCAMLC" -where`"
19719 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
19721 # ocaml stdlib is beneath our prefix; use stdlib
19722 OCAML_LIBDIR=$ocaml_stdlib
19725 # ocaml stdlib is outside our prefix; use libdir/ocaml
19726 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
19733 if test "$binding_prereqs_failed" = 1 ; then
19734 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
19735 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
19736 { (exit 1); exit 1; }; }
19739 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
19740 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
19741 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
19742 echo $ECHO_N "(cached) $ECHO_C" >&6
19745 ac_cpp='$CXXCPP $CPPFLAGS'
19746 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19747 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19748 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19750 oldcxxflags="$CXXFLAGS"
19751 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
19752 cat >conftest.$ac_ext <<_ACEOF
19755 cat confdefs.h >>conftest.$ac_ext
19756 cat >>conftest.$ac_ext <<_ACEOF
19757 /* end confdefs.h. */
19767 rm -f conftest.$ac_objext
19768 if { (ac_try="$ac_compile"
19769 case "(($ac_try" in
19770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19771 *) ac_try_echo=$ac_try;;
19773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19774 (eval "$ac_compile") 2>conftest.er1
19776 grep -v '^ *+' conftest.er1 >conftest.err
19778 cat conftest.err >&5
19779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19780 (exit $ac_status); } &&
19781 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19782 { (case "(($ac_try" in
19783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19784 *) ac_try_echo=$ac_try;;
19786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19787 (eval "$ac_try") 2>&5
19789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19790 (exit $ac_status); }; } &&
19791 { ac_try='test -s conftest.$ac_objext'
19792 { (case "(($ac_try" in
19793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19794 *) ac_try_echo=$ac_try;;
19796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19797 (eval "$ac_try") 2>&5
19799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19800 (exit $ac_status); }; }; then
19801 llvm_cv_cxx_visibility_inlines_hidden=yes
19803 echo "$as_me: failed program was:" >&5
19804 sed 's/^/| /' conftest.$ac_ext >&5
19806 llvm_cv_cxx_visibility_inlines_hidden=no
19809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19810 CXXFLAGS="$oldcxxflags"
19812 ac_cpp='$CPP $CPPFLAGS'
19813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19819 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
19820 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
19821 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
19822 ENABLE_VISIBILITY_INLINES_HIDDEN=1
19825 ENABLE_VISIBILITY_INLINES_HIDDEN=0
19830 if test "$llvm_cv_link_use_r" = "yes" ; then
19837 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
19838 RDYNAMIC="-Wl,-export-dynamic"
19845 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
19847 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
19849 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
19851 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
19853 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
19855 ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
19858 ac_config_files="$ac_config_files Makefile.config"
19861 ac_config_files="$ac_config_files llvm.spec"
19864 ac_config_files="$ac_config_files docs/doxygen.cfg"
19867 ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
19870 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
19873 ac_config_commands="$ac_config_commands setup"
19875 ac_config_commands="$ac_config_commands Makefile"
19878 ac_config_commands="$ac_config_commands Makefile.common"
19881 ac_config_commands="$ac_config_commands examples/Makefile"
19884 ac_config_commands="$ac_config_commands lib/Makefile"
19887 ac_config_commands="$ac_config_commands runtime/Makefile"
19890 ac_config_commands="$ac_config_commands test/Makefile"
19893 ac_config_commands="$ac_config_commands test/Makefile.tests"
19896 ac_config_commands="$ac_config_commands unittests/Makefile"
19899 ac_config_commands="$ac_config_commands tools/Makefile"
19902 ac_config_commands="$ac_config_commands utils/Makefile"
19905 ac_config_commands="$ac_config_commands projects/Makefile"
19908 ac_config_commands="$ac_config_commands bindings/Makefile"
19911 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
19915 cat >confcache <<\_ACEOF
19916 # This file is a shell script that caches the results of configure
19917 # tests run on this system so they can be shared between configure
19918 # scripts and configure runs, see configure's option --config-cache.
19919 # It is not useful on other systems. If it contains results you don't
19920 # want to keep, you may remove or edit it.
19922 # config.status only pays attention to the cache file if you give it
19923 # the --recheck option to rerun configure.
19925 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19926 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19927 # following values.
19931 # The following way of writing the cache mishandles newlines in values,
19932 # but we know of no workaround that is simple, portable, and efficient.
19933 # So, we kill variables containing newlines.
19934 # Ultrix sh set writes to stderr and can't be redirected directly,
19935 # and sets the high bit in the cache file unless we assign to the vars.
19937 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19938 eval ac_val=\$$ac_var
19942 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
19943 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
19946 _ | IFS | as_nl) ;; #(
19947 *) $as_unset $ac_var ;;
19953 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19954 *${as_nl}ac_space=\ *)
19955 # `set' does not quote correctly, so add quotes (double-quote
19956 # substitution turns \\\\ into \\, and sed turns \\ into \).
19959 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19962 # `set' quotes correctly as required by POSIX, so do not add quotes.
19963 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19972 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19974 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19976 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19977 if test -w "$cache_file"; then
19978 test "x$cache_file" != "x/dev/null" &&
19979 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
19980 echo "$as_me: updating cache $cache_file" >&6;}
19981 cat confcache >$cache_file
19983 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
19984 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19989 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19990 # Let make expand exec_prefix.
19991 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19993 DEFS=-DHAVE_CONFIG_H
19997 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19998 # 1. Remove the extension, and $U if already installed.
19999 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20000 ac_i=`echo "$ac_i" | sed "$ac_script"`
20001 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20002 # will be set to the directory where LIBOBJS objects are built.
20003 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20004 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20006 LIBOBJS=$ac_libobjs
20008 LTLIBOBJS=$ac_ltlibobjs
20011 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
20012 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20013 Usually this means the macro was only invoked conditionally." >&5
20014 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20015 Usually this means the macro was only invoked conditionally." >&2;}
20016 { (exit 1); exit 1; }; }
20018 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
20019 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20020 Usually this means the macro was only invoked conditionally." >&5
20021 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20022 Usually this means the macro was only invoked conditionally." >&2;}
20023 { (exit 1); exit 1; }; }
20026 : ${CONFIG_STATUS=./config.status}
20027 ac_clean_files_save=$ac_clean_files
20028 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20029 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20030 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20031 cat >$CONFIG_STATUS <<_ACEOF
20033 # Generated by $as_me.
20034 # Run this file to recreate the current configuration.
20035 # Compiler output produced by configure, useful for debugging
20036 # configure, is in config.log if it exists.
20039 ac_cs_recheck=false
20041 SHELL=\${CONFIG_SHELL-$SHELL}
20044 cat >>$CONFIG_STATUS <<\_ACEOF
20045 ## --------------------- ##
20046 ## M4sh Initialization. ##
20047 ## --------------------- ##
20049 # Be Bourne compatible
20050 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20053 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20054 # is contrary to our usage. Disable this feature.
20055 alias -g '${1+"$@"}'='"$@"'
20056 setopt NO_GLOB_SUBST
20058 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
20060 BIN_SH=xpg4; export BIN_SH # for Tru64
20061 DUALCASE=1; export DUALCASE # for MKS sh
20065 # Avoid depending upon Character Ranges.
20066 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20067 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20068 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20069 as_cr_digits='0123456789'
20070 as_cr_alnum=$as_cr_Letters$as_cr_digits
20072 # The user is always right.
20073 if test "${PATH_SEPARATOR+set}" != set; then
20074 echo "#! /bin/sh" >conf$$.sh
20075 echo "exit 0" >>conf$$.sh
20077 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20085 # Support unset when possible.
20086 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20094 # We need space, tab and new line, in precisely that order. Quoting is
20095 # there to prevent editors from complaining about space-tab.
20096 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20097 # splitting by setting IFS to empty value.)
20102 # Find who we are. Look in the path if we contain no directory separator.
20104 *[\\/]* ) as_myself=$0 ;;
20105 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20106 for as_dir in $PATH
20109 test -z "$as_dir" && as_dir=.
20110 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20116 # We did not find ourselves, most probably we were run as `sh COMMAND'
20117 # in which case we are not to be found in the path.
20118 if test "x$as_myself" = x; then
20121 if test ! -f "$as_myself"; then
20122 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20123 { (exit 1); exit 1; }
20126 # Work around bugs in pre-3.0 UWIN ksh.
20127 for as_var in ENV MAIL MAILPATH
20128 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20136 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20137 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20138 LC_TELEPHONE LC_TIME
20140 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20141 eval $as_var=C; export $as_var
20143 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20147 # Required to use basename.
20148 if expr a : '\(a\)' >/dev/null 2>&1 &&
20149 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20155 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20156 as_basename=basename
20162 # Name of the executable.
20163 as_me=`$as_basename -- "$0" ||
20164 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20165 X"$0" : 'X\(//\)$' \| \
20166 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20168 sed '/^.*\/\([^/][^/]*\)\/*$/{
20187 as_lineno_1=$LINENO
20188 as_lineno_2=$LINENO
20189 test "x$as_lineno_1" != "x$as_lineno_2" &&
20190 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20192 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20193 # uniformly replaced by the line number. The first 'sed' inserts a
20194 # line-number line after each line using $LINENO; the second 'sed'
20195 # does the real work. The second script uses 'N' to pair each
20196 # line-number line with the line containing $LINENO, and appends
20197 # trailing '-' during substitution so that $LINENO is not a special
20198 # case at line end.
20199 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20200 # scripts with optimization help from Paolo Bonzini. Blame Lee
20201 # E. McMahon (1931-1989) for sed's syntax. :-)
20213 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20216 ' >$as_me.lineno &&
20217 chmod +x "$as_me.lineno" ||
20218 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20219 { (exit 1); exit 1; }; }
20221 # Don't try to exec as it changes $[0], causing all sort of problems
20222 # (the dirname of $[0] is not the place where we might find the
20223 # original and so on. Autoconf is especially sensitive to this).
20224 . "./$as_me.lineno"
20225 # Exit status is that of the last command.
20230 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20236 ECHO_C= ECHO_N= ECHO_T=
20237 case `echo -n x` in
20239 case `echo 'x\c'` in
20240 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20247 if expr a : '\(a\)' >/dev/null 2>&1 &&
20248 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20254 rm -f conf$$ conf$$.exe conf$$.file
20255 if test -d conf$$.dir; then
20256 rm -f conf$$.dir/conf$$.file
20262 if ln -s conf$$.file conf$$ 2>/dev/null; then
20264 # ... but there are two gotchas:
20265 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20266 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20267 # In both cases, we have to default to `cp -p'.
20268 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20270 elif ln conf$$.file conf$$ 2>/dev/null; then
20275 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20276 rmdir conf$$.dir 2>/dev/null
20278 if mkdir -p . 2>/dev/null; then
20281 test -d ./-p && rmdir ./-p
20285 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
20286 # systems may use methods other than mode bits to determine executability.
20287 cat >conf$$.file <<_ASEOF
20291 chmod +x conf$$.file
20292 if test -x conf$$.file >/dev/null 2>&1; then
20293 as_executable_p="test -x"
20299 # Sed expression to map a string onto a valid CPP name.
20300 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20302 # Sed expression to map a string onto a valid variable name.
20303 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20308 # Save the log message, to keep $[0] and so on meaningful, and to
20309 # report actual input values of CONFIG_FILES etc. instead of their
20310 # values after options handling.
20312 This file was extended by llvm $as_me 2.7svn, which was
20313 generated by GNU Autoconf 2.60. Invocation command line was
20315 CONFIG_FILES = $CONFIG_FILES
20316 CONFIG_HEADERS = $CONFIG_HEADERS
20317 CONFIG_LINKS = $CONFIG_LINKS
20318 CONFIG_COMMANDS = $CONFIG_COMMANDS
20321 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20326 cat >>$CONFIG_STATUS <<_ACEOF
20327 # Files that config.status was made for.
20328 config_files="$ac_config_files"
20329 config_headers="$ac_config_headers"
20330 config_commands="$ac_config_commands"
20334 cat >>$CONFIG_STATUS <<\_ACEOF
20336 \`$as_me' instantiates files from templates according to the
20337 current configuration.
20339 Usage: $0 [OPTIONS] [FILE]...
20341 -h, --help print this help, then exit
20342 -V, --version print version number, then exit
20343 -q, --quiet do not print progress messages
20344 -d, --debug don't remove temporary files
20345 --recheck update $as_me by reconfiguring in the same conditions
20346 --file=FILE[:TEMPLATE]
20347 instantiate the configuration file FILE
20348 --header=FILE[:TEMPLATE]
20349 instantiate the configuration header FILE
20351 Configuration files:
20354 Configuration headers:
20357 Configuration commands:
20360 Report bugs to <bug-autoconf@gnu.org>."
20363 cat >>$CONFIG_STATUS <<_ACEOF
20365 llvm config.status 2.7svn
20366 configured by $0, generated by GNU Autoconf 2.60,
20367 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20369 Copyright (C) 2006 Free Software Foundation, Inc.
20370 This config.status script is free software; the Free Software Foundation
20371 gives unlimited permission to copy, distribute and modify it."
20378 cat >>$CONFIG_STATUS <<\_ACEOF
20379 # If no file are specified by the user, then we need to provide default
20380 # value. By we need to know if files were specified by the user.
20386 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20387 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20398 # Handling of the options.
20399 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20401 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20402 echo "$ac_cs_version"; exit ;;
20403 --debug | --debu | --deb | --de | --d | -d )
20405 --file | --fil | --fi | --f )
20407 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20408 ac_need_defaults=false;;
20409 --header | --heade | --head | --hea )
20411 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20412 ac_need_defaults=false;;
20414 # Conflict between --help and --header
20415 { echo "$as_me: error: ambiguous option: $1
20416 Try \`$0 --help' for more information." >&2
20417 { (exit 1); exit 1; }; };;
20418 --help | --hel | -h )
20419 echo "$ac_cs_usage"; exit ;;
20420 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20421 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20424 # This is an error.
20425 -*) { echo "$as_me: error: unrecognized option: $1
20426 Try \`$0 --help' for more information." >&2
20427 { (exit 1); exit 1; }; } ;;
20429 *) ac_config_targets="$ac_config_targets $1"
20430 ac_need_defaults=false ;;
20436 ac_configure_extra_args=
20438 if $ac_cs_silent; then
20440 ac_configure_extra_args="$ac_configure_extra_args --silent"
20444 cat >>$CONFIG_STATUS <<_ACEOF
20445 if \$ac_cs_recheck; then
20446 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20447 CONFIG_SHELL=$SHELL
20448 export CONFIG_SHELL
20449 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20453 cat >>$CONFIG_STATUS <<\_ACEOF
20457 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20458 ## Running $as_me. ##
20464 cat >>$CONFIG_STATUS <<_ACEOF
20468 llvm_src="${srcdir}"
20472 cat >>$CONFIG_STATUS <<\_ACEOF
20474 # Handling of arguments.
20475 for ac_config_target in $ac_config_targets
20477 case $ac_config_target in
20478 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
20479 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
20480 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
20481 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
20482 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
20483 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
20484 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
20485 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
20486 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
20487 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
20488 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
20489 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
20490 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
20491 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
20492 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
20493 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
20494 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
20495 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
20496 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
20497 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
20498 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
20499 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
20500 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
20501 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
20502 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
20504 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20505 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20506 { (exit 1); exit 1; }; };;
20511 # If the user did not use the arguments to specify the items to instantiate,
20512 # then the envvar interface is used. Set only those that are not.
20513 # We use the long form for the default assignment because of an extremely
20514 # bizarre bug on SunOS 4.1.3.
20515 if $ac_need_defaults; then
20516 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20517 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20518 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20521 # Have a temporary directory for convenience. Make it in the build tree
20522 # simply because there is no reason against having it here, and in addition,
20523 # creating and moving files from /tmp can sometimes cause problems.
20524 # Hook for its removal unless debugging.
20525 # Note that there is a small window in which the directory will not be cleaned:
20526 # after its creation but before its name has been assigned to `$tmp'.
20530 trap 'exit_status=$?
20531 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20533 trap '{ (exit 1); exit 1; }' 1 2 13 15
20535 # Create a (secure) tmp directory for tmp files.
20538 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20539 test -n "$tmp" && test -d "$tmp"
20542 tmp=./conf$$-$RANDOM
20543 (umask 077 && mkdir "$tmp")
20546 echo "$me: cannot create a temporary directory in ." >&2
20547 { (exit 1); exit 1; }
20551 # Set up the sed scripts for CONFIG_FILES section.
20554 # No need to generate the scripts if there are no CONFIG_FILES.
20555 # This happens for instance when ./config.status config.h
20556 if test -n "$CONFIG_FILES"; then
20563 for ac_last_try in false false false false false :; do
20564 cat >conf$$subs.sed <<_ACEOF
20565 SHELL!$SHELL$ac_delim
20566 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20567 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20568 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20569 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20570 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20571 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20572 exec_prefix!$exec_prefix$ac_delim
20573 prefix!$prefix$ac_delim
20574 program_transform_name!$program_transform_name$ac_delim
20575 bindir!$bindir$ac_delim
20576 sbindir!$sbindir$ac_delim
20577 libexecdir!$libexecdir$ac_delim
20578 datarootdir!$datarootdir$ac_delim
20579 datadir!$datadir$ac_delim
20580 sysconfdir!$sysconfdir$ac_delim
20581 sharedstatedir!$sharedstatedir$ac_delim
20582 localstatedir!$localstatedir$ac_delim
20583 includedir!$includedir$ac_delim
20584 oldincludedir!$oldincludedir$ac_delim
20585 docdir!$docdir$ac_delim
20586 infodir!$infodir$ac_delim
20587 htmldir!$htmldir$ac_delim
20588 dvidir!$dvidir$ac_delim
20589 pdfdir!$pdfdir$ac_delim
20590 psdir!$psdir$ac_delim
20591 libdir!$libdir$ac_delim
20592 localedir!$localedir$ac_delim
20593 mandir!$mandir$ac_delim
20594 DEFS!$DEFS$ac_delim
20595 ECHO_C!$ECHO_C$ac_delim
20596 ECHO_N!$ECHO_N$ac_delim
20597 ECHO_T!$ECHO_T$ac_delim
20598 LIBS!$LIBS$ac_delim
20599 build_alias!$build_alias$ac_delim
20600 host_alias!$host_alias$ac_delim
20601 target_alias!$target_alias$ac_delim
20602 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
20603 subdirs!$subdirs$ac_delim
20604 build!$build$ac_delim
20605 build_cpu!$build_cpu$ac_delim
20606 build_vendor!$build_vendor$ac_delim
20607 build_os!$build_os$ac_delim
20608 host!$host$ac_delim
20609 host_cpu!$host_cpu$ac_delim
20610 host_vendor!$host_vendor$ac_delim
20611 host_os!$host_os$ac_delim
20612 target!$target$ac_delim
20613 target_cpu!$target_cpu$ac_delim
20614 target_vendor!$target_vendor$ac_delim
20615 target_os!$target_os$ac_delim
20617 HOST_OS!$HOST_OS$ac_delim
20618 TARGET_OS!$TARGET_OS$ac_delim
20619 LINKALL!$LINKALL$ac_delim
20620 NOLINKALL!$NOLINKALL$ac_delim
20621 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
20622 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
20623 ARCH!$ARCH$ac_delim
20624 ENDIAN!$ENDIAN$ac_delim
20626 CFLAGS!$CFLAGS$ac_delim
20627 LDFLAGS!$LDFLAGS$ac_delim
20628 CPPFLAGS!$CPPFLAGS$ac_delim
20629 ac_ct_CC!$ac_ct_CC$ac_delim
20630 EXEEXT!$EXEEXT$ac_delim
20631 OBJEXT!$OBJEXT$ac_delim
20633 GREP!$GREP$ac_delim
20634 EGREP!$EGREP$ac_delim
20635 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
20636 BUILD_CC!$BUILD_CC$ac_delim
20637 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
20638 BUILD_CXX!$BUILD_CXX$ac_delim
20639 CVSBUILD!$CVSBUILD$ac_delim
20640 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
20641 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
20642 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
20643 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
20644 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
20645 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
20646 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
20648 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
20649 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
20650 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
20651 ENABLE_PIC!$ENABLE_PIC$ac_delim
20652 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
20653 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
20654 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
20655 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
20656 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
20657 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
20658 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
20659 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
20660 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
20661 ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
20664 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20666 elif $ac_last_try; then
20667 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20668 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20669 { (exit 1); exit 1; }; }
20671 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20675 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20676 if test -n "$ac_eof"; then
20677 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20678 ac_eof=`expr $ac_eof + 1`
20681 cat >>$CONFIG_STATUS <<_ACEOF
20682 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20683 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20686 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20687 s/^/s,@/; s/!/@,|#_!!_#|/
20690 s/'"$ac_delim"'$/,g/; t
20692 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20693 ' >>$CONFIG_STATUS <conf$$subs.sed
20694 rm -f conf$$subs.sed
20695 cat >>$CONFIG_STATUS <<_ACEOF
20701 for ac_last_try in false false false false false :; do
20702 cat >conf$$subs.sed <<_ACEOF
20703 ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
20705 CXXFLAGS!$CXXFLAGS$ac_delim
20706 ac_ct_CXX!$ac_ct_CXX$ac_delim
20708 ifGNUmake!$ifGNUmake$ac_delim
20709 LN_S!$LN_S$ac_delim
20712 DATE!$DATE$ac_delim
20713 FIND!$FIND$ac_delim
20714 MKDIR!$MKDIR$ac_delim
20716 RANLIB!$RANLIB$ac_delim
20721 BINPWD!$BINPWD$ac_delim
20722 GRAPHVIZ!$GRAPHVIZ$ac_delim
20725 NEATO!$NEATO$ac_delim
20726 TWOPI!$TWOPI$ac_delim
20727 CIRCO!$CIRCO$ac_delim
20729 DOTTY!$DOTTY$ac_delim
20730 PERL!$PERL$ac_delim
20731 HAVE_PERL!$HAVE_PERL$ac_delim
20732 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20733 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20734 INSTALL_DATA!$INSTALL_DATA$ac_delim
20735 BZIP2!$BZIP2$ac_delim
20736 DOXYGEN!$DOXYGEN$ac_delim
20737 GROFF!$GROFF$ac_delim
20738 GZIP!$GZIP$ac_delim
20739 POD2HTML!$POD2HTML$ac_delim
20740 POD2MAN!$POD2MAN$ac_delim
20741 RUNTEST!$RUNTEST$ac_delim
20742 TCLSH!$TCLSH$ac_delim
20744 OCAMLC!$OCAMLC$ac_delim
20745 OCAMLOPT!$OCAMLOPT$ac_delim
20746 OCAMLDEP!$OCAMLDEP$ac_delim
20747 OCAMLDOC!$OCAMLDOC$ac_delim
20749 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
20750 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
20751 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
20752 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
20753 LIBADD_DL!$LIBADD_DL$ac_delim
20754 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
20755 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
20756 LLVMGCC!$LLVMGCC$ac_delim
20757 LLVMGXX!$LLVMGXX$ac_delim
20758 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
20759 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
20760 USE_UDIS86!$USE_UDIS86$ac_delim
20761 USE_OPROFILE!$USE_OPROFILE$ac_delim
20762 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
20763 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
20764 MMAP_FILE!$MMAP_FILE$ac_delim
20765 LLVMCC1!$LLVMCC1$ac_delim
20766 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
20767 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
20768 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
20769 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
20770 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
20771 SHLIBEXT!$SHLIBEXT$ac_delim
20772 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
20773 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
20774 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
20775 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
20776 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
20777 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
20778 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
20779 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
20780 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
20781 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
20782 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
20783 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
20784 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
20785 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
20786 RPATH!$RPATH$ac_delim
20787 RDYNAMIC!$RDYNAMIC$ac_delim
20788 LIBOBJS!$LIBOBJS$ac_delim
20789 LTLIBOBJS!$LTLIBOBJS$ac_delim
20792 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 87; then
20794 elif $ac_last_try; then
20795 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20796 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20797 { (exit 1); exit 1; }; }
20799 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20803 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20804 if test -n "$ac_eof"; then
20805 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20806 ac_eof=`expr $ac_eof + 1`
20809 cat >>$CONFIG_STATUS <<_ACEOF
20810 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20811 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20814 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20815 s/^/s,@/; s/!/@,|#_!!_#|/
20818 s/'"$ac_delim"'$/,g/; t
20820 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20821 ' >>$CONFIG_STATUS <conf$$subs.sed
20822 rm -f conf$$subs.sed
20823 cat >>$CONFIG_STATUS <<_ACEOF
20830 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20831 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20832 # trailing colons and then remove the whole line if VPATH becomes empty
20833 # (actually we leave an empty line to preserve line numbers).
20834 if test "x$srcdir" = x.; then
20835 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20836 s/:*\$(srcdir):*/:/
20837 s/:*\${srcdir}:*/:/
20839 s/^\([^=]*=[ ]*\):*/\1/
20845 cat >>$CONFIG_STATUS <<\_ACEOF
20846 fi # test -n "$CONFIG_FILES"
20849 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
20852 :[FHLC]) ac_mode=$ac_tag; continue;;
20854 case $ac_mode$ac_tag in
20856 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20857 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20858 { (exit 1); exit 1; }; };;
20859 :[FH]-) ac_tag=-:-;;
20860 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20877 -) ac_f="$tmp/stdin";;
20878 *) # Look for the file first in the build tree, then in the source tree
20879 # (if the path is not absolute). The absolute path cannot be DOS-style,
20880 # because $ac_f cannot contain `:'.
20884 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20886 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20887 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20888 { (exit 1); exit 1; }; };;
20890 ac_file_inputs="$ac_file_inputs $ac_f"
20893 # Let's still pretend it is `configure' which instantiates (i.e., don't
20894 # use $as_me), people would be surprised to read:
20895 # /* config.h. Generated by config.status. */
20896 configure_input="Generated from "`IFS=:
20897 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
20898 if test x"$ac_file" != x-; then
20899 configure_input="$ac_file. $configure_input"
20900 { echo "$as_me:$LINENO: creating $ac_file" >&5
20901 echo "$as_me: creating $ac_file" >&6;}
20905 *:-:* | *:-) cat >"$tmp/stdin";;
20910 ac_dir=`$as_dirname -- "$ac_file" ||
20911 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20912 X"$ac_file" : 'X\(//\)[^/]' \| \
20913 X"$ac_file" : 'X\(//\)$' \| \
20914 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20916 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20920 /^X\(\/\/\)[^/].*/{
20935 -*) as_dir=./$as_dir;;
20937 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20941 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20942 *) as_qdir=$as_dir;;
20944 as_dirs="'$as_qdir' $as_dirs"
20945 as_dir=`$as_dirname -- "$as_dir" ||
20946 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20947 X"$as_dir" : 'X\(//\)[^/]' \| \
20948 X"$as_dir" : 'X\(//\)$' \| \
20949 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20951 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20955 /^X\(\/\/\)[^/].*/{
20968 test -d "$as_dir" && break
20970 test -z "$as_dirs" || eval "mkdir $as_dirs"
20971 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20972 echo "$as_me: error: cannot create directory $as_dir" >&2;}
20973 { (exit 1); exit 1; }; }; }
20977 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20979 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20980 # A ".." for each directory in $ac_dir_suffix.
20981 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20982 case $ac_top_builddir_sub in
20983 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20984 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20987 ac_abs_top_builddir=$ac_pwd
20988 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20989 # for backward compatibility:
20990 ac_top_builddir=$ac_top_build_prefix
20993 .) # We are building in place.
20995 ac_top_srcdir=$ac_top_builddir_sub
20996 ac_abs_top_srcdir=$ac_pwd ;;
20997 [\\/]* | ?:[\\/]* ) # Absolute name.
20998 ac_srcdir=$srcdir$ac_dir_suffix;
20999 ac_top_srcdir=$srcdir
21000 ac_abs_top_srcdir=$srcdir ;;
21001 *) # Relative name.
21002 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21003 ac_top_srcdir=$ac_top_build_prefix$srcdir
21004 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21006 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21016 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21017 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21021 cat >>$CONFIG_STATUS <<\_ACEOF
21022 # If the template does not know about datarootdir, expand it.
21023 # FIXME: This hack should be removed a few years after 2.60.
21024 ac_datarootdir_hack=; ac_datarootdir_seen=
21026 case `sed -n '/datarootdir/ {
21035 ' $ac_file_inputs` in
21036 *datarootdir*) ac_datarootdir_seen=yes;;
21037 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21038 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21039 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21041 cat >>$CONFIG_STATUS <<_ACEOF
21042 ac_datarootdir_hack='
21043 s&@datadir@&$datadir&g
21044 s&@docdir@&$docdir&g
21045 s&@infodir@&$infodir&g
21046 s&@localedir@&$localedir&g
21047 s&@mandir@&$mandir&g
21048 s&\\\${datarootdir}&$datarootdir&g' ;;
21052 # Neutralize VPATH when `$srcdir' = `.'.
21053 # Shell code in configure.ac might set extrasub.
21054 # FIXME: do we really want to maintain this feature?
21055 cat >>$CONFIG_STATUS <<_ACEOF
21059 cat >>$CONFIG_STATUS <<\_ACEOF
21061 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21062 s&@configure_input@&$configure_input&;t t
21063 s&@top_builddir@&$ac_top_builddir_sub&;t t
21064 s&@srcdir@&$ac_srcdir&;t t
21065 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21066 s&@top_srcdir@&$ac_top_srcdir&;t t
21067 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21068 s&@builddir@&$ac_builddir&;t t
21069 s&@abs_builddir@&$ac_abs_builddir&;t t
21070 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21071 s&@INSTALL@&$ac_INSTALL&;t t
21072 $ac_datarootdir_hack
21073 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21075 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21076 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21077 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21078 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21079 which seems to be undefined. Please make sure it is defined." >&5
21080 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21081 which seems to be undefined. Please make sure it is defined." >&2;}
21085 -) cat "$tmp/out"; rm -f "$tmp/out";;
21086 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21095 # Transform confdefs.h into a sed script `conftest.defines', that
21096 # substitutes the proper values into config.h.in to produce config.h.
21097 rm -f conftest.defines conftest.tail
21098 # First, append a space to every undef/define line, to ease matching.
21099 echo 's/$/ /' >conftest.defines
21100 # Then, protect against being on the right side of a sed subst, or in
21101 # an unquoted here document, in config.status. If some macros were
21102 # called several times there might be several #defines for the same
21103 # symbol, which is useless. But do not sort them, since the last
21104 # AC_DEFINE must be honored.
21105 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21106 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21107 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21108 # PARAMS is the parameter list in the macro definition--in most cases, it's
21109 # just an empty string.
21110 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21111 ac_dB='\\)[ (].*,\\1define\\2'
21119 s/^[ ]*#[ ]*define[ ][ ]*//
21124 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21125 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21126 ' >>conftest.defines
21128 # Remove the space that was appended to ease matching.
21129 # Then replace #undef with comments. This is necessary, for
21130 # example, in the case of _POSIX_SOURCE, which is predefined and required
21131 # on some systems where configure will not decide to define it.
21132 # (The regexp can be short, since the line contains either #define or #undef.)
21134 s,^[ #]*u.*,/* & */,' >>conftest.defines
21136 # Break up conftest.defines:
21137 ac_max_sed_lines=50
21139 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21140 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21141 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21143 ac_in='$ac_file_inputs'
21144 ac_out='"$tmp/out1"'
21145 ac_nxt='"$tmp/out2"'
21149 # Write a here document:
21150 cat >>$CONFIG_STATUS <<_ACEOF
21151 # First, check the format of the line:
21152 cat >"\$tmp/defines.sed" <<\\CEOF
21153 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21154 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21158 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21160 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21161 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21162 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21163 grep . conftest.tail >/dev/null || break
21164 rm -f conftest.defines
21165 mv conftest.tail conftest.defines
21167 rm -f conftest.defines conftest.tail
21169 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21170 cat >>$CONFIG_STATUS <<\_ACEOF
21171 if test x"$ac_file" != x-; then
21172 echo "/* $configure_input */" >"$tmp/config.h"
21173 cat "$ac_result" >>"$tmp/config.h"
21174 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21175 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21176 echo "$as_me: $ac_file is unchanged" >&6;}
21179 mv "$tmp/config.h" $ac_file
21182 echo "/* $configure_input */"
21188 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21189 echo "$as_me: executing $ac_file commands" >&6;}
21194 case $ac_file$ac_mode in
21195 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
21196 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
21197 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
21198 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
21199 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
21200 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
21201 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
21202 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
21203 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
21204 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
21205 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
21206 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
21207 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
21208 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
21209 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
21210 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
21211 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
21212 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
21213 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
21214 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
21215 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
21216 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
21217 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
21218 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
21219 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
21220 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
21226 { (exit 0); exit 0; }
21228 chmod +x $CONFIG_STATUS
21229 ac_clean_files=$ac_clean_files_save
21232 # configure is writing to config.log, and then calls config.status.
21233 # config.status does its own redirection, appending to config.log.
21234 # Unfortunately, on DOS this fails, as config.log is still kept open
21235 # by configure, so config.status won't be able to write to it; its
21236 # output is simply discarded. So we exec the FD to /dev/null,
21237 # effectively closing config.log, so it can be properly (re)opened and
21238 # appended to by config.status. When coming back to configure, we
21239 # need to make the FD available again.
21240 if test "$no_create" != yes; then
21242 ac_config_status_args=
21243 test "$silent" = yes &&
21244 ac_config_status_args="$ac_config_status_args --quiet"
21246 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21248 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21249 # would make configure fail if this is the last instruction.
21250 $ac_cs_success || { (exit 1); exit 1; }
21254 # CONFIG_SUBDIRS section.
21256 if test "$no_recursion" != yes; then
21258 # Remove --cache-file and --srcdir arguments so they do not pile up.
21259 ac_sub_configure_args=
21261 eval "set x $ac_configure_args"
21265 if test -n "$ac_prev"; then
21270 -cache-file | --cache-file | --cache-fil | --cache-fi \
21271 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21272 ac_prev=cache_file ;;
21273 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
21274 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
21277 --config-cache | -C)
21279 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21281 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21283 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
21285 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
21289 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21291 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
21295 # Always prepend --prefix to ensure using the same prefix
21296 # in subdir configurations.
21297 ac_arg="--prefix=$prefix"
21299 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21301 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
21304 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
21306 # Do not complain, so a configure script can configure whichever
21307 # parts of a large source tree are present.
21308 test -d "$srcdir/$ac_dir" || continue
21310 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
21311 echo "$as_me:$LINENO: $ac_msg" >&5
21315 -*) as_dir=./$as_dir;;
21317 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21321 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21322 *) as_qdir=$as_dir;;
21324 as_dirs="'$as_qdir' $as_dirs"
21325 as_dir=`$as_dirname -- "$as_dir" ||
21326 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21327 X"$as_dir" : 'X\(//\)[^/]' \| \
21328 X"$as_dir" : 'X\(//\)$' \| \
21329 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21331 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21335 /^X\(\/\/\)[^/].*/{
21348 test -d "$as_dir" && break
21350 test -z "$as_dirs" || eval "mkdir $as_dirs"
21351 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21352 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21353 { (exit 1); exit 1; }; }; }
21357 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21359 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21360 # A ".." for each directory in $ac_dir_suffix.
21361 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21362 case $ac_top_builddir_sub in
21363 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21364 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21367 ac_abs_top_builddir=$ac_pwd
21368 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21369 # for backward compatibility:
21370 ac_top_builddir=$ac_top_build_prefix
21373 .) # We are building in place.
21375 ac_top_srcdir=$ac_top_builddir_sub
21376 ac_abs_top_srcdir=$ac_pwd ;;
21377 [\\/]* | ?:[\\/]* ) # Absolute name.
21378 ac_srcdir=$srcdir$ac_dir_suffix;
21379 ac_top_srcdir=$srcdir
21380 ac_abs_top_srcdir=$srcdir ;;
21381 *) # Relative name.
21382 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21383 ac_top_srcdir=$ac_top_build_prefix$srcdir
21384 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21386 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21391 # Check for guested configure; otherwise get Cygnus style configure.
21392 if test -f "$ac_srcdir/configure.gnu"; then
21393 ac_sub_configure=$ac_srcdir/configure.gnu
21394 elif test -f "$ac_srcdir/configure"; then
21395 ac_sub_configure=$ac_srcdir/configure
21396 elif test -f "$ac_srcdir/configure.in"; then
21397 # This should be Cygnus configure.
21398 ac_sub_configure=$ac_aux_dir/configure
21400 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
21401 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
21405 # The recursion is here.
21406 if test -n "$ac_sub_configure"; then
21407 # Make the cache file name correct relative to the subdirectory.
21408 case $cache_file in
21409 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
21410 *) # Relative name.
21411 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
21414 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
21415 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
21416 # The eval makes quoting arguments work.
21417 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21418 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
21419 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
21420 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
21421 { (exit 1); exit 1; }; }