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
783 ENABLE_VISIBILITY_INLINES_HIDDEN
789 ac_precious_vars='build_alias
800 ac_subdirs_all='projects/sample
802 projects/llvm-stacker
809 projects/llvm-poolalloc
811 projects/llvm-kernel'
813 # Initialize some variables set by options.
815 ac_init_version=false
816 # The variables have the same names as the options, with
817 # dashes changed to underlines.
825 program_transform_name=s,x,x,
833 # Installation directory options.
834 # These are left unexpanded so users can "make install exec_prefix=/foo"
835 # and all the variables that are supposed to be based on exec_prefix
836 # by default will actually change.
837 # Use braces instead of parens because sh, perl, etc. also accept them.
838 # (The list follows the same order as the GNU Coding Standards.)
839 bindir='${exec_prefix}/bin'
840 sbindir='${exec_prefix}/sbin'
841 libexecdir='${exec_prefix}/libexec'
842 datarootdir='${prefix}/share'
843 datadir='${datarootdir}'
844 sysconfdir='${prefix}/etc'
845 sharedstatedir='${prefix}/com'
846 localstatedir='${prefix}/var'
847 includedir='${prefix}/include'
848 oldincludedir='/usr/include'
849 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
850 infodir='${datarootdir}/info'
855 libdir='${exec_prefix}/lib'
856 localedir='${datarootdir}/locale'
857 mandir='${datarootdir}/man'
863 # If the previous option needs an argument, assign it.
864 if test -n "$ac_prev"; then
865 eval $ac_prev=\$ac_option
871 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
875 # Accept the important Cygnus configure options, so we can diagnose typos.
877 case $ac_dashdash$ac_option in
881 -bindir | --bindir | --bindi | --bind | --bin | --bi)
883 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
886 -build | --build | --buil | --bui | --bu)
887 ac_prev=build_alias ;;
888 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
889 build_alias=$ac_optarg ;;
891 -cache-file | --cache-file | --cache-fil | --cache-fi \
892 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
893 ac_prev=cache_file ;;
894 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
895 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
896 cache_file=$ac_optarg ;;
899 cache_file=config.cache ;;
901 -datadir | --datadir | --datadi | --datad)
903 -datadir=* | --datadir=* | --datadi=* | --datad=*)
904 datadir=$ac_optarg ;;
906 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
907 | --dataroo | --dataro | --datar)
908 ac_prev=datarootdir ;;
909 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
910 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
911 datarootdir=$ac_optarg ;;
913 -disable-* | --disable-*)
914 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
915 # Reject names that are not valid shell variable names.
916 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
917 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
918 { (exit 1); exit 1; }; }
919 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
920 eval enable_$ac_feature=no ;;
922 -docdir | --docdir | --docdi | --doc | --do)
924 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
927 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
929 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
932 -enable-* | --enable-*)
933 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
934 # Reject names that are not valid shell variable names.
935 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
936 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
937 { (exit 1); exit 1; }; }
938 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
939 eval enable_$ac_feature=\$ac_optarg ;;
941 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
942 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
943 | --exec | --exe | --ex)
944 ac_prev=exec_prefix ;;
945 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
946 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
947 | --exec=* | --exe=* | --ex=*)
948 exec_prefix=$ac_optarg ;;
950 -gas | --gas | --ga | --g)
951 # Obsolete; use --with-gas.
954 -help | --help | --hel | --he | -h)
956 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
957 ac_init_help=recursive ;;
958 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
959 ac_init_help=short ;;
961 -host | --host | --hos | --ho)
962 ac_prev=host_alias ;;
963 -host=* | --host=* | --hos=* | --ho=*)
964 host_alias=$ac_optarg ;;
966 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
968 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
970 htmldir=$ac_optarg ;;
972 -includedir | --includedir | --includedi | --included | --include \
973 | --includ | --inclu | --incl | --inc)
974 ac_prev=includedir ;;
975 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
976 | --includ=* | --inclu=* | --incl=* | --inc=*)
977 includedir=$ac_optarg ;;
979 -infodir | --infodir | --infodi | --infod | --info | --inf)
981 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
982 infodir=$ac_optarg ;;
984 -libdir | --libdir | --libdi | --libd)
986 -libdir=* | --libdir=* | --libdi=* | --libd=*)
989 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
990 | --libexe | --libex | --libe)
991 ac_prev=libexecdir ;;
992 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
993 | --libexe=* | --libex=* | --libe=*)
994 libexecdir=$ac_optarg ;;
996 -localedir | --localedir | --localedi | --localed | --locale)
998 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
999 localedir=$ac_optarg ;;
1001 -localstatedir | --localstatedir | --localstatedi | --localstated \
1002 | --localstate | --localstat | --localsta | --localst | --locals)
1003 ac_prev=localstatedir ;;
1004 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1005 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1006 localstatedir=$ac_optarg ;;
1008 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1010 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1011 mandir=$ac_optarg ;;
1013 -nfp | --nfp | --nf)
1014 # Obsolete; use --without-fp.
1017 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1018 | --no-cr | --no-c | -n)
1021 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1022 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1025 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1026 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1027 | --oldin | --oldi | --old | --ol | --o)
1028 ac_prev=oldincludedir ;;
1029 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1030 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1031 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1032 oldincludedir=$ac_optarg ;;
1034 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1036 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1037 prefix=$ac_optarg ;;
1039 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1040 | --program-pre | --program-pr | --program-p)
1041 ac_prev=program_prefix ;;
1042 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1043 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1044 program_prefix=$ac_optarg ;;
1046 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1047 | --program-suf | --program-su | --program-s)
1048 ac_prev=program_suffix ;;
1049 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1050 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1051 program_suffix=$ac_optarg ;;
1053 -program-transform-name | --program-transform-name \
1054 | --program-transform-nam | --program-transform-na \
1055 | --program-transform-n | --program-transform- \
1056 | --program-transform | --program-transfor \
1057 | --program-transfo | --program-transf \
1058 | --program-trans | --program-tran \
1059 | --progr-tra | --program-tr | --program-t)
1060 ac_prev=program_transform_name ;;
1061 -program-transform-name=* | --program-transform-name=* \
1062 | --program-transform-nam=* | --program-transform-na=* \
1063 | --program-transform-n=* | --program-transform-=* \
1064 | --program-transform=* | --program-transfor=* \
1065 | --program-transfo=* | --program-transf=* \
1066 | --program-trans=* | --program-tran=* \
1067 | --progr-tra=* | --program-tr=* | --program-t=*)
1068 program_transform_name=$ac_optarg ;;
1070 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1072 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1073 pdfdir=$ac_optarg ;;
1075 -psdir | --psdir | --psdi | --psd | --ps)
1077 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1080 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1081 | -silent | --silent | --silen | --sile | --sil)
1084 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1086 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1088 sbindir=$ac_optarg ;;
1090 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1091 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1092 | --sharedst | --shareds | --shared | --share | --shar \
1094 ac_prev=sharedstatedir ;;
1095 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1096 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1097 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1099 sharedstatedir=$ac_optarg ;;
1101 -site | --site | --sit)
1103 -site=* | --site=* | --sit=*)
1106 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1108 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1109 srcdir=$ac_optarg ;;
1111 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1112 | --syscon | --sysco | --sysc | --sys | --sy)
1113 ac_prev=sysconfdir ;;
1114 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1115 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1116 sysconfdir=$ac_optarg ;;
1118 -target | --target | --targe | --targ | --tar | --ta | --t)
1119 ac_prev=target_alias ;;
1120 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1121 target_alias=$ac_optarg ;;
1123 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1126 -version | --version | --versio | --versi | --vers | -V)
1127 ac_init_version=: ;;
1130 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1131 # Reject names that are not valid shell variable names.
1132 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1133 { echo "$as_me: error: invalid package name: $ac_package" >&2
1134 { (exit 1); exit 1; }; }
1135 ac_package=`echo $ac_package| sed 's/-/_/g'`
1136 eval with_$ac_package=\$ac_optarg ;;
1138 -without-* | --without-*)
1139 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1140 # Reject names that are not valid shell variable names.
1141 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1142 { echo "$as_me: error: invalid package name: $ac_package" >&2
1143 { (exit 1); exit 1; }; }
1144 ac_package=`echo $ac_package | sed 's/-/_/g'`
1145 eval with_$ac_package=no ;;
1148 # Obsolete; use --with-x.
1151 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1152 | --x-incl | --x-inc | --x-in | --x-i)
1153 ac_prev=x_includes ;;
1154 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1155 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1156 x_includes=$ac_optarg ;;
1158 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1159 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1160 ac_prev=x_libraries ;;
1161 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1162 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1163 x_libraries=$ac_optarg ;;
1165 -*) { echo "$as_me: error: unrecognized option: $ac_option
1166 Try \`$0 --help' for more information." >&2
1167 { (exit 1); exit 1; }; }
1171 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1172 # Reject names that are not valid shell variable names.
1173 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1174 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1175 { (exit 1); exit 1; }; }
1176 eval $ac_envvar=\$ac_optarg
1177 export $ac_envvar ;;
1180 # FIXME: should be removed in autoconf 3.0.
1181 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1182 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1183 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1184 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1190 if test -n "$ac_prev"; then
1191 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1192 { echo "$as_me: error: missing argument to $ac_option" >&2
1193 { (exit 1); exit 1; }; }
1196 # Be sure to have absolute directory names.
1197 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1198 datadir sysconfdir sharedstatedir localstatedir includedir \
1199 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1200 libdir localedir mandir
1202 eval ac_val=\$$ac_var
1204 [\\/$]* | ?:[\\/]* ) continue;;
1205 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1207 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1208 { (exit 1); exit 1; }; }
1211 # There might be people who depend on the old broken behavior: `$host'
1212 # used to hold the argument of --host etc.
1213 # FIXME: To remove some day.
1216 target=$target_alias
1218 # FIXME: To remove some day.
1219 if test "x$host_alias" != x; then
1220 if test "x$build_alias" = x; then
1221 cross_compiling=maybe
1222 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1223 If a cross compiler is detected then cross compile mode will be used." >&2
1224 elif test "x$build_alias" != "x$host_alias"; then
1230 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1232 test "$silent" = yes && exec 6>/dev/null
1235 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1236 ac_ls_di=`ls -di .` &&
1237 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1238 { echo "$as_me: error: Working directory cannot be determined" >&2
1239 { (exit 1); exit 1; }; }
1240 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1241 { echo "$as_me: error: pwd does not report name of working directory" >&2
1242 { (exit 1); exit 1; }; }
1245 # Find the source files, if location was not specified.
1246 if test -z "$srcdir"; then
1247 ac_srcdir_defaulted=yes
1248 # Try the directory containing this script, then the parent directory.
1249 ac_confdir=`$as_dirname -- "$0" ||
1250 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1251 X"$0" : 'X\(//\)[^/]' \| \
1252 X"$0" : 'X\(//\)$' \| \
1253 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1255 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1273 if test ! -r "$srcdir/$ac_unique_file"; then
1277 ac_srcdir_defaulted=no
1279 if test ! -r "$srcdir/$ac_unique_file"; then
1280 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1281 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1282 { (exit 1); exit 1; }; }
1284 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1286 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1287 { (exit 1); exit 1; }; }
1289 # When building in place, set srcdir=.
1290 if test "$ac_abs_confdir" = "$ac_pwd"; then
1293 # Remove unnecessary trailing slashes from srcdir.
1294 # Double slashes in file names in object file debugging info
1295 # mess up M-x gdb in Emacs.
1297 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1299 for ac_var in $ac_precious_vars; do
1300 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1301 eval ac_env_${ac_var}_value=\$${ac_var}
1302 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1303 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1307 # Report the --help message.
1309 if test "$ac_init_help" = "long"; then
1310 # Omit some internal or obsolete options to make the list less imposing.
1311 # This message is too long to be a string in the A/UX 3.1 sh.
1313 \`configure' configures llvm 2.7svn to adapt to many kinds of systems.
1315 Usage: $0 [OPTION]... [VAR=VALUE]...
1317 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1318 VAR=VALUE. See below for descriptions of some of the useful variables.
1320 Defaults for the options are specified in brackets.
1323 -h, --help display this help and exit
1324 --help=short display options specific to this package
1325 --help=recursive display the short help of all the included packages
1326 -V, --version display version information and exit
1327 -q, --quiet, --silent do not print \`checking...' messages
1328 --cache-file=FILE cache test results in FILE [disabled]
1329 -C, --config-cache alias for \`--cache-file=config.cache'
1330 -n, --no-create do not create output files
1331 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1333 Installation directories:
1334 --prefix=PREFIX install architecture-independent files in PREFIX
1335 [$ac_default_prefix]
1336 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1339 By default, \`make install' will install all the files in
1340 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1341 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1342 for instance \`--prefix=\$HOME'.
1344 For better control, use the options below.
1346 Fine tuning of the installation directories:
1347 --bindir=DIR user executables [EPREFIX/bin]
1348 --sbindir=DIR system admin executables [EPREFIX/sbin]
1349 --libexecdir=DIR program executables [EPREFIX/libexec]
1350 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1351 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1352 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1353 --libdir=DIR object code libraries [EPREFIX/lib]
1354 --includedir=DIR C header files [PREFIX/include]
1355 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1356 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1357 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1358 --infodir=DIR info documentation [DATAROOTDIR/info]
1359 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1360 --mandir=DIR man documentation [DATAROOTDIR/man]
1361 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1362 --htmldir=DIR html documentation [DOCDIR]
1363 --dvidir=DIR dvi documentation [DOCDIR]
1364 --pdfdir=DIR pdf documentation [DOCDIR]
1365 --psdir=DIR ps documentation [DOCDIR]
1371 --build=BUILD configure for building on BUILD [guessed]
1372 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1373 --target=TARGET configure for building compilers for TARGET [HOST]
1377 if test -n "$ac_init_help"; then
1378 case $ac_init_help in
1379 short | recursive ) echo "Configuration of llvm 2.7svn:";;
1384 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1385 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1386 --enable-optimized Compile with optimizations enabled (default is NO)
1387 --enable-profiling Compile with profiling enabled (default is NO)
1388 --enable-assertions Compile with assertion checks enabled (default is
1390 --enable-expensive-checks
1391 Compile with expensive debug checks enabled (default
1393 --enable-debug-runtime Build runtime libs with debug symbols (default is
1395 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1396 optimization is on and YES if it's off)
1397 --enable-jit Enable Just In Time Compiling (default is YES)
1398 --enable-doxygen Build doxygen documentation (default is NO)
1399 --enable-threads Use threads if available (default is YES)
1400 --enable-pic Build LLVM with Position Independent Code (default
1402 --enable-targets Build specific host targets: all or
1403 target1,target2,... Valid targets are: host, x86,
1404 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1405 pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1406 and cpp (default=all)
1407 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1409 --enable-bindings Build specific language bindings:
1410 all,auto,none,{binding-name} (default=auto)
1411 --enable-libffi Check for the presence of libffi (default is NO)
1412 --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on
1414 --enable-llvmc-dynamic-plugins
1415 Enable dynamic LLVMC plugins (default is YES)
1416 --enable-ltdl-install install libltdl
1419 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1420 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1421 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1423 --with-llvmgcc Specify location of llvm-gcc driver (default
1425 --with-llvmgxx Specify location of llvm-g++ driver (default
1427 --with-optimize-option Select the compiler options to use for optimized
1429 --with-extra-options Specify additional options to compile LLVM with
1430 --with-ocaml-libdir Specify install location for ocaml bindings (default
1432 --with-c-include-dirs Colon separated list of directories clang will
1434 --with-cxx-include-root Directory with the libstdc++ headers.
1435 --with-cxx-include-arch Architecture of the libstdc++ headers.
1436 --with-cxx-include-32bit-dir
1437 32 bit multilib dir.
1438 --with-cxx-include-64bit-dir
1439 64 bit multilib directory.
1440 --with-binutils-include Specify path to binutils/include/ containing
1441 plugin-api.h file for gold plugin.
1442 --with-tclinclude directory where tcl headers are
1443 --with-udis86=<path> Use udis86 external x86 disassembler library
1444 --with-oprofile=<prefix>
1445 Tell OProfile >= 0.9.4 how to symbolize JIT output
1447 Some influential environment variables:
1448 CC C compiler command
1449 CFLAGS C compiler flags
1450 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1451 nonstandard directory <lib dir>
1452 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1453 you have headers in a nonstandard directory <include dir>
1455 CXX C++ compiler command
1456 CXXFLAGS C++ compiler flags
1458 Use these variables to override the choices made by `configure' or to help
1459 it to find libraries and programs with nonstandard names/locations.
1461 Report bugs to <llvmbugs@cs.uiuc.edu>.
1466 if test "$ac_init_help" = "recursive"; then
1467 # If there are subdirs, report their specific --help.
1468 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1469 test -d "$ac_dir" || continue
1473 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1475 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1476 # A ".." for each directory in $ac_dir_suffix.
1477 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1478 case $ac_top_builddir_sub in
1479 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1480 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1483 ac_abs_top_builddir=$ac_pwd
1484 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1485 # for backward compatibility:
1486 ac_top_builddir=$ac_top_build_prefix
1489 .) # We are building in place.
1491 ac_top_srcdir=$ac_top_builddir_sub
1492 ac_abs_top_srcdir=$ac_pwd ;;
1493 [\\/]* | ?:[\\/]* ) # Absolute name.
1494 ac_srcdir=$srcdir$ac_dir_suffix;
1495 ac_top_srcdir=$srcdir
1496 ac_abs_top_srcdir=$srcdir ;;
1498 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1499 ac_top_srcdir=$ac_top_build_prefix$srcdir
1500 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1502 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1504 cd "$ac_dir" || { ac_status=$?; continue; }
1505 # Check for guested configure.
1506 if test -f "$ac_srcdir/configure.gnu"; then
1508 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1509 elif test -f "$ac_srcdir/configure"; then
1511 $SHELL "$ac_srcdir/configure" --help=recursive
1513 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1515 cd "$ac_pwd" || { ac_status=$?; break; }
1519 test -n "$ac_init_help" && exit $ac_status
1520 if $ac_init_version; then
1522 llvm configure 2.7svn
1523 generated by GNU Autoconf 2.60
1525 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1526 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1527 This configure script is free software; the Free Software Foundation
1528 gives unlimited permission to copy, distribute and modify it.
1530 Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
1534 cat >config.log <<_ACEOF
1535 This file contains any messages produced by compilers while
1536 running configure, to aid debugging if configure makes a mistake.
1538 It was created by llvm $as_me 2.7svn, which was
1539 generated by GNU Autoconf 2.60. Invocation command line was
1551 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1552 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1553 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1554 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1555 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1557 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1558 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1560 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1561 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1562 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1563 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1564 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1565 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1566 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1574 test -z "$as_dir" && as_dir=.
1575 echo "PATH: $as_dir"
1591 # Keep a trace of the command line.
1592 # Strip out --no-create and --no-recursion so they do not pile up.
1593 # Strip out --silent because we don't want to record it for future runs.
1594 # Also quote any args containing shell meta-characters.
1595 # Make two passes to allow for proper duplicate-argument suppression.
1599 ac_must_keep_next=false
1605 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1606 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1607 | -silent | --silent | --silen | --sile | --sil)
1610 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1613 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1615 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1616 if test $ac_must_keep_next = true; then
1617 ac_must_keep_next=false # Got value, back to normal.
1620 *=* | --config-cache | -C | -disable-* | --disable-* \
1621 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1622 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1623 | -with-* | --with-* | -without-* | --without-* | --x)
1624 case "$ac_configure_args0 " in
1625 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1628 -* ) ac_must_keep_next=true ;;
1631 ac_configure_args="$ac_configure_args '$ac_arg'"
1636 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1637 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1639 # When interrupted or exit'd, cleanup temporary files, and complete
1640 # config.log. We remove comments because anyway the quotes in there
1641 # would cause problems or look ugly.
1642 # WARNING: Use '\'' to represent an apostrophe within the trap.
1643 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1644 trap 'exit_status=$?
1645 # Save into config.log some information that might help in debugging.
1650 ## ---------------- ##
1651 ## Cache variables. ##
1652 ## ---------------- ##
1655 # The following way of writing the cache mishandles newlines in values,
1657 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1658 eval ac_val=\$$ac_var
1662 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1663 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1666 _ | IFS | as_nl) ;; #(
1667 *) $as_unset $ac_var ;;
1672 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1673 *${as_nl}ac_space=\ *)
1675 "s/'\''/'\''\\\\'\'''\''/g;
1676 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1679 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1687 ## ----------------- ##
1688 ## Output variables. ##
1689 ## ----------------- ##
1692 for ac_var in $ac_subst_vars
1694 eval ac_val=\$$ac_var
1696 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1698 echo "$ac_var='\''$ac_val'\''"
1702 if test -n "$ac_subst_files"; then
1704 ## ------------------- ##
1705 ## File substitutions. ##
1706 ## ------------------- ##
1709 for ac_var in $ac_subst_files
1711 eval ac_val=\$$ac_var
1713 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1715 echo "$ac_var='\''$ac_val'\''"
1720 if test -s confdefs.h; then
1730 test "$ac_signal" != 0 &&
1731 echo "$as_me: caught signal $ac_signal"
1732 echo "$as_me: exit $exit_status"
1734 rm -f core *.core core.conftest.* &&
1735 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1738 for ac_signal in 1 2 13 15; do
1739 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1743 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1744 rm -f -r conftest* confdefs.h
1746 # Predefined preprocessor variables.
1748 cat >>confdefs.h <<_ACEOF
1749 #define PACKAGE_NAME "$PACKAGE_NAME"
1753 cat >>confdefs.h <<_ACEOF
1754 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1758 cat >>confdefs.h <<_ACEOF
1759 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1763 cat >>confdefs.h <<_ACEOF
1764 #define PACKAGE_STRING "$PACKAGE_STRING"
1768 cat >>confdefs.h <<_ACEOF
1769 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1773 # Let the site file select an alternate cache file if it wants to.
1774 # Prefer explicitly selected file to automatically selected ones.
1775 if test -n "$CONFIG_SITE"; then
1776 set x "$CONFIG_SITE"
1777 elif test "x$prefix" != xNONE; then
1778 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1780 set x "$ac_default_prefix/share/config.site" \
1781 "$ac_default_prefix/etc/config.site"
1786 if test -r "$ac_site_file"; then
1787 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1788 echo "$as_me: loading site script $ac_site_file" >&6;}
1789 sed 's/^/| /' "$ac_site_file" >&5
1794 if test -r "$cache_file"; then
1795 # Some versions of bash will fail to source /dev/null (special
1796 # files actually), so we avoid doing that.
1797 if test -f "$cache_file"; then
1798 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1799 echo "$as_me: loading cache $cache_file" >&6;}
1801 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1802 *) . "./$cache_file";;
1806 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1807 echo "$as_me: creating cache $cache_file" >&6;}
1811 # Check that the precious variables saved in the cache have kept the same
1813 ac_cache_corrupted=false
1814 for ac_var in $ac_precious_vars; do
1815 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1816 eval ac_new_set=\$ac_env_${ac_var}_set
1817 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1818 eval ac_new_val=\$ac_env_${ac_var}_value
1819 case $ac_old_set,$ac_new_set in
1821 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1822 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1823 ac_cache_corrupted=: ;;
1825 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1826 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1827 ac_cache_corrupted=: ;;
1830 if test "x$ac_old_val" != "x$ac_new_val"; then
1831 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1832 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1833 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1834 echo "$as_me: former value: $ac_old_val" >&2;}
1835 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1836 echo "$as_me: current value: $ac_new_val" >&2;}
1837 ac_cache_corrupted=:
1840 # Pass precious variables to config.status.
1841 if test "$ac_new_set" = set; then
1843 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1844 *) ac_arg=$ac_var=$ac_new_val ;;
1846 case " $ac_configure_args " in
1847 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1848 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1852 if $ac_cache_corrupted; then
1853 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1854 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1855 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1856 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1857 { (exit 1); exit 1; }; }
1885 ac_cpp='$CPP $CPPFLAGS'
1886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1892 LLVM_COPYRIGHT="Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign."
1901 for ac_dir in autoconf "$srcdir"/autoconf; do
1902 if test -f "$ac_dir/install-sh"; then
1904 ac_install_sh="$ac_aux_dir/install-sh -c"
1906 elif test -f "$ac_dir/install.sh"; then
1908 ac_install_sh="$ac_aux_dir/install.sh -c"
1910 elif test -f "$ac_dir/shtool"; then
1912 ac_install_sh="$ac_aux_dir/shtool install -c"
1916 if test -z "$ac_aux_dir"; then
1917 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1918 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1919 { (exit 1); exit 1; }; }
1922 # These three variables are undocumented and unsupported,
1923 # and are intended to be withdrawn in a future Autoconf release.
1924 # They can cause serious problems if a builder's source tree is in a directory
1925 # whose full name contains unusual characters.
1926 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1927 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1928 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1932 if test ${srcdir} != "." ; then
1933 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1934 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1935 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1936 { (exit 1); exit 1; }; }
1940 for i in `ls ${srcdir}/projects`
1942 if test -d ${srcdir}/projects/${i} ; then
1945 sample) subdirs="$subdirs projects/sample"
1947 privbracket) subdirs="$subdirs projects/privbracket"
1949 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
1951 # llvm-test is the old name of the test-suite, kept here for backwards
1953 llvm-test) subdirs="$subdirs projects/llvm-test"
1955 test-suite) subdirs="$subdirs projects/test-suite"
1957 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
1959 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
1961 llvm-java) subdirs="$subdirs projects/llvm-java"
1963 llvm-tv) subdirs="$subdirs projects/llvm-tv"
1965 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
1967 poolalloc) subdirs="$subdirs projects/poolalloc"
1969 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
1972 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1973 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1980 # Make sure we can run config.sub.
1981 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1982 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1983 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1984 { (exit 1); exit 1; }; }
1986 { echo "$as_me:$LINENO: checking build system type" >&5
1987 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1988 if test "${ac_cv_build+set}" = set; then
1989 echo $ECHO_N "(cached) $ECHO_C" >&6
1991 ac_build_alias=$build_alias
1992 test "x$ac_build_alias" = x &&
1993 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1994 test "x$ac_build_alias" = x &&
1995 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1996 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1997 { (exit 1); exit 1; }; }
1998 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1999 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2000 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2001 { (exit 1); exit 1; }; }
2004 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2005 echo "${ECHO_T}$ac_cv_build" >&6; }
2006 case $ac_cv_build in
2008 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2009 echo "$as_me: error: invalid value of canonical build" >&2;}
2010 { (exit 1); exit 1; }; };;
2013 ac_save_IFS=$IFS; IFS='-'
2019 # Remember, the first character of IFS is used to create $*,
2020 # except with old shells:
2023 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2026 { echo "$as_me:$LINENO: checking host system type" >&5
2027 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2028 if test "${ac_cv_host+set}" = set; then
2029 echo $ECHO_N "(cached) $ECHO_C" >&6
2031 if test "x$host_alias" = x; then
2032 ac_cv_host=$ac_cv_build
2034 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2035 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2036 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2037 { (exit 1); exit 1; }; }
2041 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2042 echo "${ECHO_T}$ac_cv_host" >&6; }
2045 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2046 echo "$as_me: error: invalid value of canonical host" >&2;}
2047 { (exit 1); exit 1; }; };;
2050 ac_save_IFS=$IFS; IFS='-'
2056 # Remember, the first character of IFS is used to create $*,
2057 # except with old shells:
2060 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2063 { echo "$as_me:$LINENO: checking target system type" >&5
2064 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2065 if test "${ac_cv_target+set}" = set; then
2066 echo $ECHO_N "(cached) $ECHO_C" >&6
2068 if test "x$target_alias" = x; then
2069 ac_cv_target=$ac_cv_host
2071 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2072 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2073 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2074 { (exit 1); exit 1; }; }
2078 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2079 echo "${ECHO_T}$ac_cv_target" >&6; }
2080 case $ac_cv_target in
2082 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2083 echo "$as_me: error: invalid value of canonical target" >&2;}
2084 { (exit 1); exit 1; }; };;
2086 target=$ac_cv_target
2087 ac_save_IFS=$IFS; IFS='-'
2093 # Remember, the first character of IFS is used to create $*,
2094 # except with old shells:
2097 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2100 # The aliases save the names the user supplied, while $host etc.
2101 # will get canonicalized.
2102 test -n "$target_alias" &&
2103 test "$program_prefix$program_suffix$program_transform_name" = \
2105 program_prefix=${target_alias}-
2107 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2108 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2109 if test "${llvm_cv_os_type+set}" = set; then
2110 echo $ECHO_N "(cached) $ECHO_C" >&6
2114 llvm_cv_link_all_option="-Wl,--whole-archive"
2115 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2116 llvm_cv_os_type="AIX"
2117 llvm_cv_platform_type="Unix" ;;
2119 llvm_cv_link_all_option="-Wl,--whole-archive"
2120 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2121 llvm_cv_os_type="IRIX"
2122 llvm_cv_platform_type="Unix" ;;
2124 llvm_cv_link_all_option="-Wl,--whole-archive"
2125 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2126 llvm_cv_os_type="Cygwin"
2127 llvm_cv_platform_type="Unix" ;;
2129 llvm_cv_link_all_option="-Wl,-all_load"
2130 llvm_cv_no_link_all_option="-Wl,-noall_load"
2131 llvm_cv_os_type="Darwin"
2132 llvm_cv_platform_type="Unix" ;;
2134 llvm_cv_link_all_option="-Wl,--whole-archive"
2135 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2136 llvm_cv_os_type="FreeBSD"
2137 llvm_cv_platform_type="Unix" ;;
2139 llvm_cv_link_all_option="-Wl,--whole-archive"
2140 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2141 llvm_cv_os_type="OpenBSD"
2142 llvm_cv_platform_type="Unix" ;;
2144 llvm_cv_link_all_option="-Wl,--whole-archive"
2145 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2146 llvm_cv_os_type="NetBSD"
2147 llvm_cv_platform_type="Unix" ;;
2149 llvm_cv_link_all_option="-Wl,--whole-archive"
2150 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2151 llvm_cv_os_type="DragonFly"
2152 llvm_cv_platform_type="Unix" ;;
2154 llvm_cv_link_all_option="-Wl,--whole-archive"
2155 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2156 llvm_cv_os_type="HP-UX"
2157 llvm_cv_platform_type="Unix" ;;
2159 llvm_cv_link_all_option="-Wl,--whole-archive"
2160 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2161 llvm_cv_os_type="Interix"
2162 llvm_cv_platform_type="Unix" ;;
2164 llvm_cv_link_all_option="-Wl,--whole-archive"
2165 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2166 llvm_cv_os_type="Linux"
2167 llvm_cv_platform_type="Unix" ;;
2169 llvm_cv_link_all_option="-Wl,-z,allextract"
2170 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2171 llvm_cv_os_type="SunOS"
2172 llvm_cv_platform_type="Unix" ;;
2174 llvm_cv_link_all_option="-Wl,-z,allextract"
2175 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2176 llvm_cv_os_type="AuroraUX"
2177 llvm_cv_platform_type="Unix" ;;
2179 llvm_cv_link_all_option="-Wl,--whole-archive"
2180 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2181 llvm_cv_os_type="Win32"
2182 llvm_cv_platform_type="Win32" ;;
2184 llvm_cv_link_all_option="-Wl,--whole-archive"
2185 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2186 llvm_cv_os_type="MingW"
2187 llvm_cv_platform_type="Win32" ;;
2189 llvm_cv_link_all_option="-Wl,--whole-archive"
2190 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2191 llvm_cv_os_type="Haiku"
2192 llvm_cv_platform_type="Unix" ;;
2194 llvm_cv_link_all_option="-Wl,--whole-archive"
2195 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2196 llvm_cv_os_type="Freestanding"
2197 llvm_cv_platform_type="Unix" ;;
2199 llvm_cv_link_all_option="-Wl,--whole-archive"
2200 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2201 llvm_cv_os_type="Freestanding"
2202 llvm_cv_platform_type="Unix" ;;
2204 llvm_cv_link_all_option=""
2205 llvm_cv_no_link_all_option=""
2206 llvm_cv_os_type="Unknown"
2207 llvm_cv_platform_type="Unknown" ;;
2210 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2211 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2213 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2214 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2215 if test "${llvm_cv_target_os_type+set}" = set; then
2216 echo $ECHO_N "(cached) $ECHO_C" >&6
2220 llvm_cv_target_os_type="AIX" ;;
2222 llvm_cv_target_os_type="IRIX" ;;
2224 llvm_cv_target_os_type="Cygwin" ;;
2226 llvm_cv_target_os_type="Darwin" ;;
2228 llvm_cv_target_os_type="FreeBSD" ;;
2230 llvm_cv_target_os_type="OpenBSD" ;;
2232 llvm_cv_target_os_type="NetBSD" ;;
2234 llvm_cv_target_os_type="DragonFly" ;;
2236 llvm_cv_target_os_type="HP-UX" ;;
2238 llvm_cv_target_os_type="Interix" ;;
2240 llvm_cv_target_os_type="Linux" ;;
2242 llvm_cv_target_os_type="SunOS" ;;
2244 llvm_cv_target_os_type="AuroraUX" ;;
2246 llvm_cv_target_os_type="Win32" ;;
2248 llvm_cv_target_os_type="MingW" ;;
2250 llvm_cv_target_os_type="Haiku" ;;
2252 llvm_cv_target_os_type="Freestanding" ;;
2254 llvm_cv_target_os_type="Unknown" ;;
2257 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2258 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2260 if test "$llvm_cv_os_type" = "Unknown" ; then
2261 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2262 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2263 { (exit 1); exit 1; }; }
2268 HOST_OS=$llvm_cv_os_type
2270 TARGET_OS=$llvm_cv_target_os_type
2273 LINKALL=$llvm_cv_link_all_option
2275 NOLINKALL=$llvm_cv_no_link_all_option
2278 case $llvm_cv_platform_type in
2281 cat >>confdefs.h <<\_ACEOF
2282 #define LLVM_ON_UNIX 1
2292 cat >>confdefs.h <<\_ACEOF
2293 #define LLVM_ON_WIN32 1
2303 { echo "$as_me:$LINENO: checking target architecture" >&5
2304 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2305 if test "${llvm_cv_target_arch+set}" = set; then
2306 echo $ECHO_N "(cached) $ECHO_C" >&6
2309 i?86-*) llvm_cv_target_arch="x86" ;;
2310 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2311 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2312 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2313 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2314 arm*-*) llvm_cv_target_arch="ARM" ;;
2315 mips-*) llvm_cv_target_arch="Mips" ;;
2316 pic16-*) llvm_cv_target_arch="PIC16" ;;
2317 xcore-*) llvm_cv_target_arch="XCore" ;;
2318 msp430-*) llvm_cv_target_arch="MSP430" ;;
2319 s390x-*) llvm_cv_target_arch="SystemZ" ;;
2320 bfin-*) llvm_cv_target_arch="Blackfin" ;;
2321 *) llvm_cv_target_arch="Unknown" ;;
2324 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2325 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2327 if test "$llvm_cv_target_arch" = "Unknown" ; then
2328 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2329 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2332 # Determine the LLVM native architecture for the target
2333 case "$llvm_cv_target_arch" in
2334 x86) LLVM_NATIVE_ARCH="X86" ;;
2335 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2336 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2339 ARCH=$llvm_cv_target_arch
2343 ac_cpp='$CPP $CPPFLAGS'
2344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2347 if test -n "$ac_tool_prefix"; then
2348 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2349 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2350 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2352 if test "${ac_cv_prog_CC+set}" = set; then
2353 echo $ECHO_N "(cached) $ECHO_C" >&6
2355 if test -n "$CC"; then
2356 ac_cv_prog_CC="$CC" # Let the user override the test.
2358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2362 test -z "$as_dir" && as_dir=.
2363 for ac_exec_ext in '' $ac_executable_extensions; do
2364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2365 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2376 if test -n "$CC"; then
2377 { echo "$as_me:$LINENO: result: $CC" >&5
2378 echo "${ECHO_T}$CC" >&6; }
2380 { echo "$as_me:$LINENO: result: no" >&5
2381 echo "${ECHO_T}no" >&6; }
2386 if test -z "$ac_cv_prog_CC"; then
2388 # Extract the first word of "gcc", so it can be a program name with args.
2389 set dummy gcc; ac_word=$2
2390 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2392 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2393 echo $ECHO_N "(cached) $ECHO_C" >&6
2395 if test -n "$ac_ct_CC"; then
2396 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2402 test -z "$as_dir" && as_dir=.
2403 for ac_exec_ext in '' $ac_executable_extensions; do
2404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2405 ac_cv_prog_ac_ct_CC="gcc"
2406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2415 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2416 if test -n "$ac_ct_CC"; then
2417 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2418 echo "${ECHO_T}$ac_ct_CC" >&6; }
2420 { echo "$as_me:$LINENO: result: no" >&5
2421 echo "${ECHO_T}no" >&6; }
2424 if test "x$ac_ct_CC" = x; then
2427 case $cross_compiling:$ac_tool_warned in
2429 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2430 whose name does not start with the host triplet. If you think this
2431 configuration is useful to you, please write to autoconf@gnu.org." >&5
2432 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2433 whose name does not start with the host triplet. If you think this
2434 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2435 ac_tool_warned=yes ;;
2443 if test -z "$CC"; then
2444 if test -n "$ac_tool_prefix"; then
2445 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2446 set dummy ${ac_tool_prefix}cc; ac_word=$2
2447 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2449 if test "${ac_cv_prog_CC+set}" = set; then
2450 echo $ECHO_N "(cached) $ECHO_C" >&6
2452 if test -n "$CC"; then
2453 ac_cv_prog_CC="$CC" # Let the user override the test.
2455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2459 test -z "$as_dir" && as_dir=.
2460 for ac_exec_ext in '' $ac_executable_extensions; do
2461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2462 ac_cv_prog_CC="${ac_tool_prefix}cc"
2463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2473 if test -n "$CC"; then
2474 { echo "$as_me:$LINENO: result: $CC" >&5
2475 echo "${ECHO_T}$CC" >&6; }
2477 { echo "$as_me:$LINENO: result: no" >&5
2478 echo "${ECHO_T}no" >&6; }
2484 if test -z "$CC"; then
2485 # Extract the first word of "cc", so it can be a program name with args.
2486 set dummy cc; ac_word=$2
2487 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2489 if test "${ac_cv_prog_CC+set}" = set; then
2490 echo $ECHO_N "(cached) $ECHO_C" >&6
2492 if test -n "$CC"; then
2493 ac_cv_prog_CC="$CC" # Let the user override the test.
2496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2500 test -z "$as_dir" && as_dir=.
2501 for ac_exec_ext in '' $ac_executable_extensions; do
2502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2503 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2504 ac_prog_rejected=yes
2508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2515 if test $ac_prog_rejected = yes; then
2516 # We found a bogon in the path, so make sure we never use it.
2517 set dummy $ac_cv_prog_CC
2519 if test $# != 0; then
2520 # We chose a different compiler from the bogus one.
2521 # However, it has the same basename, so the bogon will be chosen
2522 # first if we set CC to just the basename; use the full file name.
2524 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2530 if test -n "$CC"; then
2531 { echo "$as_me:$LINENO: result: $CC" >&5
2532 echo "${ECHO_T}$CC" >&6; }
2534 { echo "$as_me:$LINENO: result: no" >&5
2535 echo "${ECHO_T}no" >&6; }
2540 if test -z "$CC"; then
2541 if test -n "$ac_tool_prefix"; then
2542 for ac_prog in cl.exe
2544 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2545 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2546 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2548 if test "${ac_cv_prog_CC+set}" = set; then
2549 echo $ECHO_N "(cached) $ECHO_C" >&6
2551 if test -n "$CC"; then
2552 ac_cv_prog_CC="$CC" # Let the user override the test.
2554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2558 test -z "$as_dir" && as_dir=.
2559 for ac_exec_ext in '' $ac_executable_extensions; do
2560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2561 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2572 if test -n "$CC"; then
2573 { echo "$as_me:$LINENO: result: $CC" >&5
2574 echo "${ECHO_T}$CC" >&6; }
2576 { echo "$as_me:$LINENO: result: no" >&5
2577 echo "${ECHO_T}no" >&6; }
2581 test -n "$CC" && break
2584 if test -z "$CC"; then
2586 for ac_prog in cl.exe
2588 # Extract the first word of "$ac_prog", so it can be a program name with args.
2589 set dummy $ac_prog; ac_word=$2
2590 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2592 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2593 echo $ECHO_N "(cached) $ECHO_C" >&6
2595 if test -n "$ac_ct_CC"; then
2596 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2602 test -z "$as_dir" && as_dir=.
2603 for ac_exec_ext in '' $ac_executable_extensions; do
2604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2605 ac_cv_prog_ac_ct_CC="$ac_prog"
2606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2615 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2616 if test -n "$ac_ct_CC"; then
2617 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2618 echo "${ECHO_T}$ac_ct_CC" >&6; }
2620 { echo "$as_me:$LINENO: result: no" >&5
2621 echo "${ECHO_T}no" >&6; }
2625 test -n "$ac_ct_CC" && break
2628 if test "x$ac_ct_CC" = x; then
2631 case $cross_compiling:$ac_tool_warned in
2633 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2634 whose name does not start with the host triplet. If you think this
2635 configuration is useful to you, please write to autoconf@gnu.org." >&5
2636 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2637 whose name does not start with the host triplet. If you think this
2638 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2639 ac_tool_warned=yes ;;
2648 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2649 See \`config.log' for more details." >&5
2650 echo "$as_me: error: no acceptable C compiler found in \$PATH
2651 See \`config.log' for more details." >&2;}
2652 { (exit 1); exit 1; }; }
2654 # Provide some information about the compiler.
2655 echo "$as_me:$LINENO: checking for C compiler version" >&5
2656 ac_compiler=`set X $ac_compile; echo $2`
2657 { (ac_try="$ac_compiler --version >&5"
2659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2660 *) ac_try_echo=$ac_try;;
2662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2663 (eval "$ac_compiler --version >&5") 2>&5
2665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666 (exit $ac_status); }
2667 { (ac_try="$ac_compiler -v >&5"
2669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2670 *) ac_try_echo=$ac_try;;
2672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2673 (eval "$ac_compiler -v >&5") 2>&5
2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); }
2677 { (ac_try="$ac_compiler -V >&5"
2679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2680 *) ac_try_echo=$ac_try;;
2682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2683 (eval "$ac_compiler -V >&5") 2>&5
2685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686 (exit $ac_status); }
2688 cat >conftest.$ac_ext <<_ACEOF
2691 cat confdefs.h >>conftest.$ac_ext
2692 cat >>conftest.$ac_ext <<_ACEOF
2693 /* end confdefs.h. */
2703 ac_clean_files_save=$ac_clean_files
2704 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2705 # Try to create an executable without -o first, disregard a.out.
2706 # It will help us diagnose broken compilers, and finding out an intuition
2708 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2709 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2710 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2712 # List of possible output files, starting from the most likely.
2713 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2714 # only as a last resort. b.out is created by i960 compilers.
2715 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2717 # The IRIX 6 linker writes into existing files which may not be
2718 # executable, retaining their permissions. Remove them first so a
2719 # subsequent execution test works.
2721 for ac_file in $ac_files
2724 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2725 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2730 if { (ac_try="$ac_link_default"
2732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2733 *) ac_try_echo=$ac_try;;
2735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2736 (eval "$ac_link_default") 2>&5
2738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739 (exit $ac_status); }; then
2740 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2741 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2742 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2743 # so that the user can short-circuit this test for compilers unknown to
2745 for ac_file in $ac_files
2747 test -f "$ac_file" || continue
2749 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2752 # We found the default executable, but exeext='' is most
2756 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2758 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2760 # We set ac_cv_exeext here because the later test for it is not
2761 # safe: cross compilers may not add the suffix if given an `-o'
2762 # argument, so we may need to know it at that point already.
2763 # Even if this section looks crufty: it has the advantage of
2770 test "$ac_cv_exeext" = no && ac_cv_exeext=
2773 echo "$as_me: failed program was:" >&5
2774 sed 's/^/| /' conftest.$ac_ext >&5
2776 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2777 See \`config.log' for more details." >&5
2778 echo "$as_me: error: C compiler cannot create executables
2779 See \`config.log' for more details." >&2;}
2780 { (exit 77); exit 77; }; }
2783 ac_exeext=$ac_cv_exeext
2784 { echo "$as_me:$LINENO: result: $ac_file" >&5
2785 echo "${ECHO_T}$ac_file" >&6; }
2787 # Check that the compiler produces executables we can run. If not, either
2788 # the compiler is broken, or we cross compile.
2789 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2790 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2791 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2792 # If not cross compiling, check that we can run a simple program.
2793 if test "$cross_compiling" != yes; then
2794 if { ac_try='./$ac_file'
2795 { (case "(($ac_try" in
2796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2797 *) ac_try_echo=$ac_try;;
2799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2800 (eval "$ac_try") 2>&5
2802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803 (exit $ac_status); }; }; then
2806 if test "$cross_compiling" = maybe; then
2809 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2810 If you meant to cross compile, use \`--host'.
2811 See \`config.log' for more details." >&5
2812 echo "$as_me: error: cannot run C compiled programs.
2813 If you meant to cross compile, use \`--host'.
2814 See \`config.log' for more details." >&2;}
2815 { (exit 1); exit 1; }; }
2819 { echo "$as_me:$LINENO: result: yes" >&5
2820 echo "${ECHO_T}yes" >&6; }
2822 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2823 ac_clean_files=$ac_clean_files_save
2824 # Check that the compiler produces executables we can run. If not, either
2825 # the compiler is broken, or we cross compile.
2826 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2827 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2828 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2829 echo "${ECHO_T}$cross_compiling" >&6; }
2831 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2832 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2833 if { (ac_try="$ac_link"
2835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2836 *) ac_try_echo=$ac_try;;
2838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2839 (eval "$ac_link") 2>&5
2841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842 (exit $ac_status); }; then
2843 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2844 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2845 # work properly (i.e., refer to `conftest.exe'), while it won't with
2847 for ac_file in conftest.exe conftest conftest.*; do
2848 test -f "$ac_file" || continue
2850 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2851 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2857 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2858 See \`config.log' for more details." >&5
2859 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2860 See \`config.log' for more details." >&2;}
2861 { (exit 1); exit 1; }; }
2864 rm -f conftest$ac_cv_exeext
2865 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2866 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2868 rm -f conftest.$ac_ext
2869 EXEEXT=$ac_cv_exeext
2871 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2872 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2873 if test "${ac_cv_objext+set}" = set; then
2874 echo $ECHO_N "(cached) $ECHO_C" >&6
2876 cat >conftest.$ac_ext <<_ACEOF
2879 cat confdefs.h >>conftest.$ac_ext
2880 cat >>conftest.$ac_ext <<_ACEOF
2881 /* end confdefs.h. */
2891 rm -f conftest.o conftest.obj
2892 if { (ac_try="$ac_compile"
2894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2895 *) ac_try_echo=$ac_try;;
2897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2898 (eval "$ac_compile") 2>&5
2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901 (exit $ac_status); }; then
2902 for ac_file in conftest.o conftest.obj conftest.*; do
2903 test -f "$ac_file" || continue;
2905 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2906 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2911 echo "$as_me: failed program was:" >&5
2912 sed 's/^/| /' conftest.$ac_ext >&5
2914 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2915 See \`config.log' for more details." >&5
2916 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2917 See \`config.log' for more details." >&2;}
2918 { (exit 1); exit 1; }; }
2921 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2923 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2924 echo "${ECHO_T}$ac_cv_objext" >&6; }
2925 OBJEXT=$ac_cv_objext
2927 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2928 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2929 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2930 echo $ECHO_N "(cached) $ECHO_C" >&6
2932 cat >conftest.$ac_ext <<_ACEOF
2935 cat confdefs.h >>conftest.$ac_ext
2936 cat >>conftest.$ac_ext <<_ACEOF
2937 /* end confdefs.h. */
2950 rm -f conftest.$ac_objext
2951 if { (ac_try="$ac_compile"
2953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2954 *) ac_try_echo=$ac_try;;
2956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2957 (eval "$ac_compile") 2>conftest.er1
2959 grep -v '^ *+' conftest.er1 >conftest.err
2961 cat conftest.err >&5
2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963 (exit $ac_status); } &&
2964 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2965 { (case "(($ac_try" in
2966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2967 *) ac_try_echo=$ac_try;;
2969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2970 (eval "$ac_try") 2>&5
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); }; } &&
2974 { ac_try='test -s conftest.$ac_objext'
2975 { (case "(($ac_try" in
2976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2977 *) ac_try_echo=$ac_try;;
2979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2980 (eval "$ac_try") 2>&5
2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); }; }; then
2986 echo "$as_me: failed program was:" >&5
2987 sed 's/^/| /' conftest.$ac_ext >&5
2992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2993 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2996 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2997 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2998 GCC=`test $ac_compiler_gnu = yes && echo yes`
2999 ac_test_CFLAGS=${CFLAGS+set}
3000 ac_save_CFLAGS=$CFLAGS
3001 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3002 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3003 if test "${ac_cv_prog_cc_g+set}" = set; then
3004 echo $ECHO_N "(cached) $ECHO_C" >&6
3006 ac_save_c_werror_flag=$ac_c_werror_flag
3007 ac_c_werror_flag=yes
3010 cat >conftest.$ac_ext <<_ACEOF
3013 cat confdefs.h >>conftest.$ac_ext
3014 cat >>conftest.$ac_ext <<_ACEOF
3015 /* end confdefs.h. */
3025 rm -f conftest.$ac_objext
3026 if { (ac_try="$ac_compile"
3028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3029 *) ac_try_echo=$ac_try;;
3031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3032 (eval "$ac_compile") 2>conftest.er1
3034 grep -v '^ *+' conftest.er1 >conftest.err
3036 cat conftest.err >&5
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); } &&
3039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3040 { (case "(($ac_try" in
3041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042 *) ac_try_echo=$ac_try;;
3044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3045 (eval "$ac_try") 2>&5
3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); }; } &&
3049 { ac_try='test -s conftest.$ac_objext'
3050 { (case "(($ac_try" in
3051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3052 *) ac_try_echo=$ac_try;;
3054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3055 (eval "$ac_try") 2>&5
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); }; }; then
3061 echo "$as_me: failed program was:" >&5
3062 sed 's/^/| /' conftest.$ac_ext >&5
3065 cat >conftest.$ac_ext <<_ACEOF
3068 cat confdefs.h >>conftest.$ac_ext
3069 cat >>conftest.$ac_ext <<_ACEOF
3070 /* end confdefs.h. */
3080 rm -f conftest.$ac_objext
3081 if { (ac_try="$ac_compile"
3083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084 *) ac_try_echo=$ac_try;;
3086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3087 (eval "$ac_compile") 2>conftest.er1
3089 grep -v '^ *+' conftest.er1 >conftest.err
3091 cat conftest.err >&5
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); } &&
3094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3095 { (case "(($ac_try" in
3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100 (eval "$ac_try") 2>&5
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); }; } &&
3104 { ac_try='test -s conftest.$ac_objext'
3105 { (case "(($ac_try" in
3106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107 *) ac_try_echo=$ac_try;;
3109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3110 (eval "$ac_try") 2>&5
3112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113 (exit $ac_status); }; }; then
3116 echo "$as_me: failed program was:" >&5
3117 sed 's/^/| /' conftest.$ac_ext >&5
3119 ac_c_werror_flag=$ac_save_c_werror_flag
3121 cat >conftest.$ac_ext <<_ACEOF
3124 cat confdefs.h >>conftest.$ac_ext
3125 cat >>conftest.$ac_ext <<_ACEOF
3126 /* end confdefs.h. */
3136 rm -f conftest.$ac_objext
3137 if { (ac_try="$ac_compile"
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3143 (eval "$ac_compile") 2>conftest.er1
3145 grep -v '^ *+' conftest.er1 >conftest.err
3147 cat conftest.err >&5
3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149 (exit $ac_status); } &&
3150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3151 { (case "(($ac_try" in
3152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3153 *) ac_try_echo=$ac_try;;
3155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3156 (eval "$ac_try") 2>&5
3158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159 (exit $ac_status); }; } &&
3160 { ac_try='test -s conftest.$ac_objext'
3161 { (case "(($ac_try" in
3162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3163 *) ac_try_echo=$ac_try;;
3165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3166 (eval "$ac_try") 2>&5
3168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169 (exit $ac_status); }; }; then
3172 echo "$as_me: failed program was:" >&5
3173 sed 's/^/| /' conftest.$ac_ext >&5
3178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3185 ac_c_werror_flag=$ac_save_c_werror_flag
3187 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3188 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3189 if test "$ac_test_CFLAGS" = set; then
3190 CFLAGS=$ac_save_CFLAGS
3191 elif test $ac_cv_prog_cc_g = yes; then
3192 if test "$GCC" = yes; then
3198 if test "$GCC" = yes; then
3204 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3205 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3206 if test "${ac_cv_prog_cc_c89+set}" = set; then
3207 echo $ECHO_N "(cached) $ECHO_C" >&6
3209 ac_cv_prog_cc_c89=no
3211 cat >conftest.$ac_ext <<_ACEOF
3214 cat confdefs.h >>conftest.$ac_ext
3215 cat >>conftest.$ac_ext <<_ACEOF
3216 /* end confdefs.h. */
3219 #include <sys/types.h>
3220 #include <sys/stat.h>
3221 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3222 struct buf { int x; };
3223 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3224 static char *e (p, i)
3230 static char *f (char * (*g) (char **, int), char **p, ...)
3235 s = g (p, va_arg (v,int));
3240 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3241 function prototypes and stuff, but not '\xHH' hex character constants.
3242 These don't provoke an error unfortunately, instead are silently treated
3243 as 'x'. The following induces an error, until -std is added to get
3244 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3245 array size at least. It's necessary to write '\x00'==0 to get something
3246 that's true only with -std. */
3247 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3249 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3250 inside strings and character constants. */
3252 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3254 int test (int i, double x);
3255 struct s1 {int (*f) (int a);};
3256 struct s2 {int (*f) (double a);};
3257 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3263 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3268 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3269 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3271 CC="$ac_save_CC $ac_arg"
3272 rm -f conftest.$ac_objext
3273 if { (ac_try="$ac_compile"
3275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3276 *) ac_try_echo=$ac_try;;
3278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3279 (eval "$ac_compile") 2>conftest.er1
3281 grep -v '^ *+' conftest.er1 >conftest.err
3283 cat conftest.err >&5
3284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285 (exit $ac_status); } &&
3286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3287 { (case "(($ac_try" in
3288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3289 *) ac_try_echo=$ac_try;;
3291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3292 (eval "$ac_try") 2>&5
3294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295 (exit $ac_status); }; } &&
3296 { ac_try='test -s conftest.$ac_objext'
3297 { (case "(($ac_try" in
3298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3299 *) ac_try_echo=$ac_try;;
3301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3302 (eval "$ac_try") 2>&5
3304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3305 (exit $ac_status); }; }; then
3306 ac_cv_prog_cc_c89=$ac_arg
3308 echo "$as_me: failed program was:" >&5
3309 sed 's/^/| /' conftest.$ac_ext >&5
3314 rm -f core conftest.err conftest.$ac_objext
3315 test "x$ac_cv_prog_cc_c89" != "xno" && break
3317 rm -f conftest.$ac_ext
3322 case "x$ac_cv_prog_cc_c89" in
3324 { echo "$as_me:$LINENO: result: none needed" >&5
3325 echo "${ECHO_T}none needed" >&6; } ;;
3327 { echo "$as_me:$LINENO: result: unsupported" >&5
3328 echo "${ECHO_T}unsupported" >&6; } ;;
3330 CC="$CC $ac_cv_prog_cc_c89"
3331 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3332 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3337 ac_cpp='$CPP $CPPFLAGS'
3338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3344 ac_cpp='$CPP $CPPFLAGS'
3345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3348 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3349 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3350 # On Suns, sometimes $CPP names a directory.
3351 if test -n "$CPP" && test -d "$CPP"; then
3354 if test -z "$CPP"; then
3355 if test "${ac_cv_prog_CPP+set}" = set; then
3356 echo $ECHO_N "(cached) $ECHO_C" >&6
3358 # Double quotes because CPP needs to be expanded
3359 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3362 for ac_c_preproc_warn_flag in '' yes
3364 # Use a header file that comes with gcc, so configuring glibc
3365 # with a fresh cross-compiler works.
3366 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3367 # <limits.h> exists even on freestanding compilers.
3368 # On the NeXT, cc -E runs the code through the compiler's parser,
3369 # not just through cpp. "Syntax error" is here to catch this case.
3370 cat >conftest.$ac_ext <<_ACEOF
3373 cat confdefs.h >>conftest.$ac_ext
3374 cat >>conftest.$ac_ext <<_ACEOF
3375 /* end confdefs.h. */
3377 # include <limits.h>
3379 # include <assert.h>
3383 if { (ac_try="$ac_cpp conftest.$ac_ext"
3385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386 *) ac_try_echo=$ac_try;;
3388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3389 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3391 grep -v '^ *+' conftest.er1 >conftest.err
3393 cat conftest.err >&5
3394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395 (exit $ac_status); } >/dev/null; then
3396 if test -s conftest.err; then
3397 ac_cpp_err=$ac_c_preproc_warn_flag
3398 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3405 if test -z "$ac_cpp_err"; then
3408 echo "$as_me: failed program was:" >&5
3409 sed 's/^/| /' conftest.$ac_ext >&5
3411 # Broken: fails on valid input.
3415 rm -f conftest.err conftest.$ac_ext
3417 # OK, works on sane cases. Now check whether nonexistent headers
3418 # can be detected and how.
3419 cat >conftest.$ac_ext <<_ACEOF
3422 cat confdefs.h >>conftest.$ac_ext
3423 cat >>conftest.$ac_ext <<_ACEOF
3424 /* end confdefs.h. */
3425 #include <ac_nonexistent.h>
3427 if { (ac_try="$ac_cpp conftest.$ac_ext"
3429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430 *) ac_try_echo=$ac_try;;
3432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3433 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3435 grep -v '^ *+' conftest.er1 >conftest.err
3437 cat conftest.err >&5
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); } >/dev/null; then
3440 if test -s conftest.err; then
3441 ac_cpp_err=$ac_c_preproc_warn_flag
3442 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3449 if test -z "$ac_cpp_err"; then
3450 # Broken: success on invalid input.
3453 echo "$as_me: failed program was:" >&5
3454 sed 's/^/| /' conftest.$ac_ext >&5
3456 # Passes both tests.
3461 rm -f conftest.err conftest.$ac_ext
3464 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3465 rm -f conftest.err conftest.$ac_ext
3466 if $ac_preproc_ok; then
3478 { echo "$as_me:$LINENO: result: $CPP" >&5
3479 echo "${ECHO_T}$CPP" >&6; }
3481 for ac_c_preproc_warn_flag in '' yes
3483 # Use a header file that comes with gcc, so configuring glibc
3484 # with a fresh cross-compiler works.
3485 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3486 # <limits.h> exists even on freestanding compilers.
3487 # On the NeXT, cc -E runs the code through the compiler's parser,
3488 # not just through cpp. "Syntax error" is here to catch this case.
3489 cat >conftest.$ac_ext <<_ACEOF
3492 cat confdefs.h >>conftest.$ac_ext
3493 cat >>conftest.$ac_ext <<_ACEOF
3494 /* end confdefs.h. */
3496 # include <limits.h>
3498 # include <assert.h>
3502 if { (ac_try="$ac_cpp conftest.$ac_ext"
3504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3505 *) ac_try_echo=$ac_try;;
3507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3508 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3510 grep -v '^ *+' conftest.er1 >conftest.err
3512 cat conftest.err >&5
3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); } >/dev/null; then
3515 if test -s conftest.err; then
3516 ac_cpp_err=$ac_c_preproc_warn_flag
3517 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3524 if test -z "$ac_cpp_err"; then
3527 echo "$as_me: failed program was:" >&5
3528 sed 's/^/| /' conftest.$ac_ext >&5
3530 # Broken: fails on valid input.
3534 rm -f conftest.err conftest.$ac_ext
3536 # OK, works on sane cases. Now check whether nonexistent headers
3537 # can be detected and how.
3538 cat >conftest.$ac_ext <<_ACEOF
3541 cat confdefs.h >>conftest.$ac_ext
3542 cat >>conftest.$ac_ext <<_ACEOF
3543 /* end confdefs.h. */
3544 #include <ac_nonexistent.h>
3546 if { (ac_try="$ac_cpp conftest.$ac_ext"
3548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3549 *) ac_try_echo=$ac_try;;
3551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3552 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3554 grep -v '^ *+' conftest.er1 >conftest.err
3556 cat conftest.err >&5
3557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558 (exit $ac_status); } >/dev/null; then
3559 if test -s conftest.err; then
3560 ac_cpp_err=$ac_c_preproc_warn_flag
3561 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3568 if test -z "$ac_cpp_err"; then
3569 # Broken: success on invalid input.
3572 echo "$as_me: failed program was:" >&5
3573 sed 's/^/| /' conftest.$ac_ext >&5
3575 # Passes both tests.
3580 rm -f conftest.err conftest.$ac_ext
3583 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3584 rm -f conftest.err conftest.$ac_ext
3585 if $ac_preproc_ok; then
3588 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3589 See \`config.log' for more details." >&5
3590 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3591 See \`config.log' for more details." >&2;}
3592 { (exit 1); exit 1; }; }
3596 ac_cpp='$CPP $CPPFLAGS'
3597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3602 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3603 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3604 if test "${ac_cv_path_GREP+set}" = set; then
3605 echo $ECHO_N "(cached) $ECHO_C" >&6
3607 # Extract the first word of "grep ggrep" to use in msg output
3608 if test -z "$GREP"; then
3609 set dummy grep ggrep; ac_prog_name=$2
3610 if test "${ac_cv_path_GREP+set}" = set; then
3611 echo $ECHO_N "(cached) $ECHO_C" >&6
3613 ac_path_GREP_found=false
3614 # Loop through the user's path and test for each of PROGNAME-LIST
3615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3616 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3619 test -z "$as_dir" && as_dir=.
3620 for ac_prog in grep ggrep; do
3621 for ac_exec_ext in '' $ac_executable_extensions; do
3622 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3623 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3624 # Check for GNU ac_path_GREP and select it if it is found.
3625 # Check for GNU $ac_path_GREP
3626 case `"$ac_path_GREP" --version 2>&1` in
3628 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3631 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3634 cat "conftest.in" "conftest.in" >"conftest.tmp"
3635 mv "conftest.tmp" "conftest.in"
3636 cp "conftest.in" "conftest.nl"
3637 echo 'GREP' >> "conftest.nl"
3638 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3639 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3640 ac_count=`expr $ac_count + 1`
3641 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3642 # Best one so far, save it but keep looking for a better one
3643 ac_cv_path_GREP="$ac_path_GREP"
3644 ac_path_GREP_max=$ac_count
3646 # 10*(2^10) chars as input seems more than enough
3647 test $ac_count -gt 10 && break
3649 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3653 $ac_path_GREP_found && break 3
3663 GREP="$ac_cv_path_GREP"
3664 if test -z "$GREP"; then
3665 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3666 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3667 { (exit 1); exit 1; }; }
3671 ac_cv_path_GREP=$GREP
3676 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3677 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3678 GREP="$ac_cv_path_GREP"
3681 { echo "$as_me:$LINENO: checking for egrep" >&5
3682 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3683 if test "${ac_cv_path_EGREP+set}" = set; then
3684 echo $ECHO_N "(cached) $ECHO_C" >&6
3686 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3687 then ac_cv_path_EGREP="$GREP -E"
3689 # Extract the first word of "egrep" to use in msg output
3690 if test -z "$EGREP"; then
3691 set dummy egrep; ac_prog_name=$2
3692 if test "${ac_cv_path_EGREP+set}" = set; then
3693 echo $ECHO_N "(cached) $ECHO_C" >&6
3695 ac_path_EGREP_found=false
3696 # Loop through the user's path and test for each of PROGNAME-LIST
3697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3698 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3701 test -z "$as_dir" && as_dir=.
3702 for ac_prog in egrep; do
3703 for ac_exec_ext in '' $ac_executable_extensions; do
3704 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3705 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3706 # Check for GNU ac_path_EGREP and select it if it is found.
3707 # Check for GNU $ac_path_EGREP
3708 case `"$ac_path_EGREP" --version 2>&1` in
3710 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3713 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3716 cat "conftest.in" "conftest.in" >"conftest.tmp"
3717 mv "conftest.tmp" "conftest.in"
3718 cp "conftest.in" "conftest.nl"
3719 echo 'EGREP' >> "conftest.nl"
3720 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3721 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3722 ac_count=`expr $ac_count + 1`
3723 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3724 # Best one so far, save it but keep looking for a better one
3725 ac_cv_path_EGREP="$ac_path_EGREP"
3726 ac_path_EGREP_max=$ac_count
3728 # 10*(2^10) chars as input seems more than enough
3729 test $ac_count -gt 10 && break
3731 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3735 $ac_path_EGREP_found && break 3
3745 EGREP="$ac_cv_path_EGREP"
3746 if test -z "$EGREP"; then
3747 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3748 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3749 { (exit 1); exit 1; }; }
3753 ac_cv_path_EGREP=$EGREP
3759 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3760 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3761 EGREP="$ac_cv_path_EGREP"
3764 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3765 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3766 if test "${ac_cv_header_stdc+set}" = set; then
3767 echo $ECHO_N "(cached) $ECHO_C" >&6
3769 cat >conftest.$ac_ext <<_ACEOF
3772 cat confdefs.h >>conftest.$ac_ext
3773 cat >>conftest.$ac_ext <<_ACEOF
3774 /* end confdefs.h. */
3788 rm -f conftest.$ac_objext
3789 if { (ac_try="$ac_compile"
3791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3792 *) ac_try_echo=$ac_try;;
3794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3795 (eval "$ac_compile") 2>conftest.er1
3797 grep -v '^ *+' conftest.er1 >conftest.err
3799 cat conftest.err >&5
3800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801 (exit $ac_status); } &&
3802 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3803 { (case "(($ac_try" in
3804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3805 *) ac_try_echo=$ac_try;;
3807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3808 (eval "$ac_try") 2>&5
3810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3811 (exit $ac_status); }; } &&
3812 { ac_try='test -s conftest.$ac_objext'
3813 { (case "(($ac_try" in
3814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3815 *) ac_try_echo=$ac_try;;
3817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3818 (eval "$ac_try") 2>&5
3820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821 (exit $ac_status); }; }; then
3822 ac_cv_header_stdc=yes
3824 echo "$as_me: failed program was:" >&5
3825 sed 's/^/| /' conftest.$ac_ext >&5
3827 ac_cv_header_stdc=no
3830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3832 if test $ac_cv_header_stdc = yes; then
3833 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3834 cat >conftest.$ac_ext <<_ACEOF
3837 cat confdefs.h >>conftest.$ac_ext
3838 cat >>conftest.$ac_ext <<_ACEOF
3839 /* end confdefs.h. */
3843 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3844 $EGREP "memchr" >/dev/null 2>&1; then
3847 ac_cv_header_stdc=no
3853 if test $ac_cv_header_stdc = yes; then
3854 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3855 cat >conftest.$ac_ext <<_ACEOF
3858 cat confdefs.h >>conftest.$ac_ext
3859 cat >>conftest.$ac_ext <<_ACEOF
3860 /* end confdefs.h. */
3864 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3865 $EGREP "free" >/dev/null 2>&1; then
3868 ac_cv_header_stdc=no
3874 if test $ac_cv_header_stdc = yes; then
3875 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3876 if test "$cross_compiling" = yes; then
3879 cat >conftest.$ac_ext <<_ACEOF
3882 cat confdefs.h >>conftest.$ac_ext
3883 cat >>conftest.$ac_ext <<_ACEOF
3884 /* end confdefs.h. */
3887 #if ((' ' & 0x0FF) == 0x020)
3888 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3889 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3891 # define ISLOWER(c) \
3892 (('a' <= (c) && (c) <= 'i') \
3893 || ('j' <= (c) && (c) <= 'r') \
3894 || ('s' <= (c) && (c) <= 'z'))
3895 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3898 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3903 for (i = 0; i < 256; i++)
3904 if (XOR (islower (i), ISLOWER (i))
3905 || toupper (i) != TOUPPER (i))
3910 rm -f conftest$ac_exeext
3911 if { (ac_try="$ac_link"
3913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3914 *) ac_try_echo=$ac_try;;
3916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3917 (eval "$ac_link") 2>&5
3919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3921 { (case "(($ac_try" in
3922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3923 *) ac_try_echo=$ac_try;;
3925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3926 (eval "$ac_try") 2>&5
3928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929 (exit $ac_status); }; }; then
3932 echo "$as_me: program exited with status $ac_status" >&5
3933 echo "$as_me: failed program was:" >&5
3934 sed 's/^/| /' conftest.$ac_ext >&5
3937 ac_cv_header_stdc=no
3939 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3945 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3946 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3947 if test $ac_cv_header_stdc = yes; then
3949 cat >>confdefs.h <<\_ACEOF
3950 #define STDC_HEADERS 1
3955 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3965 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3966 inttypes.h stdint.h unistd.h
3968 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3969 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3970 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3971 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3972 echo $ECHO_N "(cached) $ECHO_C" >&6
3974 cat >conftest.$ac_ext <<_ACEOF
3977 cat confdefs.h >>conftest.$ac_ext
3978 cat >>conftest.$ac_ext <<_ACEOF
3979 /* end confdefs.h. */
3980 $ac_includes_default
3982 #include <$ac_header>
3984 rm -f conftest.$ac_objext
3985 if { (ac_try="$ac_compile"
3987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3988 *) ac_try_echo=$ac_try;;
3990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3991 (eval "$ac_compile") 2>conftest.er1
3993 grep -v '^ *+' conftest.er1 >conftest.err
3995 cat conftest.err >&5
3996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997 (exit $ac_status); } &&
3998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3999 { (case "(($ac_try" in
4000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4001 *) ac_try_echo=$ac_try;;
4003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4004 (eval "$ac_try") 2>&5
4006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007 (exit $ac_status); }; } &&
4008 { ac_try='test -s conftest.$ac_objext'
4009 { (case "(($ac_try" in
4010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4011 *) ac_try_echo=$ac_try;;
4013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4014 (eval "$ac_try") 2>&5
4016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017 (exit $ac_status); }; }; then
4018 eval "$as_ac_Header=yes"
4020 echo "$as_me: failed program was:" >&5
4021 sed 's/^/| /' conftest.$ac_ext >&5
4023 eval "$as_ac_Header=no"
4026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4028 ac_res=`eval echo '${'$as_ac_Header'}'`
4029 { echo "$as_me:$LINENO: result: $ac_res" >&5
4030 echo "${ECHO_T}$ac_res" >&6; }
4031 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4032 cat >>confdefs.h <<_ACEOF
4033 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4041 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4042 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4043 if test "${ac_cv_c_bigendian+set}" = set; then
4044 echo $ECHO_N "(cached) $ECHO_C" >&6
4046 # See if sys/param.h defines the BYTE_ORDER macro.
4047 cat >conftest.$ac_ext <<_ACEOF
4050 cat confdefs.h >>conftest.$ac_ext
4051 cat >>conftest.$ac_ext <<_ACEOF
4052 /* end confdefs.h. */
4053 #include <sys/types.h>
4054 #include <sys/param.h>
4059 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4067 rm -f conftest.$ac_objext
4068 if { (ac_try="$ac_compile"
4070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4071 *) ac_try_echo=$ac_try;;
4073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4074 (eval "$ac_compile") 2>conftest.er1
4076 grep -v '^ *+' conftest.er1 >conftest.err
4078 cat conftest.err >&5
4079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080 (exit $ac_status); } &&
4081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4082 { (case "(($ac_try" in
4083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4084 *) ac_try_echo=$ac_try;;
4086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4087 (eval "$ac_try") 2>&5
4089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090 (exit $ac_status); }; } &&
4091 { ac_try='test -s conftest.$ac_objext'
4092 { (case "(($ac_try" in
4093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4094 *) ac_try_echo=$ac_try;;
4096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4097 (eval "$ac_try") 2>&5
4099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100 (exit $ac_status); }; }; then
4101 # It does; now see whether it defined to BIG_ENDIAN or not.
4102 cat >conftest.$ac_ext <<_ACEOF
4105 cat confdefs.h >>conftest.$ac_ext
4106 cat >>conftest.$ac_ext <<_ACEOF
4107 /* end confdefs.h. */
4108 #include <sys/types.h>
4109 #include <sys/param.h>
4114 #if BYTE_ORDER != BIG_ENDIAN
4122 rm -f conftest.$ac_objext
4123 if { (ac_try="$ac_compile"
4125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4126 *) ac_try_echo=$ac_try;;
4128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4129 (eval "$ac_compile") 2>conftest.er1
4131 grep -v '^ *+' conftest.er1 >conftest.err
4133 cat conftest.err >&5
4134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135 (exit $ac_status); } &&
4136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4137 { (case "(($ac_try" in
4138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4139 *) ac_try_echo=$ac_try;;
4141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4142 (eval "$ac_try") 2>&5
4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145 (exit $ac_status); }; } &&
4146 { ac_try='test -s conftest.$ac_objext'
4147 { (case "(($ac_try" in
4148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4149 *) ac_try_echo=$ac_try;;
4151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4152 (eval "$ac_try") 2>&5
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); }; }; then
4156 ac_cv_c_bigendian=yes
4158 echo "$as_me: failed program was:" >&5
4159 sed 's/^/| /' conftest.$ac_ext >&5
4161 ac_cv_c_bigendian=no
4164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4166 echo "$as_me: failed program was:" >&5
4167 sed 's/^/| /' conftest.$ac_ext >&5
4169 # It does not; compile a test program.
4170 if test "$cross_compiling" = yes; then
4171 # try to guess the endianness by grepping values into an object file
4172 ac_cv_c_bigendian=unknown
4173 cat >conftest.$ac_ext <<_ACEOF
4176 cat confdefs.h >>conftest.$ac_ext
4177 cat >>conftest.$ac_ext <<_ACEOF
4178 /* end confdefs.h. */
4179 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4180 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4181 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4182 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4183 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4184 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4188 _ascii (); _ebcdic ();
4193 rm -f conftest.$ac_objext
4194 if { (ac_try="$ac_compile"
4196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4197 *) ac_try_echo=$ac_try;;
4199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4200 (eval "$ac_compile") 2>conftest.er1
4202 grep -v '^ *+' conftest.er1 >conftest.err
4204 cat conftest.err >&5
4205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206 (exit $ac_status); } &&
4207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4208 { (case "(($ac_try" in
4209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4210 *) ac_try_echo=$ac_try;;
4212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4213 (eval "$ac_try") 2>&5
4215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216 (exit $ac_status); }; } &&
4217 { ac_try='test -s conftest.$ac_objext'
4218 { (case "(($ac_try" in
4219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4220 *) ac_try_echo=$ac_try;;
4222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4223 (eval "$ac_try") 2>&5
4225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226 (exit $ac_status); }; }; then
4227 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4228 ac_cv_c_bigendian=yes
4230 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4231 if test "$ac_cv_c_bigendian" = unknown; then
4232 ac_cv_c_bigendian=no
4234 # finding both strings is unlikely to happen, but who knows?
4235 ac_cv_c_bigendian=unknown
4239 echo "$as_me: failed program was:" >&5
4240 sed 's/^/| /' conftest.$ac_ext >&5
4245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4247 cat >conftest.$ac_ext <<_ACEOF
4250 cat confdefs.h >>conftest.$ac_ext
4251 cat >>conftest.$ac_ext <<_ACEOF
4252 /* end confdefs.h. */
4253 $ac_includes_default
4258 /* Are we little or big endian? From Harbison&Steele. */
4262 char c[sizeof (long int)];
4265 return u.c[sizeof (long int) - 1] == 1;
4271 rm -f conftest$ac_exeext
4272 if { (ac_try="$ac_link"
4274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4275 *) ac_try_echo=$ac_try;;
4277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4278 (eval "$ac_link") 2>&5
4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4282 { (case "(($ac_try" in
4283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4284 *) ac_try_echo=$ac_try;;
4286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4287 (eval "$ac_try") 2>&5
4289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290 (exit $ac_status); }; }; then
4291 ac_cv_c_bigendian=no
4293 echo "$as_me: program exited with status $ac_status" >&5
4294 echo "$as_me: failed program was:" >&5
4295 sed 's/^/| /' conftest.$ac_ext >&5
4298 ac_cv_c_bigendian=yes
4300 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4308 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4309 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4310 case $ac_cv_c_bigendian in
4318 { { echo "$as_me:$LINENO: error: unknown endianness
4319 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4320 echo "$as_me: error: unknown endianness
4321 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4322 { (exit 1); exit 1; }; } ;;
4326 if test "$cross_compiling" = yes; then
4327 LLVM_CROSS_COMPILING=1
4330 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4331 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4332 if test "${ac_cv_build_exeext+set}" = set; then
4333 echo $ECHO_N "(cached) $ECHO_C" >&6
4335 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4336 ac_cv_build_exeext=.exe
4338 ac_build_prefix=${build_alias}-
4340 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4341 set dummy ${ac_build_prefix}gcc; ac_word=$2
4342 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4344 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4345 echo $ECHO_N "(cached) $ECHO_C" >&6
4347 if test -n "$BUILD_CC"; then
4348 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4354 test -z "$as_dir" && as_dir=.
4355 for ac_exec_ext in '' $ac_executable_extensions; do
4356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4357 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4367 BUILD_CC=$ac_cv_prog_BUILD_CC
4368 if test -n "$BUILD_CC"; then
4369 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4370 echo "${ECHO_T}$BUILD_CC" >&6; }
4372 { echo "$as_me:$LINENO: result: no" >&5
4373 echo "${ECHO_T}no" >&6; }
4377 if test -z "$BUILD_CC"; then
4378 # Extract the first word of "gcc", so it can be a program name with args.
4379 set dummy gcc; ac_word=$2
4380 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4382 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4383 echo $ECHO_N "(cached) $ECHO_C" >&6
4385 if test -n "$BUILD_CC"; then
4386 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4392 test -z "$as_dir" && as_dir=.
4393 for ac_exec_ext in '' $ac_executable_extensions; do
4394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4395 ac_cv_prog_BUILD_CC="gcc"
4396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4405 BUILD_CC=$ac_cv_prog_BUILD_CC
4406 if test -n "$BUILD_CC"; then
4407 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4408 echo "${ECHO_T}$BUILD_CC" >&6; }
4410 { echo "$as_me:$LINENO: result: no" >&5
4411 echo "${ECHO_T}no" >&6; }
4415 if test -z "$BUILD_CC"; then
4416 # Extract the first word of "cc", so it can be a program name with args.
4417 set dummy cc; ac_word=$2
4418 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4420 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4421 echo $ECHO_N "(cached) $ECHO_C" >&6
4423 if test -n "$BUILD_CC"; then
4424 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4431 test -z "$as_dir" && as_dir=.
4432 for ac_exec_ext in '' $ac_executable_extensions; do
4433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4434 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4435 ac_prog_rejected=yes
4438 ac_cv_prog_BUILD_CC="cc"
4439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4446 if test $ac_prog_rejected = yes; then
4447 # We found a bogon in the path, so make sure we never use it.
4448 set dummy $ac_cv_prog_BUILD_CC
4450 if test $# != 0; then
4451 # We chose a different compiler from the bogus one.
4452 # However, it has the same basename, so the bogon will be chosen
4453 # first if we set BUILD_CC to just the basename; use the full file name.
4455 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4460 BUILD_CC=$ac_cv_prog_BUILD_CC
4461 if test -n "$BUILD_CC"; then
4462 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4463 echo "${ECHO_T}$BUILD_CC" >&6; }
4465 { echo "$as_me:$LINENO: result: no" >&5
4466 echo "${ECHO_T}no" >&6; }
4472 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4473 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4474 { (exit 1); exit 1; }; }
4475 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4477 echo 'int main () { return 0; }' > conftest.$ac_ext
4479 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4480 (eval $ac_build_link) 2>&5
4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); }; then
4484 for file in conftest.*; do
4486 *.c | *.o | *.obj | *.dSYM) ;;
4487 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4491 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4492 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4493 { (exit 1); exit 1; }; }
4496 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4501 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4502 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4503 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4504 ac_build_exeext=$BUILD_EXEEXT
4506 ac_build_prefix=${build_alias}-
4507 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4508 set dummy ${ac_build_prefix}g++; ac_word=$2
4509 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4511 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4512 echo $ECHO_N "(cached) $ECHO_C" >&6
4514 if test -n "$BUILD_CXX"; then
4515 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4521 test -z "$as_dir" && as_dir=.
4522 for ac_exec_ext in '' $ac_executable_extensions; do
4523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4524 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4534 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4535 if test -n "$BUILD_CXX"; then
4536 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4537 echo "${ECHO_T}$BUILD_CXX" >&6; }
4539 { echo "$as_me:$LINENO: result: no" >&5
4540 echo "${ECHO_T}no" >&6; }
4544 if test -z "$BUILD_CXX"; then
4545 # Extract the first word of "g++", so it can be a program name with args.
4546 set dummy g++; ac_word=$2
4547 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4549 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4550 echo $ECHO_N "(cached) $ECHO_C" >&6
4552 if test -n "$BUILD_CXX"; then
4553 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4559 test -z "$as_dir" && as_dir=.
4560 for ac_exec_ext in '' $ac_executable_extensions; do
4561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4562 ac_cv_prog_BUILD_CXX="g++"
4563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4572 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4573 if test -n "$BUILD_CXX"; then
4574 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4575 echo "${ECHO_T}$BUILD_CXX" >&6; }
4577 { echo "$as_me:$LINENO: result: no" >&5
4578 echo "${ECHO_T}no" >&6; }
4582 if test -z "$BUILD_CXX"; then
4583 # Extract the first word of "c++", so it can be a program name with args.
4584 set dummy c++; ac_word=$2
4585 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4587 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4588 echo $ECHO_N "(cached) $ECHO_C" >&6
4590 if test -n "$BUILD_CXX"; then
4591 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4598 test -z "$as_dir" && as_dir=.
4599 for ac_exec_ext in '' $ac_executable_extensions; do
4600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4601 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4602 ac_prog_rejected=yes
4605 ac_cv_prog_BUILD_CXX="c++"
4606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4613 if test $ac_prog_rejected = yes; then
4614 # We found a bogon in the path, so make sure we never use it.
4615 set dummy $ac_cv_prog_BUILD_CXX
4617 if test $# != 0; then
4618 # We chose a different compiler from the bogus one.
4619 # However, it has the same basename, so the bogon will be chosen
4620 # first if we set BUILD_CXX to just the basename; use the full file name.
4622 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4627 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4628 if test -n "$BUILD_CXX"; then
4629 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4630 echo "${ECHO_T}$BUILD_CXX" >&6; }
4632 { echo "$as_me:$LINENO: result: no" >&5
4633 echo "${ECHO_T}no" >&6; }
4640 LLVM_CROSS_COMPILING=0
4644 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4655 # Check whether --enable-optimized was given.
4656 if test "${enable_optimized+set}" = set; then
4657 enableval=$enable_optimized;
4662 if test ${enableval} = "no" ; then
4666 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4670 # Check whether --enable-profiling was given.
4671 if test "${enable_profiling+set}" = set; then
4672 enableval=$enable_profiling;
4677 if test ${enableval} = "no" ; then
4681 ENABLE_PROFILING=ENABLE_PROFILING=1
4685 # Check whether --enable-assertions was given.
4686 if test "${enable_assertions+set}" = set; then
4687 enableval=$enable_assertions;
4692 if test ${enableval} = "yes" ; then
4696 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4700 # Check whether --enable-expensive-checks was given.
4701 if test "${enable_expensive_checks+set}" = set; then
4702 enableval=$enable_expensive_checks;
4707 if test ${enableval} = "yes" ; then
4708 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4710 EXPENSIVE_CHECKS=yes
4713 ENABLE_EXPENSIVE_CHECKS=
4719 # Check whether --enable-debug-runtime was given.
4720 if test "${enable_debug_runtime+set}" = set; then
4721 enableval=$enable_debug_runtime;
4726 if test ${enableval} = "no" ; then
4730 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4734 # Check whether --enable-debug-symbols was given.
4735 if test "${enable_debug_symbols+set}" = set; then
4736 enableval=$enable_debug_symbols;
4741 if test ${enableval} = "no" ; then
4745 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4749 # Check whether --enable-jit was given.
4750 if test "${enable_jit+set}" = set; then
4751 enableval=$enable_jit;
4756 if test ${enableval} = "no"
4761 case "$llvm_cv_target_arch" in
4762 x86) TARGET_HAS_JIT=1
4764 Sparc) TARGET_HAS_JIT=0
4766 PowerPC) TARGET_HAS_JIT=1
4768 x86_64) TARGET_HAS_JIT=1
4770 Alpha) TARGET_HAS_JIT=1
4772 ARM) TARGET_HAS_JIT=1
4774 Mips) TARGET_HAS_JIT=0
4776 PIC16) TARGET_HAS_JIT=0
4778 XCore) TARGET_HAS_JIT=0
4780 MSP430) TARGET_HAS_JIT=0
4782 SystemZ) TARGET_HAS_JIT=0
4784 Blackfin) TARGET_HAS_JIT=0
4791 # Check whether --enable-doxygen was given.
4792 if test "${enable_doxygen+set}" = set; then
4793 enableval=$enable_doxygen;
4798 case "$enableval" in
4799 yes) ENABLE_DOXYGEN=1
4801 no) ENABLE_DOXYGEN=0
4803 default) ENABLE_DOXYGEN=0
4805 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4806 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4807 { (exit 1); exit 1; }; } ;;
4810 # Check whether --enable-threads was given.
4811 if test "${enable_threads+set}" = set; then
4812 enableval=$enable_threads;
4817 case "$enableval" in
4818 yes) ENABLE_THREADS=1
4820 no) ENABLE_THREADS=0
4822 default) ENABLE_THREADS=1
4824 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4825 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4826 { (exit 1); exit 1; }; } ;;
4829 cat >>confdefs.h <<_ACEOF
4830 #define ENABLE_THREADS $ENABLE_THREADS
4834 # Check whether --enable-pic was given.
4835 if test "${enable_pic+set}" = set; then
4836 enableval=$enable_pic;
4841 case "$enableval" in
4846 default) ENABLE_PIC=1
4848 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4849 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4850 { (exit 1); exit 1; }; } ;;
4853 cat >>confdefs.h <<_ACEOF
4854 #define ENABLE_PIC $ENABLE_PIC
4859 # Check whether --enable-targets was given.
4860 if test "${enable_targets+set}" = set; then
4861 enableval=$enable_targets;
4866 if test "$enableval" = host-only ; then
4869 case "$enableval" in
4870 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend" ;;
4871 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4873 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4874 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4875 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4876 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4877 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4878 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4879 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4880 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4881 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4882 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4883 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4884 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4885 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4886 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4887 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4888 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4889 host) case "$llvm_cv_target_arch" in
4890 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4891 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4892 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4893 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4894 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4895 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4896 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4897 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4898 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4899 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4900 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4901 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4902 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4903 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4904 echo "$as_me: error: Can not set target to build" >&2;}
4905 { (exit 1); exit 1; }; } ;;
4907 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4908 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4909 { (exit 1); exit 1; }; } ;;
4914 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4917 # Determine whether we are building LLVM support for the native architecture.
4918 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
4919 for a_target in $TARGETS_TO_BUILD; do
4920 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
4921 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
4923 cat >>confdefs.h <<_ACEOF
4924 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
4930 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
4931 # target feature def files.
4932 LLVM_ENUM_TARGETS=""
4933 LLVM_ENUM_ASM_PRINTERS=""
4934 LLVM_ENUM_ASM_PARSERS=""
4935 LLVM_ENUM_DISASSEMBLERS=""
4936 for target_to_build in $TARGETS_TO_BUILD; do
4937 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
4938 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
4939 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
4941 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
4942 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
4944 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
4945 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
4953 # Check whether --enable-cbe-printf-a was given.
4954 if test "${enable_cbe_printf_a+set}" = set; then
4955 enableval=$enable_cbe_printf_a;
4960 case "$enableval" in
4961 yes) ENABLE_CBE_PRINTF_A=1
4963 no) ENABLE_CBE_PRINTF_A=0
4965 default) ENABLE_CBE_PRINTF_A=1
4967 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4968 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4969 { (exit 1); exit 1; }; } ;;
4972 cat >>confdefs.h <<_ACEOF
4973 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4978 # Check whether --with-llvmgccdir was given.
4979 if test "${with_llvmgccdir+set}" = set; then
4980 withval=$with_llvmgccdir;
4986 default) WITH_LLVMGCCDIR=default ;;
4987 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4988 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4989 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4990 { (exit 1); exit 1; }; } ;;
4994 # Check whether --with-llvmgcc was given.
4995 if test "${with_llvmgcc+set}" = set; then
4996 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5002 # Check whether --with-llvmgxx was given.
5003 if test "${with_llvmgxx+set}" = set; then
5004 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5009 if test -n "$LLVMGCC"; then
5010 LLVMGCCCOMMAND="$LLVMGCC"
5013 if test -n "$LLVMGXX"; then
5014 LLVMGXXCOMMAND="$LLVMGXX"
5017 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5018 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5019 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5020 { (exit 1); exit 1; }; };
5023 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5024 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5025 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5026 { (exit 1); exit 1; }; };
5030 # Check whether --with-optimize-option was given.
5031 if test "${with_optimize_option+set}" = set; then
5032 withval=$with_optimize_option;
5037 { echo "$as_me:$LINENO: checking optimization flags" >&5
5038 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5041 case "$llvm_cv_os_type" in
5042 MingW) optimize_option=-O3 ;;
5043 *) optimize_option=-O2 ;;
5045 *) optimize_option="$withval" ;;
5047 OPTIMIZE_OPTION=$optimize_option
5049 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5050 echo "${ECHO_T}$optimize_option" >&6; }
5053 # Check whether --with-extra-options was given.
5054 if test "${with_extra_options+set}" = set; then
5055 withval=$with_extra_options;
5061 default) EXTRA_OPTIONS= ;;
5062 *) EXTRA_OPTIONS=$withval ;;
5064 EXTRA_OPTIONS=$EXTRA_OPTIONS
5067 # Check whether --enable-bindings was given.
5068 if test "${enable_bindings+set}" = set; then
5069 enableval=$enable_bindings;
5074 BINDINGS_TO_BUILD=""
5075 case "$enableval" in
5076 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5077 all ) BINDINGS_TO_BUILD="ocaml" ;;
5078 none | no) BINDINGS_TO_BUILD="" ;;
5079 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5080 case "$a_binding" in
5081 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5082 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5083 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5084 { (exit 1); exit 1; }; } ;;
5091 # Check whether --with-ocaml-libdir was given.
5092 if test "${with_ocaml_libdir+set}" = set; then
5093 withval=$with_ocaml_libdir;
5099 auto) with_ocaml_libdir="$withval" ;;
5100 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5101 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5102 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5103 { (exit 1); exit 1; }; } ;;
5107 # Check whether --with-c-include-dirs was given.
5108 if test "${with_c_include_dirs+set}" = set; then
5109 withval=$with_c_include_dirs;
5115 cat >>confdefs.h <<_ACEOF
5116 #define C_INCLUDE_DIRS "$withval"
5121 # Check whether --with-cxx-include-root was given.
5122 if test "${with_cxx_include_root+set}" = set; then
5123 withval=$with_cxx_include_root;
5129 cat >>confdefs.h <<_ACEOF
5130 #define CXX_INCLUDE_ROOT "$withval"
5135 # Check whether --with-cxx-include-arch was given.
5136 if test "${with_cxx_include_arch+set}" = set; then
5137 withval=$with_cxx_include_arch;
5143 cat >>confdefs.h <<_ACEOF
5144 #define CXX_INCLUDE_ARCH "$withval"
5149 # Check whether --with-cxx-include-32bit-dir was given.
5150 if test "${with_cxx_include_32bit_dir+set}" = set; then
5151 withval=$with_cxx_include_32bit_dir;
5157 cat >>confdefs.h <<_ACEOF
5158 #define CXX_INCLUDE_32BIT_DIR "$withval"
5163 # Check whether --with-cxx-include-64bit-dir was given.
5164 if test "${with_cxx_include_64bit_dir+set}" = set; then
5165 withval=$with_cxx_include_64bit_dir;
5171 cat >>confdefs.h <<_ACEOF
5172 #define CXX_INCLUDE_64BIT_DIR "$withval"
5177 # Check whether --with-binutils-include was given.
5178 if test "${with_binutils_include+set}" = set; then
5179 withval=$with_binutils_include;
5185 default) WITH_BINUTILS_INCDIR=default ;;
5186 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5187 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5188 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5189 { (exit 1); exit 1; }; } ;;
5191 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5192 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5194 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5195 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5196 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5197 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5198 { (exit 1); exit 1; }; };
5202 # Check whether --enable-libffi was given.
5203 if test "${enable_libffi+set}" = set; then
5204 enableval=$enable_libffi; case "$enableval" in
5205 yes) llvm_cv_enable_libffi="yes" ;;
5206 no) llvm_cv_enable_libffi="no" ;;
5207 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5208 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5209 { (exit 1); exit 1; }; } ;;
5212 llvm_cv_enable_libffi=no
5216 if test "$llvm_cv_os_type" = "Win32" ; then
5222 # Check whether --enable-llvmc-dynamic was given.
5223 if test "${enable_llvmc_dynamic+set}" = set; then
5224 enableval=$enable_llvmc_dynamic;
5226 enableval=$llvmc_dynamic
5229 if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5230 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5233 ENABLE_LLVMC_DYNAMIC=
5237 # Check whether --enable-llvmc-dynamic-plugins was given.
5238 if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5239 enableval=$enable_llvmc_dynamic_plugins;
5244 if test ${enableval} = "yes" ; then
5245 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5248 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5254 ac_cpp='$CPP $CPPFLAGS'
5255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5258 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5259 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5260 # On Suns, sometimes $CPP names a directory.
5261 if test -n "$CPP" && test -d "$CPP"; then
5264 if test -z "$CPP"; then
5265 if test "${ac_cv_prog_CPP+set}" = set; then
5266 echo $ECHO_N "(cached) $ECHO_C" >&6
5268 # Double quotes because CPP needs to be expanded
5269 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5272 for ac_c_preproc_warn_flag in '' yes
5274 # Use a header file that comes with gcc, so configuring glibc
5275 # with a fresh cross-compiler works.
5276 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5277 # <limits.h> exists even on freestanding compilers.
5278 # On the NeXT, cc -E runs the code through the compiler's parser,
5279 # not just through cpp. "Syntax error" is here to catch this case.
5280 cat >conftest.$ac_ext <<_ACEOF
5283 cat confdefs.h >>conftest.$ac_ext
5284 cat >>conftest.$ac_ext <<_ACEOF
5285 /* end confdefs.h. */
5287 # include <limits.h>
5289 # include <assert.h>
5293 if { (ac_try="$ac_cpp conftest.$ac_ext"
5295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5296 *) ac_try_echo=$ac_try;;
5298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5299 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5301 grep -v '^ *+' conftest.er1 >conftest.err
5303 cat conftest.err >&5
5304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305 (exit $ac_status); } >/dev/null; then
5306 if test -s conftest.err; then
5307 ac_cpp_err=$ac_c_preproc_warn_flag
5308 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5315 if test -z "$ac_cpp_err"; then
5318 echo "$as_me: failed program was:" >&5
5319 sed 's/^/| /' conftest.$ac_ext >&5
5321 # Broken: fails on valid input.
5325 rm -f conftest.err conftest.$ac_ext
5327 # OK, works on sane cases. Now check whether nonexistent headers
5328 # can be detected and how.
5329 cat >conftest.$ac_ext <<_ACEOF
5332 cat confdefs.h >>conftest.$ac_ext
5333 cat >>conftest.$ac_ext <<_ACEOF
5334 /* end confdefs.h. */
5335 #include <ac_nonexistent.h>
5337 if { (ac_try="$ac_cpp conftest.$ac_ext"
5339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5340 *) ac_try_echo=$ac_try;;
5342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5343 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5345 grep -v '^ *+' conftest.er1 >conftest.err
5347 cat conftest.err >&5
5348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349 (exit $ac_status); } >/dev/null; then
5350 if test -s conftest.err; then
5351 ac_cpp_err=$ac_c_preproc_warn_flag
5352 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5359 if test -z "$ac_cpp_err"; then
5360 # Broken: success on invalid input.
5363 echo "$as_me: failed program was:" >&5
5364 sed 's/^/| /' conftest.$ac_ext >&5
5366 # Passes both tests.
5371 rm -f conftest.err conftest.$ac_ext
5374 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5375 rm -f conftest.err conftest.$ac_ext
5376 if $ac_preproc_ok; then
5388 { echo "$as_me:$LINENO: result: $CPP" >&5
5389 echo "${ECHO_T}$CPP" >&6; }
5391 for ac_c_preproc_warn_flag in '' yes
5393 # Use a header file that comes with gcc, so configuring glibc
5394 # with a fresh cross-compiler works.
5395 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5396 # <limits.h> exists even on freestanding compilers.
5397 # On the NeXT, cc -E runs the code through the compiler's parser,
5398 # not just through cpp. "Syntax error" is here to catch this case.
5399 cat >conftest.$ac_ext <<_ACEOF
5402 cat confdefs.h >>conftest.$ac_ext
5403 cat >>conftest.$ac_ext <<_ACEOF
5404 /* end confdefs.h. */
5406 # include <limits.h>
5408 # include <assert.h>
5412 if { (ac_try="$ac_cpp conftest.$ac_ext"
5414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5415 *) ac_try_echo=$ac_try;;
5417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5418 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5420 grep -v '^ *+' conftest.er1 >conftest.err
5422 cat conftest.err >&5
5423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424 (exit $ac_status); } >/dev/null; then
5425 if test -s conftest.err; then
5426 ac_cpp_err=$ac_c_preproc_warn_flag
5427 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5434 if test -z "$ac_cpp_err"; then
5437 echo "$as_me: failed program was:" >&5
5438 sed 's/^/| /' conftest.$ac_ext >&5
5440 # Broken: fails on valid input.
5444 rm -f conftest.err conftest.$ac_ext
5446 # OK, works on sane cases. Now check whether nonexistent headers
5447 # can be detected and how.
5448 cat >conftest.$ac_ext <<_ACEOF
5451 cat confdefs.h >>conftest.$ac_ext
5452 cat >>conftest.$ac_ext <<_ACEOF
5453 /* end confdefs.h. */
5454 #include <ac_nonexistent.h>
5456 if { (ac_try="$ac_cpp conftest.$ac_ext"
5458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5459 *) ac_try_echo=$ac_try;;
5461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5462 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5464 grep -v '^ *+' conftest.er1 >conftest.err
5466 cat conftest.err >&5
5467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468 (exit $ac_status); } >/dev/null; then
5469 if test -s conftest.err; then
5470 ac_cpp_err=$ac_c_preproc_warn_flag
5471 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5478 if test -z "$ac_cpp_err"; then
5479 # Broken: success on invalid input.
5482 echo "$as_me: failed program was:" >&5
5483 sed 's/^/| /' conftest.$ac_ext >&5
5485 # Passes both tests.
5490 rm -f conftest.err conftest.$ac_ext
5493 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5494 rm -f conftest.err conftest.$ac_ext
5495 if $ac_preproc_ok; then
5498 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5499 See \`config.log' for more details." >&5
5500 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5501 See \`config.log' for more details." >&2;}
5502 { (exit 1); exit 1; }; }
5506 ac_cpp='$CPP $CPPFLAGS'
5507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5512 ac_cpp='$CPP $CPPFLAGS'
5513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5516 if test -n "$ac_tool_prefix"; then
5519 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5520 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5521 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5523 if test "${ac_cv_prog_CC+set}" = set; then
5524 echo $ECHO_N "(cached) $ECHO_C" >&6
5526 if test -n "$CC"; then
5527 ac_cv_prog_CC="$CC" # Let the user override the test.
5529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5533 test -z "$as_dir" && as_dir=.
5534 for ac_exec_ext in '' $ac_executable_extensions; do
5535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5536 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5547 if test -n "$CC"; then
5548 { echo "$as_me:$LINENO: result: $CC" >&5
5549 echo "${ECHO_T}$CC" >&6; }
5551 { echo "$as_me:$LINENO: result: no" >&5
5552 echo "${ECHO_T}no" >&6; }
5556 test -n "$CC" && break
5559 if test -z "$CC"; then
5563 # Extract the first word of "$ac_prog", so it can be a program name with args.
5564 set dummy $ac_prog; ac_word=$2
5565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5567 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5568 echo $ECHO_N "(cached) $ECHO_C" >&6
5570 if test -n "$ac_ct_CC"; then
5571 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5577 test -z "$as_dir" && as_dir=.
5578 for ac_exec_ext in '' $ac_executable_extensions; do
5579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5580 ac_cv_prog_ac_ct_CC="$ac_prog"
5581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5590 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5591 if test -n "$ac_ct_CC"; then
5592 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5593 echo "${ECHO_T}$ac_ct_CC" >&6; }
5595 { echo "$as_me:$LINENO: result: no" >&5
5596 echo "${ECHO_T}no" >&6; }
5600 test -n "$ac_ct_CC" && break
5603 if test "x$ac_ct_CC" = x; then
5606 case $cross_compiling:$ac_tool_warned in
5608 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5609 whose name does not start with the host triplet. If you think this
5610 configuration is useful to you, please write to autoconf@gnu.org." >&5
5611 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5612 whose name does not start with the host triplet. If you think this
5613 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5614 ac_tool_warned=yes ;;
5621 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5622 See \`config.log' for more details." >&5
5623 echo "$as_me: error: no acceptable C compiler found in \$PATH
5624 See \`config.log' for more details." >&2;}
5625 { (exit 1); exit 1; }; }
5627 # Provide some information about the compiler.
5628 echo "$as_me:$LINENO: checking for C compiler version" >&5
5629 ac_compiler=`set X $ac_compile; echo $2`
5630 { (ac_try="$ac_compiler --version >&5"
5632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5633 *) ac_try_echo=$ac_try;;
5635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5636 (eval "$ac_compiler --version >&5") 2>&5
5638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); }
5640 { (ac_try="$ac_compiler -v >&5"
5642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5643 *) ac_try_echo=$ac_try;;
5645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5646 (eval "$ac_compiler -v >&5") 2>&5
5648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649 (exit $ac_status); }
5650 { (ac_try="$ac_compiler -V >&5"
5652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5653 *) ac_try_echo=$ac_try;;
5655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5656 (eval "$ac_compiler -V >&5") 2>&5
5658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659 (exit $ac_status); }
5661 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5662 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5663 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5664 echo $ECHO_N "(cached) $ECHO_C" >&6
5666 cat >conftest.$ac_ext <<_ACEOF
5669 cat confdefs.h >>conftest.$ac_ext
5670 cat >>conftest.$ac_ext <<_ACEOF
5671 /* end confdefs.h. */
5684 rm -f conftest.$ac_objext
5685 if { (ac_try="$ac_compile"
5687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5688 *) ac_try_echo=$ac_try;;
5690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5691 (eval "$ac_compile") 2>conftest.er1
5693 grep -v '^ *+' conftest.er1 >conftest.err
5695 cat conftest.err >&5
5696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5697 (exit $ac_status); } &&
5698 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5699 { (case "(($ac_try" in
5700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5701 *) ac_try_echo=$ac_try;;
5703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5704 (eval "$ac_try") 2>&5
5706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707 (exit $ac_status); }; } &&
5708 { ac_try='test -s conftest.$ac_objext'
5709 { (case "(($ac_try" in
5710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5711 *) ac_try_echo=$ac_try;;
5713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5714 (eval "$ac_try") 2>&5
5716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717 (exit $ac_status); }; }; then
5720 echo "$as_me: failed program was:" >&5
5721 sed 's/^/| /' conftest.$ac_ext >&5
5726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5727 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5730 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5731 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5732 GCC=`test $ac_compiler_gnu = yes && echo yes`
5733 ac_test_CFLAGS=${CFLAGS+set}
5734 ac_save_CFLAGS=$CFLAGS
5735 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5736 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5737 if test "${ac_cv_prog_cc_g+set}" = set; then
5738 echo $ECHO_N "(cached) $ECHO_C" >&6
5740 ac_save_c_werror_flag=$ac_c_werror_flag
5741 ac_c_werror_flag=yes
5744 cat >conftest.$ac_ext <<_ACEOF
5747 cat confdefs.h >>conftest.$ac_ext
5748 cat >>conftest.$ac_ext <<_ACEOF
5749 /* end confdefs.h. */
5759 rm -f conftest.$ac_objext
5760 if { (ac_try="$ac_compile"
5762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5763 *) ac_try_echo=$ac_try;;
5765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5766 (eval "$ac_compile") 2>conftest.er1
5768 grep -v '^ *+' conftest.er1 >conftest.err
5770 cat conftest.err >&5
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); } &&
5773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5774 { (case "(($ac_try" in
5775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5776 *) ac_try_echo=$ac_try;;
5778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5779 (eval "$ac_try") 2>&5
5781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782 (exit $ac_status); }; } &&
5783 { ac_try='test -s conftest.$ac_objext'
5784 { (case "(($ac_try" in
5785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5786 *) ac_try_echo=$ac_try;;
5788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5789 (eval "$ac_try") 2>&5
5791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792 (exit $ac_status); }; }; then
5795 echo "$as_me: failed program was:" >&5
5796 sed 's/^/| /' conftest.$ac_ext >&5
5799 cat >conftest.$ac_ext <<_ACEOF
5802 cat confdefs.h >>conftest.$ac_ext
5803 cat >>conftest.$ac_ext <<_ACEOF
5804 /* end confdefs.h. */
5814 rm -f conftest.$ac_objext
5815 if { (ac_try="$ac_compile"
5817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5818 *) ac_try_echo=$ac_try;;
5820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5821 (eval "$ac_compile") 2>conftest.er1
5823 grep -v '^ *+' conftest.er1 >conftest.err
5825 cat conftest.err >&5
5826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827 (exit $ac_status); } &&
5828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5829 { (case "(($ac_try" in
5830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5831 *) ac_try_echo=$ac_try;;
5833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5834 (eval "$ac_try") 2>&5
5836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837 (exit $ac_status); }; } &&
5838 { ac_try='test -s conftest.$ac_objext'
5839 { (case "(($ac_try" in
5840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5841 *) ac_try_echo=$ac_try;;
5843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5844 (eval "$ac_try") 2>&5
5846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847 (exit $ac_status); }; }; then
5850 echo "$as_me: failed program was:" >&5
5851 sed 's/^/| /' conftest.$ac_ext >&5
5853 ac_c_werror_flag=$ac_save_c_werror_flag
5855 cat >conftest.$ac_ext <<_ACEOF
5858 cat confdefs.h >>conftest.$ac_ext
5859 cat >>conftest.$ac_ext <<_ACEOF
5860 /* end confdefs.h. */
5870 rm -f conftest.$ac_objext
5871 if { (ac_try="$ac_compile"
5873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5874 *) ac_try_echo=$ac_try;;
5876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5877 (eval "$ac_compile") 2>conftest.er1
5879 grep -v '^ *+' conftest.er1 >conftest.err
5881 cat conftest.err >&5
5882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883 (exit $ac_status); } &&
5884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5885 { (case "(($ac_try" in
5886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5887 *) ac_try_echo=$ac_try;;
5889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5890 (eval "$ac_try") 2>&5
5892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893 (exit $ac_status); }; } &&
5894 { ac_try='test -s conftest.$ac_objext'
5895 { (case "(($ac_try" in
5896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5897 *) ac_try_echo=$ac_try;;
5899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5900 (eval "$ac_try") 2>&5
5902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903 (exit $ac_status); }; }; then
5906 echo "$as_me: failed program was:" >&5
5907 sed 's/^/| /' conftest.$ac_ext >&5
5912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5919 ac_c_werror_flag=$ac_save_c_werror_flag
5921 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5922 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5923 if test "$ac_test_CFLAGS" = set; then
5924 CFLAGS=$ac_save_CFLAGS
5925 elif test $ac_cv_prog_cc_g = yes; then
5926 if test "$GCC" = yes; then
5932 if test "$GCC" = yes; then
5938 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5939 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5940 if test "${ac_cv_prog_cc_c89+set}" = set; then
5941 echo $ECHO_N "(cached) $ECHO_C" >&6
5943 ac_cv_prog_cc_c89=no
5945 cat >conftest.$ac_ext <<_ACEOF
5948 cat confdefs.h >>conftest.$ac_ext
5949 cat >>conftest.$ac_ext <<_ACEOF
5950 /* end confdefs.h. */
5953 #include <sys/types.h>
5954 #include <sys/stat.h>
5955 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5956 struct buf { int x; };
5957 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5958 static char *e (p, i)
5964 static char *f (char * (*g) (char **, int), char **p, ...)
5969 s = g (p, va_arg (v,int));
5974 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5975 function prototypes and stuff, but not '\xHH' hex character constants.
5976 These don't provoke an error unfortunately, instead are silently treated
5977 as 'x'. The following induces an error, until -std is added to get
5978 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5979 array size at least. It's necessary to write '\x00'==0 to get something
5980 that's true only with -std. */
5981 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5983 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5984 inside strings and character constants. */
5986 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5988 int test (int i, double x);
5989 struct s1 {int (*f) (int a);};
5990 struct s2 {int (*f) (double a);};
5991 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5997 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6002 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6003 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6005 CC="$ac_save_CC $ac_arg"
6006 rm -f conftest.$ac_objext
6007 if { (ac_try="$ac_compile"
6009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6010 *) ac_try_echo=$ac_try;;
6012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6013 (eval "$ac_compile") 2>conftest.er1
6015 grep -v '^ *+' conftest.er1 >conftest.err
6017 cat conftest.err >&5
6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); } &&
6020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6021 { (case "(($ac_try" in
6022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6023 *) ac_try_echo=$ac_try;;
6025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6026 (eval "$ac_try") 2>&5
6028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6029 (exit $ac_status); }; } &&
6030 { ac_try='test -s conftest.$ac_objext'
6031 { (case "(($ac_try" in
6032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6033 *) ac_try_echo=$ac_try;;
6035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6036 (eval "$ac_try") 2>&5
6038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039 (exit $ac_status); }; }; then
6040 ac_cv_prog_cc_c89=$ac_arg
6042 echo "$as_me: failed program was:" >&5
6043 sed 's/^/| /' conftest.$ac_ext >&5
6048 rm -f core conftest.err conftest.$ac_objext
6049 test "x$ac_cv_prog_cc_c89" != "xno" && break
6051 rm -f conftest.$ac_ext
6056 case "x$ac_cv_prog_cc_c89" in
6058 { echo "$as_me:$LINENO: result: none needed" >&5
6059 echo "${ECHO_T}none needed" >&6; } ;;
6061 { echo "$as_me:$LINENO: result: unsupported" >&5
6062 echo "${ECHO_T}unsupported" >&6; } ;;
6064 CC="$CC $ac_cv_prog_cc_c89"
6065 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6066 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6071 ac_cpp='$CPP $CPPFLAGS'
6072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6077 ac_cpp='$CXXCPP $CPPFLAGS'
6078 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6079 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6080 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6081 if test -z "$CXX"; then
6082 if test -n "$CCC"; then
6085 if test -n "$ac_tool_prefix"; then
6088 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6089 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6090 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6092 if test "${ac_cv_prog_CXX+set}" = set; then
6093 echo $ECHO_N "(cached) $ECHO_C" >&6
6095 if test -n "$CXX"; then
6096 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6102 test -z "$as_dir" && as_dir=.
6103 for ac_exec_ext in '' $ac_executable_extensions; do
6104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6105 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6116 if test -n "$CXX"; then
6117 { echo "$as_me:$LINENO: result: $CXX" >&5
6118 echo "${ECHO_T}$CXX" >&6; }
6120 { echo "$as_me:$LINENO: result: no" >&5
6121 echo "${ECHO_T}no" >&6; }
6125 test -n "$CXX" && break
6128 if test -z "$CXX"; then
6132 # Extract the first word of "$ac_prog", so it can be a program name with args.
6133 set dummy $ac_prog; ac_word=$2
6134 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6136 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6137 echo $ECHO_N "(cached) $ECHO_C" >&6
6139 if test -n "$ac_ct_CXX"; then
6140 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6146 test -z "$as_dir" && as_dir=.
6147 for ac_exec_ext in '' $ac_executable_extensions; do
6148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6149 ac_cv_prog_ac_ct_CXX="$ac_prog"
6150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6159 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6160 if test -n "$ac_ct_CXX"; then
6161 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6162 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6164 { echo "$as_me:$LINENO: result: no" >&5
6165 echo "${ECHO_T}no" >&6; }
6169 test -n "$ac_ct_CXX" && break
6172 if test "x$ac_ct_CXX" = x; then
6175 case $cross_compiling:$ac_tool_warned in
6177 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6178 whose name does not start with the host triplet. If you think this
6179 configuration is useful to you, please write to autoconf@gnu.org." >&5
6180 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6181 whose name does not start with the host triplet. If you think this
6182 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6183 ac_tool_warned=yes ;;
6191 # Provide some information about the compiler.
6192 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6193 ac_compiler=`set X $ac_compile; echo $2`
6194 { (ac_try="$ac_compiler --version >&5"
6196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6197 *) ac_try_echo=$ac_try;;
6199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6200 (eval "$ac_compiler --version >&5") 2>&5
6202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203 (exit $ac_status); }
6204 { (ac_try="$ac_compiler -v >&5"
6206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6207 *) ac_try_echo=$ac_try;;
6209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6210 (eval "$ac_compiler -v >&5") 2>&5
6212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213 (exit $ac_status); }
6214 { (ac_try="$ac_compiler -V >&5"
6216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6217 *) ac_try_echo=$ac_try;;
6219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6220 (eval "$ac_compiler -V >&5") 2>&5
6222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223 (exit $ac_status); }
6225 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6226 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6227 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6228 echo $ECHO_N "(cached) $ECHO_C" >&6
6230 cat >conftest.$ac_ext <<_ACEOF
6233 cat confdefs.h >>conftest.$ac_ext
6234 cat >>conftest.$ac_ext <<_ACEOF
6235 /* end confdefs.h. */
6248 rm -f conftest.$ac_objext
6249 if { (ac_try="$ac_compile"
6251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6252 *) ac_try_echo=$ac_try;;
6254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6255 (eval "$ac_compile") 2>conftest.er1
6257 grep -v '^ *+' conftest.er1 >conftest.err
6259 cat conftest.err >&5
6260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261 (exit $ac_status); } &&
6262 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6263 { (case "(($ac_try" in
6264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6265 *) ac_try_echo=$ac_try;;
6267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6268 (eval "$ac_try") 2>&5
6270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271 (exit $ac_status); }; } &&
6272 { ac_try='test -s conftest.$ac_objext'
6273 { (case "(($ac_try" in
6274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6275 *) ac_try_echo=$ac_try;;
6277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6278 (eval "$ac_try") 2>&5
6280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6281 (exit $ac_status); }; }; then
6284 echo "$as_me: failed program was:" >&5
6285 sed 's/^/| /' conftest.$ac_ext >&5
6290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6291 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6294 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6295 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6296 GXX=`test $ac_compiler_gnu = yes && echo yes`
6297 ac_test_CXXFLAGS=${CXXFLAGS+set}
6298 ac_save_CXXFLAGS=$CXXFLAGS
6299 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6300 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6301 if test "${ac_cv_prog_cxx_g+set}" = set; then
6302 echo $ECHO_N "(cached) $ECHO_C" >&6
6304 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6305 ac_cxx_werror_flag=yes
6308 cat >conftest.$ac_ext <<_ACEOF
6311 cat confdefs.h >>conftest.$ac_ext
6312 cat >>conftest.$ac_ext <<_ACEOF
6313 /* end confdefs.h. */
6323 rm -f conftest.$ac_objext
6324 if { (ac_try="$ac_compile"
6326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6327 *) ac_try_echo=$ac_try;;
6329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6330 (eval "$ac_compile") 2>conftest.er1
6332 grep -v '^ *+' conftest.er1 >conftest.err
6334 cat conftest.err >&5
6335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336 (exit $ac_status); } &&
6337 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6338 { (case "(($ac_try" in
6339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6340 *) ac_try_echo=$ac_try;;
6342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6343 (eval "$ac_try") 2>&5
6345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346 (exit $ac_status); }; } &&
6347 { ac_try='test -s conftest.$ac_objext'
6348 { (case "(($ac_try" in
6349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6350 *) ac_try_echo=$ac_try;;
6352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6353 (eval "$ac_try") 2>&5
6355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356 (exit $ac_status); }; }; then
6357 ac_cv_prog_cxx_g=yes
6359 echo "$as_me: failed program was:" >&5
6360 sed 's/^/| /' conftest.$ac_ext >&5
6363 cat >conftest.$ac_ext <<_ACEOF
6366 cat confdefs.h >>conftest.$ac_ext
6367 cat >>conftest.$ac_ext <<_ACEOF
6368 /* end confdefs.h. */
6378 rm -f conftest.$ac_objext
6379 if { (ac_try="$ac_compile"
6381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6382 *) ac_try_echo=$ac_try;;
6384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6385 (eval "$ac_compile") 2>conftest.er1
6387 grep -v '^ *+' conftest.er1 >conftest.err
6389 cat conftest.err >&5
6390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391 (exit $ac_status); } &&
6392 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6393 { (case "(($ac_try" in
6394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6395 *) ac_try_echo=$ac_try;;
6397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6398 (eval "$ac_try") 2>&5
6400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401 (exit $ac_status); }; } &&
6402 { ac_try='test -s conftest.$ac_objext'
6403 { (case "(($ac_try" in
6404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6405 *) ac_try_echo=$ac_try;;
6407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6408 (eval "$ac_try") 2>&5
6410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411 (exit $ac_status); }; }; then
6414 echo "$as_me: failed program was:" >&5
6415 sed 's/^/| /' conftest.$ac_ext >&5
6417 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6419 cat >conftest.$ac_ext <<_ACEOF
6422 cat confdefs.h >>conftest.$ac_ext
6423 cat >>conftest.$ac_ext <<_ACEOF
6424 /* end confdefs.h. */
6434 rm -f conftest.$ac_objext
6435 if { (ac_try="$ac_compile"
6437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6438 *) ac_try_echo=$ac_try;;
6440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6441 (eval "$ac_compile") 2>conftest.er1
6443 grep -v '^ *+' conftest.er1 >conftest.err
6445 cat conftest.err >&5
6446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447 (exit $ac_status); } &&
6448 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6449 { (case "(($ac_try" in
6450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6451 *) ac_try_echo=$ac_try;;
6453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6454 (eval "$ac_try") 2>&5
6456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457 (exit $ac_status); }; } &&
6458 { ac_try='test -s conftest.$ac_objext'
6459 { (case "(($ac_try" in
6460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6461 *) ac_try_echo=$ac_try;;
6463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6464 (eval "$ac_try") 2>&5
6466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467 (exit $ac_status); }; }; then
6468 ac_cv_prog_cxx_g=yes
6470 echo "$as_me: failed program was:" >&5
6471 sed 's/^/| /' conftest.$ac_ext >&5
6476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6483 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6485 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6486 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6487 if test "$ac_test_CXXFLAGS" = set; then
6488 CXXFLAGS=$ac_save_CXXFLAGS
6489 elif test $ac_cv_prog_cxx_g = yes; then
6490 if test "$GXX" = yes; then
6496 if test "$GXX" = yes; then
6503 ac_cpp='$CPP $CPPFLAGS'
6504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6509 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6510 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6511 if test "${lt_cv_path_NM+set}" = set; then
6512 echo $ECHO_N "(cached) $ECHO_C" >&6
6514 if test -n "$NM"; then
6515 # Let the user override the test.
6518 lt_nm_to_check="${ac_tool_prefix}nm"
6519 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6520 lt_nm_to_check="$lt_nm_to_check nm"
6522 for lt_tmp_nm in $lt_nm_to_check; do
6523 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6524 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6526 test -z "$ac_dir" && ac_dir=.
6527 tmp_nm="$ac_dir/$lt_tmp_nm"
6528 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6529 # Check to see if the nm accepts a BSD-compat flag.
6530 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6531 # nm: unknown option "B" ignored
6532 # Tru64's nm complains that /dev/null is an invalid object file
6533 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6534 */dev/null* | *'Invalid file or object type'*)
6535 lt_cv_path_NM="$tmp_nm -B"
6539 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6541 lt_cv_path_NM="$tmp_nm -p"
6545 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6546 continue # so that we can try to find one that supports BSD flags
6555 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6558 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6559 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6564 { echo "$as_me:$LINENO: checking for GNU make" >&5
6565 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6566 if test "${llvm_cv_gnu_make_command+set}" = set; then
6567 echo $ECHO_N "(cached) $ECHO_C" >&6
6569 llvm_cv_gnu_make_command=''
6570 for a in "$MAKE" make gmake gnumake ; do
6571 if test -z "$a" ; then continue ; fi ;
6572 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6574 llvm_cv_gnu_make_command=$a ;
6579 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6580 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6581 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6585 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6586 echo "${ECHO_T}\"Not found\"" >&6; };
6590 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6591 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6593 if test "$LN_S" = "ln -s"; then
6594 { echo "$as_me:$LINENO: result: yes" >&5
6595 echo "${ECHO_T}yes" >&6; }
6597 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6598 echo "${ECHO_T}no, using $LN_S" >&6; }
6601 # Extract the first word of "cmp", so it can be a program name with args.
6602 set dummy cmp; ac_word=$2
6603 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6605 if test "${ac_cv_path_CMP+set}" = set; then
6606 echo $ECHO_N "(cached) $ECHO_C" >&6
6610 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6617 test -z "$as_dir" && as_dir=.
6618 for ac_exec_ext in '' $ac_executable_extensions; do
6619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6620 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6628 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6633 if test -n "$CMP"; then
6634 { echo "$as_me:$LINENO: result: $CMP" >&5
6635 echo "${ECHO_T}$CMP" >&6; }
6637 { echo "$as_me:$LINENO: result: no" >&5
6638 echo "${ECHO_T}no" >&6; }
6642 # Extract the first word of "cp", so it can be a program name with args.
6643 set dummy cp; ac_word=$2
6644 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6646 if test "${ac_cv_path_CP+set}" = set; then
6647 echo $ECHO_N "(cached) $ECHO_C" >&6
6651 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6658 test -z "$as_dir" && as_dir=.
6659 for ac_exec_ext in '' $ac_executable_extensions; do
6660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6661 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6669 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6674 if test -n "$CP"; then
6675 { echo "$as_me:$LINENO: result: $CP" >&5
6676 echo "${ECHO_T}$CP" >&6; }
6678 { echo "$as_me:$LINENO: result: no" >&5
6679 echo "${ECHO_T}no" >&6; }
6683 # Extract the first word of "date", so it can be a program name with args.
6684 set dummy date; ac_word=$2
6685 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6687 if test "${ac_cv_path_DATE+set}" = set; then
6688 echo $ECHO_N "(cached) $ECHO_C" >&6
6692 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6699 test -z "$as_dir" && as_dir=.
6700 for ac_exec_ext in '' $ac_executable_extensions; do
6701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6702 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6710 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6714 DATE=$ac_cv_path_DATE
6715 if test -n "$DATE"; then
6716 { echo "$as_me:$LINENO: result: $DATE" >&5
6717 echo "${ECHO_T}$DATE" >&6; }
6719 { echo "$as_me:$LINENO: result: no" >&5
6720 echo "${ECHO_T}no" >&6; }
6724 # Extract the first word of "find", so it can be a program name with args.
6725 set dummy find; ac_word=$2
6726 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6728 if test "${ac_cv_path_FIND+set}" = set; then
6729 echo $ECHO_N "(cached) $ECHO_C" >&6
6733 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6740 test -z "$as_dir" && as_dir=.
6741 for ac_exec_ext in '' $ac_executable_extensions; do
6742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6743 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6751 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6755 FIND=$ac_cv_path_FIND
6756 if test -n "$FIND"; then
6757 { echo "$as_me:$LINENO: result: $FIND" >&5
6758 echo "${ECHO_T}$FIND" >&6; }
6760 { echo "$as_me:$LINENO: result: no" >&5
6761 echo "${ECHO_T}no" >&6; }
6765 # Extract the first word of "grep", so it can be a program name with args.
6766 set dummy grep; ac_word=$2
6767 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6769 if test "${ac_cv_path_GREP+set}" = set; then
6770 echo $ECHO_N "(cached) $ECHO_C" >&6
6774 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6781 test -z "$as_dir" && as_dir=.
6782 for ac_exec_ext in '' $ac_executable_extensions; do
6783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6784 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6792 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6796 GREP=$ac_cv_path_GREP
6797 if test -n "$GREP"; then
6798 { echo "$as_me:$LINENO: result: $GREP" >&5
6799 echo "${ECHO_T}$GREP" >&6; }
6801 { echo "$as_me:$LINENO: result: no" >&5
6802 echo "${ECHO_T}no" >&6; }
6806 # Extract the first word of "mkdir", so it can be a program name with args.
6807 set dummy mkdir; ac_word=$2
6808 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6810 if test "${ac_cv_path_MKDIR+set}" = set; then
6811 echo $ECHO_N "(cached) $ECHO_C" >&6
6815 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6822 test -z "$as_dir" && as_dir=.
6823 for ac_exec_ext in '' $ac_executable_extensions; do
6824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6825 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6833 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6837 MKDIR=$ac_cv_path_MKDIR
6838 if test -n "$MKDIR"; then
6839 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6840 echo "${ECHO_T}$MKDIR" >&6; }
6842 { echo "$as_me:$LINENO: result: no" >&5
6843 echo "${ECHO_T}no" >&6; }
6847 # Extract the first word of "mv", so it can be a program name with args.
6848 set dummy mv; ac_word=$2
6849 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6851 if test "${ac_cv_path_MV+set}" = set; then
6852 echo $ECHO_N "(cached) $ECHO_C" >&6
6856 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6863 test -z "$as_dir" && as_dir=.
6864 for ac_exec_ext in '' $ac_executable_extensions; do
6865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6866 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6874 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6879 if test -n "$MV"; then
6880 { echo "$as_me:$LINENO: result: $MV" >&5
6881 echo "${ECHO_T}$MV" >&6; }
6883 { echo "$as_me:$LINENO: result: no" >&5
6884 echo "${ECHO_T}no" >&6; }
6888 if test -n "$ac_tool_prefix"; then
6889 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6890 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6891 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6893 if test "${ac_cv_prog_RANLIB+set}" = set; then
6894 echo $ECHO_N "(cached) $ECHO_C" >&6
6896 if test -n "$RANLIB"; then
6897 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6903 test -z "$as_dir" && as_dir=.
6904 for ac_exec_ext in '' $ac_executable_extensions; do
6905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6906 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6916 RANLIB=$ac_cv_prog_RANLIB
6917 if test -n "$RANLIB"; then
6918 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6919 echo "${ECHO_T}$RANLIB" >&6; }
6921 { echo "$as_me:$LINENO: result: no" >&5
6922 echo "${ECHO_T}no" >&6; }
6927 if test -z "$ac_cv_prog_RANLIB"; then
6928 ac_ct_RANLIB=$RANLIB
6929 # Extract the first word of "ranlib", so it can be a program name with args.
6930 set dummy ranlib; ac_word=$2
6931 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6933 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6934 echo $ECHO_N "(cached) $ECHO_C" >&6
6936 if test -n "$ac_ct_RANLIB"; then
6937 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6943 test -z "$as_dir" && as_dir=.
6944 for ac_exec_ext in '' $ac_executable_extensions; do
6945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6946 ac_cv_prog_ac_ct_RANLIB="ranlib"
6947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6956 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6957 if test -n "$ac_ct_RANLIB"; then
6958 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6959 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6961 { echo "$as_me:$LINENO: result: no" >&5
6962 echo "${ECHO_T}no" >&6; }
6965 if test "x$ac_ct_RANLIB" = x; then
6968 case $cross_compiling:$ac_tool_warned in
6970 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6971 whose name does not start with the host triplet. If you think this
6972 configuration is useful to you, please write to autoconf@gnu.org." >&5
6973 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6974 whose name does not start with the host triplet. If you think this
6975 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6976 ac_tool_warned=yes ;;
6978 RANLIB=$ac_ct_RANLIB
6981 RANLIB="$ac_cv_prog_RANLIB"
6984 if test -n "$ac_tool_prefix"; then
6985 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6986 set dummy ${ac_tool_prefix}ar; ac_word=$2
6987 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6989 if test "${ac_cv_prog_AR+set}" = set; then
6990 echo $ECHO_N "(cached) $ECHO_C" >&6
6992 if test -n "$AR"; then
6993 ac_cv_prog_AR="$AR" # Let the user override the test.
6995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6999 test -z "$as_dir" && as_dir=.
7000 for ac_exec_ext in '' $ac_executable_extensions; do
7001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7002 ac_cv_prog_AR="${ac_tool_prefix}ar"
7003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7013 if test -n "$AR"; then
7014 { echo "$as_me:$LINENO: result: $AR" >&5
7015 echo "${ECHO_T}$AR" >&6; }
7017 { echo "$as_me:$LINENO: result: no" >&5
7018 echo "${ECHO_T}no" >&6; }
7023 if test -z "$ac_cv_prog_AR"; then
7025 # Extract the first word of "ar", so it can be a program name with args.
7026 set dummy ar; ac_word=$2
7027 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7029 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7030 echo $ECHO_N "(cached) $ECHO_C" >&6
7032 if test -n "$ac_ct_AR"; then
7033 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7039 test -z "$as_dir" && as_dir=.
7040 for ac_exec_ext in '' $ac_executable_extensions; do
7041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7042 ac_cv_prog_ac_ct_AR="ar"
7043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7052 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7053 if test -n "$ac_ct_AR"; then
7054 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7055 echo "${ECHO_T}$ac_ct_AR" >&6; }
7057 { echo "$as_me:$LINENO: result: no" >&5
7058 echo "${ECHO_T}no" >&6; }
7061 if test "x$ac_ct_AR" = x; then
7064 case $cross_compiling:$ac_tool_warned in
7066 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7067 whose name does not start with the host triplet. If you think this
7068 configuration is useful to you, please write to autoconf@gnu.org." >&5
7069 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7070 whose name does not start with the host triplet. If you think this
7071 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7072 ac_tool_warned=yes ;;
7080 # Extract the first word of "rm", so it can be a program name with args.
7081 set dummy rm; ac_word=$2
7082 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7084 if test "${ac_cv_path_RM+set}" = set; then
7085 echo $ECHO_N "(cached) $ECHO_C" >&6
7089 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7096 test -z "$as_dir" && as_dir=.
7097 for ac_exec_ext in '' $ac_executable_extensions; do
7098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7099 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7107 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7112 if test -n "$RM"; then
7113 { echo "$as_me:$LINENO: result: $RM" >&5
7114 echo "${ECHO_T}$RM" >&6; }
7116 { echo "$as_me:$LINENO: result: no" >&5
7117 echo "${ECHO_T}no" >&6; }
7121 # Extract the first word of "sed", so it can be a program name with args.
7122 set dummy sed; ac_word=$2
7123 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7125 if test "${ac_cv_path_SED+set}" = set; then
7126 echo $ECHO_N "(cached) $ECHO_C" >&6
7130 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7137 test -z "$as_dir" && as_dir=.
7138 for ac_exec_ext in '' $ac_executable_extensions; do
7139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7140 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7148 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7153 if test -n "$SED"; then
7154 { echo "$as_me:$LINENO: result: $SED" >&5
7155 echo "${ECHO_T}$SED" >&6; }
7157 { echo "$as_me:$LINENO: result: no" >&5
7158 echo "${ECHO_T}no" >&6; }
7162 # Extract the first word of "tar", so it can be a program name with args.
7163 set dummy tar; ac_word=$2
7164 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7166 if test "${ac_cv_path_TAR+set}" = set; then
7167 echo $ECHO_N "(cached) $ECHO_C" >&6
7171 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7178 test -z "$as_dir" && as_dir=.
7179 for ac_exec_ext in '' $ac_executable_extensions; do
7180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7181 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7189 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7194 if test -n "$TAR"; then
7195 { echo "$as_me:$LINENO: result: $TAR" >&5
7196 echo "${ECHO_T}$TAR" >&6; }
7198 { echo "$as_me:$LINENO: result: no" >&5
7199 echo "${ECHO_T}no" >&6; }
7203 # Extract the first word of "pwd", so it can be a program name with args.
7204 set dummy pwd; ac_word=$2
7205 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7207 if test "${ac_cv_path_BINPWD+set}" = set; then
7208 echo $ECHO_N "(cached) $ECHO_C" >&6
7212 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7219 test -z "$as_dir" && as_dir=.
7220 for ac_exec_ext in '' $ac_executable_extensions; do
7221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7222 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7230 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7234 BINPWD=$ac_cv_path_BINPWD
7235 if test -n "$BINPWD"; then
7236 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7237 echo "${ECHO_T}$BINPWD" >&6; }
7239 { echo "$as_me:$LINENO: result: no" >&5
7240 echo "${ECHO_T}no" >&6; }
7245 # Extract the first word of "Graphviz", so it can be a program name with args.
7246 set dummy Graphviz; ac_word=$2
7247 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7249 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7250 echo $ECHO_N "(cached) $ECHO_C" >&6
7254 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7261 test -z "$as_dir" && as_dir=.
7262 for ac_exec_ext in '' $ac_executable_extensions; do
7263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7264 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7272 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7276 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7277 if test -n "$GRAPHVIZ"; then
7278 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7279 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7281 { echo "$as_me:$LINENO: result: no" >&5
7282 echo "${ECHO_T}no" >&6; }
7286 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7288 cat >>confdefs.h <<\_ACEOF
7289 #define HAVE_GRAPHVIZ 1
7292 if test "$llvm_cv_os_type" = "MingW" ; then
7293 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7296 cat >>confdefs.h <<_ACEOF
7297 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7301 # Extract the first word of "dot", so it can be a program name with args.
7302 set dummy dot; ac_word=$2
7303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7305 if test "${ac_cv_path_DOT+set}" = set; then
7306 echo $ECHO_N "(cached) $ECHO_C" >&6
7310 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7317 test -z "$as_dir" && as_dir=.
7318 for ac_exec_ext in '' $ac_executable_extensions; do
7319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7320 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7328 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7333 if test -n "$DOT"; then
7334 { echo "$as_me:$LINENO: result: $DOT" >&5
7335 echo "${ECHO_T}$DOT" >&6; }
7337 { echo "$as_me:$LINENO: result: no" >&5
7338 echo "${ECHO_T}no" >&6; }
7342 if test "$DOT" != "echo dot" ; then
7344 cat >>confdefs.h <<\_ACEOF
7348 if test "$llvm_cv_os_type" = "MingW" ; then
7349 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7352 cat >>confdefs.h <<_ACEOF
7353 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7357 # Extract the first word of "fdp", so it can be a program name with args.
7358 set dummy fdp; ac_word=$2
7359 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7361 if test "${ac_cv_path_FDP+set}" = set; then
7362 echo $ECHO_N "(cached) $ECHO_C" >&6
7366 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7373 test -z "$as_dir" && as_dir=.
7374 for ac_exec_ext in '' $ac_executable_extensions; do
7375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7376 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7384 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7389 if test -n "$FDP"; then
7390 { echo "$as_me:$LINENO: result: $FDP" >&5
7391 echo "${ECHO_T}$FDP" >&6; }
7393 { echo "$as_me:$LINENO: result: no" >&5
7394 echo "${ECHO_T}no" >&6; }
7398 if test "$FDP" != "echo fdp" ; then
7400 cat >>confdefs.h <<\_ACEOF
7404 if test "$llvm_cv_os_type" = "MingW" ; then
7405 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7408 cat >>confdefs.h <<_ACEOF
7409 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7413 # Extract the first word of "neato", so it can be a program name with args.
7414 set dummy neato; ac_word=$2
7415 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7417 if test "${ac_cv_path_NEATO+set}" = set; then
7418 echo $ECHO_N "(cached) $ECHO_C" >&6
7422 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7429 test -z "$as_dir" && as_dir=.
7430 for ac_exec_ext in '' $ac_executable_extensions; do
7431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7432 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7440 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7444 NEATO=$ac_cv_path_NEATO
7445 if test -n "$NEATO"; then
7446 { echo "$as_me:$LINENO: result: $NEATO" >&5
7447 echo "${ECHO_T}$NEATO" >&6; }
7449 { echo "$as_me:$LINENO: result: no" >&5
7450 echo "${ECHO_T}no" >&6; }
7454 if test "$NEATO" != "echo neato" ; then
7456 cat >>confdefs.h <<\_ACEOF
7457 #define HAVE_NEATO 1
7460 if test "$llvm_cv_os_type" = "MingW" ; then
7461 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7464 cat >>confdefs.h <<_ACEOF
7465 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7469 # Extract the first word of "twopi", so it can be a program name with args.
7470 set dummy twopi; ac_word=$2
7471 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7473 if test "${ac_cv_path_TWOPI+set}" = set; then
7474 echo $ECHO_N "(cached) $ECHO_C" >&6
7478 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7485 test -z "$as_dir" && as_dir=.
7486 for ac_exec_ext in '' $ac_executable_extensions; do
7487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7488 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7496 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7500 TWOPI=$ac_cv_path_TWOPI
7501 if test -n "$TWOPI"; then
7502 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7503 echo "${ECHO_T}$TWOPI" >&6; }
7505 { echo "$as_me:$LINENO: result: no" >&5
7506 echo "${ECHO_T}no" >&6; }
7510 if test "$TWOPI" != "echo twopi" ; then
7512 cat >>confdefs.h <<\_ACEOF
7513 #define HAVE_TWOPI 1
7516 if test "$llvm_cv_os_type" = "MingW" ; then
7517 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7520 cat >>confdefs.h <<_ACEOF
7521 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7525 # Extract the first word of "circo", so it can be a program name with args.
7526 set dummy circo; ac_word=$2
7527 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7529 if test "${ac_cv_path_CIRCO+set}" = set; then
7530 echo $ECHO_N "(cached) $ECHO_C" >&6
7534 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7541 test -z "$as_dir" && as_dir=.
7542 for ac_exec_ext in '' $ac_executable_extensions; do
7543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7544 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7552 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7556 CIRCO=$ac_cv_path_CIRCO
7557 if test -n "$CIRCO"; then
7558 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7559 echo "${ECHO_T}$CIRCO" >&6; }
7561 { echo "$as_me:$LINENO: result: no" >&5
7562 echo "${ECHO_T}no" >&6; }
7566 if test "$CIRCO" != "echo circo" ; then
7568 cat >>confdefs.h <<\_ACEOF
7569 #define HAVE_CIRCO 1
7572 if test "$llvm_cv_os_type" = "MingW" ; then
7573 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7576 cat >>confdefs.h <<_ACEOF
7577 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7581 for ac_prog in gv gsview32
7583 # Extract the first word of "$ac_prog", so it can be a program name with args.
7584 set dummy $ac_prog; ac_word=$2
7585 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7587 if test "${ac_cv_path_GV+set}" = set; then
7588 echo $ECHO_N "(cached) $ECHO_C" >&6
7592 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7599 test -z "$as_dir" && as_dir=.
7600 for ac_exec_ext in '' $ac_executable_extensions; do
7601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7602 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7614 if test -n "$GV"; then
7615 { echo "$as_me:$LINENO: result: $GV" >&5
7616 echo "${ECHO_T}$GV" >&6; }
7618 { echo "$as_me:$LINENO: result: no" >&5
7619 echo "${ECHO_T}no" >&6; }
7623 test -n "$GV" && break
7625 test -n "$GV" || GV="echo gv"
7627 if test "$GV" != "echo gv" ; then
7629 cat >>confdefs.h <<\_ACEOF
7633 if test "$llvm_cv_os_type" = "MingW" ; then
7634 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7637 cat >>confdefs.h <<_ACEOF
7638 #define LLVM_PATH_GV "$GV${EXEEXT}"
7642 # Extract the first word of "dotty", so it can be a program name with args.
7643 set dummy dotty; ac_word=$2
7644 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7646 if test "${ac_cv_path_DOTTY+set}" = set; then
7647 echo $ECHO_N "(cached) $ECHO_C" >&6
7651 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7658 test -z "$as_dir" && as_dir=.
7659 for ac_exec_ext in '' $ac_executable_extensions; do
7660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7661 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7669 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7673 DOTTY=$ac_cv_path_DOTTY
7674 if test -n "$DOTTY"; then
7675 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7676 echo "${ECHO_T}$DOTTY" >&6; }
7678 { echo "$as_me:$LINENO: result: no" >&5
7679 echo "${ECHO_T}no" >&6; }
7683 if test "$DOTTY" != "echo dotty" ; then
7685 cat >>confdefs.h <<\_ACEOF
7686 #define HAVE_DOTTY 1
7689 if test "$llvm_cv_os_type" = "MingW" ; then
7690 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7693 cat >>confdefs.h <<_ACEOF
7694 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7700 # Extract the first word of "perl", so it can be a program name with args.
7701 set dummy perl; ac_word=$2
7702 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7704 if test "${ac_cv_path_PERL+set}" = set; then
7705 echo $ECHO_N "(cached) $ECHO_C" >&6
7709 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7716 test -z "$as_dir" && as_dir=.
7717 for ac_exec_ext in '' $ac_executable_extensions; do
7718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7719 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7727 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7731 PERL=$ac_cv_path_PERL
7732 if test -n "$PERL"; then
7733 { echo "$as_me:$LINENO: result: $PERL" >&5
7734 echo "${ECHO_T}$PERL" >&6; }
7736 { echo "$as_me:$LINENO: result: no" >&5
7737 echo "${ECHO_T}no" >&6; }
7741 if test "$PERL" != "none"; then
7742 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7743 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7744 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7745 { echo "$as_me:$LINENO: result: yes" >&5
7746 echo "${ECHO_T}yes" >&6; }
7749 { echo "$as_me:$LINENO: result: not found" >&5
7750 echo "${ECHO_T}not found" >&6; }
7755 if test x"$PERL" = xnone; then
7758 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7759 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7760 { (exit 1); exit 1; }; }
7766 # Find a good install program. We prefer a C program (faster),
7767 # so one script is as good as another. But avoid the broken or
7768 # incompatible versions:
7769 # SysV /etc/install, /usr/sbin/install
7770 # SunOS /usr/etc/install
7771 # IRIX /sbin/install
7773 # AmigaOS /C/install, which installs bootblocks on floppy discs
7774 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7775 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7776 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7777 # OS/2's system install, which has a completely different semantic
7778 # ./install, which can be erroneously created by make from ./install.sh.
7779 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7780 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7781 if test -z "$INSTALL"; then
7782 if test "${ac_cv_path_install+set}" = set; then
7783 echo $ECHO_N "(cached) $ECHO_C" >&6
7785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7789 test -z "$as_dir" && as_dir=.
7790 # Account for people who put trailing slashes in PATH elements.
7792 ./ | .// | /cC/* | \
7793 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7794 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7797 # OSF1 and SCO ODT 3.0 have their own names for install.
7798 # Don't use installbsd from OSF since it installs stuff as root
7800 for ac_prog in ginstall scoinst install; do
7801 for ac_exec_ext in '' $ac_executable_extensions; do
7802 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7803 if test $ac_prog = install &&
7804 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7805 # AIX install. It has an incompatible calling convention.
7807 elif test $ac_prog = install &&
7808 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7809 # program-specific install script used by HP pwplus--don't use.
7812 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7825 if test "${ac_cv_path_install+set}" = set; then
7826 INSTALL=$ac_cv_path_install
7828 # As a last resort, use the slow shell script. Don't cache a
7829 # value for INSTALL within a source directory, because that will
7830 # break other packages using the cache if that directory is
7831 # removed, or if the value is a relative name.
7832 INSTALL=$ac_install_sh
7835 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7836 echo "${ECHO_T}$INSTALL" >&6; }
7838 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7839 # It thinks the first close brace ends the variable substitution.
7840 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7842 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7844 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7847 # Extract the first word of "bzip2", so it can be a program name with args.
7848 set dummy bzip2; ac_word=$2
7849 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7851 if test "${ac_cv_path_BZIP2+set}" = set; then
7852 echo $ECHO_N "(cached) $ECHO_C" >&6
7856 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7863 test -z "$as_dir" && as_dir=.
7864 for ac_exec_ext in '' $ac_executable_extensions; do
7865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7866 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7877 BZIP2=$ac_cv_path_BZIP2
7878 if test -n "$BZIP2"; then
7879 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7880 echo "${ECHO_T}$BZIP2" >&6; }
7882 { echo "$as_me:$LINENO: result: no" >&5
7883 echo "${ECHO_T}no" >&6; }
7887 # Extract the first word of "doxygen", so it can be a program name with args.
7888 set dummy doxygen; ac_word=$2
7889 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7891 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7892 echo $ECHO_N "(cached) $ECHO_C" >&6
7896 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7903 test -z "$as_dir" && as_dir=.
7904 for ac_exec_ext in '' $ac_executable_extensions; do
7905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7906 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7917 DOXYGEN=$ac_cv_path_DOXYGEN
7918 if test -n "$DOXYGEN"; then
7919 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7920 echo "${ECHO_T}$DOXYGEN" >&6; }
7922 { echo "$as_me:$LINENO: result: no" >&5
7923 echo "${ECHO_T}no" >&6; }
7927 # Extract the first word of "groff", so it can be a program name with args.
7928 set dummy groff; ac_word=$2
7929 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7931 if test "${ac_cv_path_GROFF+set}" = set; then
7932 echo $ECHO_N "(cached) $ECHO_C" >&6
7936 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7943 test -z "$as_dir" && as_dir=.
7944 for ac_exec_ext in '' $ac_executable_extensions; do
7945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7946 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7957 GROFF=$ac_cv_path_GROFF
7958 if test -n "$GROFF"; then
7959 { echo "$as_me:$LINENO: result: $GROFF" >&5
7960 echo "${ECHO_T}$GROFF" >&6; }
7962 { echo "$as_me:$LINENO: result: no" >&5
7963 echo "${ECHO_T}no" >&6; }
7967 # Extract the first word of "gzip", so it can be a program name with args.
7968 set dummy gzip; ac_word=$2
7969 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7971 if test "${ac_cv_path_GZIP+set}" = set; then
7972 echo $ECHO_N "(cached) $ECHO_C" >&6
7976 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7983 test -z "$as_dir" && as_dir=.
7984 for ac_exec_ext in '' $ac_executable_extensions; do
7985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7986 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7997 GZIP=$ac_cv_path_GZIP
7998 if test -n "$GZIP"; then
7999 { echo "$as_me:$LINENO: result: $GZIP" >&5
8000 echo "${ECHO_T}$GZIP" >&6; }
8002 { echo "$as_me:$LINENO: result: no" >&5
8003 echo "${ECHO_T}no" >&6; }
8007 # Extract the first word of "pod2html", so it can be a program name with args.
8008 set dummy pod2html; ac_word=$2
8009 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8011 if test "${ac_cv_path_POD2HTML+set}" = set; then
8012 echo $ECHO_N "(cached) $ECHO_C" >&6
8016 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8023 test -z "$as_dir" && as_dir=.
8024 for ac_exec_ext in '' $ac_executable_extensions; do
8025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8026 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8037 POD2HTML=$ac_cv_path_POD2HTML
8038 if test -n "$POD2HTML"; then
8039 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8040 echo "${ECHO_T}$POD2HTML" >&6; }
8042 { echo "$as_me:$LINENO: result: no" >&5
8043 echo "${ECHO_T}no" >&6; }
8047 # Extract the first word of "pod2man", so it can be a program name with args.
8048 set dummy pod2man; ac_word=$2
8049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8051 if test "${ac_cv_path_POD2MAN+set}" = set; then
8052 echo $ECHO_N "(cached) $ECHO_C" >&6
8056 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8063 test -z "$as_dir" && as_dir=.
8064 for ac_exec_ext in '' $ac_executable_extensions; do
8065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8066 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8077 POD2MAN=$ac_cv_path_POD2MAN
8078 if test -n "$POD2MAN"; then
8079 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8080 echo "${ECHO_T}$POD2MAN" >&6; }
8082 { echo "$as_me:$LINENO: result: no" >&5
8083 echo "${ECHO_T}no" >&6; }
8087 # Extract the first word of "runtest", so it can be a program name with args.
8088 set dummy runtest; ac_word=$2
8089 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8091 if test "${ac_cv_path_RUNTEST+set}" = set; then
8092 echo $ECHO_N "(cached) $ECHO_C" >&6
8096 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8103 test -z "$as_dir" && as_dir=.
8104 for ac_exec_ext in '' $ac_executable_extensions; do
8105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8106 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8117 RUNTEST=$ac_cv_path_RUNTEST
8118 if test -n "$RUNTEST"; then
8119 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8120 echo "${ECHO_T}$RUNTEST" >&6; }
8122 { echo "$as_me:$LINENO: result: no" >&5
8123 echo "${ECHO_T}no" >&6; }
8129 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8130 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8132 # Check whether --with-tclinclude was given.
8133 if test "${with_tclinclude+set}" = set; then
8134 withval=$with_tclinclude; with_tclinclude=${withval}
8139 if test "${ac_cv_path_tclsh+set}" = set; then
8140 echo $ECHO_N "(cached) $ECHO_C" >&6
8143 if test x"${with_tclinclude}" != x ; then
8144 if test -f ${with_tclinclude}/tclsh ; then
8145 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8146 elif test -f ${with_tclinclude}/src/tclsh ; then
8147 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8149 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8150 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8151 { (exit 1); exit 1; }; }
8157 if test x"${ac_cv_path_tclsh}" = x ; then
8158 { echo "$as_me:$LINENO: result: none" >&5
8159 echo "${ECHO_T}none" >&6; }
8160 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
8162 # Extract the first word of "$ac_prog", so it can be a program name with args.
8163 set dummy $ac_prog; ac_word=$2
8164 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8166 if test "${ac_cv_path_TCLSH+set}" = set; then
8167 echo $ECHO_N "(cached) $ECHO_C" >&6
8171 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8178 test -z "$as_dir" && as_dir=.
8179 for ac_exec_ext in '' $ac_executable_extensions; do
8180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8181 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8192 TCLSH=$ac_cv_path_TCLSH
8193 if test -n "$TCLSH"; then
8194 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8195 echo "${ECHO_T}$TCLSH" >&6; }
8197 { echo "$as_me:$LINENO: result: no" >&5
8198 echo "${ECHO_T}no" >&6; }
8202 test -n "$TCLSH" && break
8205 if test x"${TCLSH}" = x ; then
8206 ac_cv_path_tclsh='';
8208 ac_cv_path_tclsh="${TCLSH}";
8211 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8212 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8213 TCLSH="${ac_cv_path_tclsh}"
8217 # Extract the first word of "zip", so it can be a program name with args.
8218 set dummy zip; ac_word=$2
8219 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8221 if test "${ac_cv_path_ZIP+set}" = set; then
8222 echo $ECHO_N "(cached) $ECHO_C" >&6
8226 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8233 test -z "$as_dir" && as_dir=.
8234 for ac_exec_ext in '' $ac_executable_extensions; do
8235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8236 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8248 if test -n "$ZIP"; then
8249 { echo "$as_me:$LINENO: result: $ZIP" >&5
8250 echo "${ECHO_T}$ZIP" >&6; }
8252 { echo "$as_me:$LINENO: result: no" >&5
8253 echo "${ECHO_T}no" >&6; }
8257 for ac_prog in ocamlc
8259 # Extract the first word of "$ac_prog", so it can be a program name with args.
8260 set dummy $ac_prog; ac_word=$2
8261 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8263 if test "${ac_cv_path_OCAMLC+set}" = set; then
8264 echo $ECHO_N "(cached) $ECHO_C" >&6
8268 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8275 test -z "$as_dir" && as_dir=.
8276 for ac_exec_ext in '' $ac_executable_extensions; do
8277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8278 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8289 OCAMLC=$ac_cv_path_OCAMLC
8290 if test -n "$OCAMLC"; then
8291 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8292 echo "${ECHO_T}$OCAMLC" >&6; }
8294 { echo "$as_me:$LINENO: result: no" >&5
8295 echo "${ECHO_T}no" >&6; }
8299 test -n "$OCAMLC" && break
8302 for ac_prog in ocamlopt
8304 # Extract the first word of "$ac_prog", so it can be a program name with args.
8305 set dummy $ac_prog; ac_word=$2
8306 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8308 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8309 echo $ECHO_N "(cached) $ECHO_C" >&6
8313 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8320 test -z "$as_dir" && as_dir=.
8321 for ac_exec_ext in '' $ac_executable_extensions; do
8322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8323 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8334 OCAMLOPT=$ac_cv_path_OCAMLOPT
8335 if test -n "$OCAMLOPT"; then
8336 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8337 echo "${ECHO_T}$OCAMLOPT" >&6; }
8339 { echo "$as_me:$LINENO: result: no" >&5
8340 echo "${ECHO_T}no" >&6; }
8344 test -n "$OCAMLOPT" && break
8347 for ac_prog in ocamldep
8349 # Extract the first word of "$ac_prog", so it can be a program name with args.
8350 set dummy $ac_prog; ac_word=$2
8351 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8353 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8354 echo $ECHO_N "(cached) $ECHO_C" >&6
8358 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8365 test -z "$as_dir" && as_dir=.
8366 for ac_exec_ext in '' $ac_executable_extensions; do
8367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8368 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8379 OCAMLDEP=$ac_cv_path_OCAMLDEP
8380 if test -n "$OCAMLDEP"; then
8381 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8382 echo "${ECHO_T}$OCAMLDEP" >&6; }
8384 { echo "$as_me:$LINENO: result: no" >&5
8385 echo "${ECHO_T}no" >&6; }
8389 test -n "$OCAMLDEP" && break
8392 for ac_prog in ocamldoc
8394 # Extract the first word of "$ac_prog", so it can be a program name with args.
8395 set dummy $ac_prog; ac_word=$2
8396 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8398 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8399 echo $ECHO_N "(cached) $ECHO_C" >&6
8403 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8410 test -z "$as_dir" && as_dir=.
8411 for ac_exec_ext in '' $ac_executable_extensions; do
8412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8413 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8424 OCAMLDOC=$ac_cv_path_OCAMLDOC
8425 if test -n "$OCAMLDOC"; then
8426 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8427 echo "${ECHO_T}$OCAMLDOC" >&6; }
8429 { echo "$as_me:$LINENO: result: no" >&5
8430 echo "${ECHO_T}no" >&6; }
8434 test -n "$OCAMLDOC" && break
8437 for ac_prog in gas as
8439 # Extract the first word of "$ac_prog", so it can be a program name with args.
8440 set dummy $ac_prog; ac_word=$2
8441 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8443 if test "${ac_cv_path_GAS+set}" = set; then
8444 echo $ECHO_N "(cached) $ECHO_C" >&6
8448 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8455 test -z "$as_dir" && as_dir=.
8456 for ac_exec_ext in '' $ac_executable_extensions; do
8457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8458 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8470 if test -n "$GAS"; then
8471 { echo "$as_me:$LINENO: result: $GAS" >&5
8472 echo "${ECHO_T}$GAS" >&6; }
8474 { echo "$as_me:$LINENO: result: no" >&5
8475 echo "${ECHO_T}no" >&6; }
8479 test -n "$GAS" && break
8483 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8484 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8485 if test "${llvm_cv_link_use_r+set}" = set; then
8486 echo $ECHO_N "(cached) $ECHO_C" >&6
8489 ac_cpp='$CPP $CPPFLAGS'
8490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8495 CFLAGS="$CFLAGS -Wl,-R."
8496 cat >conftest.$ac_ext <<_ACEOF
8499 cat confdefs.h >>conftest.$ac_ext
8500 cat >>conftest.$ac_ext <<_ACEOF
8501 /* end confdefs.h. */
8506 int main() { return 0; }
8511 rm -f conftest.$ac_objext conftest$ac_exeext
8512 if { (ac_try="$ac_link"
8514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8515 *) ac_try_echo=$ac_try;;
8517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8518 (eval "$ac_link") 2>conftest.er1
8520 grep -v '^ *+' conftest.er1 >conftest.err
8522 cat conftest.err >&5
8523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524 (exit $ac_status); } &&
8525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8526 { (case "(($ac_try" in
8527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8528 *) ac_try_echo=$ac_try;;
8530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8531 (eval "$ac_try") 2>&5
8533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534 (exit $ac_status); }; } &&
8535 { ac_try='test -s conftest$ac_exeext'
8536 { (case "(($ac_try" in
8537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8538 *) ac_try_echo=$ac_try;;
8540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8541 (eval "$ac_try") 2>&5
8543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544 (exit $ac_status); }; }; then
8545 llvm_cv_link_use_r=yes
8547 echo "$as_me: failed program was:" >&5
8548 sed 's/^/| /' conftest.$ac_ext >&5
8550 llvm_cv_link_use_r=no
8553 rm -f core conftest.err conftest.$ac_objext \
8554 conftest$ac_exeext conftest.$ac_ext
8557 ac_cpp='$CPP $CPPFLAGS'
8558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8564 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8565 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8566 if test "$llvm_cv_link_use_r" = yes ; then
8568 cat >>confdefs.h <<\_ACEOF
8569 #define HAVE_LINK_R 1
8575 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8576 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8577 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8578 echo $ECHO_N "(cached) $ECHO_C" >&6
8581 ac_cpp='$CPP $CPPFLAGS'
8582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8587 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8588 cat >conftest.$ac_ext <<_ACEOF
8591 cat confdefs.h >>conftest.$ac_ext
8592 cat >>conftest.$ac_ext <<_ACEOF
8593 /* end confdefs.h. */
8598 int main() { return 0; }
8603 rm -f conftest.$ac_objext conftest$ac_exeext
8604 if { (ac_try="$ac_link"
8606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8607 *) ac_try_echo=$ac_try;;
8609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8610 (eval "$ac_link") 2>conftest.er1
8612 grep -v '^ *+' conftest.er1 >conftest.err
8614 cat conftest.err >&5
8615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616 (exit $ac_status); } &&
8617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8618 { (case "(($ac_try" in
8619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8620 *) ac_try_echo=$ac_try;;
8622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8623 (eval "$ac_try") 2>&5
8625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626 (exit $ac_status); }; } &&
8627 { ac_try='test -s conftest$ac_exeext'
8628 { (case "(($ac_try" in
8629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8630 *) ac_try_echo=$ac_try;;
8632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8633 (eval "$ac_try") 2>&5
8635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636 (exit $ac_status); }; }; then
8637 llvm_cv_link_use_export_dynamic=yes
8639 echo "$as_me: failed program was:" >&5
8640 sed 's/^/| /' conftest.$ac_ext >&5
8642 llvm_cv_link_use_export_dynamic=no
8645 rm -f core conftest.err conftest.$ac_objext \
8646 conftest$ac_exeext conftest.$ac_ext
8649 ac_cpp='$CPP $CPPFLAGS'
8650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8656 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8657 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8658 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8660 cat >>confdefs.h <<\_ACEOF
8661 #define HAVE_LINK_EXPORT_DYNAMIC 1
8669 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8670 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8671 if test "${ac_cv_c_const+set}" = set; then
8672 echo $ECHO_N "(cached) $ECHO_C" >&6
8674 cat >conftest.$ac_ext <<_ACEOF
8677 cat confdefs.h >>conftest.$ac_ext
8678 cat >>conftest.$ac_ext <<_ACEOF
8679 /* end confdefs.h. */
8684 /* FIXME: Include the comments suggested by Paul. */
8686 /* Ultrix mips cc rejects this. */
8687 typedef int charset[2];
8689 /* SunOS 4.1.1 cc rejects this. */
8690 char const *const *ccp;
8692 /* NEC SVR4.0.2 mips cc rejects this. */
8693 struct point {int x, y;};
8694 static struct point const zero = {0,0};
8695 /* AIX XL C 1.02.0.0 rejects this.
8696 It does not let you subtract one const X* pointer from another in
8697 an arm of an if-expression whose if-part is not a constant
8699 const char *g = "string";
8700 ccp = &g + (g ? g-g : 0);
8701 /* HPUX 7.0 cc rejects these. */
8704 ccp = (char const *const *) p;
8705 { /* SCO 3.2v4 cc rejects this. */
8707 char const *s = 0 ? (char *) 0 : (char const *) 0;
8712 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8714 const int *foo = &x[0];
8717 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8718 typedef const int *iptr;
8722 { /* AIX XL C 1.02.0.0 rejects this saying
8723 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8724 struct s { int j; const int *ap[3]; };
8725 struct s *b; b->j = 5;
8727 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8731 return !x[0] && !zero.x;
8738 rm -f conftest.$ac_objext
8739 if { (ac_try="$ac_compile"
8741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8742 *) ac_try_echo=$ac_try;;
8744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8745 (eval "$ac_compile") 2>conftest.er1
8747 grep -v '^ *+' conftest.er1 >conftest.err
8749 cat conftest.err >&5
8750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8751 (exit $ac_status); } &&
8752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8753 { (case "(($ac_try" in
8754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8755 *) ac_try_echo=$ac_try;;
8757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8758 (eval "$ac_try") 2>&5
8760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8761 (exit $ac_status); }; } &&
8762 { ac_try='test -s conftest.$ac_objext'
8763 { (case "(($ac_try" in
8764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8765 *) ac_try_echo=$ac_try;;
8767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8768 (eval "$ac_try") 2>&5
8770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771 (exit $ac_status); }; }; then
8774 echo "$as_me: failed program was:" >&5
8775 sed 's/^/| /' conftest.$ac_ext >&5
8780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8782 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8783 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8784 if test $ac_cv_c_const = no; then
8786 cat >>confdefs.h <<\_ACEOF
8798 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8799 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8800 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8801 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8802 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8803 echo $ECHO_N "(cached) $ECHO_C" >&6
8805 cat >conftest.$ac_ext <<_ACEOF
8808 cat confdefs.h >>conftest.$ac_ext
8809 cat >>conftest.$ac_ext <<_ACEOF
8810 /* end confdefs.h. */
8811 #include <sys/types.h>
8823 rm -f conftest.$ac_objext
8824 if { (ac_try="$ac_compile"
8826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8827 *) ac_try_echo=$ac_try;;
8829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8830 (eval "$ac_compile") 2>conftest.er1
8832 grep -v '^ *+' conftest.er1 >conftest.err
8834 cat conftest.err >&5
8835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836 (exit $ac_status); } &&
8837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8838 { (case "(($ac_try" in
8839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8840 *) ac_try_echo=$ac_try;;
8842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8843 (eval "$ac_try") 2>&5
8845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8846 (exit $ac_status); }; } &&
8847 { ac_try='test -s conftest.$ac_objext'
8848 { (case "(($ac_try" in
8849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8850 *) ac_try_echo=$ac_try;;
8852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8853 (eval "$ac_try") 2>&5
8855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8856 (exit $ac_status); }; }; then
8857 eval "$as_ac_Header=yes"
8859 echo "$as_me: failed program was:" >&5
8860 sed 's/^/| /' conftest.$ac_ext >&5
8862 eval "$as_ac_Header=no"
8865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8867 ac_res=`eval echo '${'$as_ac_Header'}'`
8868 { echo "$as_me:$LINENO: result: $ac_res" >&5
8869 echo "${ECHO_T}$ac_res" >&6; }
8870 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8871 cat >>confdefs.h <<_ACEOF
8872 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8875 ac_header_dirent=$ac_hdr; break
8879 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8880 if test $ac_header_dirent = dirent.h; then
8881 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8882 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8883 if test "${ac_cv_search_opendir+set}" = set; then
8884 echo $ECHO_N "(cached) $ECHO_C" >&6
8886 ac_func_search_save_LIBS=$LIBS
8887 cat >conftest.$ac_ext <<_ACEOF
8890 cat confdefs.h >>conftest.$ac_ext
8891 cat >>conftest.$ac_ext <<_ACEOF
8892 /* end confdefs.h. */
8894 /* Override any GCC internal prototype to avoid an error.
8895 Use char because int might match the return type of a GCC
8896 builtin and then its argument prototype would still apply. */
8909 for ac_lib in '' dir; do
8910 if test -z "$ac_lib"; then
8911 ac_res="none required"
8914 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8916 rm -f conftest.$ac_objext conftest$ac_exeext
8917 if { (ac_try="$ac_link"
8919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8920 *) ac_try_echo=$ac_try;;
8922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8923 (eval "$ac_link") 2>conftest.er1
8925 grep -v '^ *+' conftest.er1 >conftest.err
8927 cat conftest.err >&5
8928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929 (exit $ac_status); } &&
8930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8931 { (case "(($ac_try" in
8932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8933 *) ac_try_echo=$ac_try;;
8935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8936 (eval "$ac_try") 2>&5
8938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939 (exit $ac_status); }; } &&
8940 { ac_try='test -s conftest$ac_exeext'
8941 { (case "(($ac_try" in
8942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8943 *) ac_try_echo=$ac_try;;
8945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8946 (eval "$ac_try") 2>&5
8948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949 (exit $ac_status); }; }; then
8950 ac_cv_search_opendir=$ac_res
8952 echo "$as_me: failed program was:" >&5
8953 sed 's/^/| /' conftest.$ac_ext >&5
8958 rm -f core conftest.err conftest.$ac_objext \
8960 if test "${ac_cv_search_opendir+set}" = set; then
8964 if test "${ac_cv_search_opendir+set}" = set; then
8967 ac_cv_search_opendir=no
8970 LIBS=$ac_func_search_save_LIBS
8972 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8973 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8974 ac_res=$ac_cv_search_opendir
8975 if test "$ac_res" != no; then
8976 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8981 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8982 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8983 if test "${ac_cv_search_opendir+set}" = set; then
8984 echo $ECHO_N "(cached) $ECHO_C" >&6
8986 ac_func_search_save_LIBS=$LIBS
8987 cat >conftest.$ac_ext <<_ACEOF
8990 cat confdefs.h >>conftest.$ac_ext
8991 cat >>conftest.$ac_ext <<_ACEOF
8992 /* end confdefs.h. */
8994 /* Override any GCC internal prototype to avoid an error.
8995 Use char because int might match the return type of a GCC
8996 builtin and then its argument prototype would still apply. */
9009 for ac_lib in '' x; do
9010 if test -z "$ac_lib"; then
9011 ac_res="none required"
9014 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9016 rm -f conftest.$ac_objext conftest$ac_exeext
9017 if { (ac_try="$ac_link"
9019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9020 *) ac_try_echo=$ac_try;;
9022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9023 (eval "$ac_link") 2>conftest.er1
9025 grep -v '^ *+' conftest.er1 >conftest.err
9027 cat conftest.err >&5
9028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9029 (exit $ac_status); } &&
9030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9031 { (case "(($ac_try" in
9032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9033 *) ac_try_echo=$ac_try;;
9035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9036 (eval "$ac_try") 2>&5
9038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9039 (exit $ac_status); }; } &&
9040 { ac_try='test -s conftest$ac_exeext'
9041 { (case "(($ac_try" in
9042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9043 *) ac_try_echo=$ac_try;;
9045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9046 (eval "$ac_try") 2>&5
9048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049 (exit $ac_status); }; }; then
9050 ac_cv_search_opendir=$ac_res
9052 echo "$as_me: failed program was:" >&5
9053 sed 's/^/| /' conftest.$ac_ext >&5
9058 rm -f core conftest.err conftest.$ac_objext \
9060 if test "${ac_cv_search_opendir+set}" = set; then
9064 if test "${ac_cv_search_opendir+set}" = set; then
9067 ac_cv_search_opendir=no
9070 LIBS=$ac_func_search_save_LIBS
9072 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9073 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9074 ac_res=$ac_cv_search_opendir
9075 if test "$ac_res" != no; then
9076 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9083 for ac_header in dlfcn.h
9085 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9087 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9088 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9089 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9090 echo $ECHO_N "(cached) $ECHO_C" >&6
9092 ac_res=`eval echo '${'$as_ac_Header'}'`
9093 { echo "$as_me:$LINENO: result: $ac_res" >&5
9094 echo "${ECHO_T}$ac_res" >&6; }
9096 # Is the header compilable?
9097 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9098 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9099 cat >conftest.$ac_ext <<_ACEOF
9102 cat confdefs.h >>conftest.$ac_ext
9103 cat >>conftest.$ac_ext <<_ACEOF
9104 /* end confdefs.h. */
9105 $ac_includes_default
9106 #include <$ac_header>
9108 rm -f conftest.$ac_objext
9109 if { (ac_try="$ac_compile"
9111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9112 *) ac_try_echo=$ac_try;;
9114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9115 (eval "$ac_compile") 2>conftest.er1
9117 grep -v '^ *+' conftest.er1 >conftest.err
9119 cat conftest.err >&5
9120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121 (exit $ac_status); } &&
9122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9123 { (case "(($ac_try" in
9124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9125 *) ac_try_echo=$ac_try;;
9127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9128 (eval "$ac_try") 2>&5
9130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131 (exit $ac_status); }; } &&
9132 { ac_try='test -s conftest.$ac_objext'
9133 { (case "(($ac_try" in
9134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9135 *) ac_try_echo=$ac_try;;
9137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9138 (eval "$ac_try") 2>&5
9140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141 (exit $ac_status); }; }; then
9142 ac_header_compiler=yes
9144 echo "$as_me: failed program was:" >&5
9145 sed 's/^/| /' conftest.$ac_ext >&5
9147 ac_header_compiler=no
9150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9151 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9152 echo "${ECHO_T}$ac_header_compiler" >&6; }
9154 # Is the header present?
9155 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9156 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9157 cat >conftest.$ac_ext <<_ACEOF
9160 cat confdefs.h >>conftest.$ac_ext
9161 cat >>conftest.$ac_ext <<_ACEOF
9162 /* end confdefs.h. */
9163 #include <$ac_header>
9165 if { (ac_try="$ac_cpp conftest.$ac_ext"
9167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9168 *) ac_try_echo=$ac_try;;
9170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9171 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9173 grep -v '^ *+' conftest.er1 >conftest.err
9175 cat conftest.err >&5
9176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9177 (exit $ac_status); } >/dev/null; then
9178 if test -s conftest.err; then
9179 ac_cpp_err=$ac_c_preproc_warn_flag
9180 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9187 if test -z "$ac_cpp_err"; then
9188 ac_header_preproc=yes
9190 echo "$as_me: failed program was:" >&5
9191 sed 's/^/| /' conftest.$ac_ext >&5
9193 ac_header_preproc=no
9196 rm -f conftest.err conftest.$ac_ext
9197 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9198 echo "${ECHO_T}$ac_header_preproc" >&6; }
9200 # So? What about this header?
9201 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9203 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9204 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9205 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9206 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9207 ac_header_preproc=yes
9210 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9211 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9212 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9213 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9214 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9215 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9216 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9217 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9218 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9219 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9220 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9221 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9223 ## ----------------------------------- ##
9224 ## Report this to llvmbugs@cs.uiuc.edu ##
9225 ## ----------------------------------- ##
9227 ) | sed "s/^/$as_me: WARNING: /" >&2
9230 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9233 echo $ECHO_N "(cached) $ECHO_C" >&6
9235 eval "$as_ac_Header=\$ac_header_preproc"
9237 ac_res=`eval echo '${'$as_ac_Header'}'`
9238 { echo "$as_me:$LINENO: result: $ac_res" >&5
9239 echo "${ECHO_T}$ac_res" >&6; }
9242 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9243 cat >>confdefs.h <<_ACEOF
9244 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9251 # Check whether --enable-ltdl-install was given.
9252 if test "${enable_ltdl_install+set}" = set; then
9253 enableval=$enable_ltdl_install;
9259 if test x"${enable_ltdl_install-no}" != xno; then
9261 INSTALL_LTDL_FALSE='#'
9263 INSTALL_LTDL_TRUE='#'
9269 if test x"${enable_ltdl_convenience-no}" != xno; then
9270 CONVENIENCE_LTDL_TRUE=
9271 CONVENIENCE_LTDL_FALSE='#'
9273 CONVENIENCE_LTDL_TRUE='#'
9274 CONVENIENCE_LTDL_FALSE=
9278 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9279 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9281 libname_spec='lib$name'
9289 shlibpath_overrides_runpath=unknown
9291 dynamic_linker="$host_os ld.so"
9292 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9293 if test "$GCC" = yes; then
9294 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9295 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9296 # if the path contains ";" then we assume it to be the separator
9297 # otherwise default to the standard path separator (i.e. ":") - it is
9298 # assumed that no part of a normal pathname contains ";" but that should
9299 # okay in the real world where ";" in dirpaths is itself problematic.
9300 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9302 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9305 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9307 need_lib_prefix=unknown
9308 hardcode_into_libs=no
9310 # when you set need_version to no, make sure it does not cause -set_version
9311 # flags to be left without arguments
9312 need_version=unknown
9317 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9318 shlibpath_var=LIBPATH
9320 # AIX 3 has no versioning support, so we append a major version to the name.
9321 soname_spec='${libname}${release}${shared_ext}$major'
9328 hardcode_into_libs=yes
9329 if test "$host_cpu" = ia64; then
9330 # AIX 5 supports IA64
9331 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9332 shlibpath_var=LD_LIBRARY_PATH
9334 # With GCC up to 2.95.x, collect2 would create an import file
9335 # for dependence libraries. The import file would start with
9336 # the line `#! .'. This would cause the generated library to
9337 # depend on `.', always an invalid library. This was fixed in
9338 # development snapshots of GCC prior to 3.0.
9340 aix4 | aix4.[01] | aix4.[01].*)
9341 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9343 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9350 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9351 # soname into executable. Probably we can add versioning support to
9352 # collect2, so additional links can be useful in future.
9353 if test "$aix_use_runtimelinking" = yes; then
9354 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9355 # instead of lib<name>.a to let people know that these are not
9356 # typical AIX shared libraries.
9357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9359 # We preserve .a as extension for shared libraries through AIX4.2
9360 # and later when we are not doing run time linking.
9361 library_names_spec='${libname}${release}.a $libname.a'
9362 soname_spec='${libname}${release}${shared_ext}$major'
9364 shlibpath_var=LIBPATH
9369 library_names_spec='$libname.ixlibrary $libname.a'
9370 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9371 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'
9375 library_names_spec='${libname}${shared_ext}'
9376 dynamic_linker="$host_os ld.so"
9377 shlibpath_var=LIBRARY_PATH
9383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9384 soname_spec='${libname}${release}${shared_ext}$major'
9385 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9386 shlibpath_var=LD_LIBRARY_PATH
9387 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9388 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9389 # the default ld.so.conf also contains /usr/contrib/lib and
9390 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9391 # libtool to hard-code these into programs
9394 cygwin* | mingw* | pw32*)
9395 version_type=windows
9400 case $GCC,$host_os in
9401 yes,cygwin* | yes,mingw* | yes,pw32*)
9402 library_names_spec='$libname.dll.a'
9403 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9404 postinstall_cmds='base_file=`basename \${file}`~
9405 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9406 dldir=$destdir/`dirname \$dlpath`~
9407 test -d \$dldir || mkdir -p \$dldir~
9408 $install_prog $dir/$dlname \$dldir/$dlname~
9409 chmod a+x \$dldir/$dlname'
9410 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9411 dlpath=$dir/\$dldll~
9413 shlibpath_overrides_runpath=yes
9417 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9418 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9419 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9422 # MinGW DLLs use traditional 'lib' prefix
9423 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9424 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9425 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9426 # It is most probably a Windows format PATH printed by
9427 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9428 # path with ; separators, and with drive letters. We can handle the
9429 # drive letters (cygwin fileutils understands them), so leave them,
9430 # especially as we might pass files found there to a mingw objdump,
9431 # which wouldn't understand a cygwinified path. Ahh.
9432 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9434 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9438 # pw32 DLLs use 'pw' prefix rather than 'lib'
9439 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9445 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9448 dynamic_linker='Win32 ld.exe'
9449 # FIXME: first we should search . and the directory the executable is in
9453 darwin* | rhapsody*)
9454 dynamic_linker="$host_os dyld"
9458 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9459 soname_spec='${libname}${release}${major}$shared_ext'
9460 shlibpath_overrides_runpath=yes
9461 shlibpath_var=DYLD_LIBRARY_PATH
9462 shrext_cmds='.dylib'
9463 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9464 if test "$GCC" = yes; then
9465 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"`
9467 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9469 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9477 soname_spec='${libname}${release}${shared_ext}$major'
9478 shlibpath_var=LD_LIBRARY_PATH
9489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9490 soname_spec='${libname}${release}${shared_ext}$major'
9491 shlibpath_var=LD_LIBRARY_PATH
9492 shlibpath_overrides_runpath=no
9493 hardcode_into_libs=yes
9494 dynamic_linker='GNU ld.so'
9497 freebsd* | dragonfly*)
9498 # DragonFly does not have aout. When/if they implement a new
9499 # versioning mechanism, adjust this.
9500 if test -x /usr/bin/objformat; then
9501 objformat=`/usr/bin/objformat`
9504 freebsd[123]*) objformat=aout ;;
9508 version_type=freebsd-$objformat
9509 case $version_type in
9511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9516 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9520 shlibpath_var=LD_LIBRARY_PATH
9523 shlibpath_overrides_runpath=yes
9525 freebsd3.[01]* | freebsdelf3.[01]*)
9526 shlibpath_overrides_runpath=yes
9527 hardcode_into_libs=yes
9529 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9530 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9531 shlibpath_overrides_runpath=no
9532 hardcode_into_libs=yes
9534 freebsd*) # from 4.6 on
9535 shlibpath_overrides_runpath=yes
9536 hardcode_into_libs=yes
9545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9546 soname_spec='${libname}${release}${shared_ext}$major'
9547 shlibpath_var=LD_LIBRARY_PATH
9548 hardcode_into_libs=yes
9551 hpux9* | hpux10* | hpux11*)
9552 # Give a soname corresponding to the major version so that dld.sl refuses to
9553 # link against other versions.
9560 hardcode_into_libs=yes
9561 dynamic_linker="$host_os dld.so"
9562 shlibpath_var=LD_LIBRARY_PATH
9563 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9565 soname_spec='${libname}${release}${shared_ext}$major'
9566 if test "X$HPUX_IA64_MODE" = X32; then
9567 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9569 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9571 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9575 hardcode_into_libs=yes
9576 dynamic_linker="$host_os dld.sl"
9577 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9578 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9580 soname_spec='${libname}${release}${shared_ext}$major'
9581 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9582 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9586 dynamic_linker="$host_os dld.sl"
9587 shlibpath_var=SHLIB_PATH
9588 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9590 soname_spec='${libname}${release}${shared_ext}$major'
9593 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9594 postinstall_cmds='chmod 555 $lib'
9601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9602 soname_spec='${libname}${release}${shared_ext}$major'
9603 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9604 shlibpath_var=LD_LIBRARY_PATH
9605 shlibpath_overrides_runpath=no
9606 hardcode_into_libs=yes
9609 irix5* | irix6* | nonstopux*)
9611 nonstopux*) version_type=nonstopux ;;
9613 if test "$lt_cv_prog_gnu_ld" = yes; then
9621 soname_spec='${libname}${release}${shared_ext}$major'
9622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9624 irix5* | nonstopux*)
9628 case $LD in # libtool.m4 will add one of these switches to LD
9629 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9630 libsuff= shlibsuff= libmagic=32-bit;;
9631 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9632 libsuff=32 shlibsuff=N32 libmagic=N32;;
9633 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9634 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9635 *) libsuff= shlibsuff= libmagic=never-match;;
9639 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9640 shlibpath_overrides_runpath=no
9641 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9642 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9643 hardcode_into_libs=yes
9646 # No shared lib support for Linux oldld, aout, or coff.
9647 linux*oldld* | linux*aout* | linux*coff*)
9651 # This must be Linux ELF.
9656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9657 soname_spec='${libname}${release}${shared_ext}$major'
9658 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9659 shlibpath_var=LD_LIBRARY_PATH
9660 shlibpath_overrides_runpath=no
9661 # This implies no fast_install, which is unacceptable.
9662 # Some rework will be needed to allow for fast_install
9663 # before this can be enabled.
9664 hardcode_into_libs=yes
9666 # Append ld.so.conf contents to the search path
9667 if test -f /etc/ld.so.conf; then
9668 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' ' '`
9669 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9672 # We used to test for /lib/ld.so.1 and disable shared libraries on
9673 # powerpc, because MkLinux only supported shared libraries with the
9674 # GNU dynamic linker. Since this was broken with cross compilers,
9675 # most powerpc-linux boxes support dynamic linking these days and
9676 # people can always --disable-shared, the test was removed, and we
9677 # assume the GNU/Linux dynamic linker is in use.
9678 dynamic_linker='GNU/Linux ld.so'
9685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9686 soname_spec='${libname}${release}${shared_ext}$major'
9687 shlibpath_var=LD_LIBRARY_PATH
9688 shlibpath_overrides_runpath=no
9689 hardcode_into_libs=yes
9690 dynamic_linker='GNU ld.so'
9697 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9699 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9700 dynamic_linker='NetBSD (a.out) ld.so'
9702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9703 soname_spec='${libname}${release}${shared_ext}$major'
9704 dynamic_linker='NetBSD ld.elf_so'
9706 shlibpath_var=LD_LIBRARY_PATH
9707 shlibpath_overrides_runpath=yes
9708 hardcode_into_libs=yes
9713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9714 shlibpath_var=LD_LIBRARY_PATH
9715 shlibpath_overrides_runpath=yes
9722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9723 soname_spec='${libname}${release}${shared_ext}$major'
9724 shlibpath_var=LD_LIBRARY_PATH
9725 shlibpath_overrides_runpath=yes
9730 sys_lib_dlsearch_path_spec="/usr/lib"
9732 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9734 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9735 *) need_version=no ;;
9737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9738 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9739 shlibpath_var=LD_LIBRARY_PATH
9740 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9742 openbsd2.[89] | openbsd2.[89].*)
9743 shlibpath_overrides_runpath=no
9746 shlibpath_overrides_runpath=yes
9750 shlibpath_overrides_runpath=yes
9755 libname_spec='$name'
9758 library_names_spec='$libname${shared_ext} $libname.a'
9759 dynamic_linker='OS/2 ld.exe'
9760 shlibpath_var=LIBPATH
9763 osf3* | osf4* | osf5*)
9767 soname_spec='${libname}${release}${shared_ext}$major'
9768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9769 shlibpath_var=LD_LIBRARY_PATH
9770 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9771 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9779 soname_spec='${libname}${release}${shared_ext}$major'
9780 shlibpath_var=LD_LIBRARY_PATH
9781 shlibpath_overrides_runpath=yes
9782 hardcode_into_libs=yes
9783 # ldd complains unless libraries are executable
9784 postinstall_cmds='chmod +x $lib'
9789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9790 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9791 shlibpath_var=LD_LIBRARY_PATH
9792 shlibpath_overrides_runpath=yes
9793 if test "$with_gnu_ld" = yes; then
9801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9802 soname_spec='${libname}${release}${shared_ext}$major'
9803 shlibpath_var=LD_LIBRARY_PATH
9804 case $host_vendor in
9806 shlibpath_overrides_runpath=no
9808 export_dynamic_flag_spec='${wl}-Blargedynsym'
9809 runpath_var=LD_RUN_PATH
9817 shlibpath_overrides_runpath=no
9818 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9824 if test -d /usr/nec ;then
9826 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9827 soname_spec='$libname${shared_ext}.$major'
9828 shlibpath_var=LD_LIBRARY_PATH
9832 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9833 version_type=freebsd-elf
9836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9837 soname_spec='${libname}${release}${shared_ext}$major'
9838 shlibpath_var=LD_LIBRARY_PATH
9839 hardcode_into_libs=yes
9840 if test "$with_gnu_ld" = yes; then
9841 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9842 shlibpath_overrides_runpath=no
9844 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9845 shlibpath_overrides_runpath=yes
9848 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9852 sys_lib_dlsearch_path_spec='/usr/lib'
9857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9858 soname_spec='${libname}${release}${shared_ext}$major'
9859 shlibpath_var=LD_LIBRARY_PATH
9866 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9867 echo "${ECHO_T}$dynamic_linker" >&6; }
9868 test "$dynamic_linker" = no && can_build_shared=no
9870 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9871 if test "$GCC" = yes; then
9872 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9876 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9877 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9878 if test "${libltdl_cv_shlibext+set}" = set; then
9879 echo $ECHO_N "(cached) $ECHO_C" >&6
9883 eval libltdl_cv_shlibext=$shrext_cmds
9886 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9887 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9888 if test -n "$libltdl_cv_shlibext"; then
9890 cat >>confdefs.h <<_ACEOF
9891 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9897 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9898 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9899 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9900 echo $ECHO_N "(cached) $ECHO_C" >&6
9902 libltdl_cv_shlibpath_var="$shlibpath_var"
9904 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9905 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9906 if test -n "$libltdl_cv_shlibpath_var"; then
9908 cat >>confdefs.h <<_ACEOF
9909 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9915 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9916 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9917 if test "${libltdl_cv_sys_search_path+set}" = set; then
9918 echo $ECHO_N "(cached) $ECHO_C" >&6
9920 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9922 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9923 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9924 if test -n "$libltdl_cv_sys_search_path"; then
9926 for dir in $libltdl_cv_sys_search_path; do
9927 if test -z "$sys_search_path"; then
9928 sys_search_path="$dir"
9930 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9934 cat >>confdefs.h <<_ACEOF
9935 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9940 { echo "$as_me:$LINENO: checking for objdir" >&5
9941 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9942 if test "${libltdl_cv_objdir+set}" = set; then
9943 echo $ECHO_N "(cached) $ECHO_C" >&6
9945 libltdl_cv_objdir="$objdir"
9946 if test -n "$objdir"; then
9949 rm -f .libs 2>/dev/null
9950 mkdir .libs 2>/dev/null
9951 if test -d .libs; then
9952 libltdl_cv_objdir=.libs
9954 # MS-DOS does not allow filenames that begin with a dot.
9955 libltdl_cv_objdir=_libs
9957 rmdir .libs 2>/dev/null
9961 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9962 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9964 cat >>confdefs.h <<_ACEOF
9965 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9973 # Check for command to grab the raw symbol name followed by C symbol from nm.
9974 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9975 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9976 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9977 echo $ECHO_N "(cached) $ECHO_C" >&6
9980 # These are sane defaults that work on at least a few old systems.
9981 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9983 # Character class describing NM global symbol codes.
9984 symcode='[BCDEGRST]'
9986 # Regexp to match symbols that can be accessed directly from C.
9987 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9989 # Transform an extracted symbol line into a proper C declaration
9990 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9992 # Transform an extracted symbol line into symbol name and symbol address
9993 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'"
9995 # Define system-specific variables.
10000 cygwin* | mingw* | pw32*)
10001 symcode='[ABCDGISTW]'
10003 hpux*) # Its linker distinguishes data from code symbols
10004 if test "$host_cpu" = ia64; then
10005 symcode='[ABCDEGRST]'
10007 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10008 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'"
10011 if test "$host_cpu" = ia64; then
10012 symcode='[ABCDGIRSTW]'
10013 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10014 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'"
10017 irix* | nonstopux*)
10018 symcode='[BCDEGRST]'
10021 symcode='[BCDEGQRST]'
10032 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10040 # Handle CRLF in mingw tool chain
10044 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10048 # If we're using GNU nm, then use its standard symbol codes.
10049 case `$NM -V 2>&1` in
10050 *GNU* | *'with BFD'*)
10051 symcode='[ABCDGIRSTW]' ;;
10054 # Try without a prefix undercore, then with it.
10055 for ac_symprfx in "" "_"; do
10057 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10058 symxfrm="\\1 $ac_symprfx\\2 \\2"
10060 # Write the raw and C identifiers.
10061 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10063 # Check to see that the pipe works correctly.
10067 cat > conftest.$ac_ext <<EOF
10072 void nm_test_func(){}
10076 int main(){nm_test_var='a';nm_test_func();return(0);}
10079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10080 (eval $ac_compile) 2>&5
10082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10083 (exit $ac_status); }; then
10084 # Now try to grab the symbols.
10086 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10087 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10090 (exit $ac_status); } && test -s "$nlist"; then
10091 # Try sorting and uniquifying the output.
10092 if sort "$nlist" | uniq > "$nlist"T; then
10093 mv -f "$nlist"T "$nlist"
10098 # Make sure that we snagged all the symbols we need.
10099 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10100 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10101 cat <<EOF > conftest.$ac_ext
10107 # Now generate the symbol file.
10108 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10110 cat <<EOF >> conftest.$ac_ext
10111 #if defined (__STDC__) && __STDC__
10112 # define lt_ptr_t void *
10114 # define lt_ptr_t char *
10118 /* The mapping between symbol names and symbols. */
10123 lt_preloaded_symbols[] =
10126 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10127 cat <<\EOF >> conftest.$ac_ext
10135 # Now try linking the two files.
10136 mv conftest.$ac_objext conftstm.$ac_objext
10137 lt_save_LIBS="$LIBS"
10138 lt_save_CFLAGS="$CFLAGS"
10139 LIBS="conftstm.$ac_objext"
10140 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10142 (eval $ac_link) 2>&5
10144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10148 LIBS="$lt_save_LIBS"
10149 CFLAGS="$lt_save_CFLAGS"
10151 echo "cannot find nm_test_func in $nlist" >&5
10154 echo "cannot find nm_test_var in $nlist" >&5
10157 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10160 echo "$progname: failed program was:" >&5
10161 cat conftest.$ac_ext >&5
10163 rm -f conftest* conftst*
10165 # Do not use the global_symbol_pipe unless it works.
10166 if test "$pipe_works" = yes; then
10169 lt_cv_sys_global_symbol_pipe=
10175 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10176 lt_cv_sys_global_symbol_to_cdecl=
10178 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10179 { echo "$as_me:$LINENO: result: failed" >&5
10180 echo "${ECHO_T}failed" >&6; }
10182 { echo "$as_me:$LINENO: result: ok" >&5
10183 echo "${ECHO_T}ok" >&6; }
10187 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10188 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10189 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10190 echo $ECHO_N "(cached) $ECHO_C" >&6
10192 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10193 libltdl_cv_preloaded_symbols=yes
10195 libltdl_cv_preloaded_symbols=no
10199 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10200 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10201 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10203 cat >>confdefs.h <<\_ACEOF
10204 #define HAVE_PRELOADED_SYMBOLS 1
10212 ac_cpp='$CPP $CPPFLAGS'
10213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10218 { echo "$as_me:$LINENO: checking for shl_load" >&5
10219 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10220 if test "${ac_cv_func_shl_load+set}" = set; then
10221 echo $ECHO_N "(cached) $ECHO_C" >&6
10223 cat >conftest.$ac_ext <<_ACEOF
10226 cat confdefs.h >>conftest.$ac_ext
10227 cat >>conftest.$ac_ext <<_ACEOF
10228 /* end confdefs.h. */
10229 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10230 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10231 #define shl_load innocuous_shl_load
10233 /* System header to define __stub macros and hopefully few prototypes,
10234 which can conflict with char shl_load (); below.
10235 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10236 <limits.h> exists even on freestanding compilers. */
10239 # include <limits.h>
10241 # include <assert.h>
10246 /* Override any GCC internal prototype to avoid an error.
10247 Use char because int might match the return type of a GCC
10248 builtin and then its argument prototype would still apply. */
10253 /* The GNU C library defines this for functions which it implements
10254 to always fail with ENOSYS. Some functions are actually named
10255 something starting with __ and the normal name is an alias. */
10256 #if defined __stub_shl_load || defined __stub___shl_load
10263 return shl_load ();
10268 rm -f conftest.$ac_objext conftest$ac_exeext
10269 if { (ac_try="$ac_link"
10270 case "(($ac_try" in
10271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10272 *) ac_try_echo=$ac_try;;
10274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10275 (eval "$ac_link") 2>conftest.er1
10277 grep -v '^ *+' conftest.er1 >conftest.err
10279 cat conftest.err >&5
10280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281 (exit $ac_status); } &&
10282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10283 { (case "(($ac_try" in
10284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10285 *) ac_try_echo=$ac_try;;
10287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10288 (eval "$ac_try") 2>&5
10290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291 (exit $ac_status); }; } &&
10292 { ac_try='test -s conftest$ac_exeext'
10293 { (case "(($ac_try" in
10294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10295 *) ac_try_echo=$ac_try;;
10297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10298 (eval "$ac_try") 2>&5
10300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301 (exit $ac_status); }; }; then
10302 ac_cv_func_shl_load=yes
10304 echo "$as_me: failed program was:" >&5
10305 sed 's/^/| /' conftest.$ac_ext >&5
10307 ac_cv_func_shl_load=no
10310 rm -f core conftest.err conftest.$ac_objext \
10311 conftest$ac_exeext conftest.$ac_ext
10313 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10314 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10315 if test $ac_cv_func_shl_load = yes; then
10317 cat >>confdefs.h <<\_ACEOF
10318 #define HAVE_SHL_LOAD 1
10322 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10323 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10324 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10325 echo $ECHO_N "(cached) $ECHO_C" >&6
10327 ac_check_lib_save_LIBS=$LIBS
10329 cat >conftest.$ac_ext <<_ACEOF
10332 cat confdefs.h >>conftest.$ac_ext
10333 cat >>conftest.$ac_ext <<_ACEOF
10334 /* end confdefs.h. */
10336 /* Override any GCC internal prototype to avoid an error.
10337 Use char because int might match the return type of a GCC
10338 builtin and then its argument prototype would still apply. */
10346 return shl_load ();
10351 rm -f conftest.$ac_objext conftest$ac_exeext
10352 if { (ac_try="$ac_link"
10353 case "(($ac_try" in
10354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10355 *) ac_try_echo=$ac_try;;
10357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10358 (eval "$ac_link") 2>conftest.er1
10360 grep -v '^ *+' conftest.er1 >conftest.err
10362 cat conftest.err >&5
10363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364 (exit $ac_status); } &&
10365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10366 { (case "(($ac_try" in
10367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10368 *) ac_try_echo=$ac_try;;
10370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10371 (eval "$ac_try") 2>&5
10373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10374 (exit $ac_status); }; } &&
10375 { ac_try='test -s conftest$ac_exeext'
10376 { (case "(($ac_try" in
10377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10378 *) ac_try_echo=$ac_try;;
10380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10381 (eval "$ac_try") 2>&5
10383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384 (exit $ac_status); }; }; then
10385 ac_cv_lib_dld_shl_load=yes
10387 echo "$as_me: failed program was:" >&5
10388 sed 's/^/| /' conftest.$ac_ext >&5
10390 ac_cv_lib_dld_shl_load=no
10393 rm -f core conftest.err conftest.$ac_objext \
10394 conftest$ac_exeext conftest.$ac_ext
10395 LIBS=$ac_check_lib_save_LIBS
10397 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10398 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10399 if test $ac_cv_lib_dld_shl_load = yes; then
10401 cat >>confdefs.h <<\_ACEOF
10402 #define HAVE_SHL_LOAD 1
10405 LIBADD_DL="$LIBADD_DL -ldld"
10407 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10408 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10409 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10410 echo $ECHO_N "(cached) $ECHO_C" >&6
10412 ac_check_lib_save_LIBS=$LIBS
10414 cat >conftest.$ac_ext <<_ACEOF
10417 cat confdefs.h >>conftest.$ac_ext
10418 cat >>conftest.$ac_ext <<_ACEOF
10419 /* end confdefs.h. */
10421 /* Override any GCC internal prototype to avoid an error.
10422 Use char because int might match the return type of a GCC
10423 builtin and then its argument prototype would still apply. */
10436 rm -f conftest.$ac_objext conftest$ac_exeext
10437 if { (ac_try="$ac_link"
10438 case "(($ac_try" in
10439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10440 *) ac_try_echo=$ac_try;;
10442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10443 (eval "$ac_link") 2>conftest.er1
10445 grep -v '^ *+' conftest.er1 >conftest.err
10447 cat conftest.err >&5
10448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449 (exit $ac_status); } &&
10450 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10451 { (case "(($ac_try" in
10452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10453 *) ac_try_echo=$ac_try;;
10455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10456 (eval "$ac_try") 2>&5
10458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10459 (exit $ac_status); }; } &&
10460 { ac_try='test -s conftest$ac_exeext'
10461 { (case "(($ac_try" in
10462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10463 *) ac_try_echo=$ac_try;;
10465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10466 (eval "$ac_try") 2>&5
10468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10469 (exit $ac_status); }; }; then
10470 ac_cv_lib_dl_dlopen=yes
10472 echo "$as_me: failed program was:" >&5
10473 sed 's/^/| /' conftest.$ac_ext >&5
10475 ac_cv_lib_dl_dlopen=no
10478 rm -f core conftest.err conftest.$ac_objext \
10479 conftest$ac_exeext conftest.$ac_ext
10480 LIBS=$ac_check_lib_save_LIBS
10482 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10483 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10484 if test $ac_cv_lib_dl_dlopen = yes; then
10486 cat >>confdefs.h <<\_ACEOF
10487 #define HAVE_LIBDL 1
10490 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10492 cat >conftest.$ac_ext <<_ACEOF
10495 cat confdefs.h >>conftest.$ac_ext
10496 cat >>conftest.$ac_ext <<_ACEOF
10497 /* end confdefs.h. */
10499 # include <dlfcn.h>
10510 rm -f conftest.$ac_objext conftest$ac_exeext
10511 if { (ac_try="$ac_link"
10512 case "(($ac_try" in
10513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10514 *) ac_try_echo=$ac_try;;
10516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10517 (eval "$ac_link") 2>conftest.er1
10519 grep -v '^ *+' conftest.er1 >conftest.err
10521 cat conftest.err >&5
10522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10523 (exit $ac_status); } &&
10524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10525 { (case "(($ac_try" in
10526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10527 *) ac_try_echo=$ac_try;;
10529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10530 (eval "$ac_try") 2>&5
10532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533 (exit $ac_status); }; } &&
10534 { ac_try='test -s conftest$ac_exeext'
10535 { (case "(($ac_try" in
10536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10537 *) ac_try_echo=$ac_try;;
10539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10540 (eval "$ac_try") 2>&5
10542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10543 (exit $ac_status); }; }; then
10545 cat >>confdefs.h <<\_ACEOF
10546 #define HAVE_LIBDL 1
10548 libltdl_cv_func_dlopen="yes"
10550 echo "$as_me: failed program was:" >&5
10551 sed 's/^/| /' conftest.$ac_ext >&5
10553 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10554 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10555 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10556 echo $ECHO_N "(cached) $ECHO_C" >&6
10558 ac_check_lib_save_LIBS=$LIBS
10559 LIBS="-lsvld $LIBS"
10560 cat >conftest.$ac_ext <<_ACEOF
10563 cat confdefs.h >>conftest.$ac_ext
10564 cat >>conftest.$ac_ext <<_ACEOF
10565 /* end confdefs.h. */
10567 /* Override any GCC internal prototype to avoid an error.
10568 Use char because int might match the return type of a GCC
10569 builtin and then its argument prototype would still apply. */
10582 rm -f conftest.$ac_objext conftest$ac_exeext
10583 if { (ac_try="$ac_link"
10584 case "(($ac_try" in
10585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10586 *) ac_try_echo=$ac_try;;
10588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10589 (eval "$ac_link") 2>conftest.er1
10591 grep -v '^ *+' conftest.er1 >conftest.err
10593 cat conftest.err >&5
10594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10595 (exit $ac_status); } &&
10596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10597 { (case "(($ac_try" in
10598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10599 *) ac_try_echo=$ac_try;;
10601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10602 (eval "$ac_try") 2>&5
10604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10605 (exit $ac_status); }; } &&
10606 { ac_try='test -s conftest$ac_exeext'
10607 { (case "(($ac_try" in
10608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10609 *) ac_try_echo=$ac_try;;
10611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10612 (eval "$ac_try") 2>&5
10614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615 (exit $ac_status); }; }; then
10616 ac_cv_lib_svld_dlopen=yes
10618 echo "$as_me: failed program was:" >&5
10619 sed 's/^/| /' conftest.$ac_ext >&5
10621 ac_cv_lib_svld_dlopen=no
10624 rm -f core conftest.err conftest.$ac_objext \
10625 conftest$ac_exeext conftest.$ac_ext
10626 LIBS=$ac_check_lib_save_LIBS
10628 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10629 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10630 if test $ac_cv_lib_svld_dlopen = yes; then
10632 cat >>confdefs.h <<\_ACEOF
10633 #define HAVE_LIBDL 1
10636 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10638 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10639 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10640 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10641 echo $ECHO_N "(cached) $ECHO_C" >&6
10643 ac_check_lib_save_LIBS=$LIBS
10645 cat >conftest.$ac_ext <<_ACEOF
10648 cat confdefs.h >>conftest.$ac_ext
10649 cat >>conftest.$ac_ext <<_ACEOF
10650 /* end confdefs.h. */
10652 /* Override any GCC internal prototype to avoid an error.
10653 Use char because int might match the return type of a GCC
10654 builtin and then its argument prototype would still apply. */
10662 return dld_link ();
10667 rm -f conftest.$ac_objext conftest$ac_exeext
10668 if { (ac_try="$ac_link"
10669 case "(($ac_try" in
10670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10671 *) ac_try_echo=$ac_try;;
10673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10674 (eval "$ac_link") 2>conftest.er1
10676 grep -v '^ *+' conftest.er1 >conftest.err
10678 cat conftest.err >&5
10679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680 (exit $ac_status); } &&
10681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10682 { (case "(($ac_try" in
10683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10684 *) ac_try_echo=$ac_try;;
10686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10687 (eval "$ac_try") 2>&5
10689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690 (exit $ac_status); }; } &&
10691 { ac_try='test -s conftest$ac_exeext'
10692 { (case "(($ac_try" in
10693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10694 *) ac_try_echo=$ac_try;;
10696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10697 (eval "$ac_try") 2>&5
10699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700 (exit $ac_status); }; }; then
10701 ac_cv_lib_dld_dld_link=yes
10703 echo "$as_me: failed program was:" >&5
10704 sed 's/^/| /' conftest.$ac_ext >&5
10706 ac_cv_lib_dld_dld_link=no
10709 rm -f core conftest.err conftest.$ac_objext \
10710 conftest$ac_exeext conftest.$ac_ext
10711 LIBS=$ac_check_lib_save_LIBS
10713 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10714 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10715 if test $ac_cv_lib_dld_dld_link = yes; then
10717 cat >>confdefs.h <<\_ACEOF
10721 LIBADD_DL="$LIBADD_DL -ldld"
10723 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10724 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10725 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10726 echo $ECHO_N "(cached) $ECHO_C" >&6
10728 cat >conftest.$ac_ext <<_ACEOF
10731 cat confdefs.h >>conftest.$ac_ext
10732 cat >>conftest.$ac_ext <<_ACEOF
10733 /* end confdefs.h. */
10734 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10735 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10736 #define _dyld_func_lookup innocuous__dyld_func_lookup
10738 /* System header to define __stub macros and hopefully few prototypes,
10739 which can conflict with char _dyld_func_lookup (); below.
10740 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10741 <limits.h> exists even on freestanding compilers. */
10744 # include <limits.h>
10746 # include <assert.h>
10749 #undef _dyld_func_lookup
10751 /* Override any GCC internal prototype to avoid an error.
10752 Use char because int might match the return type of a GCC
10753 builtin and then its argument prototype would still apply. */
10757 char _dyld_func_lookup ();
10758 /* The GNU C library defines this for functions which it implements
10759 to always fail with ENOSYS. Some functions are actually named
10760 something starting with __ and the normal name is an alias. */
10761 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10768 return _dyld_func_lookup ();
10773 rm -f conftest.$ac_objext conftest$ac_exeext
10774 if { (ac_try="$ac_link"
10775 case "(($ac_try" in
10776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10777 *) ac_try_echo=$ac_try;;
10779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10780 (eval "$ac_link") 2>conftest.er1
10782 grep -v '^ *+' conftest.er1 >conftest.err
10784 cat conftest.err >&5
10785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786 (exit $ac_status); } &&
10787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10788 { (case "(($ac_try" in
10789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10790 *) ac_try_echo=$ac_try;;
10792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10793 (eval "$ac_try") 2>&5
10795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10796 (exit $ac_status); }; } &&
10797 { ac_try='test -s conftest$ac_exeext'
10798 { (case "(($ac_try" in
10799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10800 *) ac_try_echo=$ac_try;;
10802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10803 (eval "$ac_try") 2>&5
10805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10806 (exit $ac_status); }; }; then
10807 ac_cv_func__dyld_func_lookup=yes
10809 echo "$as_me: failed program was:" >&5
10810 sed 's/^/| /' conftest.$ac_ext >&5
10812 ac_cv_func__dyld_func_lookup=no
10815 rm -f core conftest.err conftest.$ac_objext \
10816 conftest$ac_exeext conftest.$ac_ext
10818 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10819 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10820 if test $ac_cv_func__dyld_func_lookup = yes; then
10822 cat >>confdefs.h <<\_ACEOF
10823 #define HAVE_DYLD 1
10837 rm -f core conftest.err conftest.$ac_objext \
10838 conftest$ac_exeext conftest.$ac_ext
10849 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10851 lt_save_LIBS="$LIBS"
10852 LIBS="$LIBS $LIBADD_DL"
10854 for ac_func in dlerror
10856 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10857 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10858 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10859 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10860 echo $ECHO_N "(cached) $ECHO_C" >&6
10862 cat >conftest.$ac_ext <<_ACEOF
10865 cat confdefs.h >>conftest.$ac_ext
10866 cat >>conftest.$ac_ext <<_ACEOF
10867 /* end confdefs.h. */
10868 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10869 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10870 #define $ac_func innocuous_$ac_func
10872 /* System header to define __stub macros and hopefully few prototypes,
10873 which can conflict with char $ac_func (); below.
10874 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10875 <limits.h> exists even on freestanding compilers. */
10878 # include <limits.h>
10880 # include <assert.h>
10885 /* Override any GCC internal prototype to avoid an error.
10886 Use char because int might match the return type of a GCC
10887 builtin and then its argument prototype would still apply. */
10892 /* The GNU C library defines this for functions which it implements
10893 to always fail with ENOSYS. Some functions are actually named
10894 something starting with __ and the normal name is an alias. */
10895 #if defined __stub_$ac_func || defined __stub___$ac_func
10902 return $ac_func ();
10907 rm -f conftest.$ac_objext conftest$ac_exeext
10908 if { (ac_try="$ac_link"
10909 case "(($ac_try" in
10910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10911 *) ac_try_echo=$ac_try;;
10913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10914 (eval "$ac_link") 2>conftest.er1
10916 grep -v '^ *+' conftest.er1 >conftest.err
10918 cat conftest.err >&5
10919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920 (exit $ac_status); } &&
10921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10922 { (case "(($ac_try" in
10923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10924 *) ac_try_echo=$ac_try;;
10926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10927 (eval "$ac_try") 2>&5
10929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930 (exit $ac_status); }; } &&
10931 { ac_try='test -s conftest$ac_exeext'
10932 { (case "(($ac_try" in
10933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10934 *) ac_try_echo=$ac_try;;
10936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10937 (eval "$ac_try") 2>&5
10939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940 (exit $ac_status); }; }; then
10941 eval "$as_ac_var=yes"
10943 echo "$as_me: failed program was:" >&5
10944 sed 's/^/| /' conftest.$ac_ext >&5
10946 eval "$as_ac_var=no"
10949 rm -f core conftest.err conftest.$ac_objext \
10950 conftest$ac_exeext conftest.$ac_ext
10952 ac_res=`eval echo '${'$as_ac_var'}'`
10953 { echo "$as_me:$LINENO: result: $ac_res" >&5
10954 echo "${ECHO_T}$ac_res" >&6; }
10955 if test `eval echo '${'$as_ac_var'}'` = yes; then
10956 cat >>confdefs.h <<_ACEOF
10957 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10963 LIBS="$lt_save_LIBS"
10966 ac_cpp='$CPP $CPPFLAGS'
10967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10973 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10974 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10975 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10976 echo $ECHO_N "(cached) $ECHO_C" >&6
10978 ac_cv_sys_symbol_underscore=no
10979 cat > conftest.$ac_ext <<EOF
10980 void nm_test_func(){}
10981 int main(){nm_test_func;return 0;}
10983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10984 (eval $ac_compile) 2>&5
10986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10987 (exit $ac_status); }; then
10988 # Now try to grab the symbols.
10989 ac_nlist=conftest.nm
10990 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10991 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10994 (exit $ac_status); } && test -s "$ac_nlist"; then
10995 # See whether the symbols have a leading underscore.
10996 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10997 ac_cv_sys_symbol_underscore=yes
10999 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11002 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11006 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11009 echo "configure: failed program was:" >&5
11015 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11016 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11019 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11020 if test x"$libltdl_cv_func_dlopen" = xyes ||
11021 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11022 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11023 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11024 if test "${libltdl_cv_need_uscore+set}" = set; then
11025 echo $ECHO_N "(cached) $ECHO_C" >&6
11027 libltdl_cv_need_uscore=unknown
11029 LIBS="$LIBS $LIBADD_DL"
11030 if test "$cross_compiling" = yes; then :
11031 libltdl_cv_need_uscore=cross
11033 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11034 lt_status=$lt_dlunknown
11035 cat > conftest.$ac_ext <<EOF
11036 #line 11036 "configure"
11037 #include "confdefs.h"
11046 # define LT_DLGLOBAL RTLD_GLOBAL
11049 # define LT_DLGLOBAL DL_GLOBAL
11051 # define LT_DLGLOBAL 0
11055 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11056 find out it does not work in some platform. */
11057 #ifndef LT_DLLAZY_OR_NOW
11059 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11062 # define LT_DLLAZY_OR_NOW DL_LAZY
11065 # define LT_DLLAZY_OR_NOW RTLD_NOW
11068 # define LT_DLLAZY_OR_NOW DL_NOW
11070 # define LT_DLLAZY_OR_NOW 0
11078 extern "C" void exit (int);
11081 void fnord() { int i=42;}
11084 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11085 int status = $lt_dlunknown;
11089 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11090 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11091 /* dlclose (self); */
11099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11100 (eval $ac_link) 2>&5
11102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11104 (./conftest; exit; ) >&5 2>/dev/null
11106 case x$lt_status in
11107 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11108 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11109 x$lt_dlunknown|x*) ;;
11112 # compilation failed
11121 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11122 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11126 if test x"$libltdl_cv_need_uscore" = xyes; then
11128 cat >>confdefs.h <<\_ACEOF
11129 #define NEED_USCORE 1
11135 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11136 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11137 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11138 echo $ECHO_N "(cached) $ECHO_C" >&6
11140 # PORTME does your system automatically load deplibs for dlopen?
11141 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11142 # For now, we just catch OSes we know something about -- in the
11143 # future, we'll try test this programmatically.
11144 libltdl_cv_sys_dlopen_deplibs=unknown
11146 aix3*|aix4.1.*|aix4.2.*)
11147 # Unknown whether this is true for these versions of AIX, but
11148 # we want this `case' here to explicitly catch those versions.
11149 libltdl_cv_sys_dlopen_deplibs=unknown
11152 libltdl_cv_sys_dlopen_deplibs=yes
11155 # Assuming the user has installed a libdl from somewhere, this is true
11156 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11157 libltdl_cv_sys_dlopen_deplibs=yes
11159 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11160 # GNU and its variants, using gnu ld.so (Glibc)
11161 libltdl_cv_sys_dlopen_deplibs=yes
11164 libltdl_cv_sys_dlopen_deplibs=yes
11167 libltdl_cv_sys_dlopen_deplibs=yes
11169 irix[12345]*|irix6.[01]*)
11170 # Catch all versions of IRIX before 6.2, and indicate that we don't
11171 # know how it worked for any of those versions.
11172 libltdl_cv_sys_dlopen_deplibs=unknown
11175 # The case above catches anything before 6.2, and it's known that
11176 # at 6.2 and later dlopen does load deplibs.
11177 libltdl_cv_sys_dlopen_deplibs=yes
11180 libltdl_cv_sys_dlopen_deplibs=yes
11183 libltdl_cv_sys_dlopen_deplibs=yes
11186 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11187 # it did *not* use an RPATH in a shared library to find objects the
11188 # library depends on, so we explictly say `no'.
11189 libltdl_cv_sys_dlopen_deplibs=no
11191 osf5.0|osf5.0a|osf5.1)
11192 # dlopen *does* load deplibs and with the right loader patch applied
11193 # it even uses RPATH in a shared library to search for shared objects
11194 # that the library depends on, but there's no easy way to know if that
11195 # patch is installed. Since this is the case, all we can really
11196 # say is unknown -- it depends on the patch being installed. If
11197 # it is, this changes to `yes'. Without it, it would be `no'.
11198 libltdl_cv_sys_dlopen_deplibs=unknown
11201 # the two cases above should catch all versions of osf <= 5.1. Read
11202 # the comments above for what we know about them.
11203 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11204 # is used to find them so we can finally say `yes'.
11205 libltdl_cv_sys_dlopen_deplibs=yes
11208 libltdl_cv_sys_dlopen_deplibs=yes
11210 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11211 libltdl_cv_sys_dlopen_deplibs=yes
11216 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11217 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11218 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11220 cat >>confdefs.h <<\_ACEOF
11221 #define LTDL_DLOPEN_DEPLIBS 1
11227 for ac_header in argz.h
11229 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11230 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11231 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11233 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11234 echo $ECHO_N "(cached) $ECHO_C" >&6
11236 ac_res=`eval echo '${'$as_ac_Header'}'`
11237 { echo "$as_me:$LINENO: result: $ac_res" >&5
11238 echo "${ECHO_T}$ac_res" >&6; }
11240 # Is the header compilable?
11241 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11242 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11243 cat >conftest.$ac_ext <<_ACEOF
11246 cat confdefs.h >>conftest.$ac_ext
11247 cat >>conftest.$ac_ext <<_ACEOF
11248 /* end confdefs.h. */
11249 $ac_includes_default
11250 #include <$ac_header>
11252 rm -f conftest.$ac_objext
11253 if { (ac_try="$ac_compile"
11254 case "(($ac_try" in
11255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11256 *) ac_try_echo=$ac_try;;
11258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11259 (eval "$ac_compile") 2>conftest.er1
11261 grep -v '^ *+' conftest.er1 >conftest.err
11263 cat conftest.err >&5
11264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265 (exit $ac_status); } &&
11266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11267 { (case "(($ac_try" in
11268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11269 *) ac_try_echo=$ac_try;;
11271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11272 (eval "$ac_try") 2>&5
11274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275 (exit $ac_status); }; } &&
11276 { ac_try='test -s conftest.$ac_objext'
11277 { (case "(($ac_try" in
11278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11279 *) ac_try_echo=$ac_try;;
11281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11282 (eval "$ac_try") 2>&5
11284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285 (exit $ac_status); }; }; then
11286 ac_header_compiler=yes
11288 echo "$as_me: failed program was:" >&5
11289 sed 's/^/| /' conftest.$ac_ext >&5
11291 ac_header_compiler=no
11294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11295 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11296 echo "${ECHO_T}$ac_header_compiler" >&6; }
11298 # Is the header present?
11299 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11300 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11301 cat >conftest.$ac_ext <<_ACEOF
11304 cat confdefs.h >>conftest.$ac_ext
11305 cat >>conftest.$ac_ext <<_ACEOF
11306 /* end confdefs.h. */
11307 #include <$ac_header>
11309 if { (ac_try="$ac_cpp conftest.$ac_ext"
11310 case "(($ac_try" in
11311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11312 *) ac_try_echo=$ac_try;;
11314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11315 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11317 grep -v '^ *+' conftest.er1 >conftest.err
11319 cat conftest.err >&5
11320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321 (exit $ac_status); } >/dev/null; then
11322 if test -s conftest.err; then
11323 ac_cpp_err=$ac_c_preproc_warn_flag
11324 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11331 if test -z "$ac_cpp_err"; then
11332 ac_header_preproc=yes
11334 echo "$as_me: failed program was:" >&5
11335 sed 's/^/| /' conftest.$ac_ext >&5
11337 ac_header_preproc=no
11340 rm -f conftest.err conftest.$ac_ext
11341 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11342 echo "${ECHO_T}$ac_header_preproc" >&6; }
11344 # So? What about this header?
11345 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11347 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11348 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11349 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11350 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11351 ac_header_preproc=yes
11354 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11355 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11356 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11357 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11358 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11359 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11360 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11361 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11362 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11363 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11364 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11365 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11367 ## ----------------------------------- ##
11368 ## Report this to llvmbugs@cs.uiuc.edu ##
11369 ## ----------------------------------- ##
11371 ) | sed "s/^/$as_me: WARNING: /" >&2
11374 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11376 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11377 echo $ECHO_N "(cached) $ECHO_C" >&6
11379 eval "$as_ac_Header=\$ac_header_preproc"
11381 ac_res=`eval echo '${'$as_ac_Header'}'`
11382 { echo "$as_me:$LINENO: result: $ac_res" >&5
11383 echo "${ECHO_T}$ac_res" >&6; }
11386 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11387 cat >>confdefs.h <<_ACEOF
11388 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11396 { echo "$as_me:$LINENO: checking for error_t" >&5
11397 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11398 if test "${ac_cv_type_error_t+set}" = set; then
11399 echo $ECHO_N "(cached) $ECHO_C" >&6
11401 cat >conftest.$ac_ext <<_ACEOF
11404 cat confdefs.h >>conftest.$ac_ext
11405 cat >>conftest.$ac_ext <<_ACEOF
11406 /* end confdefs.h. */
11411 typedef error_t ac__type_new_;
11415 if ((ac__type_new_ *) 0)
11417 if (sizeof (ac__type_new_))
11423 rm -f conftest.$ac_objext
11424 if { (ac_try="$ac_compile"
11425 case "(($ac_try" in
11426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11427 *) ac_try_echo=$ac_try;;
11429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11430 (eval "$ac_compile") 2>conftest.er1
11432 grep -v '^ *+' conftest.er1 >conftest.err
11434 cat conftest.err >&5
11435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11436 (exit $ac_status); } &&
11437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11438 { (case "(($ac_try" in
11439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11440 *) ac_try_echo=$ac_try;;
11442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11443 (eval "$ac_try") 2>&5
11445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11446 (exit $ac_status); }; } &&
11447 { ac_try='test -s conftest.$ac_objext'
11448 { (case "(($ac_try" in
11449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11450 *) ac_try_echo=$ac_try;;
11452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11453 (eval "$ac_try") 2>&5
11455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11456 (exit $ac_status); }; }; then
11457 ac_cv_type_error_t=yes
11459 echo "$as_me: failed program was:" >&5
11460 sed 's/^/| /' conftest.$ac_ext >&5
11462 ac_cv_type_error_t=no
11465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11467 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11468 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11469 if test $ac_cv_type_error_t = yes; then
11471 cat >>confdefs.h <<_ACEOF
11472 #define HAVE_ERROR_T 1
11478 cat >>confdefs.h <<\_ACEOF
11479 #define error_t int
11490 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11492 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11493 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11494 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11495 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11496 echo $ECHO_N "(cached) $ECHO_C" >&6
11498 cat >conftest.$ac_ext <<_ACEOF
11501 cat confdefs.h >>conftest.$ac_ext
11502 cat >>conftest.$ac_ext <<_ACEOF
11503 /* end confdefs.h. */
11504 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11505 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11506 #define $ac_func innocuous_$ac_func
11508 /* System header to define __stub macros and hopefully few prototypes,
11509 which can conflict with char $ac_func (); below.
11510 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11511 <limits.h> exists even on freestanding compilers. */
11514 # include <limits.h>
11516 # include <assert.h>
11521 /* Override any GCC internal prototype to avoid an error.
11522 Use char because int might match the return type of a GCC
11523 builtin and then its argument prototype would still apply. */
11528 /* The GNU C library defines this for functions which it implements
11529 to always fail with ENOSYS. Some functions are actually named
11530 something starting with __ and the normal name is an alias. */
11531 #if defined __stub_$ac_func || defined __stub___$ac_func
11538 return $ac_func ();
11543 rm -f conftest.$ac_objext conftest$ac_exeext
11544 if { (ac_try="$ac_link"
11545 case "(($ac_try" in
11546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11547 *) ac_try_echo=$ac_try;;
11549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11550 (eval "$ac_link") 2>conftest.er1
11552 grep -v '^ *+' conftest.er1 >conftest.err
11554 cat conftest.err >&5
11555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556 (exit $ac_status); } &&
11557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11558 { (case "(($ac_try" in
11559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11560 *) ac_try_echo=$ac_try;;
11562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11563 (eval "$ac_try") 2>&5
11565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566 (exit $ac_status); }; } &&
11567 { ac_try='test -s conftest$ac_exeext'
11568 { (case "(($ac_try" in
11569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11570 *) ac_try_echo=$ac_try;;
11572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11573 (eval "$ac_try") 2>&5
11575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576 (exit $ac_status); }; }; then
11577 eval "$as_ac_var=yes"
11579 echo "$as_me: failed program was:" >&5
11580 sed 's/^/| /' conftest.$ac_ext >&5
11582 eval "$as_ac_var=no"
11585 rm -f core conftest.err conftest.$ac_objext \
11586 conftest$ac_exeext conftest.$ac_ext
11588 ac_res=`eval echo '${'$as_ac_var'}'`
11589 { echo "$as_me:$LINENO: result: $ac_res" >&5
11590 echo "${ECHO_T}$ac_res" >&6; }
11591 if test `eval echo '${'$as_ac_var'}'` = yes; then
11592 cat >>confdefs.h <<_ACEOF
11593 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11626 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11629 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11630 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11631 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11632 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11633 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11634 echo $ECHO_N "(cached) $ECHO_C" >&6
11636 ac_res=`eval echo '${'$as_ac_Header'}'`
11637 { echo "$as_me:$LINENO: result: $ac_res" >&5
11638 echo "${ECHO_T}$ac_res" >&6; }
11640 # Is the header compilable?
11641 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11642 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11643 cat >conftest.$ac_ext <<_ACEOF
11646 cat confdefs.h >>conftest.$ac_ext
11647 cat >>conftest.$ac_ext <<_ACEOF
11648 /* end confdefs.h. */
11649 $ac_includes_default
11650 #include <$ac_header>
11652 rm -f conftest.$ac_objext
11653 if { (ac_try="$ac_compile"
11654 case "(($ac_try" in
11655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11656 *) ac_try_echo=$ac_try;;
11658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11659 (eval "$ac_compile") 2>conftest.er1
11661 grep -v '^ *+' conftest.er1 >conftest.err
11663 cat conftest.err >&5
11664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11665 (exit $ac_status); } &&
11666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11667 { (case "(($ac_try" in
11668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11669 *) ac_try_echo=$ac_try;;
11671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11672 (eval "$ac_try") 2>&5
11674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675 (exit $ac_status); }; } &&
11676 { ac_try='test -s conftest.$ac_objext'
11677 { (case "(($ac_try" in
11678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11679 *) ac_try_echo=$ac_try;;
11681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11682 (eval "$ac_try") 2>&5
11684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11685 (exit $ac_status); }; }; then
11686 ac_header_compiler=yes
11688 echo "$as_me: failed program was:" >&5
11689 sed 's/^/| /' conftest.$ac_ext >&5
11691 ac_header_compiler=no
11694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11695 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11696 echo "${ECHO_T}$ac_header_compiler" >&6; }
11698 # Is the header present?
11699 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11700 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11701 cat >conftest.$ac_ext <<_ACEOF
11704 cat confdefs.h >>conftest.$ac_ext
11705 cat >>conftest.$ac_ext <<_ACEOF
11706 /* end confdefs.h. */
11707 #include <$ac_header>
11709 if { (ac_try="$ac_cpp conftest.$ac_ext"
11710 case "(($ac_try" in
11711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11712 *) ac_try_echo=$ac_try;;
11714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11715 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11717 grep -v '^ *+' conftest.er1 >conftest.err
11719 cat conftest.err >&5
11720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721 (exit $ac_status); } >/dev/null; then
11722 if test -s conftest.err; then
11723 ac_cpp_err=$ac_c_preproc_warn_flag
11724 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11731 if test -z "$ac_cpp_err"; then
11732 ac_header_preproc=yes
11734 echo "$as_me: failed program was:" >&5
11735 sed 's/^/| /' conftest.$ac_ext >&5
11737 ac_header_preproc=no
11740 rm -f conftest.err conftest.$ac_ext
11741 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11742 echo "${ECHO_T}$ac_header_preproc" >&6; }
11744 # So? What about this header?
11745 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11747 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11748 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11749 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11750 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11751 ac_header_preproc=yes
11754 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11755 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11756 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11757 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11758 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11759 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11760 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11761 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11763 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11764 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11765 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11767 ## ----------------------------------- ##
11768 ## Report this to llvmbugs@cs.uiuc.edu ##
11769 ## ----------------------------------- ##
11771 ) | sed "s/^/$as_me: WARNING: /" >&2
11774 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11775 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11776 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11777 echo $ECHO_N "(cached) $ECHO_C" >&6
11779 eval "$as_ac_Header=\$ac_header_preproc"
11781 ac_res=`eval echo '${'$as_ac_Header'}'`
11782 { echo "$as_me:$LINENO: result: $ac_res" >&5
11783 echo "${ECHO_T}$ac_res" >&6; }
11786 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11787 cat >>confdefs.h <<_ACEOF
11788 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11799 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11801 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11802 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11803 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11804 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11805 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11806 echo $ECHO_N "(cached) $ECHO_C" >&6
11808 ac_res=`eval echo '${'$as_ac_Header'}'`
11809 { echo "$as_me:$LINENO: result: $ac_res" >&5
11810 echo "${ECHO_T}$ac_res" >&6; }
11812 # Is the header compilable?
11813 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11814 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11815 cat >conftest.$ac_ext <<_ACEOF
11818 cat confdefs.h >>conftest.$ac_ext
11819 cat >>conftest.$ac_ext <<_ACEOF
11820 /* end confdefs.h. */
11821 $ac_includes_default
11822 #include <$ac_header>
11824 rm -f conftest.$ac_objext
11825 if { (ac_try="$ac_compile"
11826 case "(($ac_try" in
11827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11828 *) ac_try_echo=$ac_try;;
11830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11831 (eval "$ac_compile") 2>conftest.er1
11833 grep -v '^ *+' conftest.er1 >conftest.err
11835 cat conftest.err >&5
11836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11837 (exit $ac_status); } &&
11838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11839 { (case "(($ac_try" in
11840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11841 *) ac_try_echo=$ac_try;;
11843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11844 (eval "$ac_try") 2>&5
11846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847 (exit $ac_status); }; } &&
11848 { ac_try='test -s conftest.$ac_objext'
11849 { (case "(($ac_try" in
11850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11851 *) ac_try_echo=$ac_try;;
11853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11854 (eval "$ac_try") 2>&5
11856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11857 (exit $ac_status); }; }; then
11858 ac_header_compiler=yes
11860 echo "$as_me: failed program was:" >&5
11861 sed 's/^/| /' conftest.$ac_ext >&5
11863 ac_header_compiler=no
11866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11867 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11868 echo "${ECHO_T}$ac_header_compiler" >&6; }
11870 # Is the header present?
11871 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11872 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11873 cat >conftest.$ac_ext <<_ACEOF
11876 cat confdefs.h >>conftest.$ac_ext
11877 cat >>conftest.$ac_ext <<_ACEOF
11878 /* end confdefs.h. */
11879 #include <$ac_header>
11881 if { (ac_try="$ac_cpp conftest.$ac_ext"
11882 case "(($ac_try" in
11883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11884 *) ac_try_echo=$ac_try;;
11886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11887 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11889 grep -v '^ *+' conftest.er1 >conftest.err
11891 cat conftest.err >&5
11892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893 (exit $ac_status); } >/dev/null; then
11894 if test -s conftest.err; then
11895 ac_cpp_err=$ac_c_preproc_warn_flag
11896 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11903 if test -z "$ac_cpp_err"; then
11904 ac_header_preproc=yes
11906 echo "$as_me: failed program was:" >&5
11907 sed 's/^/| /' conftest.$ac_ext >&5
11909 ac_header_preproc=no
11912 rm -f conftest.err conftest.$ac_ext
11913 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11914 echo "${ECHO_T}$ac_header_preproc" >&6; }
11916 # So? What about this header?
11917 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11919 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11920 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11921 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11922 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11923 ac_header_preproc=yes
11926 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11927 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11928 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11929 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11930 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11931 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11932 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11933 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11934 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11935 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11936 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11937 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11939 ## ----------------------------------- ##
11940 ## Report this to llvmbugs@cs.uiuc.edu ##
11941 ## ----------------------------------- ##
11943 ) | sed "s/^/$as_me: WARNING: /" >&2
11946 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11947 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11948 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11949 echo $ECHO_N "(cached) $ECHO_C" >&6
11951 eval "$as_ac_Header=\$ac_header_preproc"
11953 ac_res=`eval echo '${'$as_ac_Header'}'`
11954 { echo "$as_me:$LINENO: result: $ac_res" >&5
11955 echo "${ECHO_T}$ac_res" >&6; }
11958 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11959 cat >>confdefs.h <<_ACEOF
11960 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11969 for ac_header in string.h strings.h
11971 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11972 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11973 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11974 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11975 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11976 echo $ECHO_N "(cached) $ECHO_C" >&6
11978 ac_res=`eval echo '${'$as_ac_Header'}'`
11979 { echo "$as_me:$LINENO: result: $ac_res" >&5
11980 echo "${ECHO_T}$ac_res" >&6; }
11982 # Is the header compilable?
11983 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11984 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11985 cat >conftest.$ac_ext <<_ACEOF
11988 cat confdefs.h >>conftest.$ac_ext
11989 cat >>conftest.$ac_ext <<_ACEOF
11990 /* end confdefs.h. */
11991 $ac_includes_default
11992 #include <$ac_header>
11994 rm -f conftest.$ac_objext
11995 if { (ac_try="$ac_compile"
11996 case "(($ac_try" in
11997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11998 *) ac_try_echo=$ac_try;;
12000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12001 (eval "$ac_compile") 2>conftest.er1
12003 grep -v '^ *+' conftest.er1 >conftest.err
12005 cat conftest.err >&5
12006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007 (exit $ac_status); } &&
12008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12009 { (case "(($ac_try" in
12010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12011 *) ac_try_echo=$ac_try;;
12013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12014 (eval "$ac_try") 2>&5
12016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12017 (exit $ac_status); }; } &&
12018 { ac_try='test -s conftest.$ac_objext'
12019 { (case "(($ac_try" in
12020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12021 *) ac_try_echo=$ac_try;;
12023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12024 (eval "$ac_try") 2>&5
12026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12027 (exit $ac_status); }; }; then
12028 ac_header_compiler=yes
12030 echo "$as_me: failed program was:" >&5
12031 sed 's/^/| /' conftest.$ac_ext >&5
12033 ac_header_compiler=no
12036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12037 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12038 echo "${ECHO_T}$ac_header_compiler" >&6; }
12040 # Is the header present?
12041 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12042 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12043 cat >conftest.$ac_ext <<_ACEOF
12046 cat confdefs.h >>conftest.$ac_ext
12047 cat >>conftest.$ac_ext <<_ACEOF
12048 /* end confdefs.h. */
12049 #include <$ac_header>
12051 if { (ac_try="$ac_cpp conftest.$ac_ext"
12052 case "(($ac_try" in
12053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12054 *) ac_try_echo=$ac_try;;
12056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12057 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12059 grep -v '^ *+' conftest.er1 >conftest.err
12061 cat conftest.err >&5
12062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12063 (exit $ac_status); } >/dev/null; then
12064 if test -s conftest.err; then
12065 ac_cpp_err=$ac_c_preproc_warn_flag
12066 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12073 if test -z "$ac_cpp_err"; then
12074 ac_header_preproc=yes
12076 echo "$as_me: failed program was:" >&5
12077 sed 's/^/| /' conftest.$ac_ext >&5
12079 ac_header_preproc=no
12082 rm -f conftest.err conftest.$ac_ext
12083 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12084 echo "${ECHO_T}$ac_header_preproc" >&6; }
12086 # So? What about this header?
12087 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12089 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12090 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12091 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12092 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12093 ac_header_preproc=yes
12096 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12097 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12098 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12099 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12100 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12101 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12102 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12103 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12104 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12105 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12106 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12107 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12109 ## ----------------------------------- ##
12110 ## Report this to llvmbugs@cs.uiuc.edu ##
12111 ## ----------------------------------- ##
12113 ) | sed "s/^/$as_me: WARNING: /" >&2
12116 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12118 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12119 echo $ECHO_N "(cached) $ECHO_C" >&6
12121 eval "$as_ac_Header=\$ac_header_preproc"
12123 ac_res=`eval echo '${'$as_ac_Header'}'`
12124 { echo "$as_me:$LINENO: result: $ac_res" >&5
12125 echo "${ECHO_T}$ac_res" >&6; }
12128 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12129 cat >>confdefs.h <<_ACEOF
12130 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12140 for ac_func in strchr index
12142 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12143 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12144 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12145 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12146 echo $ECHO_N "(cached) $ECHO_C" >&6
12148 cat >conftest.$ac_ext <<_ACEOF
12151 cat confdefs.h >>conftest.$ac_ext
12152 cat >>conftest.$ac_ext <<_ACEOF
12153 /* end confdefs.h. */
12154 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12155 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12156 #define $ac_func innocuous_$ac_func
12158 /* System header to define __stub macros and hopefully few prototypes,
12159 which can conflict with char $ac_func (); below.
12160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12161 <limits.h> exists even on freestanding compilers. */
12164 # include <limits.h>
12166 # include <assert.h>
12171 /* Override any GCC internal prototype to avoid an error.
12172 Use char because int might match the return type of a GCC
12173 builtin and then its argument prototype would still apply. */
12178 /* The GNU C library defines this for functions which it implements
12179 to always fail with ENOSYS. Some functions are actually named
12180 something starting with __ and the normal name is an alias. */
12181 #if defined __stub_$ac_func || defined __stub___$ac_func
12188 return $ac_func ();
12193 rm -f conftest.$ac_objext conftest$ac_exeext
12194 if { (ac_try="$ac_link"
12195 case "(($ac_try" in
12196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12197 *) ac_try_echo=$ac_try;;
12199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12200 (eval "$ac_link") 2>conftest.er1
12202 grep -v '^ *+' conftest.er1 >conftest.err
12204 cat conftest.err >&5
12205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206 (exit $ac_status); } &&
12207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12208 { (case "(($ac_try" in
12209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12210 *) ac_try_echo=$ac_try;;
12212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12213 (eval "$ac_try") 2>&5
12215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216 (exit $ac_status); }; } &&
12217 { ac_try='test -s conftest$ac_exeext'
12218 { (case "(($ac_try" in
12219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12220 *) ac_try_echo=$ac_try;;
12222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12223 (eval "$ac_try") 2>&5
12225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12226 (exit $ac_status); }; }; then
12227 eval "$as_ac_var=yes"
12229 echo "$as_me: failed program was:" >&5
12230 sed 's/^/| /' conftest.$ac_ext >&5
12232 eval "$as_ac_var=no"
12235 rm -f core conftest.err conftest.$ac_objext \
12236 conftest$ac_exeext conftest.$ac_ext
12238 ac_res=`eval echo '${'$as_ac_var'}'`
12239 { echo "$as_me:$LINENO: result: $ac_res" >&5
12240 echo "${ECHO_T}$ac_res" >&6; }
12241 if test `eval echo '${'$as_ac_var'}'` = yes; then
12242 cat >>confdefs.h <<_ACEOF
12243 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12251 for ac_func in strrchr rindex
12253 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12254 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12255 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12256 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12257 echo $ECHO_N "(cached) $ECHO_C" >&6
12259 cat >conftest.$ac_ext <<_ACEOF
12262 cat confdefs.h >>conftest.$ac_ext
12263 cat >>conftest.$ac_ext <<_ACEOF
12264 /* end confdefs.h. */
12265 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12266 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12267 #define $ac_func innocuous_$ac_func
12269 /* System header to define __stub macros and hopefully few prototypes,
12270 which can conflict with char $ac_func (); below.
12271 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12272 <limits.h> exists even on freestanding compilers. */
12275 # include <limits.h>
12277 # include <assert.h>
12282 /* Override any GCC internal prototype to avoid an error.
12283 Use char because int might match the return type of a GCC
12284 builtin and then its argument prototype would still apply. */
12289 /* The GNU C library defines this for functions which it implements
12290 to always fail with ENOSYS. Some functions are actually named
12291 something starting with __ and the normal name is an alias. */
12292 #if defined __stub_$ac_func || defined __stub___$ac_func
12299 return $ac_func ();
12304 rm -f conftest.$ac_objext conftest$ac_exeext
12305 if { (ac_try="$ac_link"
12306 case "(($ac_try" in
12307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12308 *) ac_try_echo=$ac_try;;
12310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12311 (eval "$ac_link") 2>conftest.er1
12313 grep -v '^ *+' conftest.er1 >conftest.err
12315 cat conftest.err >&5
12316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12317 (exit $ac_status); } &&
12318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12319 { (case "(($ac_try" in
12320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12321 *) ac_try_echo=$ac_try;;
12323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12324 (eval "$ac_try") 2>&5
12326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12327 (exit $ac_status); }; } &&
12328 { ac_try='test -s conftest$ac_exeext'
12329 { (case "(($ac_try" in
12330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12331 *) ac_try_echo=$ac_try;;
12333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12334 (eval "$ac_try") 2>&5
12336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337 (exit $ac_status); }; }; then
12338 eval "$as_ac_var=yes"
12340 echo "$as_me: failed program was:" >&5
12341 sed 's/^/| /' conftest.$ac_ext >&5
12343 eval "$as_ac_var=no"
12346 rm -f core conftest.err conftest.$ac_objext \
12347 conftest$ac_exeext conftest.$ac_ext
12349 ac_res=`eval echo '${'$as_ac_var'}'`
12350 { echo "$as_me:$LINENO: result: $ac_res" >&5
12351 echo "${ECHO_T}$ac_res" >&6; }
12352 if test `eval echo '${'$as_ac_var'}'` = yes; then
12353 cat >>confdefs.h <<_ACEOF
12354 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12362 for ac_func in memcpy bcopy
12364 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12365 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12366 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12367 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12368 echo $ECHO_N "(cached) $ECHO_C" >&6
12370 cat >conftest.$ac_ext <<_ACEOF
12373 cat confdefs.h >>conftest.$ac_ext
12374 cat >>conftest.$ac_ext <<_ACEOF
12375 /* end confdefs.h. */
12376 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12377 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12378 #define $ac_func innocuous_$ac_func
12380 /* System header to define __stub macros and hopefully few prototypes,
12381 which can conflict with char $ac_func (); below.
12382 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12383 <limits.h> exists even on freestanding compilers. */
12386 # include <limits.h>
12388 # include <assert.h>
12393 /* Override any GCC internal prototype to avoid an error.
12394 Use char because int might match the return type of a GCC
12395 builtin and then its argument prototype would still apply. */
12400 /* The GNU C library defines this for functions which it implements
12401 to always fail with ENOSYS. Some functions are actually named
12402 something starting with __ and the normal name is an alias. */
12403 #if defined __stub_$ac_func || defined __stub___$ac_func
12410 return $ac_func ();
12415 rm -f conftest.$ac_objext conftest$ac_exeext
12416 if { (ac_try="$ac_link"
12417 case "(($ac_try" in
12418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12419 *) ac_try_echo=$ac_try;;
12421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12422 (eval "$ac_link") 2>conftest.er1
12424 grep -v '^ *+' conftest.er1 >conftest.err
12426 cat conftest.err >&5
12427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428 (exit $ac_status); } &&
12429 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12430 { (case "(($ac_try" in
12431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12432 *) ac_try_echo=$ac_try;;
12434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12435 (eval "$ac_try") 2>&5
12437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438 (exit $ac_status); }; } &&
12439 { ac_try='test -s conftest$ac_exeext'
12440 { (case "(($ac_try" in
12441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12442 *) ac_try_echo=$ac_try;;
12444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12445 (eval "$ac_try") 2>&5
12447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448 (exit $ac_status); }; }; then
12449 eval "$as_ac_var=yes"
12451 echo "$as_me: failed program was:" >&5
12452 sed 's/^/| /' conftest.$ac_ext >&5
12454 eval "$as_ac_var=no"
12457 rm -f core conftest.err conftest.$ac_objext \
12458 conftest$ac_exeext conftest.$ac_ext
12460 ac_res=`eval echo '${'$as_ac_var'}'`
12461 { echo "$as_me:$LINENO: result: $ac_res" >&5
12462 echo "${ECHO_T}$ac_res" >&6; }
12463 if test `eval echo '${'$as_ac_var'}'` = yes; then
12464 cat >>confdefs.h <<_ACEOF
12465 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12473 for ac_func in memmove strcmp
12475 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12476 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12477 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12478 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12479 echo $ECHO_N "(cached) $ECHO_C" >&6
12481 cat >conftest.$ac_ext <<_ACEOF
12484 cat confdefs.h >>conftest.$ac_ext
12485 cat >>conftest.$ac_ext <<_ACEOF
12486 /* end confdefs.h. */
12487 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12488 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12489 #define $ac_func innocuous_$ac_func
12491 /* System header to define __stub macros and hopefully few prototypes,
12492 which can conflict with char $ac_func (); below.
12493 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12494 <limits.h> exists even on freestanding compilers. */
12497 # include <limits.h>
12499 # include <assert.h>
12504 /* Override any GCC internal prototype to avoid an error.
12505 Use char because int might match the return type of a GCC
12506 builtin and then its argument prototype would still apply. */
12511 /* The GNU C library defines this for functions which it implements
12512 to always fail with ENOSYS. Some functions are actually named
12513 something starting with __ and the normal name is an alias. */
12514 #if defined __stub_$ac_func || defined __stub___$ac_func
12521 return $ac_func ();
12526 rm -f conftest.$ac_objext conftest$ac_exeext
12527 if { (ac_try="$ac_link"
12528 case "(($ac_try" in
12529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12530 *) ac_try_echo=$ac_try;;
12532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12533 (eval "$ac_link") 2>conftest.er1
12535 grep -v '^ *+' conftest.er1 >conftest.err
12537 cat conftest.err >&5
12538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 (exit $ac_status); } &&
12540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12541 { (case "(($ac_try" in
12542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12543 *) ac_try_echo=$ac_try;;
12545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12546 (eval "$ac_try") 2>&5
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); }; } &&
12550 { ac_try='test -s conftest$ac_exeext'
12551 { (case "(($ac_try" in
12552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12553 *) ac_try_echo=$ac_try;;
12555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12556 (eval "$ac_try") 2>&5
12558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12559 (exit $ac_status); }; }; then
12560 eval "$as_ac_var=yes"
12562 echo "$as_me: failed program was:" >&5
12563 sed 's/^/| /' conftest.$ac_ext >&5
12565 eval "$as_ac_var=no"
12568 rm -f core conftest.err conftest.$ac_objext \
12569 conftest$ac_exeext conftest.$ac_ext
12571 ac_res=`eval echo '${'$as_ac_var'}'`
12572 { echo "$as_me:$LINENO: result: $ac_res" >&5
12573 echo "${ECHO_T}$ac_res" >&6; }
12574 if test `eval echo '${'$as_ac_var'}'` = yes; then
12575 cat >>confdefs.h <<_ACEOF
12576 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12585 for ac_func in closedir opendir readdir
12587 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12588 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12589 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12590 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12591 echo $ECHO_N "(cached) $ECHO_C" >&6
12593 cat >conftest.$ac_ext <<_ACEOF
12596 cat confdefs.h >>conftest.$ac_ext
12597 cat >>conftest.$ac_ext <<_ACEOF
12598 /* end confdefs.h. */
12599 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12600 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12601 #define $ac_func innocuous_$ac_func
12603 /* System header to define __stub macros and hopefully few prototypes,
12604 which can conflict with char $ac_func (); below.
12605 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12606 <limits.h> exists even on freestanding compilers. */
12609 # include <limits.h>
12611 # include <assert.h>
12616 /* Override any GCC internal prototype to avoid an error.
12617 Use char because int might match the return type of a GCC
12618 builtin and then its argument prototype would still apply. */
12623 /* The GNU C library defines this for functions which it implements
12624 to always fail with ENOSYS. Some functions are actually named
12625 something starting with __ and the normal name is an alias. */
12626 #if defined __stub_$ac_func || defined __stub___$ac_func
12633 return $ac_func ();
12638 rm -f conftest.$ac_objext conftest$ac_exeext
12639 if { (ac_try="$ac_link"
12640 case "(($ac_try" in
12641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12642 *) ac_try_echo=$ac_try;;
12644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12645 (eval "$ac_link") 2>conftest.er1
12647 grep -v '^ *+' conftest.er1 >conftest.err
12649 cat conftest.err >&5
12650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651 (exit $ac_status); } &&
12652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12653 { (case "(($ac_try" in
12654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12655 *) ac_try_echo=$ac_try;;
12657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12658 (eval "$ac_try") 2>&5
12660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661 (exit $ac_status); }; } &&
12662 { ac_try='test -s conftest$ac_exeext'
12663 { (case "(($ac_try" in
12664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12665 *) ac_try_echo=$ac_try;;
12667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12668 (eval "$ac_try") 2>&5
12670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671 (exit $ac_status); }; }; then
12672 eval "$as_ac_var=yes"
12674 echo "$as_me: failed program was:" >&5
12675 sed 's/^/| /' conftest.$ac_ext >&5
12677 eval "$as_ac_var=no"
12680 rm -f core conftest.err conftest.$ac_objext \
12681 conftest$ac_exeext conftest.$ac_ext
12683 ac_res=`eval echo '${'$as_ac_var'}'`
12684 { echo "$as_me:$LINENO: result: $ac_res" >&5
12685 echo "${ECHO_T}$ac_res" >&6; }
12686 if test `eval echo '${'$as_ac_var'}'` = yes; then
12687 cat >>confdefs.h <<_ACEOF
12688 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12696 if test "$WITH_LLVMGCCDIR" = "default" ; then
12697 LLVMGCC="llvm-gcc${EXEEXT}"
12698 LLVMGXX="llvm-g++${EXEEXT}"
12699 LLVMGCCCOMMAND="$LLVMGCC"
12700 LLVMGXXCOMMAND="$LLVMGXX"
12701 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12703 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12705 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
12706 set dummy $LLVMGCC; ac_word=$2
12707 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12709 if test "${ac_cv_path_LLVMGCC+set}" = set; then
12710 echo $ECHO_N "(cached) $ECHO_C" >&6
12714 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
12717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12718 for as_dir in $PATH
12721 test -z "$as_dir" && as_dir=.
12722 for ac_exec_ext in '' $ac_executable_extensions; do
12723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12724 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
12725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12735 LLVMGCC=$ac_cv_path_LLVMGCC
12736 if test -n "$LLVMGCC"; then
12737 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
12738 echo "${ECHO_T}$LLVMGCC" >&6; }
12740 { echo "$as_me:$LINENO: result: no" >&5
12741 echo "${ECHO_T}no" >&6; }
12745 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
12746 set dummy $LLVMGXX; ac_word=$2
12747 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12749 if test "${ac_cv_path_LLVMGXX+set}" = set; then
12750 echo $ECHO_N "(cached) $ECHO_C" >&6
12754 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
12757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12758 for as_dir in $PATH
12761 test -z "$as_dir" && as_dir=.
12762 for ac_exec_ext in '' $ac_executable_extensions; do
12763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12764 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
12765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12775 LLVMGXX=$ac_cv_path_LLVMGXX
12776 if test -n "$LLVMGXX"; then
12777 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
12778 echo "${ECHO_T}$LLVMGXX" >&6; }
12780 { echo "$as_me:$LINENO: result: no" >&5
12781 echo "${ECHO_T}no" >&6; }
12786 if test -z "$LLVMGCC"; then
12787 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
12788 LLVMGCCCOMMAND="$LLVMGCC"
12790 if test -z "$LLVMGXX"; then
12791 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
12792 LLVMGXXCOMMAND="$LLVMGXX"
12799 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12801 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12806 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12807 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12820 if test "$GCC" != "yes" && test "$ICC" != "yes"
12822 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12823 echo "$as_me: error: gcc|icc required but not found" >&2;}
12824 { (exit 1); exit 1; }; }
12827 if test "$GXX" != "yes" && test "$IXX" != "yes"
12829 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
12830 echo "$as_me: error: g++|icc required but not found" >&2;}
12831 { (exit 1); exit 1; }; }
12834 if test "$GCC" = "yes"
12836 cat >conftest.$ac_ext <<_ACEOF
12837 #if !defined(__GNUC__) || __GNUC__ < 3
12838 #error Unsupported GCC version
12842 rm -f conftest.$ac_objext
12843 if { (ac_try="$ac_compile"
12844 case "(($ac_try" in
12845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12846 *) ac_try_echo=$ac_try;;
12848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12849 (eval "$ac_compile") 2>conftest.er1
12851 grep -v '^ *+' conftest.er1 >conftest.err
12853 cat conftest.err >&5
12854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855 (exit $ac_status); } &&
12856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12857 { (case "(($ac_try" in
12858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12859 *) ac_try_echo=$ac_try;;
12861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12862 (eval "$ac_try") 2>&5
12864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865 (exit $ac_status); }; } &&
12866 { ac_try='test -s conftest.$ac_objext'
12867 { (case "(($ac_try" in
12868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12869 *) ac_try_echo=$ac_try;;
12871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12872 (eval "$ac_try") 2>&5
12874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12875 (exit $ac_status); }; }; then
12878 echo "$as_me: failed program was:" >&5
12879 sed 's/^/| /' conftest.$ac_ext >&5
12881 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12882 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12883 { (exit 1); exit 1; }; }
12886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12889 if test -z "$llvm_cv_gnu_make_command"
12891 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12892 echo "$as_me: error: GNU Make required but not found" >&2;}
12893 { (exit 1); exit 1; }; }
12896 { echo "$as_me:$LINENO: result: ok" >&5
12897 echo "${ECHO_T}ok" >&6; }
12899 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12900 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12901 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12903 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12905 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12906 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
12910 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12911 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12912 if test "${ac_cv_lib_m_sin+set}" = set; then
12913 echo $ECHO_N "(cached) $ECHO_C" >&6
12915 ac_check_lib_save_LIBS=$LIBS
12917 cat >conftest.$ac_ext <<_ACEOF
12920 cat confdefs.h >>conftest.$ac_ext
12921 cat >>conftest.$ac_ext <<_ACEOF
12922 /* end confdefs.h. */
12924 /* Override any GCC internal prototype to avoid an error.
12925 Use char because int might match the return type of a GCC
12926 builtin and then its argument prototype would still apply. */
12939 rm -f conftest.$ac_objext conftest$ac_exeext
12940 if { (ac_try="$ac_link"
12941 case "(($ac_try" in
12942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12943 *) ac_try_echo=$ac_try;;
12945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12946 (eval "$ac_link") 2>conftest.er1
12948 grep -v '^ *+' conftest.er1 >conftest.err
12950 cat conftest.err >&5
12951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12952 (exit $ac_status); } &&
12953 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12954 { (case "(($ac_try" in
12955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12956 *) ac_try_echo=$ac_try;;
12958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12959 (eval "$ac_try") 2>&5
12961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12962 (exit $ac_status); }; } &&
12963 { ac_try='test -s conftest$ac_exeext'
12964 { (case "(($ac_try" in
12965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12966 *) ac_try_echo=$ac_try;;
12968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12969 (eval "$ac_try") 2>&5
12971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12972 (exit $ac_status); }; }; then
12973 ac_cv_lib_m_sin=yes
12975 echo "$as_me: failed program was:" >&5
12976 sed 's/^/| /' conftest.$ac_ext >&5
12981 rm -f core conftest.err conftest.$ac_objext \
12982 conftest$ac_exeext conftest.$ac_ext
12983 LIBS=$ac_check_lib_save_LIBS
12985 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12986 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12987 if test $ac_cv_lib_m_sin = yes; then
12988 cat >>confdefs.h <<_ACEOF
12989 #define HAVE_LIBM 1
12996 if test "$llvm_cv_os_type" = "MingW" ; then
12998 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12999 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13000 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13001 echo $ECHO_N "(cached) $ECHO_C" >&6
13003 ac_check_lib_save_LIBS=$LIBS
13004 LIBS="-limagehlp $LIBS"
13005 cat >conftest.$ac_ext <<_ACEOF
13008 cat confdefs.h >>conftest.$ac_ext
13009 cat >>conftest.$ac_ext <<_ACEOF
13010 /* end confdefs.h. */
13021 rm -f conftest.$ac_objext conftest$ac_exeext
13022 if { (ac_try="$ac_link"
13023 case "(($ac_try" in
13024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13025 *) ac_try_echo=$ac_try;;
13027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13028 (eval "$ac_link") 2>conftest.er1
13030 grep -v '^ *+' conftest.er1 >conftest.err
13032 cat conftest.err >&5
13033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13034 (exit $ac_status); } &&
13035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13036 { (case "(($ac_try" in
13037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13038 *) ac_try_echo=$ac_try;;
13040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13041 (eval "$ac_try") 2>&5
13043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13044 (exit $ac_status); }; } &&
13045 { ac_try='test -s conftest$ac_exeext'
13046 { (case "(($ac_try" in
13047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13048 *) ac_try_echo=$ac_try;;
13050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13051 (eval "$ac_try") 2>&5
13053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054 (exit $ac_status); }; }; then
13055 ac_cv_lib_imagehlp_main=yes
13057 echo "$as_me: failed program was:" >&5
13058 sed 's/^/| /' conftest.$ac_ext >&5
13060 ac_cv_lib_imagehlp_main=no
13063 rm -f core conftest.err conftest.$ac_objext \
13064 conftest$ac_exeext conftest.$ac_ext
13065 LIBS=$ac_check_lib_save_LIBS
13067 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13068 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13069 if test $ac_cv_lib_imagehlp_main = yes; then
13070 cat >>confdefs.h <<_ACEOF
13071 #define HAVE_LIBIMAGEHLP 1
13074 LIBS="-limagehlp $LIBS"
13079 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13080 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13081 if test "${ac_cv_lib_psapi_main+set}" = set; then
13082 echo $ECHO_N "(cached) $ECHO_C" >&6
13084 ac_check_lib_save_LIBS=$LIBS
13085 LIBS="-lpsapi $LIBS"
13086 cat >conftest.$ac_ext <<_ACEOF
13089 cat confdefs.h >>conftest.$ac_ext
13090 cat >>conftest.$ac_ext <<_ACEOF
13091 /* end confdefs.h. */
13102 rm -f conftest.$ac_objext conftest$ac_exeext
13103 if { (ac_try="$ac_link"
13104 case "(($ac_try" in
13105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13106 *) ac_try_echo=$ac_try;;
13108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13109 (eval "$ac_link") 2>conftest.er1
13111 grep -v '^ *+' conftest.er1 >conftest.err
13113 cat conftest.err >&5
13114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13115 (exit $ac_status); } &&
13116 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13117 { (case "(($ac_try" in
13118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13119 *) ac_try_echo=$ac_try;;
13121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13122 (eval "$ac_try") 2>&5
13124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13125 (exit $ac_status); }; } &&
13126 { ac_try='test -s conftest$ac_exeext'
13127 { (case "(($ac_try" in
13128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13129 *) ac_try_echo=$ac_try;;
13131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13132 (eval "$ac_try") 2>&5
13134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135 (exit $ac_status); }; }; then
13136 ac_cv_lib_psapi_main=yes
13138 echo "$as_me: failed program was:" >&5
13139 sed 's/^/| /' conftest.$ac_ext >&5
13141 ac_cv_lib_psapi_main=no
13144 rm -f core conftest.err conftest.$ac_objext \
13145 conftest$ac_exeext conftest.$ac_ext
13146 LIBS=$ac_check_lib_save_LIBS
13148 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13149 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13150 if test $ac_cv_lib_psapi_main = yes; then
13151 cat >>confdefs.h <<_ACEOF
13152 #define HAVE_LIBPSAPI 1
13155 LIBS="-lpsapi $LIBS"
13161 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13162 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13163 if test "${ac_cv_search_dlopen+set}" = set; then
13164 echo $ECHO_N "(cached) $ECHO_C" >&6
13166 ac_func_search_save_LIBS=$LIBS
13167 cat >conftest.$ac_ext <<_ACEOF
13170 cat confdefs.h >>conftest.$ac_ext
13171 cat >>conftest.$ac_ext <<_ACEOF
13172 /* end confdefs.h. */
13174 /* Override any GCC internal prototype to avoid an error.
13175 Use char because int might match the return type of a GCC
13176 builtin and then its argument prototype would still apply. */
13189 for ac_lib in '' dl; do
13190 if test -z "$ac_lib"; then
13191 ac_res="none required"
13194 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13196 rm -f conftest.$ac_objext conftest$ac_exeext
13197 if { (ac_try="$ac_link"
13198 case "(($ac_try" in
13199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13200 *) ac_try_echo=$ac_try;;
13202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13203 (eval "$ac_link") 2>conftest.er1
13205 grep -v '^ *+' conftest.er1 >conftest.err
13207 cat conftest.err >&5
13208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13209 (exit $ac_status); } &&
13210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13211 { (case "(($ac_try" in
13212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13213 *) ac_try_echo=$ac_try;;
13215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13216 (eval "$ac_try") 2>&5
13218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219 (exit $ac_status); }; } &&
13220 { ac_try='test -s conftest$ac_exeext'
13221 { (case "(($ac_try" in
13222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13223 *) ac_try_echo=$ac_try;;
13225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13226 (eval "$ac_try") 2>&5
13228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13229 (exit $ac_status); }; }; then
13230 ac_cv_search_dlopen=$ac_res
13232 echo "$as_me: failed program was:" >&5
13233 sed 's/^/| /' conftest.$ac_ext >&5
13238 rm -f core conftest.err conftest.$ac_objext \
13240 if test "${ac_cv_search_dlopen+set}" = set; then
13244 if test "${ac_cv_search_dlopen+set}" = set; then
13247 ac_cv_search_dlopen=no
13249 rm conftest.$ac_ext
13250 LIBS=$ac_func_search_save_LIBS
13252 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13253 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13254 ac_res=$ac_cv_search_dlopen
13255 if test "$ac_res" != no; then
13256 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13258 cat >>confdefs.h <<\_ACEOF
13259 #define HAVE_DLOPEN 1
13263 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13264 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
13268 if test "$llvm_cv_enable_libffi" = "yes" ; then
13269 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13270 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13271 if test "${ac_cv_search_ffi_call+set}" = set; then
13272 echo $ECHO_N "(cached) $ECHO_C" >&6
13274 ac_func_search_save_LIBS=$LIBS
13275 cat >conftest.$ac_ext <<_ACEOF
13278 cat confdefs.h >>conftest.$ac_ext
13279 cat >>conftest.$ac_ext <<_ACEOF
13280 /* end confdefs.h. */
13282 /* Override any GCC internal prototype to avoid an error.
13283 Use char because int might match the return type of a GCC
13284 builtin and then its argument prototype would still apply. */
13292 return ffi_call ();
13297 for ac_lib in '' ffi; do
13298 if test -z "$ac_lib"; then
13299 ac_res="none required"
13302 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13304 rm -f conftest.$ac_objext conftest$ac_exeext
13305 if { (ac_try="$ac_link"
13306 case "(($ac_try" in
13307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13308 *) ac_try_echo=$ac_try;;
13310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13311 (eval "$ac_link") 2>conftest.er1
13313 grep -v '^ *+' conftest.er1 >conftest.err
13315 cat conftest.err >&5
13316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13317 (exit $ac_status); } &&
13318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13319 { (case "(($ac_try" in
13320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13321 *) ac_try_echo=$ac_try;;
13323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13324 (eval "$ac_try") 2>&5
13326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13327 (exit $ac_status); }; } &&
13328 { ac_try='test -s conftest$ac_exeext'
13329 { (case "(($ac_try" in
13330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13331 *) ac_try_echo=$ac_try;;
13333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13334 (eval "$ac_try") 2>&5
13336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13337 (exit $ac_status); }; }; then
13338 ac_cv_search_ffi_call=$ac_res
13340 echo "$as_me: failed program was:" >&5
13341 sed 's/^/| /' conftest.$ac_ext >&5
13346 rm -f core conftest.err conftest.$ac_objext \
13348 if test "${ac_cv_search_ffi_call+set}" = set; then
13352 if test "${ac_cv_search_ffi_call+set}" = set; then
13355 ac_cv_search_ffi_call=no
13357 rm conftest.$ac_ext
13358 LIBS=$ac_func_search_save_LIBS
13360 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13361 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
13362 ac_res=$ac_cv_search_ffi_call
13363 if test "$ac_res" != no; then
13364 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13366 cat >>confdefs.h <<\_ACEOF
13367 #define HAVE_FFI_CALL 1
13371 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13372 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13373 { (exit 1); exit 1; }; }
13378 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13379 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13380 if test "${ac_cv_search_mallinfo+set}" = set; then
13381 echo $ECHO_N "(cached) $ECHO_C" >&6
13383 ac_func_search_save_LIBS=$LIBS
13384 cat >conftest.$ac_ext <<_ACEOF
13387 cat confdefs.h >>conftest.$ac_ext
13388 cat >>conftest.$ac_ext <<_ACEOF
13389 /* end confdefs.h. */
13391 /* Override any GCC internal prototype to avoid an error.
13392 Use char because int might match the return type of a GCC
13393 builtin and then its argument prototype would still apply. */
13401 return mallinfo ();
13406 for ac_lib in '' malloc; do
13407 if test -z "$ac_lib"; then
13408 ac_res="none required"
13411 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13413 rm -f conftest.$ac_objext conftest$ac_exeext
13414 if { (ac_try="$ac_link"
13415 case "(($ac_try" in
13416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13417 *) ac_try_echo=$ac_try;;
13419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13420 (eval "$ac_link") 2>conftest.er1
13422 grep -v '^ *+' conftest.er1 >conftest.err
13424 cat conftest.err >&5
13425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426 (exit $ac_status); } &&
13427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13428 { (case "(($ac_try" in
13429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13430 *) ac_try_echo=$ac_try;;
13432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13433 (eval "$ac_try") 2>&5
13435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436 (exit $ac_status); }; } &&
13437 { ac_try='test -s conftest$ac_exeext'
13438 { (case "(($ac_try" in
13439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13440 *) ac_try_echo=$ac_try;;
13442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13443 (eval "$ac_try") 2>&5
13445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446 (exit $ac_status); }; }; then
13447 ac_cv_search_mallinfo=$ac_res
13449 echo "$as_me: failed program was:" >&5
13450 sed 's/^/| /' conftest.$ac_ext >&5
13455 rm -f core conftest.err conftest.$ac_objext \
13457 if test "${ac_cv_search_mallinfo+set}" = set; then
13461 if test "${ac_cv_search_mallinfo+set}" = set; then
13464 ac_cv_search_mallinfo=no
13466 rm conftest.$ac_ext
13467 LIBS=$ac_func_search_save_LIBS
13469 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13470 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13471 ac_res=$ac_cv_search_mallinfo
13472 if test "$ac_res" != no; then
13473 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13475 cat >>confdefs.h <<\_ACEOF
13476 #define HAVE_MALLINFO 1
13482 if test "$ENABLE_THREADS" -eq 1 ; then
13484 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13485 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13486 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13487 echo $ECHO_N "(cached) $ECHO_C" >&6
13489 ac_check_lib_save_LIBS=$LIBS
13490 LIBS="-lpthread $LIBS"
13491 cat >conftest.$ac_ext <<_ACEOF
13494 cat confdefs.h >>conftest.$ac_ext
13495 cat >>conftest.$ac_ext <<_ACEOF
13496 /* end confdefs.h. */
13498 /* Override any GCC internal prototype to avoid an error.
13499 Use char because int might match the return type of a GCC
13500 builtin and then its argument prototype would still apply. */
13504 char pthread_mutex_init ();
13508 return pthread_mutex_init ();
13513 rm -f conftest.$ac_objext conftest$ac_exeext
13514 if { (ac_try="$ac_link"
13515 case "(($ac_try" in
13516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13517 *) ac_try_echo=$ac_try;;
13519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13520 (eval "$ac_link") 2>conftest.er1
13522 grep -v '^ *+' conftest.er1 >conftest.err
13524 cat conftest.err >&5
13525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526 (exit $ac_status); } &&
13527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13528 { (case "(($ac_try" in
13529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13530 *) ac_try_echo=$ac_try;;
13532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13533 (eval "$ac_try") 2>&5
13535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13536 (exit $ac_status); }; } &&
13537 { ac_try='test -s conftest$ac_exeext'
13538 { (case "(($ac_try" in
13539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13540 *) ac_try_echo=$ac_try;;
13542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13543 (eval "$ac_try") 2>&5
13545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13546 (exit $ac_status); }; }; then
13547 ac_cv_lib_pthread_pthread_mutex_init=yes
13549 echo "$as_me: failed program was:" >&5
13550 sed 's/^/| /' conftest.$ac_ext >&5
13552 ac_cv_lib_pthread_pthread_mutex_init=no
13555 rm -f core conftest.err conftest.$ac_objext \
13556 conftest$ac_exeext conftest.$ac_ext
13557 LIBS=$ac_check_lib_save_LIBS
13559 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13560 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13561 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13562 cat >>confdefs.h <<_ACEOF
13563 #define HAVE_LIBPTHREAD 1
13566 LIBS="-lpthread $LIBS"
13570 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13571 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13572 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13573 echo $ECHO_N "(cached) $ECHO_C" >&6
13575 ac_func_search_save_LIBS=$LIBS
13576 cat >conftest.$ac_ext <<_ACEOF
13579 cat confdefs.h >>conftest.$ac_ext
13580 cat >>conftest.$ac_ext <<_ACEOF
13581 /* end confdefs.h. */
13583 /* Override any GCC internal prototype to avoid an error.
13584 Use char because int might match the return type of a GCC
13585 builtin and then its argument prototype would still apply. */
13589 char pthread_mutex_lock ();
13593 return pthread_mutex_lock ();
13598 for ac_lib in '' pthread; do
13599 if test -z "$ac_lib"; then
13600 ac_res="none required"
13603 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13605 rm -f conftest.$ac_objext conftest$ac_exeext
13606 if { (ac_try="$ac_link"
13607 case "(($ac_try" in
13608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13609 *) ac_try_echo=$ac_try;;
13611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13612 (eval "$ac_link") 2>conftest.er1
13614 grep -v '^ *+' conftest.er1 >conftest.err
13616 cat conftest.err >&5
13617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618 (exit $ac_status); } &&
13619 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13620 { (case "(($ac_try" in
13621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13622 *) ac_try_echo=$ac_try;;
13624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13625 (eval "$ac_try") 2>&5
13627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628 (exit $ac_status); }; } &&
13629 { ac_try='test -s conftest$ac_exeext'
13630 { (case "(($ac_try" in
13631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13632 *) ac_try_echo=$ac_try;;
13634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13635 (eval "$ac_try") 2>&5
13637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13638 (exit $ac_status); }; }; then
13639 ac_cv_search_pthread_mutex_lock=$ac_res
13641 echo "$as_me: failed program was:" >&5
13642 sed 's/^/| /' conftest.$ac_ext >&5
13647 rm -f core conftest.err conftest.$ac_objext \
13649 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13653 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13656 ac_cv_search_pthread_mutex_lock=no
13658 rm conftest.$ac_ext
13659 LIBS=$ac_func_search_save_LIBS
13661 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13662 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13663 ac_res=$ac_cv_search_pthread_mutex_lock
13664 if test "$ac_res" != no; then
13665 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13667 cat >>confdefs.h <<\_ACEOF
13668 #define HAVE_PTHREAD_MUTEX_LOCK 1
13673 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13674 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13675 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13676 echo $ECHO_N "(cached) $ECHO_C" >&6
13678 ac_func_search_save_LIBS=$LIBS
13679 cat >conftest.$ac_ext <<_ACEOF
13682 cat confdefs.h >>conftest.$ac_ext
13683 cat >>conftest.$ac_ext <<_ACEOF
13684 /* end confdefs.h. */
13686 /* Override any GCC internal prototype to avoid an error.
13687 Use char because int might match the return type of a GCC
13688 builtin and then its argument prototype would still apply. */
13692 char pthread_rwlock_init ();
13696 return pthread_rwlock_init ();
13701 for ac_lib in '' pthread; do
13702 if test -z "$ac_lib"; then
13703 ac_res="none required"
13706 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13708 rm -f conftest.$ac_objext conftest$ac_exeext
13709 if { (ac_try="$ac_link"
13710 case "(($ac_try" in
13711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13712 *) ac_try_echo=$ac_try;;
13714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13715 (eval "$ac_link") 2>conftest.er1
13717 grep -v '^ *+' conftest.er1 >conftest.err
13719 cat conftest.err >&5
13720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13721 (exit $ac_status); } &&
13722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13723 { (case "(($ac_try" in
13724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13725 *) ac_try_echo=$ac_try;;
13727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13728 (eval "$ac_try") 2>&5
13730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731 (exit $ac_status); }; } &&
13732 { ac_try='test -s conftest$ac_exeext'
13733 { (case "(($ac_try" in
13734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13735 *) ac_try_echo=$ac_try;;
13737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13738 (eval "$ac_try") 2>&5
13740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13741 (exit $ac_status); }; }; then
13742 ac_cv_search_pthread_rwlock_init=$ac_res
13744 echo "$as_me: failed program was:" >&5
13745 sed 's/^/| /' conftest.$ac_ext >&5
13750 rm -f core conftest.err conftest.$ac_objext \
13752 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13756 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13759 ac_cv_search_pthread_rwlock_init=no
13761 rm conftest.$ac_ext
13762 LIBS=$ac_func_search_save_LIBS
13764 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13765 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13766 ac_res=$ac_cv_search_pthread_rwlock_init
13767 if test "$ac_res" != no; then
13768 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13770 cat >>confdefs.h <<\_ACEOF
13771 #define HAVE_PTHREAD_RWLOCK_INIT 1
13776 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13777 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13778 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13779 echo $ECHO_N "(cached) $ECHO_C" >&6
13781 ac_func_search_save_LIBS=$LIBS
13782 cat >conftest.$ac_ext <<_ACEOF
13785 cat confdefs.h >>conftest.$ac_ext
13786 cat >>conftest.$ac_ext <<_ACEOF
13787 /* end confdefs.h. */
13789 /* Override any GCC internal prototype to avoid an error.
13790 Use char because int might match the return type of a GCC
13791 builtin and then its argument prototype would still apply. */
13795 char pthread_getspecific ();
13799 return pthread_getspecific ();
13804 for ac_lib in '' pthread; do
13805 if test -z "$ac_lib"; then
13806 ac_res="none required"
13809 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13811 rm -f conftest.$ac_objext conftest$ac_exeext
13812 if { (ac_try="$ac_link"
13813 case "(($ac_try" in
13814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13815 *) ac_try_echo=$ac_try;;
13817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13818 (eval "$ac_link") 2>conftest.er1
13820 grep -v '^ *+' conftest.er1 >conftest.err
13822 cat conftest.err >&5
13823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13824 (exit $ac_status); } &&
13825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13826 { (case "(($ac_try" in
13827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13828 *) ac_try_echo=$ac_try;;
13830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13831 (eval "$ac_try") 2>&5
13833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13834 (exit $ac_status); }; } &&
13835 { ac_try='test -s conftest$ac_exeext'
13836 { (case "(($ac_try" in
13837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13838 *) ac_try_echo=$ac_try;;
13840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13841 (eval "$ac_try") 2>&5
13843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13844 (exit $ac_status); }; }; then
13845 ac_cv_search_pthread_getspecific=$ac_res
13847 echo "$as_me: failed program was:" >&5
13848 sed 's/^/| /' conftest.$ac_ext >&5
13853 rm -f core conftest.err conftest.$ac_objext \
13855 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13859 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13862 ac_cv_search_pthread_getspecific=no
13864 rm conftest.$ac_ext
13865 LIBS=$ac_func_search_save_LIBS
13867 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13868 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13869 ac_res=$ac_cv_search_pthread_getspecific
13870 if test "$ac_res" != no; then
13871 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13873 cat >>confdefs.h <<\_ACEOF
13874 #define HAVE_PTHREAD_GETSPECIFIC 1
13882 # Check whether --with-udis86 was given.
13883 if test "${with_udis86+set}" = set; then
13884 withval=$with_udis86;
13889 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13892 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13893 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13894 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13895 echo $ECHO_N "(cached) $ECHO_C" >&6
13897 ac_check_lib_save_LIBS=$LIBS
13898 LIBS="-ludis86 $LIBS"
13899 cat >conftest.$ac_ext <<_ACEOF
13902 cat confdefs.h >>conftest.$ac_ext
13903 cat >>conftest.$ac_ext <<_ACEOF
13904 /* end confdefs.h. */
13906 /* Override any GCC internal prototype to avoid an error.
13907 Use char because int might match the return type of a GCC
13908 builtin and then its argument prototype would still apply. */
13921 rm -f conftest.$ac_objext conftest$ac_exeext
13922 if { (ac_try="$ac_link"
13923 case "(($ac_try" in
13924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13925 *) ac_try_echo=$ac_try;;
13927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13928 (eval "$ac_link") 2>conftest.er1
13930 grep -v '^ *+' conftest.er1 >conftest.err
13932 cat conftest.err >&5
13933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13934 (exit $ac_status); } &&
13935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13936 { (case "(($ac_try" in
13937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13938 *) ac_try_echo=$ac_try;;
13940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13941 (eval "$ac_try") 2>&5
13943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944 (exit $ac_status); }; } &&
13945 { ac_try='test -s conftest$ac_exeext'
13946 { (case "(($ac_try" in
13947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13948 *) ac_try_echo=$ac_try;;
13950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13951 (eval "$ac_try") 2>&5
13953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13954 (exit $ac_status); }; }; then
13955 ac_cv_lib_udis86_ud_init=yes
13957 echo "$as_me: failed program was:" >&5
13958 sed 's/^/| /' conftest.$ac_ext >&5
13960 ac_cv_lib_udis86_ud_init=no
13963 rm -f core conftest.err conftest.$ac_objext \
13964 conftest$ac_exeext conftest.$ac_ext
13965 LIBS=$ac_check_lib_save_LIBS
13967 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13968 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13969 if test $ac_cv_lib_udis86_ud_init = yes; then
13970 cat >>confdefs.h <<_ACEOF
13971 #define HAVE_LIBUDIS86 1
13974 LIBS="-ludis86 $LIBS"
13978 echo "Error! You need to have libudis86 around."
13990 cat >>confdefs.h <<_ACEOF
13991 #define USE_UDIS86 $USE_UDIS86
13996 # Check whether --with-oprofile was given.
13997 if test "${with_oprofile+set}" = set; then
13998 withval=$with_oprofile;
14002 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
14003 no) llvm_cv_oppath=
14006 *) llvm_cv_oppath="${withval}/lib/oprofile"
14007 CPPFLAGS="-I${withval}/include";;
14009 if test -n "$llvm_cv_oppath" ; then
14010 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
14011 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14012 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14013 if test "${ac_cv_search_bfd_init+set}" = set; then
14014 echo $ECHO_N "(cached) $ECHO_C" >&6
14016 ac_func_search_save_LIBS=$LIBS
14017 cat >conftest.$ac_ext <<_ACEOF
14020 cat confdefs.h >>conftest.$ac_ext
14021 cat >>conftest.$ac_ext <<_ACEOF
14022 /* end confdefs.h. */
14024 /* Override any GCC internal prototype to avoid an error.
14025 Use char because int might match the return type of a GCC
14026 builtin and then its argument prototype would still apply. */
14034 return bfd_init ();
14039 for ac_lib in '' bfd; do
14040 if test -z "$ac_lib"; then
14041 ac_res="none required"
14044 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14046 rm -f conftest.$ac_objext conftest$ac_exeext
14047 if { (ac_try="$ac_link"
14048 case "(($ac_try" in
14049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14050 *) ac_try_echo=$ac_try;;
14052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14053 (eval "$ac_link") 2>conftest.er1
14055 grep -v '^ *+' conftest.er1 >conftest.err
14057 cat conftest.err >&5
14058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14059 (exit $ac_status); } &&
14060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14061 { (case "(($ac_try" in
14062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14063 *) ac_try_echo=$ac_try;;
14065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14066 (eval "$ac_try") 2>&5
14068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14069 (exit $ac_status); }; } &&
14070 { ac_try='test -s conftest$ac_exeext'
14071 { (case "(($ac_try" in
14072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14073 *) ac_try_echo=$ac_try;;
14075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14076 (eval "$ac_try") 2>&5
14078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14079 (exit $ac_status); }; }; then
14080 ac_cv_search_bfd_init=$ac_res
14082 echo "$as_me: failed program was:" >&5
14083 sed 's/^/| /' conftest.$ac_ext >&5
14088 rm -f core conftest.err conftest.$ac_objext \
14090 if test "${ac_cv_search_bfd_init+set}" = set; then
14094 if test "${ac_cv_search_bfd_init+set}" = set; then
14097 ac_cv_search_bfd_init=no
14099 rm conftest.$ac_ext
14100 LIBS=$ac_func_search_save_LIBS
14102 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14103 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
14104 ac_res=$ac_cv_search_bfd_init
14105 if test "$ac_res" != no; then
14106 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14110 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14111 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14112 if test "${ac_cv_search_op_open_agent+set}" = set; then
14113 echo $ECHO_N "(cached) $ECHO_C" >&6
14115 ac_func_search_save_LIBS=$LIBS
14116 cat >conftest.$ac_ext <<_ACEOF
14119 cat confdefs.h >>conftest.$ac_ext
14120 cat >>conftest.$ac_ext <<_ACEOF
14121 /* end confdefs.h. */
14123 /* Override any GCC internal prototype to avoid an error.
14124 Use char because int might match the return type of a GCC
14125 builtin and then its argument prototype would still apply. */
14129 char op_open_agent ();
14133 return op_open_agent ();
14138 for ac_lib in '' opagent; do
14139 if test -z "$ac_lib"; then
14140 ac_res="none required"
14143 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14145 rm -f conftest.$ac_objext conftest$ac_exeext
14146 if { (ac_try="$ac_link"
14147 case "(($ac_try" in
14148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14149 *) ac_try_echo=$ac_try;;
14151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14152 (eval "$ac_link") 2>conftest.er1
14154 grep -v '^ *+' conftest.er1 >conftest.err
14156 cat conftest.err >&5
14157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14158 (exit $ac_status); } &&
14159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14160 { (case "(($ac_try" in
14161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14162 *) ac_try_echo=$ac_try;;
14164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14165 (eval "$ac_try") 2>&5
14167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14168 (exit $ac_status); }; } &&
14169 { ac_try='test -s conftest$ac_exeext'
14170 { (case "(($ac_try" in
14171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14172 *) ac_try_echo=$ac_try;;
14174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14175 (eval "$ac_try") 2>&5
14177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14178 (exit $ac_status); }; }; then
14179 ac_cv_search_op_open_agent=$ac_res
14181 echo "$as_me: failed program was:" >&5
14182 sed 's/^/| /' conftest.$ac_ext >&5
14187 rm -f core conftest.err conftest.$ac_objext \
14189 if test "${ac_cv_search_op_open_agent+set}" = set; then
14193 if test "${ac_cv_search_op_open_agent+set}" = set; then
14196 ac_cv_search_op_open_agent=no
14198 rm conftest.$ac_ext
14199 LIBS=$ac_func_search_save_LIBS
14201 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14202 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
14203 ac_res=$ac_cv_search_op_open_agent
14204 if test "$ac_res" != no; then
14205 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14209 echo "Error! You need to have libopagent around."
14214 if test "${ac_cv_header_opagent_h+set}" = set; then
14215 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14216 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14217 if test "${ac_cv_header_opagent_h+set}" = set; then
14218 echo $ECHO_N "(cached) $ECHO_C" >&6
14220 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14221 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14223 # Is the header compilable?
14224 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
14225 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14226 cat >conftest.$ac_ext <<_ACEOF
14229 cat confdefs.h >>conftest.$ac_ext
14230 cat >>conftest.$ac_ext <<_ACEOF
14231 /* end confdefs.h. */
14232 $ac_includes_default
14233 #include <opagent.h>
14235 rm -f conftest.$ac_objext
14236 if { (ac_try="$ac_compile"
14237 case "(($ac_try" in
14238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14239 *) ac_try_echo=$ac_try;;
14241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14242 (eval "$ac_compile") 2>conftest.er1
14244 grep -v '^ *+' conftest.er1 >conftest.err
14246 cat conftest.err >&5
14247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14248 (exit $ac_status); } &&
14249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14250 { (case "(($ac_try" in
14251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14252 *) ac_try_echo=$ac_try;;
14254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14255 (eval "$ac_try") 2>&5
14257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258 (exit $ac_status); }; } &&
14259 { ac_try='test -s conftest.$ac_objext'
14260 { (case "(($ac_try" in
14261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14262 *) ac_try_echo=$ac_try;;
14264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14265 (eval "$ac_try") 2>&5
14267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14268 (exit $ac_status); }; }; then
14269 ac_header_compiler=yes
14271 echo "$as_me: failed program was:" >&5
14272 sed 's/^/| /' conftest.$ac_ext >&5
14274 ac_header_compiler=no
14277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14278 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14279 echo "${ECHO_T}$ac_header_compiler" >&6; }
14281 # Is the header present?
14282 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
14283 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14284 cat >conftest.$ac_ext <<_ACEOF
14287 cat confdefs.h >>conftest.$ac_ext
14288 cat >>conftest.$ac_ext <<_ACEOF
14289 /* end confdefs.h. */
14290 #include <opagent.h>
14292 if { (ac_try="$ac_cpp conftest.$ac_ext"
14293 case "(($ac_try" in
14294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14295 *) ac_try_echo=$ac_try;;
14297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14298 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14300 grep -v '^ *+' conftest.er1 >conftest.err
14302 cat conftest.err >&5
14303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14304 (exit $ac_status); } >/dev/null; then
14305 if test -s conftest.err; then
14306 ac_cpp_err=$ac_c_preproc_warn_flag
14307 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14314 if test -z "$ac_cpp_err"; then
14315 ac_header_preproc=yes
14317 echo "$as_me: failed program was:" >&5
14318 sed 's/^/| /' conftest.$ac_ext >&5
14320 ac_header_preproc=no
14323 rm -f conftest.err conftest.$ac_ext
14324 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14325 echo "${ECHO_T}$ac_header_preproc" >&6; }
14327 # So? What about this header?
14328 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14330 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14331 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14332 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14333 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14334 ac_header_preproc=yes
14337 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14338 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14339 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14340 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14341 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14342 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14343 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14344 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14345 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14346 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14347 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14348 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14350 ## ----------------------------------- ##
14351 ## Report this to llvmbugs@cs.uiuc.edu ##
14352 ## ----------------------------------- ##
14354 ) | sed "s/^/$as_me: WARNING: /" >&2
14357 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14358 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14359 if test "${ac_cv_header_opagent_h+set}" = set; then
14360 echo $ECHO_N "(cached) $ECHO_C" >&6
14362 ac_cv_header_opagent_h=$ac_header_preproc
14364 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14365 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14368 if test $ac_cv_header_opagent_h = yes; then
14372 echo "Error! You need to have opagent.h around."
14388 cat >>confdefs.h <<_ACEOF
14389 #define USE_OPROFILE $USE_OPROFILE
14399 ac_header_dirent=no
14400 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14401 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14402 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14403 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14404 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14405 echo $ECHO_N "(cached) $ECHO_C" >&6
14407 cat >conftest.$ac_ext <<_ACEOF
14410 cat confdefs.h >>conftest.$ac_ext
14411 cat >>conftest.$ac_ext <<_ACEOF
14412 /* end confdefs.h. */
14413 #include <sys/types.h>
14425 rm -f conftest.$ac_objext
14426 if { (ac_try="$ac_compile"
14427 case "(($ac_try" in
14428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14429 *) ac_try_echo=$ac_try;;
14431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14432 (eval "$ac_compile") 2>conftest.er1
14434 grep -v '^ *+' conftest.er1 >conftest.err
14436 cat conftest.err >&5
14437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14438 (exit $ac_status); } &&
14439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14440 { (case "(($ac_try" in
14441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14442 *) ac_try_echo=$ac_try;;
14444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14445 (eval "$ac_try") 2>&5
14447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448 (exit $ac_status); }; } &&
14449 { ac_try='test -s conftest.$ac_objext'
14450 { (case "(($ac_try" in
14451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14452 *) ac_try_echo=$ac_try;;
14454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14455 (eval "$ac_try") 2>&5
14457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14458 (exit $ac_status); }; }; then
14459 eval "$as_ac_Header=yes"
14461 echo "$as_me: failed program was:" >&5
14462 sed 's/^/| /' conftest.$ac_ext >&5
14464 eval "$as_ac_Header=no"
14467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14469 ac_res=`eval echo '${'$as_ac_Header'}'`
14470 { echo "$as_me:$LINENO: result: $ac_res" >&5
14471 echo "${ECHO_T}$ac_res" >&6; }
14472 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14473 cat >>confdefs.h <<_ACEOF
14474 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14477 ac_header_dirent=$ac_hdr; break
14481 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14482 if test $ac_header_dirent = dirent.h; then
14483 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14484 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14485 if test "${ac_cv_search_opendir+set}" = set; then
14486 echo $ECHO_N "(cached) $ECHO_C" >&6
14488 ac_func_search_save_LIBS=$LIBS
14489 cat >conftest.$ac_ext <<_ACEOF
14492 cat confdefs.h >>conftest.$ac_ext
14493 cat >>conftest.$ac_ext <<_ACEOF
14494 /* end confdefs.h. */
14496 /* Override any GCC internal prototype to avoid an error.
14497 Use char because int might match the return type of a GCC
14498 builtin and then its argument prototype would still apply. */
14511 for ac_lib in '' dir; do
14512 if test -z "$ac_lib"; then
14513 ac_res="none required"
14516 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14518 rm -f conftest.$ac_objext conftest$ac_exeext
14519 if { (ac_try="$ac_link"
14520 case "(($ac_try" in
14521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14522 *) ac_try_echo=$ac_try;;
14524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14525 (eval "$ac_link") 2>conftest.er1
14527 grep -v '^ *+' conftest.er1 >conftest.err
14529 cat conftest.err >&5
14530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531 (exit $ac_status); } &&
14532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14533 { (case "(($ac_try" in
14534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14535 *) ac_try_echo=$ac_try;;
14537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14538 (eval "$ac_try") 2>&5
14540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14541 (exit $ac_status); }; } &&
14542 { ac_try='test -s conftest$ac_exeext'
14543 { (case "(($ac_try" in
14544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14545 *) ac_try_echo=$ac_try;;
14547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14548 (eval "$ac_try") 2>&5
14550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14551 (exit $ac_status); }; }; then
14552 ac_cv_search_opendir=$ac_res
14554 echo "$as_me: failed program was:" >&5
14555 sed 's/^/| /' conftest.$ac_ext >&5
14560 rm -f core conftest.err conftest.$ac_objext \
14562 if test "${ac_cv_search_opendir+set}" = set; then
14566 if test "${ac_cv_search_opendir+set}" = set; then
14569 ac_cv_search_opendir=no
14571 rm conftest.$ac_ext
14572 LIBS=$ac_func_search_save_LIBS
14574 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14575 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14576 ac_res=$ac_cv_search_opendir
14577 if test "$ac_res" != no; then
14578 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14583 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14584 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14585 if test "${ac_cv_search_opendir+set}" = set; then
14586 echo $ECHO_N "(cached) $ECHO_C" >&6
14588 ac_func_search_save_LIBS=$LIBS
14589 cat >conftest.$ac_ext <<_ACEOF
14592 cat confdefs.h >>conftest.$ac_ext
14593 cat >>conftest.$ac_ext <<_ACEOF
14594 /* end confdefs.h. */
14596 /* Override any GCC internal prototype to avoid an error.
14597 Use char because int might match the return type of a GCC
14598 builtin and then its argument prototype would still apply. */
14611 for ac_lib in '' x; do
14612 if test -z "$ac_lib"; then
14613 ac_res="none required"
14616 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14618 rm -f conftest.$ac_objext conftest$ac_exeext
14619 if { (ac_try="$ac_link"
14620 case "(($ac_try" in
14621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14622 *) ac_try_echo=$ac_try;;
14624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14625 (eval "$ac_link") 2>conftest.er1
14627 grep -v '^ *+' conftest.er1 >conftest.err
14629 cat conftest.err >&5
14630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631 (exit $ac_status); } &&
14632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14633 { (case "(($ac_try" in
14634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14635 *) ac_try_echo=$ac_try;;
14637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14638 (eval "$ac_try") 2>&5
14640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14641 (exit $ac_status); }; } &&
14642 { ac_try='test -s conftest$ac_exeext'
14643 { (case "(($ac_try" in
14644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14645 *) ac_try_echo=$ac_try;;
14647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14648 (eval "$ac_try") 2>&5
14650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14651 (exit $ac_status); }; }; then
14652 ac_cv_search_opendir=$ac_res
14654 echo "$as_me: failed program was:" >&5
14655 sed 's/^/| /' conftest.$ac_ext >&5
14660 rm -f core conftest.err conftest.$ac_objext \
14662 if test "${ac_cv_search_opendir+set}" = set; then
14666 if test "${ac_cv_search_opendir+set}" = set; then
14669 ac_cv_search_opendir=no
14671 rm conftest.$ac_ext
14672 LIBS=$ac_func_search_save_LIBS
14674 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14675 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14676 ac_res=$ac_cv_search_opendir
14677 if test "$ac_res" != no; then
14678 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14684 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14685 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14686 if test "${ac_cv_header_mmap_anon+set}" = set; then
14687 echo $ECHO_N "(cached) $ECHO_C" >&6
14690 ac_cpp='$CPP $CPPFLAGS'
14691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14695 cat >conftest.$ac_ext <<_ACEOF
14698 cat confdefs.h >>conftest.$ac_ext
14699 cat >>conftest.$ac_ext <<_ACEOF
14700 /* end confdefs.h. */
14701 #include <sys/mman.h>
14702 #include <unistd.h>
14707 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14712 rm -f conftest.$ac_objext
14713 if { (ac_try="$ac_compile"
14714 case "(($ac_try" in
14715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14716 *) ac_try_echo=$ac_try;;
14718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14719 (eval "$ac_compile") 2>conftest.er1
14721 grep -v '^ *+' conftest.er1 >conftest.err
14723 cat conftest.err >&5
14724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725 (exit $ac_status); } &&
14726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14727 { (case "(($ac_try" in
14728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14729 *) ac_try_echo=$ac_try;;
14731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14732 (eval "$ac_try") 2>&5
14734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735 (exit $ac_status); }; } &&
14736 { ac_try='test -s conftest.$ac_objext'
14737 { (case "(($ac_try" in
14738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14739 *) ac_try_echo=$ac_try;;
14741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14742 (eval "$ac_try") 2>&5
14744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745 (exit $ac_status); }; }; then
14746 ac_cv_header_mmap_anon=yes
14748 echo "$as_me: failed program was:" >&5
14749 sed 's/^/| /' conftest.$ac_ext >&5
14751 ac_cv_header_mmap_anon=no
14754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14756 ac_cpp='$CPP $CPPFLAGS'
14757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14763 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14764 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14765 if test "$ac_cv_header_mmap_anon" = yes; then
14767 cat >>confdefs.h <<\_ACEOF
14768 #define HAVE_MMAP_ANONYMOUS 1
14773 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14774 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14775 if test "${ac_cv_header_stat_broken+set}" = set; then
14776 echo $ECHO_N "(cached) $ECHO_C" >&6
14778 cat >conftest.$ac_ext <<_ACEOF
14781 cat confdefs.h >>conftest.$ac_ext
14782 cat >>conftest.$ac_ext <<_ACEOF
14783 /* end confdefs.h. */
14784 #include <sys/types.h>
14785 #include <sys/stat.h>
14787 #if defined S_ISBLK && defined S_IFDIR
14788 # if S_ISBLK (S_IFDIR)
14793 #if defined S_ISBLK && defined S_IFCHR
14794 # if S_ISBLK (S_IFCHR)
14799 #if defined S_ISLNK && defined S_IFREG
14800 # if S_ISLNK (S_IFREG)
14805 #if defined S_ISSOCK && defined S_IFREG
14806 # if S_ISSOCK (S_IFREG)
14812 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14813 $EGREP "You lose" >/dev/null 2>&1; then
14814 ac_cv_header_stat_broken=yes
14816 ac_cv_header_stat_broken=no
14821 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14822 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14823 if test $ac_cv_header_stat_broken = yes; then
14825 cat >>confdefs.h <<\_ACEOF
14826 #define STAT_MACROS_BROKEN 1
14831 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14832 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
14833 if test "${ac_cv_header_stdc+set}" = set; then
14834 echo $ECHO_N "(cached) $ECHO_C" >&6
14836 cat >conftest.$ac_ext <<_ACEOF
14839 cat confdefs.h >>conftest.$ac_ext
14840 cat >>conftest.$ac_ext <<_ACEOF
14841 /* end confdefs.h. */
14842 #include <stdlib.h>
14843 #include <stdarg.h>
14844 #include <string.h>
14855 rm -f conftest.$ac_objext
14856 if { (ac_try="$ac_compile"
14857 case "(($ac_try" in
14858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14859 *) ac_try_echo=$ac_try;;
14861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14862 (eval "$ac_compile") 2>conftest.er1
14864 grep -v '^ *+' conftest.er1 >conftest.err
14866 cat conftest.err >&5
14867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14868 (exit $ac_status); } &&
14869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14870 { (case "(($ac_try" in
14871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14872 *) ac_try_echo=$ac_try;;
14874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14875 (eval "$ac_try") 2>&5
14877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878 (exit $ac_status); }; } &&
14879 { ac_try='test -s conftest.$ac_objext'
14880 { (case "(($ac_try" in
14881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14882 *) ac_try_echo=$ac_try;;
14884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14885 (eval "$ac_try") 2>&5
14887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14888 (exit $ac_status); }; }; then
14889 ac_cv_header_stdc=yes
14891 echo "$as_me: failed program was:" >&5
14892 sed 's/^/| /' conftest.$ac_ext >&5
14894 ac_cv_header_stdc=no
14897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14899 if test $ac_cv_header_stdc = yes; then
14900 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14901 cat >conftest.$ac_ext <<_ACEOF
14904 cat confdefs.h >>conftest.$ac_ext
14905 cat >>conftest.$ac_ext <<_ACEOF
14906 /* end confdefs.h. */
14907 #include <string.h>
14910 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14911 $EGREP "memchr" >/dev/null 2>&1; then
14914 ac_cv_header_stdc=no
14920 if test $ac_cv_header_stdc = yes; then
14921 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14922 cat >conftest.$ac_ext <<_ACEOF
14925 cat confdefs.h >>conftest.$ac_ext
14926 cat >>conftest.$ac_ext <<_ACEOF
14927 /* end confdefs.h. */
14928 #include <stdlib.h>
14931 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14932 $EGREP "free" >/dev/null 2>&1; then
14935 ac_cv_header_stdc=no
14941 if test $ac_cv_header_stdc = yes; then
14942 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14943 if test "$cross_compiling" = yes; then
14946 cat >conftest.$ac_ext <<_ACEOF
14949 cat confdefs.h >>conftest.$ac_ext
14950 cat >>conftest.$ac_ext <<_ACEOF
14951 /* end confdefs.h. */
14953 #include <stdlib.h>
14954 #if ((' ' & 0x0FF) == 0x020)
14955 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14956 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14958 # define ISLOWER(c) \
14959 (('a' <= (c) && (c) <= 'i') \
14960 || ('j' <= (c) && (c) <= 'r') \
14961 || ('s' <= (c) && (c) <= 'z'))
14962 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14965 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14970 for (i = 0; i < 256; i++)
14971 if (XOR (islower (i), ISLOWER (i))
14972 || toupper (i) != TOUPPER (i))
14977 rm -f conftest$ac_exeext
14978 if { (ac_try="$ac_link"
14979 case "(($ac_try" in
14980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14981 *) ac_try_echo=$ac_try;;
14983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14984 (eval "$ac_link") 2>&5
14986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14987 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14988 { (case "(($ac_try" in
14989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14990 *) ac_try_echo=$ac_try;;
14992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14993 (eval "$ac_try") 2>&5
14995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996 (exit $ac_status); }; }; then
14999 echo "$as_me: program exited with status $ac_status" >&5
15000 echo "$as_me: failed program was:" >&5
15001 sed 's/^/| /' conftest.$ac_ext >&5
15003 ( exit $ac_status )
15004 ac_cv_header_stdc=no
15006 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15012 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15013 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15014 if test $ac_cv_header_stdc = yes; then
15016 cat >>confdefs.h <<\_ACEOF
15017 #define STDC_HEADERS 1
15022 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15023 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15024 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15025 echo $ECHO_N "(cached) $ECHO_C" >&6
15027 cat >conftest.$ac_ext <<_ACEOF
15030 cat confdefs.h >>conftest.$ac_ext
15031 cat >>conftest.$ac_ext <<_ACEOF
15032 /* end confdefs.h. */
15033 #include <sys/types.h>
15034 #include <sys/wait.h>
15035 #ifndef WEXITSTATUS
15036 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15039 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15047 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15052 rm -f conftest.$ac_objext
15053 if { (ac_try="$ac_compile"
15054 case "(($ac_try" in
15055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15056 *) ac_try_echo=$ac_try;;
15058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15059 (eval "$ac_compile") 2>conftest.er1
15061 grep -v '^ *+' conftest.er1 >conftest.err
15063 cat conftest.err >&5
15064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15065 (exit $ac_status); } &&
15066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15067 { (case "(($ac_try" in
15068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15069 *) ac_try_echo=$ac_try;;
15071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15072 (eval "$ac_try") 2>&5
15074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15075 (exit $ac_status); }; } &&
15076 { ac_try='test -s conftest.$ac_objext'
15077 { (case "(($ac_try" in
15078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15079 *) ac_try_echo=$ac_try;;
15081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15082 (eval "$ac_try") 2>&5
15084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15085 (exit $ac_status); }; }; then
15086 ac_cv_header_sys_wait_h=yes
15088 echo "$as_me: failed program was:" >&5
15089 sed 's/^/| /' conftest.$ac_ext >&5
15091 ac_cv_header_sys_wait_h=no
15094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15096 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15097 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15098 if test $ac_cv_header_sys_wait_h = yes; then
15100 cat >>confdefs.h <<\_ACEOF
15101 #define HAVE_SYS_WAIT_H 1
15106 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15107 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15108 if test "${ac_cv_header_time+set}" = set; then
15109 echo $ECHO_N "(cached) $ECHO_C" >&6
15111 cat >conftest.$ac_ext <<_ACEOF
15114 cat confdefs.h >>conftest.$ac_ext
15115 cat >>conftest.$ac_ext <<_ACEOF
15116 /* end confdefs.h. */
15117 #include <sys/types.h>
15118 #include <sys/time.h>
15124 if ((struct tm *) 0)
15130 rm -f conftest.$ac_objext
15131 if { (ac_try="$ac_compile"
15132 case "(($ac_try" in
15133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15134 *) ac_try_echo=$ac_try;;
15136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15137 (eval "$ac_compile") 2>conftest.er1
15139 grep -v '^ *+' conftest.er1 >conftest.err
15141 cat conftest.err >&5
15142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15143 (exit $ac_status); } &&
15144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15145 { (case "(($ac_try" in
15146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15147 *) ac_try_echo=$ac_try;;
15149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15150 (eval "$ac_try") 2>&5
15152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15153 (exit $ac_status); }; } &&
15154 { ac_try='test -s conftest.$ac_objext'
15155 { (case "(($ac_try" in
15156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15157 *) ac_try_echo=$ac_try;;
15159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15160 (eval "$ac_try") 2>&5
15162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163 (exit $ac_status); }; }; then
15164 ac_cv_header_time=yes
15166 echo "$as_me: failed program was:" >&5
15167 sed 's/^/| /' conftest.$ac_ext >&5
15169 ac_cv_header_time=no
15172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15174 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15175 echo "${ECHO_T}$ac_cv_header_time" >&6; }
15176 if test $ac_cv_header_time = yes; then
15178 cat >>confdefs.h <<\_ACEOF
15179 #define TIME_WITH_SYS_TIME 1
15191 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15193 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15194 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15195 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15197 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15198 echo $ECHO_N "(cached) $ECHO_C" >&6
15200 ac_res=`eval echo '${'$as_ac_Header'}'`
15201 { echo "$as_me:$LINENO: result: $ac_res" >&5
15202 echo "${ECHO_T}$ac_res" >&6; }
15204 # Is the header compilable?
15205 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15206 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15207 cat >conftest.$ac_ext <<_ACEOF
15210 cat confdefs.h >>conftest.$ac_ext
15211 cat >>conftest.$ac_ext <<_ACEOF
15212 /* end confdefs.h. */
15213 $ac_includes_default
15214 #include <$ac_header>
15216 rm -f conftest.$ac_objext
15217 if { (ac_try="$ac_compile"
15218 case "(($ac_try" in
15219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15220 *) ac_try_echo=$ac_try;;
15222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15223 (eval "$ac_compile") 2>conftest.er1
15225 grep -v '^ *+' conftest.er1 >conftest.err
15227 cat conftest.err >&5
15228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15229 (exit $ac_status); } &&
15230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15231 { (case "(($ac_try" in
15232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15233 *) ac_try_echo=$ac_try;;
15235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15236 (eval "$ac_try") 2>&5
15238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15239 (exit $ac_status); }; } &&
15240 { ac_try='test -s conftest.$ac_objext'
15241 { (case "(($ac_try" in
15242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15243 *) ac_try_echo=$ac_try;;
15245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15246 (eval "$ac_try") 2>&5
15248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15249 (exit $ac_status); }; }; then
15250 ac_header_compiler=yes
15252 echo "$as_me: failed program was:" >&5
15253 sed 's/^/| /' conftest.$ac_ext >&5
15255 ac_header_compiler=no
15258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15259 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15260 echo "${ECHO_T}$ac_header_compiler" >&6; }
15262 # Is the header present?
15263 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15264 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15265 cat >conftest.$ac_ext <<_ACEOF
15268 cat confdefs.h >>conftest.$ac_ext
15269 cat >>conftest.$ac_ext <<_ACEOF
15270 /* end confdefs.h. */
15271 #include <$ac_header>
15273 if { (ac_try="$ac_cpp conftest.$ac_ext"
15274 case "(($ac_try" in
15275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15276 *) ac_try_echo=$ac_try;;
15278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15279 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15281 grep -v '^ *+' conftest.er1 >conftest.err
15283 cat conftest.err >&5
15284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15285 (exit $ac_status); } >/dev/null; then
15286 if test -s conftest.err; then
15287 ac_cpp_err=$ac_c_preproc_warn_flag
15288 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15295 if test -z "$ac_cpp_err"; then
15296 ac_header_preproc=yes
15298 echo "$as_me: failed program was:" >&5
15299 sed 's/^/| /' conftest.$ac_ext >&5
15301 ac_header_preproc=no
15304 rm -f conftest.err conftest.$ac_ext
15305 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15306 echo "${ECHO_T}$ac_header_preproc" >&6; }
15308 # So? What about this header?
15309 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15311 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15312 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15313 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15314 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15315 ac_header_preproc=yes
15318 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15319 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15320 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15321 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15322 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15323 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15324 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15325 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15326 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15327 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15328 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15329 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15331 ## ----------------------------------- ##
15332 ## Report this to llvmbugs@cs.uiuc.edu ##
15333 ## ----------------------------------- ##
15335 ) | sed "s/^/$as_me: WARNING: /" >&2
15338 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15339 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15340 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15341 echo $ECHO_N "(cached) $ECHO_C" >&6
15343 eval "$as_ac_Header=\$ac_header_preproc"
15345 ac_res=`eval echo '${'$as_ac_Header'}'`
15346 { echo "$as_me:$LINENO: result: $ac_res" >&5
15347 echo "${ECHO_T}$ac_res" >&6; }
15350 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15351 cat >>confdefs.h <<_ACEOF
15352 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15365 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15367 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15369 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15370 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15371 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15372 echo $ECHO_N "(cached) $ECHO_C" >&6
15374 ac_res=`eval echo '${'$as_ac_Header'}'`
15375 { echo "$as_me:$LINENO: result: $ac_res" >&5
15376 echo "${ECHO_T}$ac_res" >&6; }
15378 # Is the header compilable?
15379 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15380 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15381 cat >conftest.$ac_ext <<_ACEOF
15384 cat confdefs.h >>conftest.$ac_ext
15385 cat >>conftest.$ac_ext <<_ACEOF
15386 /* end confdefs.h. */
15387 $ac_includes_default
15388 #include <$ac_header>
15390 rm -f conftest.$ac_objext
15391 if { (ac_try="$ac_compile"
15392 case "(($ac_try" in
15393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15394 *) ac_try_echo=$ac_try;;
15396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15397 (eval "$ac_compile") 2>conftest.er1
15399 grep -v '^ *+' conftest.er1 >conftest.err
15401 cat conftest.err >&5
15402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403 (exit $ac_status); } &&
15404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15405 { (case "(($ac_try" in
15406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15407 *) ac_try_echo=$ac_try;;
15409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15410 (eval "$ac_try") 2>&5
15412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413 (exit $ac_status); }; } &&
15414 { ac_try='test -s conftest.$ac_objext'
15415 { (case "(($ac_try" in
15416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15417 *) ac_try_echo=$ac_try;;
15419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15420 (eval "$ac_try") 2>&5
15422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423 (exit $ac_status); }; }; then
15424 ac_header_compiler=yes
15426 echo "$as_me: failed program was:" >&5
15427 sed 's/^/| /' conftest.$ac_ext >&5
15429 ac_header_compiler=no
15432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15433 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15434 echo "${ECHO_T}$ac_header_compiler" >&6; }
15436 # Is the header present?
15437 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15438 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15439 cat >conftest.$ac_ext <<_ACEOF
15442 cat confdefs.h >>conftest.$ac_ext
15443 cat >>conftest.$ac_ext <<_ACEOF
15444 /* end confdefs.h. */
15445 #include <$ac_header>
15447 if { (ac_try="$ac_cpp conftest.$ac_ext"
15448 case "(($ac_try" in
15449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15450 *) ac_try_echo=$ac_try;;
15452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15453 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15455 grep -v '^ *+' conftest.er1 >conftest.err
15457 cat conftest.err >&5
15458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459 (exit $ac_status); } >/dev/null; then
15460 if test -s conftest.err; then
15461 ac_cpp_err=$ac_c_preproc_warn_flag
15462 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15469 if test -z "$ac_cpp_err"; then
15470 ac_header_preproc=yes
15472 echo "$as_me: failed program was:" >&5
15473 sed 's/^/| /' conftest.$ac_ext >&5
15475 ac_header_preproc=no
15478 rm -f conftest.err conftest.$ac_ext
15479 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15480 echo "${ECHO_T}$ac_header_preproc" >&6; }
15482 # So? What about this header?
15483 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15485 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15486 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15487 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15488 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15489 ac_header_preproc=yes
15492 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15493 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15494 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15495 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15496 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15497 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15498 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15499 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15500 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15501 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15502 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15503 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15505 ## ----------------------------------- ##
15506 ## Report this to llvmbugs@cs.uiuc.edu ##
15507 ## ----------------------------------- ##
15509 ) | sed "s/^/$as_me: WARNING: /" >&2
15512 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15513 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15515 echo $ECHO_N "(cached) $ECHO_C" >&6
15517 eval "$as_ac_Header=\$ac_header_preproc"
15519 ac_res=`eval echo '${'$as_ac_Header'}'`
15520 { echo "$as_me:$LINENO: result: $ac_res" >&5
15521 echo "${ECHO_T}$ac_res" >&6; }
15524 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15525 cat >>confdefs.h <<_ACEOF
15526 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15535 for ac_header in utime.h windows.h
15537 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15538 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15539 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15542 echo $ECHO_N "(cached) $ECHO_C" >&6
15544 ac_res=`eval echo '${'$as_ac_Header'}'`
15545 { echo "$as_me:$LINENO: result: $ac_res" >&5
15546 echo "${ECHO_T}$ac_res" >&6; }
15548 # Is the header compilable?
15549 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15550 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15551 cat >conftest.$ac_ext <<_ACEOF
15554 cat confdefs.h >>conftest.$ac_ext
15555 cat >>conftest.$ac_ext <<_ACEOF
15556 /* end confdefs.h. */
15557 $ac_includes_default
15558 #include <$ac_header>
15560 rm -f conftest.$ac_objext
15561 if { (ac_try="$ac_compile"
15562 case "(($ac_try" in
15563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15564 *) ac_try_echo=$ac_try;;
15566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15567 (eval "$ac_compile") 2>conftest.er1
15569 grep -v '^ *+' conftest.er1 >conftest.err
15571 cat conftest.err >&5
15572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15573 (exit $ac_status); } &&
15574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15575 { (case "(($ac_try" in
15576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15577 *) ac_try_echo=$ac_try;;
15579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15580 (eval "$ac_try") 2>&5
15582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583 (exit $ac_status); }; } &&
15584 { ac_try='test -s conftest.$ac_objext'
15585 { (case "(($ac_try" in
15586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15587 *) ac_try_echo=$ac_try;;
15589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15590 (eval "$ac_try") 2>&5
15592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15593 (exit $ac_status); }; }; then
15594 ac_header_compiler=yes
15596 echo "$as_me: failed program was:" >&5
15597 sed 's/^/| /' conftest.$ac_ext >&5
15599 ac_header_compiler=no
15602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15603 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15604 echo "${ECHO_T}$ac_header_compiler" >&6; }
15606 # Is the header present?
15607 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15608 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15609 cat >conftest.$ac_ext <<_ACEOF
15612 cat confdefs.h >>conftest.$ac_ext
15613 cat >>conftest.$ac_ext <<_ACEOF
15614 /* end confdefs.h. */
15615 #include <$ac_header>
15617 if { (ac_try="$ac_cpp conftest.$ac_ext"
15618 case "(($ac_try" in
15619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15620 *) ac_try_echo=$ac_try;;
15622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15623 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15625 grep -v '^ *+' conftest.er1 >conftest.err
15627 cat conftest.err >&5
15628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15629 (exit $ac_status); } >/dev/null; then
15630 if test -s conftest.err; then
15631 ac_cpp_err=$ac_c_preproc_warn_flag
15632 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15639 if test -z "$ac_cpp_err"; then
15640 ac_header_preproc=yes
15642 echo "$as_me: failed program was:" >&5
15643 sed 's/^/| /' conftest.$ac_ext >&5
15645 ac_header_preproc=no
15648 rm -f conftest.err conftest.$ac_ext
15649 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15650 echo "${ECHO_T}$ac_header_preproc" >&6; }
15652 # So? What about this header?
15653 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15655 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15656 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15657 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15658 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15659 ac_header_preproc=yes
15662 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15663 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15664 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15665 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15666 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15667 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15668 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15669 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15671 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15672 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15673 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15675 ## ----------------------------------- ##
15676 ## Report this to llvmbugs@cs.uiuc.edu ##
15677 ## ----------------------------------- ##
15679 ) | sed "s/^/$as_me: WARNING: /" >&2
15682 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15683 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15684 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15685 echo $ECHO_N "(cached) $ECHO_C" >&6
15687 eval "$as_ac_Header=\$ac_header_preproc"
15689 ac_res=`eval echo '${'$as_ac_Header'}'`
15690 { echo "$as_me:$LINENO: result: $ac_res" >&5
15691 echo "${ECHO_T}$ac_res" >&6; }
15694 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15695 cat >>confdefs.h <<_ACEOF
15696 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15707 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
15709 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15710 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15711 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15712 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15713 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15714 echo $ECHO_N "(cached) $ECHO_C" >&6
15716 ac_res=`eval echo '${'$as_ac_Header'}'`
15717 { echo "$as_me:$LINENO: result: $ac_res" >&5
15718 echo "${ECHO_T}$ac_res" >&6; }
15720 # Is the header compilable?
15721 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15722 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15723 cat >conftest.$ac_ext <<_ACEOF
15726 cat confdefs.h >>conftest.$ac_ext
15727 cat >>conftest.$ac_ext <<_ACEOF
15728 /* end confdefs.h. */
15729 $ac_includes_default
15730 #include <$ac_header>
15732 rm -f conftest.$ac_objext
15733 if { (ac_try="$ac_compile"
15734 case "(($ac_try" in
15735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15736 *) ac_try_echo=$ac_try;;
15738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15739 (eval "$ac_compile") 2>conftest.er1
15741 grep -v '^ *+' conftest.er1 >conftest.err
15743 cat conftest.err >&5
15744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15745 (exit $ac_status); } &&
15746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15747 { (case "(($ac_try" in
15748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15749 *) ac_try_echo=$ac_try;;
15751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15752 (eval "$ac_try") 2>&5
15754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15755 (exit $ac_status); }; } &&
15756 { ac_try='test -s conftest.$ac_objext'
15757 { (case "(($ac_try" in
15758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15759 *) ac_try_echo=$ac_try;;
15761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15762 (eval "$ac_try") 2>&5
15764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15765 (exit $ac_status); }; }; then
15766 ac_header_compiler=yes
15768 echo "$as_me: failed program was:" >&5
15769 sed 's/^/| /' conftest.$ac_ext >&5
15771 ac_header_compiler=no
15774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15775 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15776 echo "${ECHO_T}$ac_header_compiler" >&6; }
15778 # Is the header present?
15779 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15780 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15781 cat >conftest.$ac_ext <<_ACEOF
15784 cat confdefs.h >>conftest.$ac_ext
15785 cat >>conftest.$ac_ext <<_ACEOF
15786 /* end confdefs.h. */
15787 #include <$ac_header>
15789 if { (ac_try="$ac_cpp conftest.$ac_ext"
15790 case "(($ac_try" in
15791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15792 *) ac_try_echo=$ac_try;;
15794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15795 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15797 grep -v '^ *+' conftest.er1 >conftest.err
15799 cat conftest.err >&5
15800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15801 (exit $ac_status); } >/dev/null; then
15802 if test -s conftest.err; then
15803 ac_cpp_err=$ac_c_preproc_warn_flag
15804 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15811 if test -z "$ac_cpp_err"; then
15812 ac_header_preproc=yes
15814 echo "$as_me: failed program was:" >&5
15815 sed 's/^/| /' conftest.$ac_ext >&5
15817 ac_header_preproc=no
15820 rm -f conftest.err conftest.$ac_ext
15821 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15822 echo "${ECHO_T}$ac_header_preproc" >&6; }
15824 # So? What about this header?
15825 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15827 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15828 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15829 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15830 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15831 ac_header_preproc=yes
15834 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15835 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15836 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15837 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15838 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15839 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15840 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15841 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15842 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15843 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15844 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15845 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15847 ## ----------------------------------- ##
15848 ## Report this to llvmbugs@cs.uiuc.edu ##
15849 ## ----------------------------------- ##
15851 ) | sed "s/^/$as_me: WARNING: /" >&2
15854 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15856 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15857 echo $ECHO_N "(cached) $ECHO_C" >&6
15859 eval "$as_ac_Header=\$ac_header_preproc"
15861 ac_res=`eval echo '${'$as_ac_Header'}'`
15862 { echo "$as_me:$LINENO: result: $ac_res" >&5
15863 echo "${ECHO_T}$ac_res" >&6; }
15866 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15867 cat >>confdefs.h <<_ACEOF
15868 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15879 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15881 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15882 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15883 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15884 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15885 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15886 echo $ECHO_N "(cached) $ECHO_C" >&6
15888 ac_res=`eval echo '${'$as_ac_Header'}'`
15889 { echo "$as_me:$LINENO: result: $ac_res" >&5
15890 echo "${ECHO_T}$ac_res" >&6; }
15892 # Is the header compilable?
15893 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15894 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15895 cat >conftest.$ac_ext <<_ACEOF
15898 cat confdefs.h >>conftest.$ac_ext
15899 cat >>conftest.$ac_ext <<_ACEOF
15900 /* end confdefs.h. */
15901 $ac_includes_default
15902 #include <$ac_header>
15904 rm -f conftest.$ac_objext
15905 if { (ac_try="$ac_compile"
15906 case "(($ac_try" in
15907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15908 *) ac_try_echo=$ac_try;;
15910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15911 (eval "$ac_compile") 2>conftest.er1
15913 grep -v '^ *+' conftest.er1 >conftest.err
15915 cat conftest.err >&5
15916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15917 (exit $ac_status); } &&
15918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15919 { (case "(($ac_try" in
15920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15921 *) ac_try_echo=$ac_try;;
15923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15924 (eval "$ac_try") 2>&5
15926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15927 (exit $ac_status); }; } &&
15928 { ac_try='test -s conftest.$ac_objext'
15929 { (case "(($ac_try" in
15930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15931 *) ac_try_echo=$ac_try;;
15933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15934 (eval "$ac_try") 2>&5
15936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15937 (exit $ac_status); }; }; then
15938 ac_header_compiler=yes
15940 echo "$as_me: failed program was:" >&5
15941 sed 's/^/| /' conftest.$ac_ext >&5
15943 ac_header_compiler=no
15946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15947 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15948 echo "${ECHO_T}$ac_header_compiler" >&6; }
15950 # Is the header present?
15951 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15952 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15953 cat >conftest.$ac_ext <<_ACEOF
15956 cat confdefs.h >>conftest.$ac_ext
15957 cat >>conftest.$ac_ext <<_ACEOF
15958 /* end confdefs.h. */
15959 #include <$ac_header>
15961 if { (ac_try="$ac_cpp conftest.$ac_ext"
15962 case "(($ac_try" in
15963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15964 *) ac_try_echo=$ac_try;;
15966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15967 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15969 grep -v '^ *+' conftest.er1 >conftest.err
15971 cat conftest.err >&5
15972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15973 (exit $ac_status); } >/dev/null; then
15974 if test -s conftest.err; then
15975 ac_cpp_err=$ac_c_preproc_warn_flag
15976 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15983 if test -z "$ac_cpp_err"; then
15984 ac_header_preproc=yes
15986 echo "$as_me: failed program was:" >&5
15987 sed 's/^/| /' conftest.$ac_ext >&5
15989 ac_header_preproc=no
15992 rm -f conftest.err conftest.$ac_ext
15993 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15994 echo "${ECHO_T}$ac_header_preproc" >&6; }
15996 # So? What about this header?
15997 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15999 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16000 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16001 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16002 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16003 ac_header_preproc=yes
16006 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16007 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16008 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16009 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16010 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16011 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16012 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16013 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16014 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16015 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16016 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16017 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16019 ## ----------------------------------- ##
16020 ## Report this to llvmbugs@cs.uiuc.edu ##
16021 ## ----------------------------------- ##
16023 ) | sed "s/^/$as_me: WARNING: /" >&2
16026 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16027 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16028 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16029 echo $ECHO_N "(cached) $ECHO_C" >&6
16031 eval "$as_ac_Header=\$ac_header_preproc"
16033 ac_res=`eval echo '${'$as_ac_Header'}'`
16034 { echo "$as_me:$LINENO: result: $ac_res" >&5
16035 echo "${ECHO_T}$ac_res" >&6; }
16038 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16039 cat >>confdefs.h <<_ACEOF
16040 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16047 if test "$ENABLE_THREADS" -eq 1 ; then
16049 for ac_header in pthread.h
16051 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16052 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16053 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16055 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16056 echo $ECHO_N "(cached) $ECHO_C" >&6
16058 ac_res=`eval echo '${'$as_ac_Header'}'`
16059 { echo "$as_me:$LINENO: result: $ac_res" >&5
16060 echo "${ECHO_T}$ac_res" >&6; }
16062 # Is the header compilable?
16063 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16064 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16065 cat >conftest.$ac_ext <<_ACEOF
16068 cat confdefs.h >>conftest.$ac_ext
16069 cat >>conftest.$ac_ext <<_ACEOF
16070 /* end confdefs.h. */
16071 $ac_includes_default
16072 #include <$ac_header>
16074 rm -f conftest.$ac_objext
16075 if { (ac_try="$ac_compile"
16076 case "(($ac_try" in
16077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16078 *) ac_try_echo=$ac_try;;
16080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16081 (eval "$ac_compile") 2>conftest.er1
16083 grep -v '^ *+' conftest.er1 >conftest.err
16085 cat conftest.err >&5
16086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16087 (exit $ac_status); } &&
16088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16089 { (case "(($ac_try" in
16090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16091 *) ac_try_echo=$ac_try;;
16093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16094 (eval "$ac_try") 2>&5
16096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097 (exit $ac_status); }; } &&
16098 { ac_try='test -s conftest.$ac_objext'
16099 { (case "(($ac_try" in
16100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16101 *) ac_try_echo=$ac_try;;
16103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16104 (eval "$ac_try") 2>&5
16106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16107 (exit $ac_status); }; }; then
16108 ac_header_compiler=yes
16110 echo "$as_me: failed program was:" >&5
16111 sed 's/^/| /' conftest.$ac_ext >&5
16113 ac_header_compiler=no
16116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16117 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16118 echo "${ECHO_T}$ac_header_compiler" >&6; }
16120 # Is the header present?
16121 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16122 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16123 cat >conftest.$ac_ext <<_ACEOF
16126 cat confdefs.h >>conftest.$ac_ext
16127 cat >>conftest.$ac_ext <<_ACEOF
16128 /* end confdefs.h. */
16129 #include <$ac_header>
16131 if { (ac_try="$ac_cpp conftest.$ac_ext"
16132 case "(($ac_try" in
16133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16134 *) ac_try_echo=$ac_try;;
16136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16137 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16139 grep -v '^ *+' conftest.er1 >conftest.err
16141 cat conftest.err >&5
16142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16143 (exit $ac_status); } >/dev/null; then
16144 if test -s conftest.err; then
16145 ac_cpp_err=$ac_c_preproc_warn_flag
16146 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16153 if test -z "$ac_cpp_err"; then
16154 ac_header_preproc=yes
16156 echo "$as_me: failed program was:" >&5
16157 sed 's/^/| /' conftest.$ac_ext >&5
16159 ac_header_preproc=no
16162 rm -f conftest.err conftest.$ac_ext
16163 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16164 echo "${ECHO_T}$ac_header_preproc" >&6; }
16166 # So? What about this header?
16167 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16169 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16170 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16171 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16172 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16173 ac_header_preproc=yes
16176 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16177 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16178 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16179 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16180 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16181 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16182 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16183 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16184 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16185 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16186 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16187 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16189 ## ----------------------------------- ##
16190 ## Report this to llvmbugs@cs.uiuc.edu ##
16191 ## ----------------------------------- ##
16193 ) | sed "s/^/$as_me: WARNING: /" >&2
16196 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16198 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16199 echo $ECHO_N "(cached) $ECHO_C" >&6
16201 eval "$as_ac_Header=\$ac_header_preproc"
16203 ac_res=`eval echo '${'$as_ac_Header'}'`
16204 { echo "$as_me:$LINENO: result: $ac_res" >&5
16205 echo "${ECHO_T}$ac_res" >&6; }
16208 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16209 cat >>confdefs.h <<_ACEOF
16210 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16226 if test "$llvm_cv_enable_libffi" = "yes" ; then
16229 for ac_header in ffi.h ffi/ffi.h
16231 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16233 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16235 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16236 echo $ECHO_N "(cached) $ECHO_C" >&6
16238 ac_res=`eval echo '${'$as_ac_Header'}'`
16239 { echo "$as_me:$LINENO: result: $ac_res" >&5
16240 echo "${ECHO_T}$ac_res" >&6; }
16242 # Is the header compilable?
16243 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16244 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16245 cat >conftest.$ac_ext <<_ACEOF
16248 cat confdefs.h >>conftest.$ac_ext
16249 cat >>conftest.$ac_ext <<_ACEOF
16250 /* end confdefs.h. */
16251 $ac_includes_default
16252 #include <$ac_header>
16254 rm -f conftest.$ac_objext
16255 if { (ac_try="$ac_compile"
16256 case "(($ac_try" in
16257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16258 *) ac_try_echo=$ac_try;;
16260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16261 (eval "$ac_compile") 2>conftest.er1
16263 grep -v '^ *+' conftest.er1 >conftest.err
16265 cat conftest.err >&5
16266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16267 (exit $ac_status); } &&
16268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16269 { (case "(($ac_try" in
16270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16271 *) ac_try_echo=$ac_try;;
16273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16274 (eval "$ac_try") 2>&5
16276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16277 (exit $ac_status); }; } &&
16278 { ac_try='test -s conftest.$ac_objext'
16279 { (case "(($ac_try" in
16280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16281 *) ac_try_echo=$ac_try;;
16283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16284 (eval "$ac_try") 2>&5
16286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16287 (exit $ac_status); }; }; then
16288 ac_header_compiler=yes
16290 echo "$as_me: failed program was:" >&5
16291 sed 's/^/| /' conftest.$ac_ext >&5
16293 ac_header_compiler=no
16296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16297 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16298 echo "${ECHO_T}$ac_header_compiler" >&6; }
16300 # Is the header present?
16301 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16302 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16303 cat >conftest.$ac_ext <<_ACEOF
16306 cat confdefs.h >>conftest.$ac_ext
16307 cat >>conftest.$ac_ext <<_ACEOF
16308 /* end confdefs.h. */
16309 #include <$ac_header>
16311 if { (ac_try="$ac_cpp conftest.$ac_ext"
16312 case "(($ac_try" in
16313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16314 *) ac_try_echo=$ac_try;;
16316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16317 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16319 grep -v '^ *+' conftest.er1 >conftest.err
16321 cat conftest.err >&5
16322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16323 (exit $ac_status); } >/dev/null; then
16324 if test -s conftest.err; then
16325 ac_cpp_err=$ac_c_preproc_warn_flag
16326 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16333 if test -z "$ac_cpp_err"; then
16334 ac_header_preproc=yes
16336 echo "$as_me: failed program was:" >&5
16337 sed 's/^/| /' conftest.$ac_ext >&5
16339 ac_header_preproc=no
16342 rm -f conftest.err conftest.$ac_ext
16343 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16344 echo "${ECHO_T}$ac_header_preproc" >&6; }
16346 # So? What about this header?
16347 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16349 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16350 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16352 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16353 ac_header_preproc=yes
16356 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16357 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16358 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16359 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16360 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16361 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16362 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16363 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16364 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16365 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16366 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16367 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16369 ## ----------------------------------- ##
16370 ## Report this to llvmbugs@cs.uiuc.edu ##
16371 ## ----------------------------------- ##
16373 ) | sed "s/^/$as_me: WARNING: /" >&2
16376 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16378 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16379 echo $ECHO_N "(cached) $ECHO_C" >&6
16381 eval "$as_ac_Header=\$ac_header_preproc"
16383 ac_res=`eval echo '${'$as_ac_Header'}'`
16384 { echo "$as_me:$LINENO: result: $ac_res" >&5
16385 echo "${ECHO_T}$ac_res" >&6; }
16388 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16389 cat >>confdefs.h <<_ACEOF
16390 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16402 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16403 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16404 if test "${ac_cv_huge_val_sanity+set}" = set; then
16405 echo $ECHO_N "(cached) $ECHO_C" >&6
16409 ac_cpp='$CXXCPP $CPPFLAGS'
16410 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16411 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16412 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16415 if test "$cross_compiling" = yes; then
16416 ac_cv_huge_val_sanity=yes
16418 cat >conftest.$ac_ext <<_ACEOF
16421 cat confdefs.h >>conftest.$ac_ext
16422 cat >>conftest.$ac_ext <<_ACEOF
16423 /* end confdefs.h. */
16428 double x = HUGE_VAL; return x != x;
16433 rm -f conftest$ac_exeext
16434 if { (ac_try="$ac_link"
16435 case "(($ac_try" in
16436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16437 *) ac_try_echo=$ac_try;;
16439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16440 (eval "$ac_link") 2>&5
16442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16443 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16444 { (case "(($ac_try" in
16445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16446 *) ac_try_echo=$ac_try;;
16448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16449 (eval "$ac_try") 2>&5
16451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16452 (exit $ac_status); }; }; then
16453 ac_cv_huge_val_sanity=yes
16455 echo "$as_me: program exited with status $ac_status" >&5
16456 echo "$as_me: failed program was:" >&5
16457 sed 's/^/| /' conftest.$ac_ext >&5
16459 ( exit $ac_status )
16460 ac_cv_huge_val_sanity=no
16462 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16467 ac_cpp='$CPP $CPPFLAGS'
16468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16474 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16475 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16476 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16479 { echo "$as_me:$LINENO: checking for pid_t" >&5
16480 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16481 if test "${ac_cv_type_pid_t+set}" = set; then
16482 echo $ECHO_N "(cached) $ECHO_C" >&6
16484 cat >conftest.$ac_ext <<_ACEOF
16487 cat confdefs.h >>conftest.$ac_ext
16488 cat >>conftest.$ac_ext <<_ACEOF
16489 /* end confdefs.h. */
16490 $ac_includes_default
16491 typedef pid_t ac__type_new_;
16495 if ((ac__type_new_ *) 0)
16497 if (sizeof (ac__type_new_))
16503 rm -f conftest.$ac_objext
16504 if { (ac_try="$ac_compile"
16505 case "(($ac_try" in
16506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16507 *) ac_try_echo=$ac_try;;
16509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16510 (eval "$ac_compile") 2>conftest.er1
16512 grep -v '^ *+' conftest.er1 >conftest.err
16514 cat conftest.err >&5
16515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16516 (exit $ac_status); } &&
16517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16518 { (case "(($ac_try" in
16519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16520 *) ac_try_echo=$ac_try;;
16522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16523 (eval "$ac_try") 2>&5
16525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16526 (exit $ac_status); }; } &&
16527 { ac_try='test -s conftest.$ac_objext'
16528 { (case "(($ac_try" in
16529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16530 *) ac_try_echo=$ac_try;;
16532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16533 (eval "$ac_try") 2>&5
16535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16536 (exit $ac_status); }; }; then
16537 ac_cv_type_pid_t=yes
16539 echo "$as_me: failed program was:" >&5
16540 sed 's/^/| /' conftest.$ac_ext >&5
16542 ac_cv_type_pid_t=no
16545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16547 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16548 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16549 if test $ac_cv_type_pid_t = yes; then
16553 cat >>confdefs.h <<_ACEOF
16559 { echo "$as_me:$LINENO: checking for size_t" >&5
16560 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16561 if test "${ac_cv_type_size_t+set}" = set; then
16562 echo $ECHO_N "(cached) $ECHO_C" >&6
16564 cat >conftest.$ac_ext <<_ACEOF
16567 cat confdefs.h >>conftest.$ac_ext
16568 cat >>conftest.$ac_ext <<_ACEOF
16569 /* end confdefs.h. */
16570 $ac_includes_default
16571 typedef size_t ac__type_new_;
16575 if ((ac__type_new_ *) 0)
16577 if (sizeof (ac__type_new_))
16583 rm -f conftest.$ac_objext
16584 if { (ac_try="$ac_compile"
16585 case "(($ac_try" in
16586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16587 *) ac_try_echo=$ac_try;;
16589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16590 (eval "$ac_compile") 2>conftest.er1
16592 grep -v '^ *+' conftest.er1 >conftest.err
16594 cat conftest.err >&5
16595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16596 (exit $ac_status); } &&
16597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16598 { (case "(($ac_try" in
16599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16600 *) ac_try_echo=$ac_try;;
16602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16603 (eval "$ac_try") 2>&5
16605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606 (exit $ac_status); }; } &&
16607 { ac_try='test -s conftest.$ac_objext'
16608 { (case "(($ac_try" in
16609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16610 *) ac_try_echo=$ac_try;;
16612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16613 (eval "$ac_try") 2>&5
16615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16616 (exit $ac_status); }; }; then
16617 ac_cv_type_size_t=yes
16619 echo "$as_me: failed program was:" >&5
16620 sed 's/^/| /' conftest.$ac_ext >&5
16622 ac_cv_type_size_t=no
16625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16627 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16628 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16629 if test $ac_cv_type_size_t = yes; then
16633 cat >>confdefs.h <<_ACEOF
16634 #define size_t unsigned int
16640 cat >>confdefs.h <<_ACEOF
16641 #define RETSIGTYPE void
16644 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16645 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16646 if test "${ac_cv_struct_tm+set}" = set; then
16647 echo $ECHO_N "(cached) $ECHO_C" >&6
16649 cat >conftest.$ac_ext <<_ACEOF
16652 cat confdefs.h >>conftest.$ac_ext
16653 cat >>conftest.$ac_ext <<_ACEOF
16654 /* end confdefs.h. */
16655 #include <sys/types.h>
16661 struct tm *tp; tp->tm_sec;
16666 rm -f conftest.$ac_objext
16667 if { (ac_try="$ac_compile"
16668 case "(($ac_try" in
16669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16670 *) ac_try_echo=$ac_try;;
16672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16673 (eval "$ac_compile") 2>conftest.er1
16675 grep -v '^ *+' conftest.er1 >conftest.err
16677 cat conftest.err >&5
16678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16679 (exit $ac_status); } &&
16680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16681 { (case "(($ac_try" in
16682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16683 *) ac_try_echo=$ac_try;;
16685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16686 (eval "$ac_try") 2>&5
16688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16689 (exit $ac_status); }; } &&
16690 { ac_try='test -s conftest.$ac_objext'
16691 { (case "(($ac_try" in
16692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16693 *) ac_try_echo=$ac_try;;
16695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16696 (eval "$ac_try") 2>&5
16698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16699 (exit $ac_status); }; }; then
16700 ac_cv_struct_tm=time.h
16702 echo "$as_me: failed program was:" >&5
16703 sed 's/^/| /' conftest.$ac_ext >&5
16705 ac_cv_struct_tm=sys/time.h
16708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16710 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16711 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16712 if test $ac_cv_struct_tm = sys/time.h; then
16714 cat >>confdefs.h <<\_ACEOF
16715 #define TM_IN_SYS_TIME 1
16720 { echo "$as_me:$LINENO: checking for int64_t" >&5
16721 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16722 if test "${ac_cv_type_int64_t+set}" = set; then
16723 echo $ECHO_N "(cached) $ECHO_C" >&6
16725 cat >conftest.$ac_ext <<_ACEOF
16728 cat confdefs.h >>conftest.$ac_ext
16729 cat >>conftest.$ac_ext <<_ACEOF
16730 /* end confdefs.h. */
16731 $ac_includes_default
16732 typedef int64_t ac__type_new_;
16736 if ((ac__type_new_ *) 0)
16738 if (sizeof (ac__type_new_))
16744 rm -f conftest.$ac_objext
16745 if { (ac_try="$ac_compile"
16746 case "(($ac_try" in
16747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16748 *) ac_try_echo=$ac_try;;
16750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16751 (eval "$ac_compile") 2>conftest.er1
16753 grep -v '^ *+' conftest.er1 >conftest.err
16755 cat conftest.err >&5
16756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16757 (exit $ac_status); } &&
16758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16759 { (case "(($ac_try" in
16760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16761 *) ac_try_echo=$ac_try;;
16763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16764 (eval "$ac_try") 2>&5
16766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16767 (exit $ac_status); }; } &&
16768 { ac_try='test -s conftest.$ac_objext'
16769 { (case "(($ac_try" in
16770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16771 *) ac_try_echo=$ac_try;;
16773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16774 (eval "$ac_try") 2>&5
16776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16777 (exit $ac_status); }; }; then
16778 ac_cv_type_int64_t=yes
16780 echo "$as_me: failed program was:" >&5
16781 sed 's/^/| /' conftest.$ac_ext >&5
16783 ac_cv_type_int64_t=no
16786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16788 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16789 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16790 if test $ac_cv_type_int64_t = yes; then
16792 cat >>confdefs.h <<_ACEOF
16793 #define HAVE_INT64_T 1
16798 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16799 echo "$as_me: error: Type int64_t required but not found" >&2;}
16800 { (exit 1); exit 1; }; }
16803 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16804 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16805 if test "${ac_cv_type_uint64_t+set}" = set; then
16806 echo $ECHO_N "(cached) $ECHO_C" >&6
16808 cat >conftest.$ac_ext <<_ACEOF
16811 cat confdefs.h >>conftest.$ac_ext
16812 cat >>conftest.$ac_ext <<_ACEOF
16813 /* end confdefs.h. */
16814 $ac_includes_default
16815 typedef uint64_t ac__type_new_;
16819 if ((ac__type_new_ *) 0)
16821 if (sizeof (ac__type_new_))
16827 rm -f conftest.$ac_objext
16828 if { (ac_try="$ac_compile"
16829 case "(($ac_try" in
16830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16831 *) ac_try_echo=$ac_try;;
16833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16834 (eval "$ac_compile") 2>conftest.er1
16836 grep -v '^ *+' conftest.er1 >conftest.err
16838 cat conftest.err >&5
16839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16840 (exit $ac_status); } &&
16841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16842 { (case "(($ac_try" in
16843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16844 *) ac_try_echo=$ac_try;;
16846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16847 (eval "$ac_try") 2>&5
16849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16850 (exit $ac_status); }; } &&
16851 { ac_try='test -s conftest.$ac_objext'
16852 { (case "(($ac_try" in
16853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16854 *) ac_try_echo=$ac_try;;
16856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16857 (eval "$ac_try") 2>&5
16859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16860 (exit $ac_status); }; }; then
16861 ac_cv_type_uint64_t=yes
16863 echo "$as_me: failed program was:" >&5
16864 sed 's/^/| /' conftest.$ac_ext >&5
16866 ac_cv_type_uint64_t=no
16869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16871 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16872 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16873 if test $ac_cv_type_uint64_t = yes; then
16875 cat >>confdefs.h <<_ACEOF
16876 #define HAVE_UINT64_T 1
16881 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16882 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16883 if test "${ac_cv_type_u_int64_t+set}" = set; then
16884 echo $ECHO_N "(cached) $ECHO_C" >&6
16886 cat >conftest.$ac_ext <<_ACEOF
16889 cat confdefs.h >>conftest.$ac_ext
16890 cat >>conftest.$ac_ext <<_ACEOF
16891 /* end confdefs.h. */
16892 $ac_includes_default
16893 typedef u_int64_t ac__type_new_;
16897 if ((ac__type_new_ *) 0)
16899 if (sizeof (ac__type_new_))
16905 rm -f conftest.$ac_objext
16906 if { (ac_try="$ac_compile"
16907 case "(($ac_try" in
16908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16909 *) ac_try_echo=$ac_try;;
16911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16912 (eval "$ac_compile") 2>conftest.er1
16914 grep -v '^ *+' conftest.er1 >conftest.err
16916 cat conftest.err >&5
16917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16918 (exit $ac_status); } &&
16919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16920 { (case "(($ac_try" in
16921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16922 *) ac_try_echo=$ac_try;;
16924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16925 (eval "$ac_try") 2>&5
16927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16928 (exit $ac_status); }; } &&
16929 { ac_try='test -s conftest.$ac_objext'
16930 { (case "(($ac_try" in
16931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16932 *) ac_try_echo=$ac_try;;
16934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16935 (eval "$ac_try") 2>&5
16937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16938 (exit $ac_status); }; }; then
16939 ac_cv_type_u_int64_t=yes
16941 echo "$as_me: failed program was:" >&5
16942 sed 's/^/| /' conftest.$ac_ext >&5
16944 ac_cv_type_u_int64_t=no
16947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16949 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16950 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16951 if test $ac_cv_type_u_int64_t = yes; then
16953 cat >>confdefs.h <<_ACEOF
16954 #define HAVE_U_INT64_T 1
16959 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16960 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16961 { (exit 1); exit 1; }; }
16975 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16977 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16978 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16979 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16980 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16981 echo $ECHO_N "(cached) $ECHO_C" >&6
16983 cat >conftest.$ac_ext <<_ACEOF
16986 cat confdefs.h >>conftest.$ac_ext
16987 cat >>conftest.$ac_ext <<_ACEOF
16988 /* end confdefs.h. */
16989 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16990 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16991 #define $ac_func innocuous_$ac_func
16993 /* System header to define __stub macros and hopefully few prototypes,
16994 which can conflict with char $ac_func (); below.
16995 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16996 <limits.h> exists even on freestanding compilers. */
16999 # include <limits.h>
17001 # include <assert.h>
17006 /* Override any GCC internal prototype to avoid an error.
17007 Use char because int might match the return type of a GCC
17008 builtin and then its argument prototype would still apply. */
17013 /* The GNU C library defines this for functions which it implements
17014 to always fail with ENOSYS. Some functions are actually named
17015 something starting with __ and the normal name is an alias. */
17016 #if defined __stub_$ac_func || defined __stub___$ac_func
17023 return $ac_func ();
17028 rm -f conftest.$ac_objext conftest$ac_exeext
17029 if { (ac_try="$ac_link"
17030 case "(($ac_try" in
17031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17032 *) ac_try_echo=$ac_try;;
17034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17035 (eval "$ac_link") 2>conftest.er1
17037 grep -v '^ *+' conftest.er1 >conftest.err
17039 cat conftest.err >&5
17040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17041 (exit $ac_status); } &&
17042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17043 { (case "(($ac_try" in
17044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17045 *) ac_try_echo=$ac_try;;
17047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17048 (eval "$ac_try") 2>&5
17050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17051 (exit $ac_status); }; } &&
17052 { ac_try='test -s conftest$ac_exeext'
17053 { (case "(($ac_try" in
17054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17055 *) ac_try_echo=$ac_try;;
17057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17058 (eval "$ac_try") 2>&5
17060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17061 (exit $ac_status); }; }; then
17062 eval "$as_ac_var=yes"
17064 echo "$as_me: failed program was:" >&5
17065 sed 's/^/| /' conftest.$ac_ext >&5
17067 eval "$as_ac_var=no"
17070 rm -f core conftest.err conftest.$ac_objext \
17071 conftest$ac_exeext conftest.$ac_ext
17073 ac_res=`eval echo '${'$as_ac_var'}'`
17074 { echo "$as_me:$LINENO: result: $ac_res" >&5
17075 echo "${ECHO_T}$ac_res" >&6; }
17076 if test `eval echo '${'$as_ac_var'}'` = yes; then
17077 cat >>confdefs.h <<_ACEOF
17078 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17088 for ac_func in powf fmodf strtof round
17090 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17091 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17092 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17093 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17094 echo $ECHO_N "(cached) $ECHO_C" >&6
17096 cat >conftest.$ac_ext <<_ACEOF
17099 cat confdefs.h >>conftest.$ac_ext
17100 cat >>conftest.$ac_ext <<_ACEOF
17101 /* end confdefs.h. */
17102 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17103 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17104 #define $ac_func innocuous_$ac_func
17106 /* System header to define __stub macros and hopefully few prototypes,
17107 which can conflict with char $ac_func (); below.
17108 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17109 <limits.h> exists even on freestanding compilers. */
17112 # include <limits.h>
17114 # include <assert.h>
17119 /* Override any GCC internal prototype to avoid an error.
17120 Use char because int might match the return type of a GCC
17121 builtin and then its argument prototype would still apply. */
17126 /* The GNU C library defines this for functions which it implements
17127 to always fail with ENOSYS. Some functions are actually named
17128 something starting with __ and the normal name is an alias. */
17129 #if defined __stub_$ac_func || defined __stub___$ac_func
17136 return $ac_func ();
17141 rm -f conftest.$ac_objext conftest$ac_exeext
17142 if { (ac_try="$ac_link"
17143 case "(($ac_try" in
17144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17145 *) ac_try_echo=$ac_try;;
17147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17148 (eval "$ac_link") 2>conftest.er1
17150 grep -v '^ *+' conftest.er1 >conftest.err
17152 cat conftest.err >&5
17153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17154 (exit $ac_status); } &&
17155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17156 { (case "(($ac_try" in
17157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17158 *) ac_try_echo=$ac_try;;
17160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17161 (eval "$ac_try") 2>&5
17163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17164 (exit $ac_status); }; } &&
17165 { ac_try='test -s conftest$ac_exeext'
17166 { (case "(($ac_try" in
17167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17168 *) ac_try_echo=$ac_try;;
17170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17171 (eval "$ac_try") 2>&5
17173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17174 (exit $ac_status); }; }; then
17175 eval "$as_ac_var=yes"
17177 echo "$as_me: failed program was:" >&5
17178 sed 's/^/| /' conftest.$ac_ext >&5
17180 eval "$as_ac_var=no"
17183 rm -f core conftest.err conftest.$ac_objext \
17184 conftest$ac_exeext conftest.$ac_ext
17186 ac_res=`eval echo '${'$as_ac_var'}'`
17187 { echo "$as_me:$LINENO: result: $ac_res" >&5
17188 echo "${ECHO_T}$ac_res" >&6; }
17189 if test `eval echo '${'$as_ac_var'}'` = yes; then
17190 cat >>confdefs.h <<_ACEOF
17191 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17202 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17204 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17205 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17206 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17207 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17208 echo $ECHO_N "(cached) $ECHO_C" >&6
17210 cat >conftest.$ac_ext <<_ACEOF
17213 cat confdefs.h >>conftest.$ac_ext
17214 cat >>conftest.$ac_ext <<_ACEOF
17215 /* end confdefs.h. */
17216 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17217 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17218 #define $ac_func innocuous_$ac_func
17220 /* System header to define __stub macros and hopefully few prototypes,
17221 which can conflict with char $ac_func (); below.
17222 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17223 <limits.h> exists even on freestanding compilers. */
17226 # include <limits.h>
17228 # include <assert.h>
17233 /* Override any GCC internal prototype to avoid an error.
17234 Use char because int might match the return type of a GCC
17235 builtin and then its argument prototype would still apply. */
17240 /* The GNU C library defines this for functions which it implements
17241 to always fail with ENOSYS. Some functions are actually named
17242 something starting with __ and the normal name is an alias. */
17243 #if defined __stub_$ac_func || defined __stub___$ac_func
17250 return $ac_func ();
17255 rm -f conftest.$ac_objext conftest$ac_exeext
17256 if { (ac_try="$ac_link"
17257 case "(($ac_try" in
17258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17259 *) ac_try_echo=$ac_try;;
17261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17262 (eval "$ac_link") 2>conftest.er1
17264 grep -v '^ *+' conftest.er1 >conftest.err
17266 cat conftest.err >&5
17267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17268 (exit $ac_status); } &&
17269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17270 { (case "(($ac_try" in
17271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17272 *) ac_try_echo=$ac_try;;
17274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17275 (eval "$ac_try") 2>&5
17277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17278 (exit $ac_status); }; } &&
17279 { ac_try='test -s conftest$ac_exeext'
17280 { (case "(($ac_try" in
17281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17282 *) ac_try_echo=$ac_try;;
17284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17285 (eval "$ac_try") 2>&5
17287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17288 (exit $ac_status); }; }; then
17289 eval "$as_ac_var=yes"
17291 echo "$as_me: failed program was:" >&5
17292 sed 's/^/| /' conftest.$ac_ext >&5
17294 eval "$as_ac_var=no"
17297 rm -f core conftest.err conftest.$ac_objext \
17298 conftest$ac_exeext conftest.$ac_ext
17300 ac_res=`eval echo '${'$as_ac_var'}'`
17301 { echo "$as_me:$LINENO: result: $ac_res" >&5
17302 echo "${ECHO_T}$ac_res" >&6; }
17303 if test `eval echo '${'$as_ac_var'}'` = yes; then
17304 cat >>confdefs.h <<_ACEOF
17305 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17314 for ac_func in isatty mkdtemp mkstemp
17316 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17317 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17318 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17319 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17320 echo $ECHO_N "(cached) $ECHO_C" >&6
17322 cat >conftest.$ac_ext <<_ACEOF
17325 cat confdefs.h >>conftest.$ac_ext
17326 cat >>conftest.$ac_ext <<_ACEOF
17327 /* end confdefs.h. */
17328 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17329 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17330 #define $ac_func innocuous_$ac_func
17332 /* System header to define __stub macros and hopefully few prototypes,
17333 which can conflict with char $ac_func (); below.
17334 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17335 <limits.h> exists even on freestanding compilers. */
17338 # include <limits.h>
17340 # include <assert.h>
17345 /* Override any GCC internal prototype to avoid an error.
17346 Use char because int might match the return type of a GCC
17347 builtin and then its argument prototype would still apply. */
17352 /* The GNU C library defines this for functions which it implements
17353 to always fail with ENOSYS. Some functions are actually named
17354 something starting with __ and the normal name is an alias. */
17355 #if defined __stub_$ac_func || defined __stub___$ac_func
17362 return $ac_func ();
17367 rm -f conftest.$ac_objext conftest$ac_exeext
17368 if { (ac_try="$ac_link"
17369 case "(($ac_try" in
17370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17371 *) ac_try_echo=$ac_try;;
17373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17374 (eval "$ac_link") 2>conftest.er1
17376 grep -v '^ *+' conftest.er1 >conftest.err
17378 cat conftest.err >&5
17379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17380 (exit $ac_status); } &&
17381 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17382 { (case "(($ac_try" in
17383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17384 *) ac_try_echo=$ac_try;;
17386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17387 (eval "$ac_try") 2>&5
17389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17390 (exit $ac_status); }; } &&
17391 { ac_try='test -s conftest$ac_exeext'
17392 { (case "(($ac_try" in
17393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17394 *) ac_try_echo=$ac_try;;
17396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17397 (eval "$ac_try") 2>&5
17399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17400 (exit $ac_status); }; }; then
17401 eval "$as_ac_var=yes"
17403 echo "$as_me: failed program was:" >&5
17404 sed 's/^/| /' conftest.$ac_ext >&5
17406 eval "$as_ac_var=no"
17409 rm -f core conftest.err conftest.$ac_objext \
17410 conftest$ac_exeext conftest.$ac_ext
17412 ac_res=`eval echo '${'$as_ac_var'}'`
17413 { echo "$as_me:$LINENO: result: $ac_res" >&5
17414 echo "${ECHO_T}$ac_res" >&6; }
17415 if test `eval echo '${'$as_ac_var'}'` = yes; then
17416 cat >>confdefs.h <<_ACEOF
17417 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17428 for ac_func in mktemp realpath sbrk setrlimit strdup
17430 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17431 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17432 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17433 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17434 echo $ECHO_N "(cached) $ECHO_C" >&6
17436 cat >conftest.$ac_ext <<_ACEOF
17439 cat confdefs.h >>conftest.$ac_ext
17440 cat >>conftest.$ac_ext <<_ACEOF
17441 /* end confdefs.h. */
17442 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17443 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17444 #define $ac_func innocuous_$ac_func
17446 /* System header to define __stub macros and hopefully few prototypes,
17447 which can conflict with char $ac_func (); below.
17448 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17449 <limits.h> exists even on freestanding compilers. */
17452 # include <limits.h>
17454 # include <assert.h>
17459 /* Override any GCC internal prototype to avoid an error.
17460 Use char because int might match the return type of a GCC
17461 builtin and then its argument prototype would still apply. */
17466 /* The GNU C library defines this for functions which it implements
17467 to always fail with ENOSYS. Some functions are actually named
17468 something starting with __ and the normal name is an alias. */
17469 #if defined __stub_$ac_func || defined __stub___$ac_func
17476 return $ac_func ();
17481 rm -f conftest.$ac_objext conftest$ac_exeext
17482 if { (ac_try="$ac_link"
17483 case "(($ac_try" in
17484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17485 *) ac_try_echo=$ac_try;;
17487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17488 (eval "$ac_link") 2>conftest.er1
17490 grep -v '^ *+' conftest.er1 >conftest.err
17492 cat conftest.err >&5
17493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17494 (exit $ac_status); } &&
17495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17496 { (case "(($ac_try" in
17497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17498 *) ac_try_echo=$ac_try;;
17500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17501 (eval "$ac_try") 2>&5
17503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17504 (exit $ac_status); }; } &&
17505 { ac_try='test -s conftest$ac_exeext'
17506 { (case "(($ac_try" in
17507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17508 *) ac_try_echo=$ac_try;;
17510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17511 (eval "$ac_try") 2>&5
17513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17514 (exit $ac_status); }; }; then
17515 eval "$as_ac_var=yes"
17517 echo "$as_me: failed program was:" >&5
17518 sed 's/^/| /' conftest.$ac_ext >&5
17520 eval "$as_ac_var=no"
17523 rm -f core conftest.err conftest.$ac_objext \
17524 conftest$ac_exeext conftest.$ac_ext
17526 ac_res=`eval echo '${'$as_ac_var'}'`
17527 { echo "$as_me:$LINENO: result: $ac_res" >&5
17528 echo "${ECHO_T}$ac_res" >&6; }
17529 if test `eval echo '${'$as_ac_var'}'` = yes; then
17530 cat >>confdefs.h <<_ACEOF
17531 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17541 for ac_func in strerror strerror_r strerror_s setenv
17543 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17544 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17545 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17546 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17547 echo $ECHO_N "(cached) $ECHO_C" >&6
17549 cat >conftest.$ac_ext <<_ACEOF
17552 cat confdefs.h >>conftest.$ac_ext
17553 cat >>conftest.$ac_ext <<_ACEOF
17554 /* end confdefs.h. */
17555 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17556 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17557 #define $ac_func innocuous_$ac_func
17559 /* System header to define __stub macros and hopefully few prototypes,
17560 which can conflict with char $ac_func (); below.
17561 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17562 <limits.h> exists even on freestanding compilers. */
17565 # include <limits.h>
17567 # include <assert.h>
17572 /* Override any GCC internal prototype to avoid an error.
17573 Use char because int might match the return type of a GCC
17574 builtin and then its argument prototype would still apply. */
17579 /* The GNU C library defines this for functions which it implements
17580 to always fail with ENOSYS. Some functions are actually named
17581 something starting with __ and the normal name is an alias. */
17582 #if defined __stub_$ac_func || defined __stub___$ac_func
17589 return $ac_func ();
17594 rm -f conftest.$ac_objext conftest$ac_exeext
17595 if { (ac_try="$ac_link"
17596 case "(($ac_try" in
17597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17598 *) ac_try_echo=$ac_try;;
17600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17601 (eval "$ac_link") 2>conftest.er1
17603 grep -v '^ *+' conftest.er1 >conftest.err
17605 cat conftest.err >&5
17606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17607 (exit $ac_status); } &&
17608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17609 { (case "(($ac_try" in
17610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17611 *) ac_try_echo=$ac_try;;
17613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17614 (eval "$ac_try") 2>&5
17616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617 (exit $ac_status); }; } &&
17618 { ac_try='test -s conftest$ac_exeext'
17619 { (case "(($ac_try" in
17620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17621 *) ac_try_echo=$ac_try;;
17623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17624 (eval "$ac_try") 2>&5
17626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17627 (exit $ac_status); }; }; then
17628 eval "$as_ac_var=yes"
17630 echo "$as_me: failed program was:" >&5
17631 sed 's/^/| /' conftest.$ac_ext >&5
17633 eval "$as_ac_var=no"
17636 rm -f core conftest.err conftest.$ac_objext \
17637 conftest$ac_exeext conftest.$ac_ext
17639 ac_res=`eval echo '${'$as_ac_var'}'`
17640 { echo "$as_me:$LINENO: result: $ac_res" >&5
17641 echo "${ECHO_T}$ac_res" >&6; }
17642 if test `eval echo '${'$as_ac_var'}'` = yes; then
17643 cat >>confdefs.h <<_ACEOF
17644 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17654 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17656 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17657 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17658 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17659 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17660 echo $ECHO_N "(cached) $ECHO_C" >&6
17662 cat >conftest.$ac_ext <<_ACEOF
17665 cat confdefs.h >>conftest.$ac_ext
17666 cat >>conftest.$ac_ext <<_ACEOF
17667 /* end confdefs.h. */
17668 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17669 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17670 #define $ac_func innocuous_$ac_func
17672 /* System header to define __stub macros and hopefully few prototypes,
17673 which can conflict with char $ac_func (); below.
17674 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17675 <limits.h> exists even on freestanding compilers. */
17678 # include <limits.h>
17680 # include <assert.h>
17685 /* Override any GCC internal prototype to avoid an error.
17686 Use char because int might match the return type of a GCC
17687 builtin and then its argument prototype would still apply. */
17692 /* The GNU C library defines this for functions which it implements
17693 to always fail with ENOSYS. Some functions are actually named
17694 something starting with __ and the normal name is an alias. */
17695 #if defined __stub_$ac_func || defined __stub___$ac_func
17702 return $ac_func ();
17707 rm -f conftest.$ac_objext conftest$ac_exeext
17708 if { (ac_try="$ac_link"
17709 case "(($ac_try" in
17710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17711 *) ac_try_echo=$ac_try;;
17713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17714 (eval "$ac_link") 2>conftest.er1
17716 grep -v '^ *+' conftest.er1 >conftest.err
17718 cat conftest.err >&5
17719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720 (exit $ac_status); } &&
17721 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17722 { (case "(($ac_try" in
17723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17724 *) ac_try_echo=$ac_try;;
17726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17727 (eval "$ac_try") 2>&5
17729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17730 (exit $ac_status); }; } &&
17731 { ac_try='test -s conftest$ac_exeext'
17732 { (case "(($ac_try" in
17733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17734 *) ac_try_echo=$ac_try;;
17736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17737 (eval "$ac_try") 2>&5
17739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17740 (exit $ac_status); }; }; then
17741 eval "$as_ac_var=yes"
17743 echo "$as_me: failed program was:" >&5
17744 sed 's/^/| /' conftest.$ac_ext >&5
17746 eval "$as_ac_var=no"
17749 rm -f core conftest.err conftest.$ac_objext \
17750 conftest$ac_exeext conftest.$ac_ext
17752 ac_res=`eval echo '${'$as_ac_var'}'`
17753 { echo "$as_me:$LINENO: result: $ac_res" >&5
17754 echo "${ECHO_T}$ac_res" >&6; }
17755 if test `eval echo '${'$as_ac_var'}'` = yes; then
17756 cat >>confdefs.h <<_ACEOF
17757 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17767 for ac_func in setjmp longjmp sigsetjmp siglongjmp
17769 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17770 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17771 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17772 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17773 echo $ECHO_N "(cached) $ECHO_C" >&6
17775 cat >conftest.$ac_ext <<_ACEOF
17778 cat confdefs.h >>conftest.$ac_ext
17779 cat >>conftest.$ac_ext <<_ACEOF
17780 /* end confdefs.h. */
17781 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17782 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17783 #define $ac_func innocuous_$ac_func
17785 /* System header to define __stub macros and hopefully few prototypes,
17786 which can conflict with char $ac_func (); below.
17787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17788 <limits.h> exists even on freestanding compilers. */
17791 # include <limits.h>
17793 # include <assert.h>
17798 /* Override any GCC internal prototype to avoid an error.
17799 Use char because int might match the return type of a GCC
17800 builtin and then its argument prototype would still apply. */
17805 /* The GNU C library defines this for functions which it implements
17806 to always fail with ENOSYS. Some functions are actually named
17807 something starting with __ and the normal name is an alias. */
17808 #if defined __stub_$ac_func || defined __stub___$ac_func
17815 return $ac_func ();
17820 rm -f conftest.$ac_objext conftest$ac_exeext
17821 if { (ac_try="$ac_link"
17822 case "(($ac_try" in
17823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17824 *) ac_try_echo=$ac_try;;
17826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17827 (eval "$ac_link") 2>conftest.er1
17829 grep -v '^ *+' conftest.er1 >conftest.err
17831 cat conftest.err >&5
17832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17833 (exit $ac_status); } &&
17834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17835 { (case "(($ac_try" in
17836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17837 *) ac_try_echo=$ac_try;;
17839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17840 (eval "$ac_try") 2>&5
17842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17843 (exit $ac_status); }; } &&
17844 { ac_try='test -s conftest$ac_exeext'
17845 { (case "(($ac_try" in
17846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17847 *) ac_try_echo=$ac_try;;
17849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17850 (eval "$ac_try") 2>&5
17852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17853 (exit $ac_status); }; }; then
17854 eval "$as_ac_var=yes"
17856 echo "$as_me: failed program was:" >&5
17857 sed 's/^/| /' conftest.$ac_ext >&5
17859 eval "$as_ac_var=no"
17862 rm -f core conftest.err conftest.$ac_objext \
17863 conftest$ac_exeext conftest.$ac_ext
17865 ac_res=`eval echo '${'$as_ac_var'}'`
17866 { echo "$as_me:$LINENO: result: $ac_res" >&5
17867 echo "${ECHO_T}$ac_res" >&6; }
17868 if test `eval echo '${'$as_ac_var'}'` = yes; then
17869 cat >>confdefs.h <<_ACEOF
17870 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17876 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17877 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17878 if test "${llvm_cv_c_printf_a+set}" = set; then
17879 echo $ECHO_N "(cached) $ECHO_C" >&6
17882 ac_cpp='$CPP $CPPFLAGS'
17883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17887 if test "$cross_compiling" = yes; then
17888 llvmac_cv_c_printf_a=no
17890 cat >conftest.$ac_ext <<_ACEOF
17894 cat confdefs.h >>conftest.$ac_ext
17895 cat >>conftest.$ac_ext <<_ACEOF
17896 /* end confdefs.h. */
17899 #include <stdlib.h>
17905 volatile double A, B;
17909 sprintf(Buffer, "%a", A);
17913 if (A != 0x1.999999999999ap-4)
17920 rm -f conftest$ac_exeext
17921 if { (ac_try="$ac_link"
17922 case "(($ac_try" in
17923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17924 *) ac_try_echo=$ac_try;;
17926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17927 (eval "$ac_link") 2>&5
17929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17930 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17931 { (case "(($ac_try" in
17932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17933 *) ac_try_echo=$ac_try;;
17935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17936 (eval "$ac_try") 2>&5
17938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17939 (exit $ac_status); }; }; then
17940 llvm_cv_c_printf_a=yes
17942 echo "$as_me: program exited with status $ac_status" >&5
17943 echo "$as_me: failed program was:" >&5
17944 sed 's/^/| /' conftest.$ac_ext >&5
17946 ( exit $ac_status )
17947 llvmac_cv_c_printf_a=no
17949 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17954 ac_cpp='$CPP $CPPFLAGS'
17955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17960 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17961 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17962 if test "$llvm_cv_c_printf_a" = "yes"; then
17964 cat >>confdefs.h <<\_ACEOF
17965 #define HAVE_PRINTF_A 1
17971 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17972 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17973 if test "${ac_cv_func_rand48+set}" = set; then
17974 echo $ECHO_N "(cached) $ECHO_C" >&6
17977 ac_cpp='$CXXCPP $CPPFLAGS'
17978 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17979 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17980 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17982 cat >conftest.$ac_ext <<_ACEOF
17985 cat confdefs.h >>conftest.$ac_ext
17986 cat >>conftest.$ac_ext <<_ACEOF
17987 /* end confdefs.h. */
17988 #include <stdlib.h>
17992 srand48(0);lrand48();drand48();
17997 rm -f conftest.$ac_objext
17998 if { (ac_try="$ac_compile"
17999 case "(($ac_try" in
18000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18001 *) ac_try_echo=$ac_try;;
18003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18004 (eval "$ac_compile") 2>conftest.er1
18006 grep -v '^ *+' conftest.er1 >conftest.err
18008 cat conftest.err >&5
18009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010 (exit $ac_status); } &&
18011 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18012 { (case "(($ac_try" in
18013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18014 *) ac_try_echo=$ac_try;;
18016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18017 (eval "$ac_try") 2>&5
18019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18020 (exit $ac_status); }; } &&
18021 { ac_try='test -s conftest.$ac_objext'
18022 { (case "(($ac_try" in
18023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18024 *) ac_try_echo=$ac_try;;
18026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18027 (eval "$ac_try") 2>&5
18029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18030 (exit $ac_status); }; }; then
18031 ac_cv_func_rand48=yes
18033 echo "$as_me: failed program was:" >&5
18034 sed 's/^/| /' conftest.$ac_ext >&5
18036 ac_cv_func_rand48=no
18039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18041 ac_cpp='$CPP $CPPFLAGS'
18042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18047 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18048 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18050 if test "$ac_cv_func_rand48" = "yes" ; then
18052 cat >>confdefs.h <<\_ACEOF
18053 #define HAVE_RAND48 1
18060 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
18061 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
18062 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
18063 echo $ECHO_N "(cached) $ECHO_C" >&6
18066 ac_cpp='$CXXCPP $CPPFLAGS'
18067 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18068 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18069 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18071 cat >conftest.$ac_ext <<_ACEOF
18074 cat confdefs.h >>conftest.$ac_ext
18075 cat >>conftest.$ac_ext <<_ACEOF
18076 /* end confdefs.h. */
18086 rm -f conftest.$ac_objext
18087 if { (ac_try="$ac_compile"
18088 case "(($ac_try" in
18089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18090 *) ac_try_echo=$ac_try;;
18092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18093 (eval "$ac_compile") 2>conftest.er1
18095 grep -v '^ *+' conftest.er1 >conftest.err
18097 cat conftest.err >&5
18098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099 (exit $ac_status); } &&
18100 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18101 { (case "(($ac_try" in
18102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18103 *) ac_try_echo=$ac_try;;
18105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18106 (eval "$ac_try") 2>&5
18108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18109 (exit $ac_status); }; } &&
18110 { ac_try='test -s conftest.$ac_objext'
18111 { (case "(($ac_try" in
18112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18113 *) ac_try_echo=$ac_try;;
18115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18116 (eval "$ac_try") 2>&5
18118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18119 (exit $ac_status); }; }; then
18120 ac_cv_func_isnan_in_math_h=yes
18122 echo "$as_me: failed program was:" >&5
18123 sed 's/^/| /' conftest.$ac_ext >&5
18125 ac_cv_func_isnan_in_math_h=no
18128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18130 ac_cpp='$CPP $CPPFLAGS'
18131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18136 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
18137 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
18140 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
18142 cat >>confdefs.h <<\_ACEOF
18143 #define HAVE_ISNAN_IN_MATH_H 1
18148 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
18149 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
18150 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
18151 echo $ECHO_N "(cached) $ECHO_C" >&6
18154 ac_cpp='$CXXCPP $CPPFLAGS'
18155 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18156 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18157 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18159 cat >conftest.$ac_ext <<_ACEOF
18162 cat confdefs.h >>conftest.$ac_ext
18163 cat >>conftest.$ac_ext <<_ACEOF
18164 /* end confdefs.h. */
18174 rm -f conftest.$ac_objext
18175 if { (ac_try="$ac_compile"
18176 case "(($ac_try" in
18177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18178 *) ac_try_echo=$ac_try;;
18180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18181 (eval "$ac_compile") 2>conftest.er1
18183 grep -v '^ *+' conftest.er1 >conftest.err
18185 cat conftest.err >&5
18186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18187 (exit $ac_status); } &&
18188 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18189 { (case "(($ac_try" in
18190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18191 *) ac_try_echo=$ac_try;;
18193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18194 (eval "$ac_try") 2>&5
18196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18197 (exit $ac_status); }; } &&
18198 { ac_try='test -s conftest.$ac_objext'
18199 { (case "(($ac_try" in
18200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18201 *) ac_try_echo=$ac_try;;
18203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18204 (eval "$ac_try") 2>&5
18206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18207 (exit $ac_status); }; }; then
18208 ac_cv_func_isnan_in_cmath=yes
18210 echo "$as_me: failed program was:" >&5
18211 sed 's/^/| /' conftest.$ac_ext >&5
18213 ac_cv_func_isnan_in_cmath=no
18216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18218 ac_cpp='$CPP $CPPFLAGS'
18219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18224 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
18225 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
18227 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
18229 cat >>confdefs.h <<\_ACEOF
18230 #define HAVE_ISNAN_IN_CMATH 1
18235 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
18236 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
18237 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
18238 echo $ECHO_N "(cached) $ECHO_C" >&6
18241 ac_cpp='$CXXCPP $CPPFLAGS'
18242 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18243 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18244 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18246 cat >conftest.$ac_ext <<_ACEOF
18249 cat confdefs.h >>conftest.$ac_ext
18250 cat >>conftest.$ac_ext <<_ACEOF
18251 /* end confdefs.h. */
18256 float f; std::isnan(f);
18261 rm -f conftest.$ac_objext
18262 if { (ac_try="$ac_compile"
18263 case "(($ac_try" in
18264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18265 *) ac_try_echo=$ac_try;;
18267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18268 (eval "$ac_compile") 2>conftest.er1
18270 grep -v '^ *+' conftest.er1 >conftest.err
18272 cat conftest.err >&5
18273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18274 (exit $ac_status); } &&
18275 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18276 { (case "(($ac_try" in
18277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18278 *) ac_try_echo=$ac_try;;
18280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18281 (eval "$ac_try") 2>&5
18283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18284 (exit $ac_status); }; } &&
18285 { ac_try='test -s conftest.$ac_objext'
18286 { (case "(($ac_try" in
18287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18288 *) ac_try_echo=$ac_try;;
18290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18291 (eval "$ac_try") 2>&5
18293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18294 (exit $ac_status); }; }; then
18295 ac_cv_func_std_isnan_in_cmath=yes
18297 echo "$as_me: failed program was:" >&5
18298 sed 's/^/| /' conftest.$ac_ext >&5
18300 ac_cv_func_std_isnan_in_cmath=no
18303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18305 ac_cpp='$CPP $CPPFLAGS'
18306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18311 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
18312 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
18314 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
18316 cat >>confdefs.h <<\_ACEOF
18317 #define HAVE_STD_ISNAN_IN_CMATH 1
18323 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
18324 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
18325 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
18326 echo $ECHO_N "(cached) $ECHO_C" >&6
18329 ac_cpp='$CXXCPP $CPPFLAGS'
18330 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18331 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18332 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18334 cat >conftest.$ac_ext <<_ACEOF
18337 cat confdefs.h >>conftest.$ac_ext
18338 cat >>conftest.$ac_ext <<_ACEOF
18339 /* end confdefs.h. */
18349 rm -f conftest.$ac_objext
18350 if { (ac_try="$ac_compile"
18351 case "(($ac_try" in
18352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18353 *) ac_try_echo=$ac_try;;
18355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18356 (eval "$ac_compile") 2>conftest.er1
18358 grep -v '^ *+' conftest.er1 >conftest.err
18360 cat conftest.err >&5
18361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18362 (exit $ac_status); } &&
18363 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18364 { (case "(($ac_try" in
18365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18366 *) ac_try_echo=$ac_try;;
18368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18369 (eval "$ac_try") 2>&5
18371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18372 (exit $ac_status); }; } &&
18373 { ac_try='test -s conftest.$ac_objext'
18374 { (case "(($ac_try" in
18375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18376 *) ac_try_echo=$ac_try;;
18378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18379 (eval "$ac_try") 2>&5
18381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18382 (exit $ac_status); }; }; then
18383 ac_cv_func_isinf_in_math_h=yes
18385 echo "$as_me: failed program was:" >&5
18386 sed 's/^/| /' conftest.$ac_ext >&5
18388 ac_cv_func_isinf_in_math_h=no
18391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18393 ac_cpp='$CPP $CPPFLAGS'
18394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18399 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
18400 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
18402 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
18404 cat >>confdefs.h <<\_ACEOF
18405 #define HAVE_ISINF_IN_MATH_H 1
18410 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
18411 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
18412 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
18413 echo $ECHO_N "(cached) $ECHO_C" >&6
18416 ac_cpp='$CXXCPP $CPPFLAGS'
18417 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18418 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18419 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18421 cat >conftest.$ac_ext <<_ACEOF
18424 cat confdefs.h >>conftest.$ac_ext
18425 cat >>conftest.$ac_ext <<_ACEOF
18426 /* end confdefs.h. */
18436 rm -f conftest.$ac_objext
18437 if { (ac_try="$ac_compile"
18438 case "(($ac_try" in
18439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18440 *) ac_try_echo=$ac_try;;
18442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18443 (eval "$ac_compile") 2>conftest.er1
18445 grep -v '^ *+' conftest.er1 >conftest.err
18447 cat conftest.err >&5
18448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18449 (exit $ac_status); } &&
18450 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18451 { (case "(($ac_try" in
18452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18453 *) ac_try_echo=$ac_try;;
18455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18456 (eval "$ac_try") 2>&5
18458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18459 (exit $ac_status); }; } &&
18460 { ac_try='test -s conftest.$ac_objext'
18461 { (case "(($ac_try" in
18462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18463 *) ac_try_echo=$ac_try;;
18465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18466 (eval "$ac_try") 2>&5
18468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18469 (exit $ac_status); }; }; then
18470 ac_cv_func_isinf_in_cmath=yes
18472 echo "$as_me: failed program was:" >&5
18473 sed 's/^/| /' conftest.$ac_ext >&5
18475 ac_cv_func_isinf_in_cmath=no
18478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18480 ac_cpp='$CPP $CPPFLAGS'
18481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18486 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
18487 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
18489 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
18491 cat >>confdefs.h <<\_ACEOF
18492 #define HAVE_ISINF_IN_CMATH 1
18497 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
18498 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
18499 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
18500 echo $ECHO_N "(cached) $ECHO_C" >&6
18503 ac_cpp='$CXXCPP $CPPFLAGS'
18504 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18505 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18506 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18508 cat >conftest.$ac_ext <<_ACEOF
18511 cat confdefs.h >>conftest.$ac_ext
18512 cat >>conftest.$ac_ext <<_ACEOF
18513 /* end confdefs.h. */
18518 float f; std::isinf(f)}
18523 rm -f conftest.$ac_objext
18524 if { (ac_try="$ac_compile"
18525 case "(($ac_try" in
18526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18527 *) ac_try_echo=$ac_try;;
18529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18530 (eval "$ac_compile") 2>conftest.er1
18532 grep -v '^ *+' conftest.er1 >conftest.err
18534 cat conftest.err >&5
18535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536 (exit $ac_status); } &&
18537 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18538 { (case "(($ac_try" in
18539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18540 *) ac_try_echo=$ac_try;;
18542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18543 (eval "$ac_try") 2>&5
18545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18546 (exit $ac_status); }; } &&
18547 { ac_try='test -s conftest.$ac_objext'
18548 { (case "(($ac_try" in
18549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18550 *) ac_try_echo=$ac_try;;
18552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18553 (eval "$ac_try") 2>&5
18555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18556 (exit $ac_status); }; }; then
18557 ac_cv_func_std_isinf_in_cmath=yes
18559 echo "$as_me: failed program was:" >&5
18560 sed 's/^/| /' conftest.$ac_ext >&5
18562 ac_cv_func_std_isinf_in_cmath=no
18565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18567 ac_cpp='$CPP $CPPFLAGS'
18568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18573 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
18574 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
18576 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
18578 cat >>confdefs.h <<\_ACEOF
18579 #define HAVE_STD_ISINF_IN_CMATH 1
18584 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
18585 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
18586 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
18587 echo $ECHO_N "(cached) $ECHO_C" >&6
18590 ac_cpp='$CXXCPP $CPPFLAGS'
18591 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18592 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18593 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18595 cat >conftest.$ac_ext <<_ACEOF
18598 cat confdefs.h >>conftest.$ac_ext
18599 cat >>conftest.$ac_ext <<_ACEOF
18600 /* end confdefs.h. */
18601 #include <ieeefp.h>
18605 float f; finite(f);
18610 rm -f conftest.$ac_objext
18611 if { (ac_try="$ac_compile"
18612 case "(($ac_try" in
18613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18614 *) ac_try_echo=$ac_try;;
18616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18617 (eval "$ac_compile") 2>conftest.er1
18619 grep -v '^ *+' conftest.er1 >conftest.err
18621 cat conftest.err >&5
18622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18623 (exit $ac_status); } &&
18624 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18625 { (case "(($ac_try" in
18626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18627 *) ac_try_echo=$ac_try;;
18629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18630 (eval "$ac_try") 2>&5
18632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633 (exit $ac_status); }; } &&
18634 { ac_try='test -s conftest.$ac_objext'
18635 { (case "(($ac_try" in
18636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18637 *) ac_try_echo=$ac_try;;
18639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18640 (eval "$ac_try") 2>&5
18642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18643 (exit $ac_status); }; }; then
18644 ac_cv_func_finite_in_ieeefp_h=yes
18646 echo "$as_me: failed program was:" >&5
18647 sed 's/^/| /' conftest.$ac_ext >&5
18649 ac_cv_func_finite_in_ieeefp_h=no
18652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18654 ac_cpp='$CPP $CPPFLAGS'
18655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18660 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
18661 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
18663 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
18665 cat >>confdefs.h <<\_ACEOF
18666 #define HAVE_FINITE_IN_IEEEFP_H 1
18673 if test "$llvm_cv_platform_type" = "Unix" ; then
18676 for ac_header in stdlib.h unistd.h
18678 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18679 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18680 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18681 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18682 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18683 echo $ECHO_N "(cached) $ECHO_C" >&6
18685 ac_res=`eval echo '${'$as_ac_Header'}'`
18686 { echo "$as_me:$LINENO: result: $ac_res" >&5
18687 echo "${ECHO_T}$ac_res" >&6; }
18689 # Is the header compilable?
18690 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18691 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18692 cat >conftest.$ac_ext <<_ACEOF
18695 cat confdefs.h >>conftest.$ac_ext
18696 cat >>conftest.$ac_ext <<_ACEOF
18697 /* end confdefs.h. */
18698 $ac_includes_default
18699 #include <$ac_header>
18701 rm -f conftest.$ac_objext
18702 if { (ac_try="$ac_compile"
18703 case "(($ac_try" in
18704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18705 *) ac_try_echo=$ac_try;;
18707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18708 (eval "$ac_compile") 2>conftest.er1
18710 grep -v '^ *+' conftest.er1 >conftest.err
18712 cat conftest.err >&5
18713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18714 (exit $ac_status); } &&
18715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18716 { (case "(($ac_try" in
18717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18718 *) ac_try_echo=$ac_try;;
18720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18721 (eval "$ac_try") 2>&5
18723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18724 (exit $ac_status); }; } &&
18725 { ac_try='test -s conftest.$ac_objext'
18726 { (case "(($ac_try" in
18727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18728 *) ac_try_echo=$ac_try;;
18730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18731 (eval "$ac_try") 2>&5
18733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18734 (exit $ac_status); }; }; then
18735 ac_header_compiler=yes
18737 echo "$as_me: failed program was:" >&5
18738 sed 's/^/| /' conftest.$ac_ext >&5
18740 ac_header_compiler=no
18743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18744 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18745 echo "${ECHO_T}$ac_header_compiler" >&6; }
18747 # Is the header present?
18748 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18749 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18750 cat >conftest.$ac_ext <<_ACEOF
18753 cat confdefs.h >>conftest.$ac_ext
18754 cat >>conftest.$ac_ext <<_ACEOF
18755 /* end confdefs.h. */
18756 #include <$ac_header>
18758 if { (ac_try="$ac_cpp conftest.$ac_ext"
18759 case "(($ac_try" in
18760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18761 *) ac_try_echo=$ac_try;;
18763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18764 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18766 grep -v '^ *+' conftest.er1 >conftest.err
18768 cat conftest.err >&5
18769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18770 (exit $ac_status); } >/dev/null; then
18771 if test -s conftest.err; then
18772 ac_cpp_err=$ac_c_preproc_warn_flag
18773 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18780 if test -z "$ac_cpp_err"; then
18781 ac_header_preproc=yes
18783 echo "$as_me: failed program was:" >&5
18784 sed 's/^/| /' conftest.$ac_ext >&5
18786 ac_header_preproc=no
18789 rm -f conftest.err conftest.$ac_ext
18790 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18791 echo "${ECHO_T}$ac_header_preproc" >&6; }
18793 # So? What about this header?
18794 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18796 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18797 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18798 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18799 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18800 ac_header_preproc=yes
18803 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18804 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18805 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18806 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18807 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18808 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18809 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18810 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18811 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18812 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18813 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18814 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18816 ## ----------------------------------- ##
18817 ## Report this to llvmbugs@cs.uiuc.edu ##
18818 ## ----------------------------------- ##
18820 ) | sed "s/^/$as_me: WARNING: /" >&2
18823 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18825 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18826 echo $ECHO_N "(cached) $ECHO_C" >&6
18828 eval "$as_ac_Header=\$ac_header_preproc"
18830 ac_res=`eval echo '${'$as_ac_Header'}'`
18831 { echo "$as_me:$LINENO: result: $ac_res" >&5
18832 echo "${ECHO_T}$ac_res" >&6; }
18835 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18836 cat >>confdefs.h <<_ACEOF
18837 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18845 for ac_func in getpagesize
18847 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18848 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18849 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18850 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18851 echo $ECHO_N "(cached) $ECHO_C" >&6
18853 cat >conftest.$ac_ext <<_ACEOF
18856 cat confdefs.h >>conftest.$ac_ext
18857 cat >>conftest.$ac_ext <<_ACEOF
18858 /* end confdefs.h. */
18859 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18860 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18861 #define $ac_func innocuous_$ac_func
18863 /* System header to define __stub macros and hopefully few prototypes,
18864 which can conflict with char $ac_func (); below.
18865 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18866 <limits.h> exists even on freestanding compilers. */
18869 # include <limits.h>
18871 # include <assert.h>
18876 /* Override any GCC internal prototype to avoid an error.
18877 Use char because int might match the return type of a GCC
18878 builtin and then its argument prototype would still apply. */
18883 /* The GNU C library defines this for functions which it implements
18884 to always fail with ENOSYS. Some functions are actually named
18885 something starting with __ and the normal name is an alias. */
18886 #if defined __stub_$ac_func || defined __stub___$ac_func
18893 return $ac_func ();
18898 rm -f conftest.$ac_objext conftest$ac_exeext
18899 if { (ac_try="$ac_link"
18900 case "(($ac_try" in
18901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18902 *) ac_try_echo=$ac_try;;
18904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18905 (eval "$ac_link") 2>conftest.er1
18907 grep -v '^ *+' conftest.er1 >conftest.err
18909 cat conftest.err >&5
18910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18911 (exit $ac_status); } &&
18912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18913 { (case "(($ac_try" in
18914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18915 *) ac_try_echo=$ac_try;;
18917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18918 (eval "$ac_try") 2>&5
18920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18921 (exit $ac_status); }; } &&
18922 { ac_try='test -s conftest$ac_exeext'
18923 { (case "(($ac_try" in
18924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18925 *) ac_try_echo=$ac_try;;
18927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18928 (eval "$ac_try") 2>&5
18930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18931 (exit $ac_status); }; }; then
18932 eval "$as_ac_var=yes"
18934 echo "$as_me: failed program was:" >&5
18935 sed 's/^/| /' conftest.$ac_ext >&5
18937 eval "$as_ac_var=no"
18940 rm -f core conftest.err conftest.$ac_objext \
18941 conftest$ac_exeext conftest.$ac_ext
18943 ac_res=`eval echo '${'$as_ac_var'}'`
18944 { echo "$as_me:$LINENO: result: $ac_res" >&5
18945 echo "${ECHO_T}$ac_res" >&6; }
18946 if test `eval echo '${'$as_ac_var'}'` = yes; then
18947 cat >>confdefs.h <<_ACEOF
18948 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18954 { echo "$as_me:$LINENO: checking for working mmap" >&5
18955 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
18956 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
18957 echo $ECHO_N "(cached) $ECHO_C" >&6
18959 if test "$cross_compiling" = yes; then
18960 ac_cv_func_mmap_fixed_mapped=no
18962 cat >conftest.$ac_ext <<_ACEOF
18965 cat confdefs.h >>conftest.$ac_ext
18966 cat >>conftest.$ac_ext <<_ACEOF
18967 /* end confdefs.h. */
18968 $ac_includes_default
18969 /* malloc might have been renamed as rpl_malloc. */
18972 /* Thanks to Mike Haertel and Jim Avera for this test.
18973 Here is a matrix of mmap possibilities:
18974 mmap private not fixed
18975 mmap private fixed at somewhere currently unmapped
18976 mmap private fixed at somewhere already mapped
18977 mmap shared not fixed
18978 mmap shared fixed at somewhere currently unmapped
18979 mmap shared fixed at somewhere already mapped
18980 For private mappings, we should verify that changes cannot be read()
18981 back from the file, nor mmap's back from the file at a different
18982 address. (There have been systems where private was not correctly
18983 implemented like the infamous i386 svr4.0, and systems where the
18984 VM page cache was not coherent with the file system buffer cache
18985 like early versions of FreeBSD and possibly contemporary NetBSD.)
18986 For shared mappings, we should conversely verify that changes get
18987 propagated back to all the places they're supposed to be.
18989 Grep wants private fixed already mapped.
18990 The main things grep needs to know about mmap are:
18991 * does it exist and is it safe to write into the mmap'd area
18992 * how to use it (BSD variants) */
18995 #include <sys/mman.h>
18997 #if !STDC_HEADERS && !HAVE_STDLIB_H
19001 /* This mess was copied from the GNU getpagesize.h. */
19002 #if !HAVE_GETPAGESIZE
19003 /* Assume that all systems that can run configure have sys/param.h. */
19004 # if !HAVE_SYS_PARAM_H
19005 # define HAVE_SYS_PARAM_H 1
19008 # ifdef _SC_PAGESIZE
19009 # define getpagesize() sysconf(_SC_PAGESIZE)
19010 # else /* no _SC_PAGESIZE */
19011 # if HAVE_SYS_PARAM_H
19012 # include <sys/param.h>
19013 # ifdef EXEC_PAGESIZE
19014 # define getpagesize() EXEC_PAGESIZE
19015 # else /* no EXEC_PAGESIZE */
19017 # define getpagesize() NBPG * CLSIZE
19020 # endif /* no CLSIZE */
19021 # else /* no NBPG */
19023 # define getpagesize() NBPC
19024 # else /* no NBPC */
19026 # define getpagesize() PAGESIZE
19027 # endif /* PAGESIZE */
19028 # endif /* no NBPC */
19029 # endif /* no NBPG */
19030 # endif /* no EXEC_PAGESIZE */
19031 # else /* no HAVE_SYS_PARAM_H */
19032 # define getpagesize() 8192 /* punt totally */
19033 # endif /* no HAVE_SYS_PARAM_H */
19034 # endif /* no _SC_PAGESIZE */
19036 #endif /* no HAVE_GETPAGESIZE */
19041 char *data, *data2, *data3;
19045 pagesize = getpagesize ();
19047 /* First, make a file with some known garbage in it. */
19048 data = (char *) malloc (pagesize);
19051 for (i = 0; i < pagesize; ++i)
19052 *(data + i) = rand ();
19054 fd = creat ("conftest.mmap", 0600);
19057 if (write (fd, data, pagesize) != pagesize)
19061 /* Next, try to mmap the file at a fixed address which already has
19062 something else allocated at it. If we can, also make sure that
19063 we see the same garbage. */
19064 fd = open ("conftest.mmap", O_RDWR);
19067 data2 = (char *) malloc (2 * pagesize);
19070 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
19071 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19072 MAP_PRIVATE | MAP_FIXED, fd, 0L))
19074 for (i = 0; i < pagesize; ++i)
19075 if (*(data + i) != *(data2 + i))
19078 /* Finally, make sure that changes to the mapped area do not
19079 percolate back to the file as seen by read(). (This is a bug on
19080 some variants of i386 svr4.0.) */
19081 for (i = 0; i < pagesize; ++i)
19082 *(data2 + i) = *(data2 + i) + 1;
19083 data3 = (char *) malloc (pagesize);
19086 if (read (fd, data3, pagesize) != pagesize)
19088 for (i = 0; i < pagesize; ++i)
19089 if (*(data + i) != *(data3 + i))
19095 rm -f conftest$ac_exeext
19096 if { (ac_try="$ac_link"
19097 case "(($ac_try" in
19098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19099 *) ac_try_echo=$ac_try;;
19101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19102 (eval "$ac_link") 2>&5
19104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19106 { (case "(($ac_try" in
19107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19108 *) ac_try_echo=$ac_try;;
19110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19111 (eval "$ac_try") 2>&5
19113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19114 (exit $ac_status); }; }; then
19115 ac_cv_func_mmap_fixed_mapped=yes
19117 echo "$as_me: program exited with status $ac_status" >&5
19118 echo "$as_me: failed program was:" >&5
19119 sed 's/^/| /' conftest.$ac_ext >&5
19121 ( exit $ac_status )
19122 ac_cv_func_mmap_fixed_mapped=no
19124 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19129 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
19130 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
19131 if test $ac_cv_func_mmap_fixed_mapped = yes; then
19133 cat >>confdefs.h <<\_ACEOF
19134 #define HAVE_MMAP 1
19138 rm -f conftest.mmap
19140 { echo "$as_me:$LINENO: checking for mmap of files" >&5
19141 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
19142 if test "${ac_cv_func_mmap_file+set}" = set; then
19143 echo $ECHO_N "(cached) $ECHO_C" >&6
19146 ac_cpp='$CPP $CPPFLAGS'
19147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19149 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19151 if test "$cross_compiling" = yes; then
19152 ac_cv_func_mmap_file=no
19154 cat >conftest.$ac_ext <<_ACEOF
19158 cat confdefs.h >>conftest.$ac_ext
19159 cat >>conftest.$ac_ext <<_ACEOF
19160 /* end confdefs.h. */
19162 #include <sys/types.h>
19163 #include <sys/mman.h>
19171 fd = creat ("foo",0777);
19172 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
19174 return (fd != (int) MAP_FAILED);
19179 rm -f conftest$ac_exeext
19180 if { (ac_try="$ac_link"
19181 case "(($ac_try" in
19182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19183 *) ac_try_echo=$ac_try;;
19185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19186 (eval "$ac_link") 2>&5
19188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19189 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19190 { (case "(($ac_try" in
19191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19192 *) ac_try_echo=$ac_try;;
19194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19195 (eval "$ac_try") 2>&5
19197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19198 (exit $ac_status); }; }; then
19199 ac_cv_func_mmap_file=yes
19201 echo "$as_me: program exited with status $ac_status" >&5
19202 echo "$as_me: failed program was:" >&5
19203 sed 's/^/| /' conftest.$ac_ext >&5
19205 ( exit $ac_status )
19206 ac_cv_func_mmap_file=no
19208 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19213 ac_cpp='$CPP $CPPFLAGS'
19214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19220 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
19221 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
19222 if test "$ac_cv_func_mmap_file" = yes; then
19224 cat >>confdefs.h <<\_ACEOF
19225 #define HAVE_MMAP_FILE
19232 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
19233 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
19234 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
19235 echo $ECHO_N "(cached) $ECHO_C" >&6
19237 if test "$llvm_cv_os_type" = "Interix" ; then
19238 ac_cv_need_dev_zero_for_mmap=yes
19240 ac_cv_need_dev_zero_for_mmap=no
19244 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
19245 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
19246 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
19248 cat >>confdefs.h <<\_ACEOF
19249 #define NEED_DEV_ZERO_FOR_MMAP 1
19254 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
19256 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
19257 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
19259 if test "$ac_cv_func_mmap_file" = "no"
19261 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
19262 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
19266 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
19267 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
19268 cat >conftest.$ac_ext <<_ACEOF
19271 cat confdefs.h >>conftest.$ac_ext
19272 cat >>conftest.$ac_ext <<_ACEOF
19273 /* end confdefs.h. */
19275 volatile unsigned long val = 1;
19276 __sync_synchronize();
19277 __sync_val_compare_and_swap(&val, 1, 0);
19278 __sync_add_and_fetch(&val, 1);
19279 __sync_sub_and_fetch(&val, 1);
19284 rm -f conftest.$ac_objext conftest$ac_exeext
19285 if { (ac_try="$ac_link"
19286 case "(($ac_try" in
19287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19288 *) ac_try_echo=$ac_try;;
19290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19291 (eval "$ac_link") 2>conftest.er1
19293 grep -v '^ *+' conftest.er1 >conftest.err
19295 cat conftest.err >&5
19296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19297 (exit $ac_status); } &&
19298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19299 { (case "(($ac_try" in
19300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19301 *) ac_try_echo=$ac_try;;
19303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19304 (eval "$ac_try") 2>&5
19306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19307 (exit $ac_status); }; } &&
19308 { ac_try='test -s conftest$ac_exeext'
19309 { (case "(($ac_try" in
19310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19311 *) ac_try_echo=$ac_try;;
19313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19314 (eval "$ac_try") 2>&5
19316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19317 (exit $ac_status); }; }; then
19318 { echo "$as_me:$LINENO: result: yes" >&5
19319 echo "${ECHO_T}yes" >&6; }
19321 cat >>confdefs.h <<\_ACEOF
19322 #define LLVM_MULTITHREADED 1
19326 echo "$as_me: failed program was:" >&5
19327 sed 's/^/| /' conftest.$ac_ext >&5
19329 { echo "$as_me:$LINENO: result: no" >&5
19330 echo "${ECHO_T}no" >&6; }
19332 cat >>confdefs.h <<\_ACEOF
19333 #define LLVM_MULTITHREADED 0
19336 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
19337 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
19340 rm -f core conftest.err conftest.$ac_objext \
19341 conftest$ac_exeext conftest.$ac_ext
19345 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
19346 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
19347 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
19348 if test "${llvm_cv_linux_mixed+set}" = set; then
19349 echo $ECHO_N "(cached) $ECHO_C" >&6
19352 ac_cpp='$CPP $CPPFLAGS'
19353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19357 cat >conftest.$ac_ext <<_ACEOF
19360 cat confdefs.h >>conftest.$ac_ext
19361 cat >>conftest.$ac_ext <<_ACEOF
19362 /* end confdefs.h. */
19364 error: Not x86-64 even if uname says so!
19375 rm -f conftest.$ac_objext
19376 if { (ac_try="$ac_compile"
19377 case "(($ac_try" in
19378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19379 *) ac_try_echo=$ac_try;;
19381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19382 (eval "$ac_compile") 2>conftest.er1
19384 grep -v '^ *+' conftest.er1 >conftest.err
19386 cat conftest.err >&5
19387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388 (exit $ac_status); } &&
19389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19390 { (case "(($ac_try" in
19391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19392 *) ac_try_echo=$ac_try;;
19394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19395 (eval "$ac_try") 2>&5
19397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19398 (exit $ac_status); }; } &&
19399 { ac_try='test -s conftest.$ac_objext'
19400 { (case "(($ac_try" in
19401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19402 *) ac_try_echo=$ac_try;;
19404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19405 (eval "$ac_try") 2>&5
19407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19408 (exit $ac_status); }; }; then
19409 llvm_cv_linux_mixed=no
19411 echo "$as_me: failed program was:" >&5
19412 sed 's/^/| /' conftest.$ac_ext >&5
19414 llvm_cv_linux_mixed=yes
19417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19419 ac_cpp='$CPP $CPPFLAGS'
19420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19426 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
19427 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
19429 if test "$llvm_cv_linux_mixed" = "yes"; then
19430 llvm_cv_target_arch="x86"
19436 for ac_func in __dso_handle
19438 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19439 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19440 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19441 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19442 echo $ECHO_N "(cached) $ECHO_C" >&6
19444 cat >conftest.$ac_ext <<_ACEOF
19447 cat confdefs.h >>conftest.$ac_ext
19448 cat >>conftest.$ac_ext <<_ACEOF
19449 /* end confdefs.h. */
19450 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19451 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19452 #define $ac_func innocuous_$ac_func
19454 /* System header to define __stub macros and hopefully few prototypes,
19455 which can conflict with char $ac_func (); below.
19456 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19457 <limits.h> exists even on freestanding compilers. */
19460 # include <limits.h>
19462 # include <assert.h>
19467 /* Override any GCC internal prototype to avoid an error.
19468 Use char because int might match the return type of a GCC
19469 builtin and then its argument prototype would still apply. */
19474 /* The GNU C library defines this for functions which it implements
19475 to always fail with ENOSYS. Some functions are actually named
19476 something starting with __ and the normal name is an alias. */
19477 #if defined __stub_$ac_func || defined __stub___$ac_func
19484 return $ac_func ();
19489 rm -f conftest.$ac_objext conftest$ac_exeext
19490 if { (ac_try="$ac_link"
19491 case "(($ac_try" in
19492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19493 *) ac_try_echo=$ac_try;;
19495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19496 (eval "$ac_link") 2>conftest.er1
19498 grep -v '^ *+' conftest.er1 >conftest.err
19500 cat conftest.err >&5
19501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19502 (exit $ac_status); } &&
19503 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19504 { (case "(($ac_try" in
19505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19506 *) ac_try_echo=$ac_try;;
19508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19509 (eval "$ac_try") 2>&5
19511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19512 (exit $ac_status); }; } &&
19513 { ac_try='test -s conftest$ac_exeext'
19514 { (case "(($ac_try" in
19515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19516 *) ac_try_echo=$ac_try;;
19518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19519 (eval "$ac_try") 2>&5
19521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19522 (exit $ac_status); }; }; then
19523 eval "$as_ac_var=yes"
19525 echo "$as_me: failed program was:" >&5
19526 sed 's/^/| /' conftest.$ac_ext >&5
19528 eval "$as_ac_var=no"
19531 rm -f core conftest.err conftest.$ac_objext \
19532 conftest$ac_exeext conftest.$ac_ext
19534 ac_res=`eval echo '${'$as_ac_var'}'`
19535 { echo "$as_me:$LINENO: result: $ac_res" >&5
19536 echo "${ECHO_T}$ac_res" >&6; }
19537 if test `eval echo '${'$as_ac_var'}'` = yes; then
19538 cat >>confdefs.h <<_ACEOF
19539 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19546 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
19547 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
19548 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
19549 echo $ECHO_N "(cached) $ECHO_C" >&6
19551 llvm_cv_llvmgcc_sanity="no"
19552 if test -x "$LLVMGCC" ; then
19553 cp /dev/null conftest.c
19554 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
19555 grep 'target datalayout =' > /dev/null 2>&1
19556 if test $? -eq 0 ; then
19557 llvm_cv_llvmgcc_sanity="yes"
19562 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
19563 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
19565 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
19566 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
19567 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
19568 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
19569 LLVMCC1=$llvmcc1path
19571 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
19572 LLVMCC1PLUS=$llvmcc1pluspath
19574 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
19575 LLVMGCCDIR=$llvmgccdir
19577 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
19578 LLVMGCCLIBEXEC=$llvmgcclibexec
19580 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
19581 LLVMGCC_LANGS=$llvmgcclangs
19583 { echo "$as_me:$LINENO: result: ok" >&5
19584 echo "${ECHO_T}ok" >&6; }
19587 SHLIBEXT=$libltdl_cv_shlibext
19590 # Translate the various configuration directories and other basic
19591 # information into substitutions that will end up in Makefile.config.in
19592 # that these configured values can be used by the makefiles
19593 if test "${prefix}" = "NONE" ; then
19594 prefix="/usr/local"
19596 eval LLVM_PREFIX="${prefix}";
19597 eval LLVM_BINDIR="${prefix}/bin";
19598 eval LLVM_LIBDIR="${prefix}/lib";
19599 eval LLVM_DATADIR="${prefix}/share/llvm";
19600 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
19601 eval LLVM_ETCDIR="${prefix}/etc/llvm";
19602 eval LLVM_INCLUDEDIR="${prefix}/include";
19603 eval LLVM_INFODIR="${prefix}/info";
19604 eval LLVM_MANDIR="${prefix}/man";
19605 LLVM_CONFIGTIME=`date`
19617 # Place the various directores into the config.h file as #defines so that we
19618 # can know about the installation paths within LLVM.
19620 cat >>confdefs.h <<_ACEOF
19621 #define LLVM_PREFIX "$LLVM_PREFIX"
19625 cat >>confdefs.h <<_ACEOF
19626 #define LLVM_BINDIR "$LLVM_BINDIR"
19630 cat >>confdefs.h <<_ACEOF
19631 #define LLVM_LIBDIR "$LLVM_LIBDIR"
19635 cat >>confdefs.h <<_ACEOF
19636 #define LLVM_DATADIR "$LLVM_DATADIR"
19640 cat >>confdefs.h <<_ACEOF
19641 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
19645 cat >>confdefs.h <<_ACEOF
19646 #define LLVM_ETCDIR "$LLVM_ETCDIR"
19650 cat >>confdefs.h <<_ACEOF
19651 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
19655 cat >>confdefs.h <<_ACEOF
19656 #define LLVM_INFODIR "$LLVM_INFODIR"
19660 cat >>confdefs.h <<_ACEOF
19661 #define LLVM_MANDIR "$LLVM_MANDIR"
19665 cat >>confdefs.h <<_ACEOF
19666 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
19670 cat >>confdefs.h <<_ACEOF
19671 #define LLVM_HOSTTRIPLE "$host"
19675 # Determine which bindings to build.
19676 if test "$BINDINGS_TO_BUILD" = auto ; then
19677 BINDINGS_TO_BUILD=""
19678 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
19679 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
19682 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
19685 # This isn't really configurey, but it avoids having to repeat the list in
19690 # Do any work necessary to ensure that bindings have what they need.
19691 binding_prereqs_failed=0
19692 for a_binding in $BINDINGS_TO_BUILD ; do
19693 case "$a_binding" in
19695 if test "x$OCAMLC" = x ; then
19696 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
19697 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
19698 binding_prereqs_failed=1
19700 if test "x$OCAMLDEP" = x ; then
19701 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
19702 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
19703 binding_prereqs_failed=1
19705 if test "x$OCAMLOPT" = x ; then
19706 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
19707 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
19709 if test "x$with_ocaml_libdir" != xauto ; then
19710 OCAML_LIBDIR=$with_ocaml_libdir
19713 ocaml_stdlib="`"$OCAMLC" -where`"
19714 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
19716 # ocaml stdlib is beneath our prefix; use stdlib
19717 OCAML_LIBDIR=$ocaml_stdlib
19720 # ocaml stdlib is outside our prefix; use libdir/ocaml
19721 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
19728 if test "$binding_prereqs_failed" = 1 ; then
19729 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
19730 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
19731 { (exit 1); exit 1; }; }
19734 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
19735 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
19736 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
19737 echo $ECHO_N "(cached) $ECHO_C" >&6
19740 ac_cpp='$CXXCPP $CPPFLAGS'
19741 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19742 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19743 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19745 oldcxxflags="$CXXFLAGS"
19746 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
19747 cat >conftest.$ac_ext <<_ACEOF
19750 cat confdefs.h >>conftest.$ac_ext
19751 cat >>conftest.$ac_ext <<_ACEOF
19752 /* end confdefs.h. */
19762 rm -f conftest.$ac_objext
19763 if { (ac_try="$ac_compile"
19764 case "(($ac_try" in
19765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19766 *) ac_try_echo=$ac_try;;
19768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19769 (eval "$ac_compile") 2>conftest.er1
19771 grep -v '^ *+' conftest.er1 >conftest.err
19773 cat conftest.err >&5
19774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19775 (exit $ac_status); } &&
19776 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19777 { (case "(($ac_try" in
19778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19779 *) ac_try_echo=$ac_try;;
19781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19782 (eval "$ac_try") 2>&5
19784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19785 (exit $ac_status); }; } &&
19786 { ac_try='test -s conftest.$ac_objext'
19787 { (case "(($ac_try" in
19788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19789 *) ac_try_echo=$ac_try;;
19791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19792 (eval "$ac_try") 2>&5
19794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795 (exit $ac_status); }; }; then
19796 llvm_cv_cxx_visibility_inlines_hidden=yes
19798 echo "$as_me: failed program was:" >&5
19799 sed 's/^/| /' conftest.$ac_ext >&5
19801 llvm_cv_cxx_visibility_inlines_hidden=no
19804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19805 CXXFLAGS="$oldcxxflags"
19807 ac_cpp='$CPP $CPPFLAGS'
19808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19814 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
19815 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
19816 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
19817 ENABLE_VISIBILITY_INLINES_HIDDEN=1
19820 ENABLE_VISIBILITY_INLINES_HIDDEN=0
19825 if test "$llvm_cv_link_use_r" = "yes" ; then
19832 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
19833 RDYNAMIC="-Wl,-export-dynamic"
19840 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
19842 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
19844 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
19846 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
19848 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
19850 ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
19853 ac_config_files="$ac_config_files Makefile.config"
19856 ac_config_files="$ac_config_files llvm.spec"
19859 ac_config_files="$ac_config_files docs/doxygen.cfg"
19862 ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
19865 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
19868 ac_config_commands="$ac_config_commands setup"
19870 ac_config_commands="$ac_config_commands Makefile"
19873 ac_config_commands="$ac_config_commands Makefile.common"
19876 ac_config_commands="$ac_config_commands examples/Makefile"
19879 ac_config_commands="$ac_config_commands lib/Makefile"
19882 ac_config_commands="$ac_config_commands runtime/Makefile"
19885 ac_config_commands="$ac_config_commands test/Makefile"
19888 ac_config_commands="$ac_config_commands test/Makefile.tests"
19891 ac_config_commands="$ac_config_commands unittests/Makefile"
19894 ac_config_commands="$ac_config_commands tools/Makefile"
19897 ac_config_commands="$ac_config_commands utils/Makefile"
19900 ac_config_commands="$ac_config_commands projects/Makefile"
19903 ac_config_commands="$ac_config_commands bindings/Makefile"
19906 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
19910 cat >confcache <<\_ACEOF
19911 # This file is a shell script that caches the results of configure
19912 # tests run on this system so they can be shared between configure
19913 # scripts and configure runs, see configure's option --config-cache.
19914 # It is not useful on other systems. If it contains results you don't
19915 # want to keep, you may remove or edit it.
19917 # config.status only pays attention to the cache file if you give it
19918 # the --recheck option to rerun configure.
19920 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19921 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19922 # following values.
19926 # The following way of writing the cache mishandles newlines in values,
19927 # but we know of no workaround that is simple, portable, and efficient.
19928 # So, we kill variables containing newlines.
19929 # Ultrix sh set writes to stderr and can't be redirected directly,
19930 # and sets the high bit in the cache file unless we assign to the vars.
19932 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19933 eval ac_val=\$$ac_var
19937 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
19938 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
19941 _ | IFS | as_nl) ;; #(
19942 *) $as_unset $ac_var ;;
19948 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19949 *${as_nl}ac_space=\ *)
19950 # `set' does not quote correctly, so add quotes (double-quote
19951 # substitution turns \\\\ into \\, and sed turns \\ into \).
19954 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19957 # `set' quotes correctly as required by POSIX, so do not add quotes.
19958 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19967 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19969 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19971 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19972 if test -w "$cache_file"; then
19973 test "x$cache_file" != "x/dev/null" &&
19974 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
19975 echo "$as_me: updating cache $cache_file" >&6;}
19976 cat confcache >$cache_file
19978 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
19979 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19984 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19985 # Let make expand exec_prefix.
19986 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19988 DEFS=-DHAVE_CONFIG_H
19992 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19993 # 1. Remove the extension, and $U if already installed.
19994 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19995 ac_i=`echo "$ac_i" | sed "$ac_script"`
19996 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19997 # will be set to the directory where LIBOBJS objects are built.
19998 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19999 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20001 LIBOBJS=$ac_libobjs
20003 LTLIBOBJS=$ac_ltlibobjs
20006 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
20007 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20008 Usually this means the macro was only invoked conditionally." >&5
20009 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20010 Usually this means the macro was only invoked conditionally." >&2;}
20011 { (exit 1); exit 1; }; }
20013 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
20014 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20015 Usually this means the macro was only invoked conditionally." >&5
20016 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20017 Usually this means the macro was only invoked conditionally." >&2;}
20018 { (exit 1); exit 1; }; }
20021 : ${CONFIG_STATUS=./config.status}
20022 ac_clean_files_save=$ac_clean_files
20023 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20024 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20025 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20026 cat >$CONFIG_STATUS <<_ACEOF
20028 # Generated by $as_me.
20029 # Run this file to recreate the current configuration.
20030 # Compiler output produced by configure, useful for debugging
20031 # configure, is in config.log if it exists.
20034 ac_cs_recheck=false
20036 SHELL=\${CONFIG_SHELL-$SHELL}
20039 cat >>$CONFIG_STATUS <<\_ACEOF
20040 ## --------------------- ##
20041 ## M4sh Initialization. ##
20042 ## --------------------- ##
20044 # Be Bourne compatible
20045 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20048 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20049 # is contrary to our usage. Disable this feature.
20050 alias -g '${1+"$@"}'='"$@"'
20051 setopt NO_GLOB_SUBST
20053 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
20055 BIN_SH=xpg4; export BIN_SH # for Tru64
20056 DUALCASE=1; export DUALCASE # for MKS sh
20060 # Avoid depending upon Character Ranges.
20061 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20062 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20063 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20064 as_cr_digits='0123456789'
20065 as_cr_alnum=$as_cr_Letters$as_cr_digits
20067 # The user is always right.
20068 if test "${PATH_SEPARATOR+set}" != set; then
20069 echo "#! /bin/sh" >conf$$.sh
20070 echo "exit 0" >>conf$$.sh
20072 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20080 # Support unset when possible.
20081 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20089 # We need space, tab and new line, in precisely that order. Quoting is
20090 # there to prevent editors from complaining about space-tab.
20091 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20092 # splitting by setting IFS to empty value.)
20097 # Find who we are. Look in the path if we contain no directory separator.
20099 *[\\/]* ) as_myself=$0 ;;
20100 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20101 for as_dir in $PATH
20104 test -z "$as_dir" && as_dir=.
20105 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20111 # We did not find ourselves, most probably we were run as `sh COMMAND'
20112 # in which case we are not to be found in the path.
20113 if test "x$as_myself" = x; then
20116 if test ! -f "$as_myself"; then
20117 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20118 { (exit 1); exit 1; }
20121 # Work around bugs in pre-3.0 UWIN ksh.
20122 for as_var in ENV MAIL MAILPATH
20123 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20131 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20132 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20133 LC_TELEPHONE LC_TIME
20135 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20136 eval $as_var=C; export $as_var
20138 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20142 # Required to use basename.
20143 if expr a : '\(a\)' >/dev/null 2>&1 &&
20144 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20150 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20151 as_basename=basename
20157 # Name of the executable.
20158 as_me=`$as_basename -- "$0" ||
20159 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20160 X"$0" : 'X\(//\)$' \| \
20161 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20163 sed '/^.*\/\([^/][^/]*\)\/*$/{
20182 as_lineno_1=$LINENO
20183 as_lineno_2=$LINENO
20184 test "x$as_lineno_1" != "x$as_lineno_2" &&
20185 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20187 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20188 # uniformly replaced by the line number. The first 'sed' inserts a
20189 # line-number line after each line using $LINENO; the second 'sed'
20190 # does the real work. The second script uses 'N' to pair each
20191 # line-number line with the line containing $LINENO, and appends
20192 # trailing '-' during substitution so that $LINENO is not a special
20193 # case at line end.
20194 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20195 # scripts with optimization help from Paolo Bonzini. Blame Lee
20196 # E. McMahon (1931-1989) for sed's syntax. :-)
20208 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20211 ' >$as_me.lineno &&
20212 chmod +x "$as_me.lineno" ||
20213 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20214 { (exit 1); exit 1; }; }
20216 # Don't try to exec as it changes $[0], causing all sort of problems
20217 # (the dirname of $[0] is not the place where we might find the
20218 # original and so on. Autoconf is especially sensitive to this).
20219 . "./$as_me.lineno"
20220 # Exit status is that of the last command.
20225 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20231 ECHO_C= ECHO_N= ECHO_T=
20232 case `echo -n x` in
20234 case `echo 'x\c'` in
20235 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20242 if expr a : '\(a\)' >/dev/null 2>&1 &&
20243 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20249 rm -f conf$$ conf$$.exe conf$$.file
20250 if test -d conf$$.dir; then
20251 rm -f conf$$.dir/conf$$.file
20257 if ln -s conf$$.file conf$$ 2>/dev/null; then
20259 # ... but there are two gotchas:
20260 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20261 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20262 # In both cases, we have to default to `cp -p'.
20263 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20265 elif ln conf$$.file conf$$ 2>/dev/null; then
20270 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20271 rmdir conf$$.dir 2>/dev/null
20273 if mkdir -p . 2>/dev/null; then
20276 test -d ./-p && rmdir ./-p
20280 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
20281 # systems may use methods other than mode bits to determine executability.
20282 cat >conf$$.file <<_ASEOF
20286 chmod +x conf$$.file
20287 if test -x conf$$.file >/dev/null 2>&1; then
20288 as_executable_p="test -x"
20294 # Sed expression to map a string onto a valid CPP name.
20295 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20297 # Sed expression to map a string onto a valid variable name.
20298 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20303 # Save the log message, to keep $[0] and so on meaningful, and to
20304 # report actual input values of CONFIG_FILES etc. instead of their
20305 # values after options handling.
20307 This file was extended by llvm $as_me 2.7svn, which was
20308 generated by GNU Autoconf 2.60. Invocation command line was
20310 CONFIG_FILES = $CONFIG_FILES
20311 CONFIG_HEADERS = $CONFIG_HEADERS
20312 CONFIG_LINKS = $CONFIG_LINKS
20313 CONFIG_COMMANDS = $CONFIG_COMMANDS
20316 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20321 cat >>$CONFIG_STATUS <<_ACEOF
20322 # Files that config.status was made for.
20323 config_files="$ac_config_files"
20324 config_headers="$ac_config_headers"
20325 config_commands="$ac_config_commands"
20329 cat >>$CONFIG_STATUS <<\_ACEOF
20331 \`$as_me' instantiates files from templates according to the
20332 current configuration.
20334 Usage: $0 [OPTIONS] [FILE]...
20336 -h, --help print this help, then exit
20337 -V, --version print version number, then exit
20338 -q, --quiet do not print progress messages
20339 -d, --debug don't remove temporary files
20340 --recheck update $as_me by reconfiguring in the same conditions
20341 --file=FILE[:TEMPLATE]
20342 instantiate the configuration file FILE
20343 --header=FILE[:TEMPLATE]
20344 instantiate the configuration header FILE
20346 Configuration files:
20349 Configuration headers:
20352 Configuration commands:
20355 Report bugs to <bug-autoconf@gnu.org>."
20358 cat >>$CONFIG_STATUS <<_ACEOF
20360 llvm config.status 2.7svn
20361 configured by $0, generated by GNU Autoconf 2.60,
20362 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20364 Copyright (C) 2006 Free Software Foundation, Inc.
20365 This config.status script is free software; the Free Software Foundation
20366 gives unlimited permission to copy, distribute and modify it."
20373 cat >>$CONFIG_STATUS <<\_ACEOF
20374 # If no file are specified by the user, then we need to provide default
20375 # value. By we need to know if files were specified by the user.
20381 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20382 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20393 # Handling of the options.
20394 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20396 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20397 echo "$ac_cs_version"; exit ;;
20398 --debug | --debu | --deb | --de | --d | -d )
20400 --file | --fil | --fi | --f )
20402 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20403 ac_need_defaults=false;;
20404 --header | --heade | --head | --hea )
20406 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20407 ac_need_defaults=false;;
20409 # Conflict between --help and --header
20410 { echo "$as_me: error: ambiguous option: $1
20411 Try \`$0 --help' for more information." >&2
20412 { (exit 1); exit 1; }; };;
20413 --help | --hel | -h )
20414 echo "$ac_cs_usage"; exit ;;
20415 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20416 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20419 # This is an error.
20420 -*) { echo "$as_me: error: unrecognized option: $1
20421 Try \`$0 --help' for more information." >&2
20422 { (exit 1); exit 1; }; } ;;
20424 *) ac_config_targets="$ac_config_targets $1"
20425 ac_need_defaults=false ;;
20431 ac_configure_extra_args=
20433 if $ac_cs_silent; then
20435 ac_configure_extra_args="$ac_configure_extra_args --silent"
20439 cat >>$CONFIG_STATUS <<_ACEOF
20440 if \$ac_cs_recheck; then
20441 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20442 CONFIG_SHELL=$SHELL
20443 export CONFIG_SHELL
20444 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20448 cat >>$CONFIG_STATUS <<\_ACEOF
20452 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20453 ## Running $as_me. ##
20459 cat >>$CONFIG_STATUS <<_ACEOF
20463 llvm_src="${srcdir}"
20467 cat >>$CONFIG_STATUS <<\_ACEOF
20469 # Handling of arguments.
20470 for ac_config_target in $ac_config_targets
20472 case $ac_config_target in
20473 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
20474 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
20475 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
20476 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
20477 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
20478 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
20479 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
20480 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
20481 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
20482 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
20483 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
20484 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
20485 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
20486 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
20487 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
20488 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
20489 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
20490 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
20491 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
20492 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
20493 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
20494 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
20495 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
20496 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
20497 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
20499 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20500 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20501 { (exit 1); exit 1; }; };;
20506 # If the user did not use the arguments to specify the items to instantiate,
20507 # then the envvar interface is used. Set only those that are not.
20508 # We use the long form for the default assignment because of an extremely
20509 # bizarre bug on SunOS 4.1.3.
20510 if $ac_need_defaults; then
20511 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20512 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20513 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20516 # Have a temporary directory for convenience. Make it in the build tree
20517 # simply because there is no reason against having it here, and in addition,
20518 # creating and moving files from /tmp can sometimes cause problems.
20519 # Hook for its removal unless debugging.
20520 # Note that there is a small window in which the directory will not be cleaned:
20521 # after its creation but before its name has been assigned to `$tmp'.
20525 trap 'exit_status=$?
20526 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20528 trap '{ (exit 1); exit 1; }' 1 2 13 15
20530 # Create a (secure) tmp directory for tmp files.
20533 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20534 test -n "$tmp" && test -d "$tmp"
20537 tmp=./conf$$-$RANDOM
20538 (umask 077 && mkdir "$tmp")
20541 echo "$me: cannot create a temporary directory in ." >&2
20542 { (exit 1); exit 1; }
20546 # Set up the sed scripts for CONFIG_FILES section.
20549 # No need to generate the scripts if there are no CONFIG_FILES.
20550 # This happens for instance when ./config.status config.h
20551 if test -n "$CONFIG_FILES"; then
20558 for ac_last_try in false false false false false :; do
20559 cat >conf$$subs.sed <<_ACEOF
20560 SHELL!$SHELL$ac_delim
20561 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20562 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20563 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20564 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20565 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20566 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20567 exec_prefix!$exec_prefix$ac_delim
20568 prefix!$prefix$ac_delim
20569 program_transform_name!$program_transform_name$ac_delim
20570 bindir!$bindir$ac_delim
20571 sbindir!$sbindir$ac_delim
20572 libexecdir!$libexecdir$ac_delim
20573 datarootdir!$datarootdir$ac_delim
20574 datadir!$datadir$ac_delim
20575 sysconfdir!$sysconfdir$ac_delim
20576 sharedstatedir!$sharedstatedir$ac_delim
20577 localstatedir!$localstatedir$ac_delim
20578 includedir!$includedir$ac_delim
20579 oldincludedir!$oldincludedir$ac_delim
20580 docdir!$docdir$ac_delim
20581 infodir!$infodir$ac_delim
20582 htmldir!$htmldir$ac_delim
20583 dvidir!$dvidir$ac_delim
20584 pdfdir!$pdfdir$ac_delim
20585 psdir!$psdir$ac_delim
20586 libdir!$libdir$ac_delim
20587 localedir!$localedir$ac_delim
20588 mandir!$mandir$ac_delim
20589 DEFS!$DEFS$ac_delim
20590 ECHO_C!$ECHO_C$ac_delim
20591 ECHO_N!$ECHO_N$ac_delim
20592 ECHO_T!$ECHO_T$ac_delim
20593 LIBS!$LIBS$ac_delim
20594 build_alias!$build_alias$ac_delim
20595 host_alias!$host_alias$ac_delim
20596 target_alias!$target_alias$ac_delim
20597 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
20598 subdirs!$subdirs$ac_delim
20599 build!$build$ac_delim
20600 build_cpu!$build_cpu$ac_delim
20601 build_vendor!$build_vendor$ac_delim
20602 build_os!$build_os$ac_delim
20603 host!$host$ac_delim
20604 host_cpu!$host_cpu$ac_delim
20605 host_vendor!$host_vendor$ac_delim
20606 host_os!$host_os$ac_delim
20607 target!$target$ac_delim
20608 target_cpu!$target_cpu$ac_delim
20609 target_vendor!$target_vendor$ac_delim
20610 target_os!$target_os$ac_delim
20612 HOST_OS!$HOST_OS$ac_delim
20613 TARGET_OS!$TARGET_OS$ac_delim
20614 LINKALL!$LINKALL$ac_delim
20615 NOLINKALL!$NOLINKALL$ac_delim
20616 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
20617 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
20618 ARCH!$ARCH$ac_delim
20619 ENDIAN!$ENDIAN$ac_delim
20621 CFLAGS!$CFLAGS$ac_delim
20622 LDFLAGS!$LDFLAGS$ac_delim
20623 CPPFLAGS!$CPPFLAGS$ac_delim
20624 ac_ct_CC!$ac_ct_CC$ac_delim
20625 EXEEXT!$EXEEXT$ac_delim
20626 OBJEXT!$OBJEXT$ac_delim
20628 GREP!$GREP$ac_delim
20629 EGREP!$EGREP$ac_delim
20630 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
20631 BUILD_CC!$BUILD_CC$ac_delim
20632 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
20633 BUILD_CXX!$BUILD_CXX$ac_delim
20634 CVSBUILD!$CVSBUILD$ac_delim
20635 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
20636 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
20637 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
20638 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
20639 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
20640 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
20641 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
20643 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
20644 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
20645 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
20646 ENABLE_PIC!$ENABLE_PIC$ac_delim
20647 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
20648 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
20649 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
20650 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
20651 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
20652 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
20653 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
20654 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
20655 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
20656 ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
20659 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20661 elif $ac_last_try; then
20662 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20663 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20664 { (exit 1); exit 1; }; }
20666 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20670 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20671 if test -n "$ac_eof"; then
20672 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20673 ac_eof=`expr $ac_eof + 1`
20676 cat >>$CONFIG_STATUS <<_ACEOF
20677 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20678 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20681 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20682 s/^/s,@/; s/!/@,|#_!!_#|/
20685 s/'"$ac_delim"'$/,g/; t
20687 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20688 ' >>$CONFIG_STATUS <conf$$subs.sed
20689 rm -f conf$$subs.sed
20690 cat >>$CONFIG_STATUS <<_ACEOF
20696 for ac_last_try in false false false false false :; do
20697 cat >conf$$subs.sed <<_ACEOF
20698 ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
20700 CXXFLAGS!$CXXFLAGS$ac_delim
20701 ac_ct_CXX!$ac_ct_CXX$ac_delim
20703 ifGNUmake!$ifGNUmake$ac_delim
20704 LN_S!$LN_S$ac_delim
20707 DATE!$DATE$ac_delim
20708 FIND!$FIND$ac_delim
20709 MKDIR!$MKDIR$ac_delim
20711 RANLIB!$RANLIB$ac_delim
20716 BINPWD!$BINPWD$ac_delim
20717 GRAPHVIZ!$GRAPHVIZ$ac_delim
20720 NEATO!$NEATO$ac_delim
20721 TWOPI!$TWOPI$ac_delim
20722 CIRCO!$CIRCO$ac_delim
20724 DOTTY!$DOTTY$ac_delim
20725 PERL!$PERL$ac_delim
20726 HAVE_PERL!$HAVE_PERL$ac_delim
20727 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20728 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20729 INSTALL_DATA!$INSTALL_DATA$ac_delim
20730 BZIP2!$BZIP2$ac_delim
20731 DOXYGEN!$DOXYGEN$ac_delim
20732 GROFF!$GROFF$ac_delim
20733 GZIP!$GZIP$ac_delim
20734 POD2HTML!$POD2HTML$ac_delim
20735 POD2MAN!$POD2MAN$ac_delim
20736 RUNTEST!$RUNTEST$ac_delim
20737 TCLSH!$TCLSH$ac_delim
20739 OCAMLC!$OCAMLC$ac_delim
20740 OCAMLOPT!$OCAMLOPT$ac_delim
20741 OCAMLDEP!$OCAMLDEP$ac_delim
20742 OCAMLDOC!$OCAMLDOC$ac_delim
20744 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
20745 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
20746 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
20747 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
20748 LIBADD_DL!$LIBADD_DL$ac_delim
20749 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
20750 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
20751 LLVMGCC!$LLVMGCC$ac_delim
20752 LLVMGXX!$LLVMGXX$ac_delim
20753 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
20754 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
20755 USE_UDIS86!$USE_UDIS86$ac_delim
20756 USE_OPROFILE!$USE_OPROFILE$ac_delim
20757 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
20758 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
20759 MMAP_FILE!$MMAP_FILE$ac_delim
20760 LLVMCC1!$LLVMCC1$ac_delim
20761 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
20762 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
20763 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
20764 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
20765 SHLIBEXT!$SHLIBEXT$ac_delim
20766 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
20767 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
20768 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
20769 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
20770 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
20771 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
20772 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
20773 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
20774 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
20775 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
20776 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
20777 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
20778 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
20779 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
20780 RPATH!$RPATH$ac_delim
20781 RDYNAMIC!$RDYNAMIC$ac_delim
20782 LIBOBJS!$LIBOBJS$ac_delim
20783 LTLIBOBJS!$LTLIBOBJS$ac_delim
20786 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 86; then
20788 elif $ac_last_try; then
20789 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20790 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20791 { (exit 1); exit 1; }; }
20793 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20797 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20798 if test -n "$ac_eof"; then
20799 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20800 ac_eof=`expr $ac_eof + 1`
20803 cat >>$CONFIG_STATUS <<_ACEOF
20804 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20805 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20808 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20809 s/^/s,@/; s/!/@,|#_!!_#|/
20812 s/'"$ac_delim"'$/,g/; t
20814 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20815 ' >>$CONFIG_STATUS <conf$$subs.sed
20816 rm -f conf$$subs.sed
20817 cat >>$CONFIG_STATUS <<_ACEOF
20824 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20825 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20826 # trailing colons and then remove the whole line if VPATH becomes empty
20827 # (actually we leave an empty line to preserve line numbers).
20828 if test "x$srcdir" = x.; then
20829 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20830 s/:*\$(srcdir):*/:/
20831 s/:*\${srcdir}:*/:/
20833 s/^\([^=]*=[ ]*\):*/\1/
20839 cat >>$CONFIG_STATUS <<\_ACEOF
20840 fi # test -n "$CONFIG_FILES"
20843 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
20846 :[FHLC]) ac_mode=$ac_tag; continue;;
20848 case $ac_mode$ac_tag in
20850 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20851 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20852 { (exit 1); exit 1; }; };;
20853 :[FH]-) ac_tag=-:-;;
20854 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20871 -) ac_f="$tmp/stdin";;
20872 *) # Look for the file first in the build tree, then in the source tree
20873 # (if the path is not absolute). The absolute path cannot be DOS-style,
20874 # because $ac_f cannot contain `:'.
20878 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20880 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20881 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20882 { (exit 1); exit 1; }; };;
20884 ac_file_inputs="$ac_file_inputs $ac_f"
20887 # Let's still pretend it is `configure' which instantiates (i.e., don't
20888 # use $as_me), people would be surprised to read:
20889 # /* config.h. Generated by config.status. */
20890 configure_input="Generated from "`IFS=:
20891 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
20892 if test x"$ac_file" != x-; then
20893 configure_input="$ac_file. $configure_input"
20894 { echo "$as_me:$LINENO: creating $ac_file" >&5
20895 echo "$as_me: creating $ac_file" >&6;}
20899 *:-:* | *:-) cat >"$tmp/stdin";;
20904 ac_dir=`$as_dirname -- "$ac_file" ||
20905 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20906 X"$ac_file" : 'X\(//\)[^/]' \| \
20907 X"$ac_file" : 'X\(//\)$' \| \
20908 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20910 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20914 /^X\(\/\/\)[^/].*/{
20929 -*) as_dir=./$as_dir;;
20931 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20935 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20936 *) as_qdir=$as_dir;;
20938 as_dirs="'$as_qdir' $as_dirs"
20939 as_dir=`$as_dirname -- "$as_dir" ||
20940 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20941 X"$as_dir" : 'X\(//\)[^/]' \| \
20942 X"$as_dir" : 'X\(//\)$' \| \
20943 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20945 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20949 /^X\(\/\/\)[^/].*/{
20962 test -d "$as_dir" && break
20964 test -z "$as_dirs" || eval "mkdir $as_dirs"
20965 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20966 echo "$as_me: error: cannot create directory $as_dir" >&2;}
20967 { (exit 1); exit 1; }; }; }
20971 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20973 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20974 # A ".." for each directory in $ac_dir_suffix.
20975 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20976 case $ac_top_builddir_sub in
20977 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20978 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20981 ac_abs_top_builddir=$ac_pwd
20982 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20983 # for backward compatibility:
20984 ac_top_builddir=$ac_top_build_prefix
20987 .) # We are building in place.
20989 ac_top_srcdir=$ac_top_builddir_sub
20990 ac_abs_top_srcdir=$ac_pwd ;;
20991 [\\/]* | ?:[\\/]* ) # Absolute name.
20992 ac_srcdir=$srcdir$ac_dir_suffix;
20993 ac_top_srcdir=$srcdir
20994 ac_abs_top_srcdir=$srcdir ;;
20995 *) # Relative name.
20996 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20997 ac_top_srcdir=$ac_top_build_prefix$srcdir
20998 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21000 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21010 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21011 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21015 cat >>$CONFIG_STATUS <<\_ACEOF
21016 # If the template does not know about datarootdir, expand it.
21017 # FIXME: This hack should be removed a few years after 2.60.
21018 ac_datarootdir_hack=; ac_datarootdir_seen=
21020 case `sed -n '/datarootdir/ {
21029 ' $ac_file_inputs` in
21030 *datarootdir*) ac_datarootdir_seen=yes;;
21031 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21032 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21033 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21035 cat >>$CONFIG_STATUS <<_ACEOF
21036 ac_datarootdir_hack='
21037 s&@datadir@&$datadir&g
21038 s&@docdir@&$docdir&g
21039 s&@infodir@&$infodir&g
21040 s&@localedir@&$localedir&g
21041 s&@mandir@&$mandir&g
21042 s&\\\${datarootdir}&$datarootdir&g' ;;
21046 # Neutralize VPATH when `$srcdir' = `.'.
21047 # Shell code in configure.ac might set extrasub.
21048 # FIXME: do we really want to maintain this feature?
21049 cat >>$CONFIG_STATUS <<_ACEOF
21053 cat >>$CONFIG_STATUS <<\_ACEOF
21055 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21056 s&@configure_input@&$configure_input&;t t
21057 s&@top_builddir@&$ac_top_builddir_sub&;t t
21058 s&@srcdir@&$ac_srcdir&;t t
21059 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21060 s&@top_srcdir@&$ac_top_srcdir&;t t
21061 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21062 s&@builddir@&$ac_builddir&;t t
21063 s&@abs_builddir@&$ac_abs_builddir&;t t
21064 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21065 s&@INSTALL@&$ac_INSTALL&;t t
21066 $ac_datarootdir_hack
21067 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21069 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21070 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21071 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21072 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21073 which seems to be undefined. Please make sure it is defined." >&5
21074 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21075 which seems to be undefined. Please make sure it is defined." >&2;}
21079 -) cat "$tmp/out"; rm -f "$tmp/out";;
21080 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21089 # Transform confdefs.h into a sed script `conftest.defines', that
21090 # substitutes the proper values into config.h.in to produce config.h.
21091 rm -f conftest.defines conftest.tail
21092 # First, append a space to every undef/define line, to ease matching.
21093 echo 's/$/ /' >conftest.defines
21094 # Then, protect against being on the right side of a sed subst, or in
21095 # an unquoted here document, in config.status. If some macros were
21096 # called several times there might be several #defines for the same
21097 # symbol, which is useless. But do not sort them, since the last
21098 # AC_DEFINE must be honored.
21099 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21100 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21101 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21102 # PARAMS is the parameter list in the macro definition--in most cases, it's
21103 # just an empty string.
21104 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21105 ac_dB='\\)[ (].*,\\1define\\2'
21113 s/^[ ]*#[ ]*define[ ][ ]*//
21118 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21119 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21120 ' >>conftest.defines
21122 # Remove the space that was appended to ease matching.
21123 # Then replace #undef with comments. This is necessary, for
21124 # example, in the case of _POSIX_SOURCE, which is predefined and required
21125 # on some systems where configure will not decide to define it.
21126 # (The regexp can be short, since the line contains either #define or #undef.)
21128 s,^[ #]*u.*,/* & */,' >>conftest.defines
21130 # Break up conftest.defines:
21131 ac_max_sed_lines=50
21133 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21134 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21135 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21137 ac_in='$ac_file_inputs'
21138 ac_out='"$tmp/out1"'
21139 ac_nxt='"$tmp/out2"'
21143 # Write a here document:
21144 cat >>$CONFIG_STATUS <<_ACEOF
21145 # First, check the format of the line:
21146 cat >"\$tmp/defines.sed" <<\\CEOF
21147 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21148 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21152 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21154 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21155 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21156 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21157 grep . conftest.tail >/dev/null || break
21158 rm -f conftest.defines
21159 mv conftest.tail conftest.defines
21161 rm -f conftest.defines conftest.tail
21163 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21164 cat >>$CONFIG_STATUS <<\_ACEOF
21165 if test x"$ac_file" != x-; then
21166 echo "/* $configure_input */" >"$tmp/config.h"
21167 cat "$ac_result" >>"$tmp/config.h"
21168 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21169 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21170 echo "$as_me: $ac_file is unchanged" >&6;}
21173 mv "$tmp/config.h" $ac_file
21176 echo "/* $configure_input */"
21182 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21183 echo "$as_me: executing $ac_file commands" >&6;}
21188 case $ac_file$ac_mode in
21189 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
21190 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
21191 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
21192 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
21193 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
21194 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
21195 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
21196 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
21197 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
21198 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
21199 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
21200 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
21201 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
21202 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
21203 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
21204 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
21205 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
21206 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
21207 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
21208 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
21209 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
21210 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
21211 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
21212 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
21213 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
21214 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
21220 { (exit 0); exit 0; }
21222 chmod +x $CONFIG_STATUS
21223 ac_clean_files=$ac_clean_files_save
21226 # configure is writing to config.log, and then calls config.status.
21227 # config.status does its own redirection, appending to config.log.
21228 # Unfortunately, on DOS this fails, as config.log is still kept open
21229 # by configure, so config.status won't be able to write to it; its
21230 # output is simply discarded. So we exec the FD to /dev/null,
21231 # effectively closing config.log, so it can be properly (re)opened and
21232 # appended to by config.status. When coming back to configure, we
21233 # need to make the FD available again.
21234 if test "$no_create" != yes; then
21236 ac_config_status_args=
21237 test "$silent" = yes &&
21238 ac_config_status_args="$ac_config_status_args --quiet"
21240 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21242 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21243 # would make configure fail if this is the last instruction.
21244 $ac_cs_success || { (exit 1); exit 1; }
21248 # CONFIG_SUBDIRS section.
21250 if test "$no_recursion" != yes; then
21252 # Remove --cache-file and --srcdir arguments so they do not pile up.
21253 ac_sub_configure_args=
21255 eval "set x $ac_configure_args"
21259 if test -n "$ac_prev"; then
21264 -cache-file | --cache-file | --cache-fil | --cache-fi \
21265 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21266 ac_prev=cache_file ;;
21267 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
21268 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
21271 --config-cache | -C)
21273 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21275 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21277 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
21279 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
21283 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21285 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
21289 # Always prepend --prefix to ensure using the same prefix
21290 # in subdir configurations.
21291 ac_arg="--prefix=$prefix"
21293 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21295 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
21298 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
21300 # Do not complain, so a configure script can configure whichever
21301 # parts of a large source tree are present.
21302 test -d "$srcdir/$ac_dir" || continue
21304 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
21305 echo "$as_me:$LINENO: $ac_msg" >&5
21309 -*) as_dir=./$as_dir;;
21311 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21315 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21316 *) as_qdir=$as_dir;;
21318 as_dirs="'$as_qdir' $as_dirs"
21319 as_dir=`$as_dirname -- "$as_dir" ||
21320 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21321 X"$as_dir" : 'X\(//\)[^/]' \| \
21322 X"$as_dir" : 'X\(//\)$' \| \
21323 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21329 /^X\(\/\/\)[^/].*/{
21342 test -d "$as_dir" && break
21344 test -z "$as_dirs" || eval "mkdir $as_dirs"
21345 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21346 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21347 { (exit 1); exit 1; }; }; }
21351 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21353 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21354 # A ".." for each directory in $ac_dir_suffix.
21355 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21356 case $ac_top_builddir_sub in
21357 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21358 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21361 ac_abs_top_builddir=$ac_pwd
21362 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21363 # for backward compatibility:
21364 ac_top_builddir=$ac_top_build_prefix
21367 .) # We are building in place.
21369 ac_top_srcdir=$ac_top_builddir_sub
21370 ac_abs_top_srcdir=$ac_pwd ;;
21371 [\\/]* | ?:[\\/]* ) # Absolute name.
21372 ac_srcdir=$srcdir$ac_dir_suffix;
21373 ac_top_srcdir=$srcdir
21374 ac_abs_top_srcdir=$srcdir ;;
21375 *) # Relative name.
21376 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21377 ac_top_srcdir=$ac_top_build_prefix$srcdir
21378 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21380 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21385 # Check for guested configure; otherwise get Cygnus style configure.
21386 if test -f "$ac_srcdir/configure.gnu"; then
21387 ac_sub_configure=$ac_srcdir/configure.gnu
21388 elif test -f "$ac_srcdir/configure"; then
21389 ac_sub_configure=$ac_srcdir/configure
21390 elif test -f "$ac_srcdir/configure.in"; then
21391 # This should be Cygnus configure.
21392 ac_sub_configure=$ac_aux_dir/configure
21394 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
21395 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
21399 # The recursion is here.
21400 if test -n "$ac_sub_configure"; then
21401 # Make the cache file name correct relative to the subdirectory.
21402 case $cache_file in
21403 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
21404 *) # Relative name.
21405 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
21408 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
21409 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
21410 # The eval makes quoting arguments work.
21411 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21412 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
21413 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
21414 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
21415 { (exit 1); exit 1; }; }