2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.7svn.
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
257 CONFIG_SHELL=$as_shell
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
284 as_func_ret_success () {
287 as_func_ret_failure () {
292 if as_func_success; then
296 echo as_func_success failed.
299 if as_func_failure; then
301 echo as_func_failure succeeded.
304 if as_func_ret_success; then
308 echo as_func_ret_success failed.
311 if as_func_ret_failure; then
313 echo as_func_ret_failure succeeded.
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 echo positional parameters were not saved.
323 test $exitcode = 0) || { (exit 1); exit 1; }
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
364 (eval "as_func_return () {
373 as_func_ret_success () {
376 as_func_ret_failure () {
381 if as_func_success; then
385 echo as_func_success failed.
388 if as_func_failure; then
390 echo as_func_failure succeeded.
393 if as_func_ret_success; then
397 echo as_func_ret_success failed.
400 if as_func_ret_failure; then
402 echo as_func_ret_failure succeeded.
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 echo positional parameters were not saved.
412 test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 chmod +x "$as_me.lineno" ||
452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 ECHO_C= ECHO_N= ECHO_T=
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
504 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
515 test -d ./-p && rmdir ./-p
519 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
526 if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
541 exec 7<&0 </dev/null 6>&1
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
551 ac_default_prefix=/usr/local
553 ac_config_libobj_dir=.
559 SHELL=${CONFIG_SHELL-/bin/sh}
561 # Identity of this package.
563 PACKAGE_TARNAME='-llvm-'
564 PACKAGE_VERSION='2.7svn'
565 PACKAGE_STRING='llvm 2.7svn'
566 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
568 ac_unique_file="lib/VMCore/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
573 # include <sys/types.h>
576 # include <sys/stat.h>
587 # if !STDC_HEADERS && HAVE_MEMORY_H
593 # include <strings.h>
596 # include <inttypes.h>
614 program_transform_name
683 ENABLE_EXPENSIVE_CHECKS
695 LLVM_ENUM_ASM_PRINTERS
696 LLVM_ENUM_ASM_PARSERS
697 LLVM_ENUM_DISASSEMBLERS
706 ENABLE_LLVMC_DYNAMIC_PLUGINS
754 CONVENIENCE_LTDL_TRUE
755 CONVENIENCE_LTDL_FALSE
763 NO_MISSING_FIELD_INITIALIZERS
788 ENABLE_VISIBILITY_INLINES_HIDDEN
794 ac_precious_vars='build_alias
805 ac_subdirs_all='projects/sample
807 projects/llvm-stacker
814 projects/llvm-poolalloc
816 projects/llvm-kernel'
818 # Initialize some variables set by options.
820 ac_init_version=false
821 # The variables have the same names as the options, with
822 # dashes changed to underlines.
830 program_transform_name=s,x,x,
838 # Installation directory options.
839 # These are left unexpanded so users can "make install exec_prefix=/foo"
840 # and all the variables that are supposed to be based on exec_prefix
841 # by default will actually change.
842 # Use braces instead of parens because sh, perl, etc. also accept them.
843 # (The list follows the same order as the GNU Coding Standards.)
844 bindir='${exec_prefix}/bin'
845 sbindir='${exec_prefix}/sbin'
846 libexecdir='${exec_prefix}/libexec'
847 datarootdir='${prefix}/share'
848 datadir='${datarootdir}'
849 sysconfdir='${prefix}/etc'
850 sharedstatedir='${prefix}/com'
851 localstatedir='${prefix}/var'
852 includedir='${prefix}/include'
853 oldincludedir='/usr/include'
854 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
855 infodir='${datarootdir}/info'
860 libdir='${exec_prefix}/lib'
861 localedir='${datarootdir}/locale'
862 mandir='${datarootdir}/man'
868 # If the previous option needs an argument, assign it.
869 if test -n "$ac_prev"; then
870 eval $ac_prev=\$ac_option
876 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
880 # Accept the important Cygnus configure options, so we can diagnose typos.
882 case $ac_dashdash$ac_option in
886 -bindir | --bindir | --bindi | --bind | --bin | --bi)
888 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
891 -build | --build | --buil | --bui | --bu)
892 ac_prev=build_alias ;;
893 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
894 build_alias=$ac_optarg ;;
896 -cache-file | --cache-file | --cache-fil | --cache-fi \
897 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
898 ac_prev=cache_file ;;
899 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
900 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
901 cache_file=$ac_optarg ;;
904 cache_file=config.cache ;;
906 -datadir | --datadir | --datadi | --datad)
908 -datadir=* | --datadir=* | --datadi=* | --datad=*)
909 datadir=$ac_optarg ;;
911 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
912 | --dataroo | --dataro | --datar)
913 ac_prev=datarootdir ;;
914 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
915 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
916 datarootdir=$ac_optarg ;;
918 -disable-* | --disable-*)
919 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
920 # Reject names that are not valid shell variable names.
921 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
922 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
923 { (exit 1); exit 1; }; }
924 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
925 eval enable_$ac_feature=no ;;
927 -docdir | --docdir | --docdi | --doc | --do)
929 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
932 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
934 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
937 -enable-* | --enable-*)
938 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
939 # Reject names that are not valid shell variable names.
940 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
941 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
942 { (exit 1); exit 1; }; }
943 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
944 eval enable_$ac_feature=\$ac_optarg ;;
946 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
947 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
948 | --exec | --exe | --ex)
949 ac_prev=exec_prefix ;;
950 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
951 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
952 | --exec=* | --exe=* | --ex=*)
953 exec_prefix=$ac_optarg ;;
955 -gas | --gas | --ga | --g)
956 # Obsolete; use --with-gas.
959 -help | --help | --hel | --he | -h)
961 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
962 ac_init_help=recursive ;;
963 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
964 ac_init_help=short ;;
966 -host | --host | --hos | --ho)
967 ac_prev=host_alias ;;
968 -host=* | --host=* | --hos=* | --ho=*)
969 host_alias=$ac_optarg ;;
971 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
973 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
975 htmldir=$ac_optarg ;;
977 -includedir | --includedir | --includedi | --included | --include \
978 | --includ | --inclu | --incl | --inc)
979 ac_prev=includedir ;;
980 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
981 | --includ=* | --inclu=* | --incl=* | --inc=*)
982 includedir=$ac_optarg ;;
984 -infodir | --infodir | --infodi | --infod | --info | --inf)
986 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
987 infodir=$ac_optarg ;;
989 -libdir | --libdir | --libdi | --libd)
991 -libdir=* | --libdir=* | --libdi=* | --libd=*)
994 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
995 | --libexe | --libex | --libe)
996 ac_prev=libexecdir ;;
997 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
998 | --libexe=* | --libex=* | --libe=*)
999 libexecdir=$ac_optarg ;;
1001 -localedir | --localedir | --localedi | --localed | --locale)
1002 ac_prev=localedir ;;
1003 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1004 localedir=$ac_optarg ;;
1006 -localstatedir | --localstatedir | --localstatedi | --localstated \
1007 | --localstate | --localstat | --localsta | --localst | --locals)
1008 ac_prev=localstatedir ;;
1009 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1010 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1011 localstatedir=$ac_optarg ;;
1013 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1015 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1016 mandir=$ac_optarg ;;
1018 -nfp | --nfp | --nf)
1019 # Obsolete; use --without-fp.
1022 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1023 | --no-cr | --no-c | -n)
1026 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1027 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1030 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1031 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1032 | --oldin | --oldi | --old | --ol | --o)
1033 ac_prev=oldincludedir ;;
1034 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1035 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1036 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1037 oldincludedir=$ac_optarg ;;
1039 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1041 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1042 prefix=$ac_optarg ;;
1044 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1045 | --program-pre | --program-pr | --program-p)
1046 ac_prev=program_prefix ;;
1047 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1048 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1049 program_prefix=$ac_optarg ;;
1051 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1052 | --program-suf | --program-su | --program-s)
1053 ac_prev=program_suffix ;;
1054 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1055 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1056 program_suffix=$ac_optarg ;;
1058 -program-transform-name | --program-transform-name \
1059 | --program-transform-nam | --program-transform-na \
1060 | --program-transform-n | --program-transform- \
1061 | --program-transform | --program-transfor \
1062 | --program-transfo | --program-transf \
1063 | --program-trans | --program-tran \
1064 | --progr-tra | --program-tr | --program-t)
1065 ac_prev=program_transform_name ;;
1066 -program-transform-name=* | --program-transform-name=* \
1067 | --program-transform-nam=* | --program-transform-na=* \
1068 | --program-transform-n=* | --program-transform-=* \
1069 | --program-transform=* | --program-transfor=* \
1070 | --program-transfo=* | --program-transf=* \
1071 | --program-trans=* | --program-tran=* \
1072 | --progr-tra=* | --program-tr=* | --program-t=*)
1073 program_transform_name=$ac_optarg ;;
1075 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1077 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1078 pdfdir=$ac_optarg ;;
1080 -psdir | --psdir | --psdi | --psd | --ps)
1082 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1085 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1086 | -silent | --silent | --silen | --sile | --sil)
1089 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1091 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1093 sbindir=$ac_optarg ;;
1095 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1096 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1097 | --sharedst | --shareds | --shared | --share | --shar \
1099 ac_prev=sharedstatedir ;;
1100 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1101 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1102 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1104 sharedstatedir=$ac_optarg ;;
1106 -site | --site | --sit)
1108 -site=* | --site=* | --sit=*)
1111 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1113 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1114 srcdir=$ac_optarg ;;
1116 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1117 | --syscon | --sysco | --sysc | --sys | --sy)
1118 ac_prev=sysconfdir ;;
1119 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1120 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1121 sysconfdir=$ac_optarg ;;
1123 -target | --target | --targe | --targ | --tar | --ta | --t)
1124 ac_prev=target_alias ;;
1125 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1126 target_alias=$ac_optarg ;;
1128 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1131 -version | --version | --versio | --versi | --vers | -V)
1132 ac_init_version=: ;;
1135 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1136 # Reject names that are not valid shell variable names.
1137 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1138 { echo "$as_me: error: invalid package name: $ac_package" >&2
1139 { (exit 1); exit 1; }; }
1140 ac_package=`echo $ac_package| sed 's/-/_/g'`
1141 eval with_$ac_package=\$ac_optarg ;;
1143 -without-* | --without-*)
1144 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1145 # Reject names that are not valid shell variable names.
1146 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1147 { echo "$as_me: error: invalid package name: $ac_package" >&2
1148 { (exit 1); exit 1; }; }
1149 ac_package=`echo $ac_package | sed 's/-/_/g'`
1150 eval with_$ac_package=no ;;
1153 # Obsolete; use --with-x.
1156 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1157 | --x-incl | --x-inc | --x-in | --x-i)
1158 ac_prev=x_includes ;;
1159 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1160 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1161 x_includes=$ac_optarg ;;
1163 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1164 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1165 ac_prev=x_libraries ;;
1166 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1167 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1168 x_libraries=$ac_optarg ;;
1170 -*) { echo "$as_me: error: unrecognized option: $ac_option
1171 Try \`$0 --help' for more information." >&2
1172 { (exit 1); exit 1; }; }
1176 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1177 # Reject names that are not valid shell variable names.
1178 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1179 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1180 { (exit 1); exit 1; }; }
1181 eval $ac_envvar=\$ac_optarg
1182 export $ac_envvar ;;
1185 # FIXME: should be removed in autoconf 3.0.
1186 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1187 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1188 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1189 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1195 if test -n "$ac_prev"; then
1196 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1197 { echo "$as_me: error: missing argument to $ac_option" >&2
1198 { (exit 1); exit 1; }; }
1201 # Be sure to have absolute directory names.
1202 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1203 datadir sysconfdir sharedstatedir localstatedir includedir \
1204 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1205 libdir localedir mandir
1207 eval ac_val=\$$ac_var
1209 [\\/$]* | ?:[\\/]* ) continue;;
1210 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1212 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1213 { (exit 1); exit 1; }; }
1216 # There might be people who depend on the old broken behavior: `$host'
1217 # used to hold the argument of --host etc.
1218 # FIXME: To remove some day.
1221 target=$target_alias
1223 # FIXME: To remove some day.
1224 if test "x$host_alias" != x; then
1225 if test "x$build_alias" = x; then
1226 cross_compiling=maybe
1227 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1228 If a cross compiler is detected then cross compile mode will be used." >&2
1229 elif test "x$build_alias" != "x$host_alias"; then
1235 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1237 test "$silent" = yes && exec 6>/dev/null
1240 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1241 ac_ls_di=`ls -di .` &&
1242 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1243 { echo "$as_me: error: Working directory cannot be determined" >&2
1244 { (exit 1); exit 1; }; }
1245 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1246 { echo "$as_me: error: pwd does not report name of working directory" >&2
1247 { (exit 1); exit 1; }; }
1250 # Find the source files, if location was not specified.
1251 if test -z "$srcdir"; then
1252 ac_srcdir_defaulted=yes
1253 # Try the directory containing this script, then the parent directory.
1254 ac_confdir=`$as_dirname -- "$0" ||
1255 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1256 X"$0" : 'X\(//\)[^/]' \| \
1257 X"$0" : 'X\(//\)$' \| \
1258 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1260 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1278 if test ! -r "$srcdir/$ac_unique_file"; then
1282 ac_srcdir_defaulted=no
1284 if test ! -r "$srcdir/$ac_unique_file"; then
1285 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1286 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1287 { (exit 1); exit 1; }; }
1289 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1291 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1292 { (exit 1); exit 1; }; }
1294 # When building in place, set srcdir=.
1295 if test "$ac_abs_confdir" = "$ac_pwd"; then
1298 # Remove unnecessary trailing slashes from srcdir.
1299 # Double slashes in file names in object file debugging info
1300 # mess up M-x gdb in Emacs.
1302 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1304 for ac_var in $ac_precious_vars; do
1305 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1306 eval ac_env_${ac_var}_value=\$${ac_var}
1307 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1308 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1312 # Report the --help message.
1314 if test "$ac_init_help" = "long"; then
1315 # Omit some internal or obsolete options to make the list less imposing.
1316 # This message is too long to be a string in the A/UX 3.1 sh.
1318 \`configure' configures llvm 2.7svn to adapt to many kinds of systems.
1320 Usage: $0 [OPTION]... [VAR=VALUE]...
1322 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1323 VAR=VALUE. See below for descriptions of some of the useful variables.
1325 Defaults for the options are specified in brackets.
1328 -h, --help display this help and exit
1329 --help=short display options specific to this package
1330 --help=recursive display the short help of all the included packages
1331 -V, --version display version information and exit
1332 -q, --quiet, --silent do not print \`checking...' messages
1333 --cache-file=FILE cache test results in FILE [disabled]
1334 -C, --config-cache alias for \`--cache-file=config.cache'
1335 -n, --no-create do not create output files
1336 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1338 Installation directories:
1339 --prefix=PREFIX install architecture-independent files in PREFIX
1340 [$ac_default_prefix]
1341 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1344 By default, \`make install' will install all the files in
1345 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1346 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1347 for instance \`--prefix=\$HOME'.
1349 For better control, use the options below.
1351 Fine tuning of the installation directories:
1352 --bindir=DIR user executables [EPREFIX/bin]
1353 --sbindir=DIR system admin executables [EPREFIX/sbin]
1354 --libexecdir=DIR program executables [EPREFIX/libexec]
1355 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1356 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1357 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1358 --libdir=DIR object code libraries [EPREFIX/lib]
1359 --includedir=DIR C header files [PREFIX/include]
1360 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1361 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1362 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1363 --infodir=DIR info documentation [DATAROOTDIR/info]
1364 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1365 --mandir=DIR man documentation [DATAROOTDIR/man]
1366 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1367 --htmldir=DIR html documentation [DOCDIR]
1368 --dvidir=DIR dvi documentation [DOCDIR]
1369 --pdfdir=DIR pdf documentation [DOCDIR]
1370 --psdir=DIR ps documentation [DOCDIR]
1376 --build=BUILD configure for building on BUILD [guessed]
1377 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1378 --target=TARGET configure for building compilers for TARGET [HOST]
1382 if test -n "$ac_init_help"; then
1383 case $ac_init_help in
1384 short | recursive ) echo "Configuration of llvm 2.7svn:";;
1389 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1390 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1391 --enable-optimized Compile with optimizations enabled (default is NO)
1392 --enable-profiling Compile with profiling enabled (default is NO)
1393 --enable-assertions Compile with assertion checks enabled (default is
1395 --enable-expensive-checks
1396 Compile with expensive debug checks enabled (default
1398 --enable-debug-runtime Build runtime libs with debug symbols (default is
1400 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1401 optimization is on and YES if it's off)
1402 --enable-jit Enable Just In Time Compiling (default is YES)
1403 --enable-doxygen Build doxygen documentation (default is NO)
1404 --enable-threads Use threads if available (default is YES)
1405 --enable-pic Build LLVM with Position Independent Code (default
1407 --enable-shared Build a shared library and link tools against it
1409 --enable-targets Build specific host targets: all or
1410 target1,target2,... Valid targets are: host, x86,
1411 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1412 pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1413 and cpp (default=all)
1414 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1416 --enable-bindings Build specific language bindings:
1417 all,auto,none,{binding-name} (default=auto)
1418 --enable-libffi Check for the presence of libffi (default is NO)
1419 --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on
1421 --enable-llvmc-dynamic-plugins
1422 Enable dynamic LLVMC plugins (default is YES)
1423 --enable-ltdl-install install libltdl
1426 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1427 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1428 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1430 --with-llvmgcc Specify location of llvm-gcc driver (default
1432 --with-llvmgxx Specify location of llvm-g++ driver (default
1434 --with-clang Specify location of clang compiler (default is
1436 --with-built-clang Use the compiled Clang as the LLVM compiler
1438 --with-optimize-option Select the compiler options to use for optimized
1440 --with-extra-options Specify additional options to compile LLVM with
1441 --with-ocaml-libdir Specify install location for ocaml bindings (default
1443 --with-c-include-dirs Colon separated list of directories clang will
1445 --with-cxx-include-root Directory with the libstdc++ headers.
1446 --with-cxx-include-arch Architecture of the libstdc++ headers.
1447 --with-cxx-include-32bit-dir
1448 32 bit multilib dir.
1449 --with-cxx-include-64bit-dir
1450 64 bit multilib directory.
1451 --with-binutils-include Specify path to binutils/include/ containing
1452 plugin-api.h file for gold plugin.
1453 --with-tclinclude directory where tcl headers are
1454 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1455 clang, or none; default=check)
1456 --with-udis86=<path> Use udis86 external x86 disassembler library
1457 --with-oprofile=<prefix>
1458 Tell OProfile >= 0.9.4 how to symbolize JIT output
1460 Some influential environment variables:
1461 CC C compiler command
1462 CFLAGS C compiler flags
1463 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1464 nonstandard directory <lib dir>
1465 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1466 you have headers in a nonstandard directory <include dir>
1468 CXX C++ compiler command
1469 CXXFLAGS C++ compiler flags
1471 Use these variables to override the choices made by `configure' or to help
1472 it to find libraries and programs with nonstandard names/locations.
1474 Report bugs to <llvmbugs@cs.uiuc.edu>.
1479 if test "$ac_init_help" = "recursive"; then
1480 # If there are subdirs, report their specific --help.
1481 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1482 test -d "$ac_dir" || continue
1486 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1489 # A ".." for each directory in $ac_dir_suffix.
1490 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1491 case $ac_top_builddir_sub in
1492 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1493 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1496 ac_abs_top_builddir=$ac_pwd
1497 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1498 # for backward compatibility:
1499 ac_top_builddir=$ac_top_build_prefix
1502 .) # We are building in place.
1504 ac_top_srcdir=$ac_top_builddir_sub
1505 ac_abs_top_srcdir=$ac_pwd ;;
1506 [\\/]* | ?:[\\/]* ) # Absolute name.
1507 ac_srcdir=$srcdir$ac_dir_suffix;
1508 ac_top_srcdir=$srcdir
1509 ac_abs_top_srcdir=$srcdir ;;
1511 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1512 ac_top_srcdir=$ac_top_build_prefix$srcdir
1513 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1515 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1517 cd "$ac_dir" || { ac_status=$?; continue; }
1518 # Check for guested configure.
1519 if test -f "$ac_srcdir/configure.gnu"; then
1521 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1522 elif test -f "$ac_srcdir/configure"; then
1524 $SHELL "$ac_srcdir/configure" --help=recursive
1526 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1528 cd "$ac_pwd" || { ac_status=$?; break; }
1532 test -n "$ac_init_help" && exit $ac_status
1533 if $ac_init_version; then
1535 llvm configure 2.7svn
1536 generated by GNU Autoconf 2.60
1538 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1539 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1540 This configure script is free software; the Free Software Foundation
1541 gives unlimited permission to copy, distribute and modify it.
1543 Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
1547 cat >config.log <<_ACEOF
1548 This file contains any messages produced by compilers while
1549 running configure, to aid debugging if configure makes a mistake.
1551 It was created by llvm $as_me 2.7svn, which was
1552 generated by GNU Autoconf 2.60. Invocation command line was
1564 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1565 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1566 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1567 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1568 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1570 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1571 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1573 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1574 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1575 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1576 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1577 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1578 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1579 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1587 test -z "$as_dir" && as_dir=.
1588 echo "PATH: $as_dir"
1604 # Keep a trace of the command line.
1605 # Strip out --no-create and --no-recursion so they do not pile up.
1606 # Strip out --silent because we don't want to record it for future runs.
1607 # Also quote any args containing shell meta-characters.
1608 # Make two passes to allow for proper duplicate-argument suppression.
1612 ac_must_keep_next=false
1618 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1619 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1620 | -silent | --silent | --silen | --sile | --sil)
1623 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1626 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1628 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1629 if test $ac_must_keep_next = true; then
1630 ac_must_keep_next=false # Got value, back to normal.
1633 *=* | --config-cache | -C | -disable-* | --disable-* \
1634 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1635 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1636 | -with-* | --with-* | -without-* | --without-* | --x)
1637 case "$ac_configure_args0 " in
1638 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1641 -* ) ac_must_keep_next=true ;;
1644 ac_configure_args="$ac_configure_args '$ac_arg'"
1649 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1650 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1652 # When interrupted or exit'd, cleanup temporary files, and complete
1653 # config.log. We remove comments because anyway the quotes in there
1654 # would cause problems or look ugly.
1655 # WARNING: Use '\'' to represent an apostrophe within the trap.
1656 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1657 trap 'exit_status=$?
1658 # Save into config.log some information that might help in debugging.
1663 ## ---------------- ##
1664 ## Cache variables. ##
1665 ## ---------------- ##
1668 # The following way of writing the cache mishandles newlines in values,
1670 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1671 eval ac_val=\$$ac_var
1675 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1676 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1679 _ | IFS | as_nl) ;; #(
1680 *) $as_unset $ac_var ;;
1685 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1686 *${as_nl}ac_space=\ *)
1688 "s/'\''/'\''\\\\'\'''\''/g;
1689 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1692 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1700 ## ----------------- ##
1701 ## Output variables. ##
1702 ## ----------------- ##
1705 for ac_var in $ac_subst_vars
1707 eval ac_val=\$$ac_var
1709 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1711 echo "$ac_var='\''$ac_val'\''"
1715 if test -n "$ac_subst_files"; then
1717 ## ------------------- ##
1718 ## File substitutions. ##
1719 ## ------------------- ##
1722 for ac_var in $ac_subst_files
1724 eval ac_val=\$$ac_var
1726 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1728 echo "$ac_var='\''$ac_val'\''"
1733 if test -s confdefs.h; then
1743 test "$ac_signal" != 0 &&
1744 echo "$as_me: caught signal $ac_signal"
1745 echo "$as_me: exit $exit_status"
1747 rm -f core *.core core.conftest.* &&
1748 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1751 for ac_signal in 1 2 13 15; do
1752 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1756 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1757 rm -f -r conftest* confdefs.h
1759 # Predefined preprocessor variables.
1761 cat >>confdefs.h <<_ACEOF
1762 #define PACKAGE_NAME "$PACKAGE_NAME"
1766 cat >>confdefs.h <<_ACEOF
1767 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1771 cat >>confdefs.h <<_ACEOF
1772 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1776 cat >>confdefs.h <<_ACEOF
1777 #define PACKAGE_STRING "$PACKAGE_STRING"
1781 cat >>confdefs.h <<_ACEOF
1782 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1786 # Let the site file select an alternate cache file if it wants to.
1787 # Prefer explicitly selected file to automatically selected ones.
1788 if test -n "$CONFIG_SITE"; then
1789 set x "$CONFIG_SITE"
1790 elif test "x$prefix" != xNONE; then
1791 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1793 set x "$ac_default_prefix/share/config.site" \
1794 "$ac_default_prefix/etc/config.site"
1799 if test -r "$ac_site_file"; then
1800 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1801 echo "$as_me: loading site script $ac_site_file" >&6;}
1802 sed 's/^/| /' "$ac_site_file" >&5
1807 if test -r "$cache_file"; then
1808 # Some versions of bash will fail to source /dev/null (special
1809 # files actually), so we avoid doing that.
1810 if test -f "$cache_file"; then
1811 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1812 echo "$as_me: loading cache $cache_file" >&6;}
1814 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1815 *) . "./$cache_file";;
1819 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1820 echo "$as_me: creating cache $cache_file" >&6;}
1824 # Check that the precious variables saved in the cache have kept the same
1826 ac_cache_corrupted=false
1827 for ac_var in $ac_precious_vars; do
1828 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1829 eval ac_new_set=\$ac_env_${ac_var}_set
1830 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1831 eval ac_new_val=\$ac_env_${ac_var}_value
1832 case $ac_old_set,$ac_new_set in
1834 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1835 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1836 ac_cache_corrupted=: ;;
1838 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1839 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1840 ac_cache_corrupted=: ;;
1843 if test "x$ac_old_val" != "x$ac_new_val"; then
1844 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1845 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1846 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1847 echo "$as_me: former value: $ac_old_val" >&2;}
1848 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1849 echo "$as_me: current value: $ac_new_val" >&2;}
1850 ac_cache_corrupted=:
1853 # Pass precious variables to config.status.
1854 if test "$ac_new_set" = set; then
1856 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1857 *) ac_arg=$ac_var=$ac_new_val ;;
1859 case " $ac_configure_args " in
1860 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1861 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1865 if $ac_cache_corrupted; then
1866 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1867 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1868 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1869 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1870 { (exit 1); exit 1; }; }
1898 ac_cpp='$CPP $CPPFLAGS'
1899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1905 LLVM_COPYRIGHT="Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign."
1914 for ac_dir in autoconf "$srcdir"/autoconf; do
1915 if test -f "$ac_dir/install-sh"; then
1917 ac_install_sh="$ac_aux_dir/install-sh -c"
1919 elif test -f "$ac_dir/install.sh"; then
1921 ac_install_sh="$ac_aux_dir/install.sh -c"
1923 elif test -f "$ac_dir/shtool"; then
1925 ac_install_sh="$ac_aux_dir/shtool install -c"
1929 if test -z "$ac_aux_dir"; then
1930 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1931 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1932 { (exit 1); exit 1; }; }
1935 # These three variables are undocumented and unsupported,
1936 # and are intended to be withdrawn in a future Autoconf release.
1937 # They can cause serious problems if a builder's source tree is in a directory
1938 # whose full name contains unusual characters.
1939 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1940 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1941 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1945 if test ${srcdir} != "." ; then
1946 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1947 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1948 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1949 { (exit 1); exit 1; }; }
1953 for i in `ls ${srcdir}/projects`
1955 if test -d ${srcdir}/projects/${i} ; then
1958 sample) subdirs="$subdirs projects/sample"
1960 privbracket) subdirs="$subdirs projects/privbracket"
1962 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
1964 # llvm-test is the old name of the test-suite, kept here for backwards
1966 llvm-test) subdirs="$subdirs projects/llvm-test"
1968 test-suite) subdirs="$subdirs projects/test-suite"
1970 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
1972 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
1974 llvm-java) subdirs="$subdirs projects/llvm-java"
1976 llvm-tv) subdirs="$subdirs projects/llvm-tv"
1978 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
1980 poolalloc) subdirs="$subdirs projects/poolalloc"
1982 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
1985 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1986 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1993 # Make sure we can run config.sub.
1994 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1995 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1996 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1997 { (exit 1); exit 1; }; }
1999 { echo "$as_me:$LINENO: checking build system type" >&5
2000 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2001 if test "${ac_cv_build+set}" = set; then
2002 echo $ECHO_N "(cached) $ECHO_C" >&6
2004 ac_build_alias=$build_alias
2005 test "x$ac_build_alias" = x &&
2006 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2007 test "x$ac_build_alias" = x &&
2008 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2009 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2010 { (exit 1); exit 1; }; }
2011 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2012 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2013 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2014 { (exit 1); exit 1; }; }
2017 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2018 echo "${ECHO_T}$ac_cv_build" >&6; }
2019 case $ac_cv_build in
2021 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2022 echo "$as_me: error: invalid value of canonical build" >&2;}
2023 { (exit 1); exit 1; }; };;
2026 ac_save_IFS=$IFS; IFS='-'
2032 # Remember, the first character of IFS is used to create $*,
2033 # except with old shells:
2036 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2039 { echo "$as_me:$LINENO: checking host system type" >&5
2040 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2041 if test "${ac_cv_host+set}" = set; then
2042 echo $ECHO_N "(cached) $ECHO_C" >&6
2044 if test "x$host_alias" = x; then
2045 ac_cv_host=$ac_cv_build
2047 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2048 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2049 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2050 { (exit 1); exit 1; }; }
2054 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2055 echo "${ECHO_T}$ac_cv_host" >&6; }
2058 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2059 echo "$as_me: error: invalid value of canonical host" >&2;}
2060 { (exit 1); exit 1; }; };;
2063 ac_save_IFS=$IFS; IFS='-'
2069 # Remember, the first character of IFS is used to create $*,
2070 # except with old shells:
2073 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2076 { echo "$as_me:$LINENO: checking target system type" >&5
2077 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2078 if test "${ac_cv_target+set}" = set; then
2079 echo $ECHO_N "(cached) $ECHO_C" >&6
2081 if test "x$target_alias" = x; then
2082 ac_cv_target=$ac_cv_host
2084 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2085 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2086 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2087 { (exit 1); exit 1; }; }
2091 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2092 echo "${ECHO_T}$ac_cv_target" >&6; }
2093 case $ac_cv_target in
2095 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2096 echo "$as_me: error: invalid value of canonical target" >&2;}
2097 { (exit 1); exit 1; }; };;
2099 target=$ac_cv_target
2100 ac_save_IFS=$IFS; IFS='-'
2106 # Remember, the first character of IFS is used to create $*,
2107 # except with old shells:
2110 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2113 # The aliases save the names the user supplied, while $host etc.
2114 # will get canonicalized.
2115 test -n "$target_alias" &&
2116 test "$program_prefix$program_suffix$program_transform_name" = \
2118 program_prefix=${target_alias}-
2120 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2121 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2122 if test "${llvm_cv_os_type+set}" = set; then
2123 echo $ECHO_N "(cached) $ECHO_C" >&6
2127 llvm_cv_link_all_option="-Wl,--whole-archive"
2128 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2129 llvm_cv_os_type="AIX"
2130 llvm_cv_platform_type="Unix" ;;
2132 llvm_cv_link_all_option="-Wl,--whole-archive"
2133 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2134 llvm_cv_os_type="IRIX"
2135 llvm_cv_platform_type="Unix" ;;
2137 llvm_cv_link_all_option="-Wl,--whole-archive"
2138 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2139 llvm_cv_os_type="Cygwin"
2140 llvm_cv_platform_type="Unix" ;;
2142 llvm_cv_link_all_option="-Wl,-all_load"
2143 llvm_cv_no_link_all_option="-Wl,-noall_load"
2144 llvm_cv_os_type="Darwin"
2145 llvm_cv_platform_type="Unix" ;;
2147 llvm_cv_link_all_option="-Wl,--whole-archive"
2148 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2149 llvm_cv_os_type="FreeBSD"
2150 llvm_cv_platform_type="Unix" ;;
2152 llvm_cv_link_all_option="-Wl,--whole-archive"
2153 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2154 llvm_cv_os_type="OpenBSD"
2155 llvm_cv_platform_type="Unix" ;;
2157 llvm_cv_link_all_option="-Wl,--whole-archive"
2158 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2159 llvm_cv_os_type="NetBSD"
2160 llvm_cv_platform_type="Unix" ;;
2162 llvm_cv_link_all_option="-Wl,--whole-archive"
2163 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2164 llvm_cv_os_type="DragonFly"
2165 llvm_cv_platform_type="Unix" ;;
2167 llvm_cv_link_all_option="-Wl,--whole-archive"
2168 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2169 llvm_cv_os_type="HP-UX"
2170 llvm_cv_platform_type="Unix" ;;
2172 llvm_cv_link_all_option="-Wl,--whole-archive"
2173 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2174 llvm_cv_os_type="Interix"
2175 llvm_cv_platform_type="Unix" ;;
2177 llvm_cv_link_all_option="-Wl,--whole-archive"
2178 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2179 llvm_cv_os_type="Linux"
2180 llvm_cv_platform_type="Unix" ;;
2182 llvm_cv_link_all_option="-Wl,-z,allextract"
2183 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2184 llvm_cv_os_type="SunOS"
2185 llvm_cv_platform_type="Unix" ;;
2187 llvm_cv_link_all_option="-Wl,-z,allextract"
2188 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2189 llvm_cv_os_type="AuroraUX"
2190 llvm_cv_platform_type="Unix" ;;
2192 llvm_cv_link_all_option="-Wl,--whole-archive"
2193 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2194 llvm_cv_os_type="Win32"
2195 llvm_cv_platform_type="Win32" ;;
2197 llvm_cv_link_all_option="-Wl,--whole-archive"
2198 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2199 llvm_cv_os_type="MingW"
2200 llvm_cv_platform_type="Win32" ;;
2202 llvm_cv_link_all_option="-Wl,--whole-archive"
2203 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2204 llvm_cv_os_type="Haiku"
2205 llvm_cv_platform_type="Unix" ;;
2207 llvm_cv_link_all_option="-Wl,--whole-archive"
2208 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2209 llvm_cv_os_type="Freestanding"
2210 llvm_cv_platform_type="Unix" ;;
2212 llvm_cv_link_all_option="-Wl,--whole-archive"
2213 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2214 llvm_cv_os_type="Freestanding"
2215 llvm_cv_platform_type="Unix" ;;
2217 llvm_cv_link_all_option=""
2218 llvm_cv_no_link_all_option=""
2219 llvm_cv_os_type="Unknown"
2220 llvm_cv_platform_type="Unknown" ;;
2223 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2224 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2226 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2227 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2228 if test "${llvm_cv_target_os_type+set}" = set; then
2229 echo $ECHO_N "(cached) $ECHO_C" >&6
2233 llvm_cv_target_os_type="AIX" ;;
2235 llvm_cv_target_os_type="IRIX" ;;
2237 llvm_cv_target_os_type="Cygwin" ;;
2239 llvm_cv_target_os_type="Darwin" ;;
2241 llvm_cv_target_os_type="FreeBSD" ;;
2243 llvm_cv_target_os_type="OpenBSD" ;;
2245 llvm_cv_target_os_type="NetBSD" ;;
2247 llvm_cv_target_os_type="DragonFly" ;;
2249 llvm_cv_target_os_type="HP-UX" ;;
2251 llvm_cv_target_os_type="Interix" ;;
2253 llvm_cv_target_os_type="Linux" ;;
2255 llvm_cv_target_os_type="SunOS" ;;
2257 llvm_cv_target_os_type="AuroraUX" ;;
2259 llvm_cv_target_os_type="Win32" ;;
2261 llvm_cv_target_os_type="MingW" ;;
2263 llvm_cv_target_os_type="Haiku" ;;
2265 llvm_cv_target_os_type="Freestanding" ;;
2267 llvm_cv_target_os_type="Unknown" ;;
2270 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2271 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2273 if test "$llvm_cv_os_type" = "Unknown" ; then
2274 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2275 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2276 { (exit 1); exit 1; }; }
2281 HOST_OS=$llvm_cv_os_type
2283 TARGET_OS=$llvm_cv_target_os_type
2286 LINKALL=$llvm_cv_link_all_option
2288 NOLINKALL=$llvm_cv_no_link_all_option
2291 case $llvm_cv_platform_type in
2294 cat >>confdefs.h <<\_ACEOF
2295 #define LLVM_ON_UNIX 1
2305 cat >>confdefs.h <<\_ACEOF
2306 #define LLVM_ON_WIN32 1
2316 { echo "$as_me:$LINENO: checking target architecture" >&5
2317 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2318 if test "${llvm_cv_target_arch+set}" = set; then
2319 echo $ECHO_N "(cached) $ECHO_C" >&6
2322 i?86-*) llvm_cv_target_arch="x86" ;;
2323 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2324 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2325 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2326 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2327 arm*-*) llvm_cv_target_arch="ARM" ;;
2328 mips-*) llvm_cv_target_arch="Mips" ;;
2329 pic16-*) llvm_cv_target_arch="PIC16" ;;
2330 xcore-*) llvm_cv_target_arch="XCore" ;;
2331 msp430-*) llvm_cv_target_arch="MSP430" ;;
2332 s390x-*) llvm_cv_target_arch="SystemZ" ;;
2333 bfin-*) llvm_cv_target_arch="Blackfin" ;;
2334 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
2335 *) llvm_cv_target_arch="Unknown" ;;
2338 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2339 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2341 if test "$llvm_cv_target_arch" = "Unknown" ; then
2342 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2343 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2346 # Determine the LLVM native architecture for the target
2347 case "$llvm_cv_target_arch" in
2348 x86) LLVM_NATIVE_ARCH="X86" ;;
2349 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2350 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2353 ARCH=$llvm_cv_target_arch
2357 ac_cpp='$CPP $CPPFLAGS'
2358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2361 if test -n "$ac_tool_prefix"; then
2362 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2363 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2364 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2366 if test "${ac_cv_prog_CC+set}" = set; then
2367 echo $ECHO_N "(cached) $ECHO_C" >&6
2369 if test -n "$CC"; then
2370 ac_cv_prog_CC="$CC" # Let the user override the test.
2372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2376 test -z "$as_dir" && as_dir=.
2377 for ac_exec_ext in '' $ac_executable_extensions; do
2378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2379 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2390 if test -n "$CC"; then
2391 { echo "$as_me:$LINENO: result: $CC" >&5
2392 echo "${ECHO_T}$CC" >&6; }
2394 { echo "$as_me:$LINENO: result: no" >&5
2395 echo "${ECHO_T}no" >&6; }
2400 if test -z "$ac_cv_prog_CC"; then
2402 # Extract the first word of "gcc", so it can be a program name with args.
2403 set dummy gcc; ac_word=$2
2404 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2406 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2407 echo $ECHO_N "(cached) $ECHO_C" >&6
2409 if test -n "$ac_ct_CC"; then
2410 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2416 test -z "$as_dir" && as_dir=.
2417 for ac_exec_ext in '' $ac_executable_extensions; do
2418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2419 ac_cv_prog_ac_ct_CC="gcc"
2420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2429 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2430 if test -n "$ac_ct_CC"; then
2431 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2432 echo "${ECHO_T}$ac_ct_CC" >&6; }
2434 { echo "$as_me:$LINENO: result: no" >&5
2435 echo "${ECHO_T}no" >&6; }
2438 if test "x$ac_ct_CC" = x; then
2441 case $cross_compiling:$ac_tool_warned in
2443 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2444 whose name does not start with the host triplet. If you think this
2445 configuration is useful to you, please write to autoconf@gnu.org." >&5
2446 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2447 whose name does not start with the host triplet. If you think this
2448 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2449 ac_tool_warned=yes ;;
2457 if test -z "$CC"; then
2458 if test -n "$ac_tool_prefix"; then
2459 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2460 set dummy ${ac_tool_prefix}cc; ac_word=$2
2461 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2463 if test "${ac_cv_prog_CC+set}" = set; then
2464 echo $ECHO_N "(cached) $ECHO_C" >&6
2466 if test -n "$CC"; then
2467 ac_cv_prog_CC="$CC" # Let the user override the test.
2469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2473 test -z "$as_dir" && as_dir=.
2474 for ac_exec_ext in '' $ac_executable_extensions; do
2475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2476 ac_cv_prog_CC="${ac_tool_prefix}cc"
2477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2487 if test -n "$CC"; then
2488 { echo "$as_me:$LINENO: result: $CC" >&5
2489 echo "${ECHO_T}$CC" >&6; }
2491 { echo "$as_me:$LINENO: result: no" >&5
2492 echo "${ECHO_T}no" >&6; }
2498 if test -z "$CC"; then
2499 # Extract the first word of "cc", so it can be a program name with args.
2500 set dummy cc; ac_word=$2
2501 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2503 if test "${ac_cv_prog_CC+set}" = set; then
2504 echo $ECHO_N "(cached) $ECHO_C" >&6
2506 if test -n "$CC"; then
2507 ac_cv_prog_CC="$CC" # Let the user override the test.
2510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514 test -z "$as_dir" && as_dir=.
2515 for ac_exec_ext in '' $ac_executable_extensions; do
2516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2517 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2518 ac_prog_rejected=yes
2522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2529 if test $ac_prog_rejected = yes; then
2530 # We found a bogon in the path, so make sure we never use it.
2531 set dummy $ac_cv_prog_CC
2533 if test $# != 0; then
2534 # We chose a different compiler from the bogus one.
2535 # However, it has the same basename, so the bogon will be chosen
2536 # first if we set CC to just the basename; use the full file name.
2538 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2544 if test -n "$CC"; then
2545 { echo "$as_me:$LINENO: result: $CC" >&5
2546 echo "${ECHO_T}$CC" >&6; }
2548 { echo "$as_me:$LINENO: result: no" >&5
2549 echo "${ECHO_T}no" >&6; }
2554 if test -z "$CC"; then
2555 if test -n "$ac_tool_prefix"; then
2556 for ac_prog in cl.exe
2558 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2559 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2560 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2562 if test "${ac_cv_prog_CC+set}" = set; then
2563 echo $ECHO_N "(cached) $ECHO_C" >&6
2565 if test -n "$CC"; then
2566 ac_cv_prog_CC="$CC" # Let the user override the test.
2568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2572 test -z "$as_dir" && as_dir=.
2573 for ac_exec_ext in '' $ac_executable_extensions; do
2574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2575 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2586 if test -n "$CC"; then
2587 { echo "$as_me:$LINENO: result: $CC" >&5
2588 echo "${ECHO_T}$CC" >&6; }
2590 { echo "$as_me:$LINENO: result: no" >&5
2591 echo "${ECHO_T}no" >&6; }
2595 test -n "$CC" && break
2598 if test -z "$CC"; then
2600 for ac_prog in cl.exe
2602 # Extract the first word of "$ac_prog", so it can be a program name with args.
2603 set dummy $ac_prog; ac_word=$2
2604 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2606 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2607 echo $ECHO_N "(cached) $ECHO_C" >&6
2609 if test -n "$ac_ct_CC"; then
2610 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616 test -z "$as_dir" && as_dir=.
2617 for ac_exec_ext in '' $ac_executable_extensions; do
2618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2619 ac_cv_prog_ac_ct_CC="$ac_prog"
2620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2629 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2630 if test -n "$ac_ct_CC"; then
2631 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2632 echo "${ECHO_T}$ac_ct_CC" >&6; }
2634 { echo "$as_me:$LINENO: result: no" >&5
2635 echo "${ECHO_T}no" >&6; }
2639 test -n "$ac_ct_CC" && break
2642 if test "x$ac_ct_CC" = x; then
2645 case $cross_compiling:$ac_tool_warned in
2647 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2648 whose name does not start with the host triplet. If you think this
2649 configuration is useful to you, please write to autoconf@gnu.org." >&5
2650 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2651 whose name does not start with the host triplet. If you think this
2652 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2653 ac_tool_warned=yes ;;
2662 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2663 See \`config.log' for more details." >&5
2664 echo "$as_me: error: no acceptable C compiler found in \$PATH
2665 See \`config.log' for more details." >&2;}
2666 { (exit 1); exit 1; }; }
2668 # Provide some information about the compiler.
2669 echo "$as_me:$LINENO: checking for C compiler version" >&5
2670 ac_compiler=`set X $ac_compile; echo $2`
2671 { (ac_try="$ac_compiler --version >&5"
2673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2674 *) ac_try_echo=$ac_try;;
2676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2677 (eval "$ac_compiler --version >&5") 2>&5
2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); }
2681 { (ac_try="$ac_compiler -v >&5"
2683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2684 *) ac_try_echo=$ac_try;;
2686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2687 (eval "$ac_compiler -v >&5") 2>&5
2689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690 (exit $ac_status); }
2691 { (ac_try="$ac_compiler -V >&5"
2693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2694 *) ac_try_echo=$ac_try;;
2696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2697 (eval "$ac_compiler -V >&5") 2>&5
2699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700 (exit $ac_status); }
2702 cat >conftest.$ac_ext <<_ACEOF
2705 cat confdefs.h >>conftest.$ac_ext
2706 cat >>conftest.$ac_ext <<_ACEOF
2707 /* end confdefs.h. */
2717 ac_clean_files_save=$ac_clean_files
2718 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2719 # Try to create an executable without -o first, disregard a.out.
2720 # It will help us diagnose broken compilers, and finding out an intuition
2722 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2723 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2724 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2726 # List of possible output files, starting from the most likely.
2727 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2728 # only as a last resort. b.out is created by i960 compilers.
2729 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2731 # The IRIX 6 linker writes into existing files which may not be
2732 # executable, retaining their permissions. Remove them first so a
2733 # subsequent execution test works.
2735 for ac_file in $ac_files
2738 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2739 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2744 if { (ac_try="$ac_link_default"
2746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2747 *) ac_try_echo=$ac_try;;
2749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2750 (eval "$ac_link_default") 2>&5
2752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753 (exit $ac_status); }; then
2754 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2755 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2756 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2757 # so that the user can short-circuit this test for compilers unknown to
2759 for ac_file in $ac_files
2761 test -f "$ac_file" || continue
2763 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2766 # We found the default executable, but exeext='' is most
2770 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2772 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2774 # We set ac_cv_exeext here because the later test for it is not
2775 # safe: cross compilers may not add the suffix if given an `-o'
2776 # argument, so we may need to know it at that point already.
2777 # Even if this section looks crufty: it has the advantage of
2784 test "$ac_cv_exeext" = no && ac_cv_exeext=
2787 echo "$as_me: failed program was:" >&5
2788 sed 's/^/| /' conftest.$ac_ext >&5
2790 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2791 See \`config.log' for more details." >&5
2792 echo "$as_me: error: C compiler cannot create executables
2793 See \`config.log' for more details." >&2;}
2794 { (exit 77); exit 77; }; }
2797 ac_exeext=$ac_cv_exeext
2798 { echo "$as_me:$LINENO: result: $ac_file" >&5
2799 echo "${ECHO_T}$ac_file" >&6; }
2801 # Check that the compiler produces executables we can run. If not, either
2802 # the compiler is broken, or we cross compile.
2803 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2804 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2805 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2806 # If not cross compiling, check that we can run a simple program.
2807 if test "$cross_compiling" != yes; then
2808 if { ac_try='./$ac_file'
2809 { (case "(($ac_try" in
2810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2811 *) ac_try_echo=$ac_try;;
2813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2814 (eval "$ac_try") 2>&5
2816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817 (exit $ac_status); }; }; then
2820 if test "$cross_compiling" = maybe; then
2823 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2824 If you meant to cross compile, use \`--host'.
2825 See \`config.log' for more details." >&5
2826 echo "$as_me: error: cannot run C compiled programs.
2827 If you meant to cross compile, use \`--host'.
2828 See \`config.log' for more details." >&2;}
2829 { (exit 1); exit 1; }; }
2833 { echo "$as_me:$LINENO: result: yes" >&5
2834 echo "${ECHO_T}yes" >&6; }
2836 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2837 ac_clean_files=$ac_clean_files_save
2838 # Check that the compiler produces executables we can run. If not, either
2839 # the compiler is broken, or we cross compile.
2840 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2841 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2842 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2843 echo "${ECHO_T}$cross_compiling" >&6; }
2845 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2846 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2847 if { (ac_try="$ac_link"
2849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2850 *) ac_try_echo=$ac_try;;
2852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2853 (eval "$ac_link") 2>&5
2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); }; then
2857 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2858 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2859 # work properly (i.e., refer to `conftest.exe'), while it won't with
2861 for ac_file in conftest.exe conftest conftest.*; do
2862 test -f "$ac_file" || continue
2864 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2865 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2871 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2872 See \`config.log' for more details." >&5
2873 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2874 See \`config.log' for more details." >&2;}
2875 { (exit 1); exit 1; }; }
2878 rm -f conftest$ac_cv_exeext
2879 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2880 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2882 rm -f conftest.$ac_ext
2883 EXEEXT=$ac_cv_exeext
2885 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2886 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2887 if test "${ac_cv_objext+set}" = set; then
2888 echo $ECHO_N "(cached) $ECHO_C" >&6
2890 cat >conftest.$ac_ext <<_ACEOF
2893 cat confdefs.h >>conftest.$ac_ext
2894 cat >>conftest.$ac_ext <<_ACEOF
2895 /* end confdefs.h. */
2905 rm -f conftest.o conftest.obj
2906 if { (ac_try="$ac_compile"
2908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2909 *) ac_try_echo=$ac_try;;
2911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2912 (eval "$ac_compile") 2>&5
2914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915 (exit $ac_status); }; then
2916 for ac_file in conftest.o conftest.obj conftest.*; do
2917 test -f "$ac_file" || continue;
2919 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2920 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2925 echo "$as_me: failed program was:" >&5
2926 sed 's/^/| /' conftest.$ac_ext >&5
2928 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2929 See \`config.log' for more details." >&5
2930 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2931 See \`config.log' for more details." >&2;}
2932 { (exit 1); exit 1; }; }
2935 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2937 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2938 echo "${ECHO_T}$ac_cv_objext" >&6; }
2939 OBJEXT=$ac_cv_objext
2941 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2942 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2943 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2944 echo $ECHO_N "(cached) $ECHO_C" >&6
2946 cat >conftest.$ac_ext <<_ACEOF
2949 cat confdefs.h >>conftest.$ac_ext
2950 cat >>conftest.$ac_ext <<_ACEOF
2951 /* end confdefs.h. */
2964 rm -f conftest.$ac_objext
2965 if { (ac_try="$ac_compile"
2967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2968 *) ac_try_echo=$ac_try;;
2970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2971 (eval "$ac_compile") 2>conftest.er1
2973 grep -v '^ *+' conftest.er1 >conftest.err
2975 cat conftest.err >&5
2976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977 (exit $ac_status); } &&
2978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2979 { (case "(($ac_try" in
2980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2981 *) ac_try_echo=$ac_try;;
2983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2984 (eval "$ac_try") 2>&5
2986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987 (exit $ac_status); }; } &&
2988 { ac_try='test -s conftest.$ac_objext'
2989 { (case "(($ac_try" in
2990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2991 *) ac_try_echo=$ac_try;;
2993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2994 (eval "$ac_try") 2>&5
2996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997 (exit $ac_status); }; }; then
3000 echo "$as_me: failed program was:" >&5
3001 sed 's/^/| /' conftest.$ac_ext >&5
3006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3007 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3010 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3011 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3012 GCC=`test $ac_compiler_gnu = yes && echo yes`
3013 ac_test_CFLAGS=${CFLAGS+set}
3014 ac_save_CFLAGS=$CFLAGS
3015 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3016 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3017 if test "${ac_cv_prog_cc_g+set}" = set; then
3018 echo $ECHO_N "(cached) $ECHO_C" >&6
3020 ac_save_c_werror_flag=$ac_c_werror_flag
3021 ac_c_werror_flag=yes
3024 cat >conftest.$ac_ext <<_ACEOF
3027 cat confdefs.h >>conftest.$ac_ext
3028 cat >>conftest.$ac_ext <<_ACEOF
3029 /* end confdefs.h. */
3039 rm -f conftest.$ac_objext
3040 if { (ac_try="$ac_compile"
3042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3043 *) ac_try_echo=$ac_try;;
3045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3046 (eval "$ac_compile") 2>conftest.er1
3048 grep -v '^ *+' conftest.er1 >conftest.err
3050 cat conftest.err >&5
3051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052 (exit $ac_status); } &&
3053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3054 { (case "(($ac_try" in
3055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3056 *) ac_try_echo=$ac_try;;
3058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3059 (eval "$ac_try") 2>&5
3061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062 (exit $ac_status); }; } &&
3063 { ac_try='test -s conftest.$ac_objext'
3064 { (case "(($ac_try" in
3065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3066 *) ac_try_echo=$ac_try;;
3068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3069 (eval "$ac_try") 2>&5
3071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3072 (exit $ac_status); }; }; then
3075 echo "$as_me: failed program was:" >&5
3076 sed 's/^/| /' conftest.$ac_ext >&5
3079 cat >conftest.$ac_ext <<_ACEOF
3082 cat confdefs.h >>conftest.$ac_ext
3083 cat >>conftest.$ac_ext <<_ACEOF
3084 /* end confdefs.h. */
3094 rm -f conftest.$ac_objext
3095 if { (ac_try="$ac_compile"
3097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098 *) ac_try_echo=$ac_try;;
3100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3101 (eval "$ac_compile") 2>conftest.er1
3103 grep -v '^ *+' conftest.er1 >conftest.err
3105 cat conftest.err >&5
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); } &&
3108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3109 { (case "(($ac_try" in
3110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3111 *) ac_try_echo=$ac_try;;
3113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3114 (eval "$ac_try") 2>&5
3116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117 (exit $ac_status); }; } &&
3118 { ac_try='test -s conftest.$ac_objext'
3119 { (case "(($ac_try" in
3120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3121 *) ac_try_echo=$ac_try;;
3123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3124 (eval "$ac_try") 2>&5
3126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127 (exit $ac_status); }; }; then
3130 echo "$as_me: failed program was:" >&5
3131 sed 's/^/| /' conftest.$ac_ext >&5
3133 ac_c_werror_flag=$ac_save_c_werror_flag
3135 cat >conftest.$ac_ext <<_ACEOF
3138 cat confdefs.h >>conftest.$ac_ext
3139 cat >>conftest.$ac_ext <<_ACEOF
3140 /* end confdefs.h. */
3150 rm -f conftest.$ac_objext
3151 if { (ac_try="$ac_compile"
3153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3154 *) ac_try_echo=$ac_try;;
3156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3157 (eval "$ac_compile") 2>conftest.er1
3159 grep -v '^ *+' conftest.er1 >conftest.err
3161 cat conftest.err >&5
3162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163 (exit $ac_status); } &&
3164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3165 { (case "(($ac_try" in
3166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3167 *) ac_try_echo=$ac_try;;
3169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3170 (eval "$ac_try") 2>&5
3172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173 (exit $ac_status); }; } &&
3174 { ac_try='test -s conftest.$ac_objext'
3175 { (case "(($ac_try" in
3176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3177 *) ac_try_echo=$ac_try;;
3179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3180 (eval "$ac_try") 2>&5
3182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183 (exit $ac_status); }; }; then
3186 echo "$as_me: failed program was:" >&5
3187 sed 's/^/| /' conftest.$ac_ext >&5
3192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3199 ac_c_werror_flag=$ac_save_c_werror_flag
3201 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3202 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3203 if test "$ac_test_CFLAGS" = set; then
3204 CFLAGS=$ac_save_CFLAGS
3205 elif test $ac_cv_prog_cc_g = yes; then
3206 if test "$GCC" = yes; then
3212 if test "$GCC" = yes; then
3218 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3219 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3220 if test "${ac_cv_prog_cc_c89+set}" = set; then
3221 echo $ECHO_N "(cached) $ECHO_C" >&6
3223 ac_cv_prog_cc_c89=no
3225 cat >conftest.$ac_ext <<_ACEOF
3228 cat confdefs.h >>conftest.$ac_ext
3229 cat >>conftest.$ac_ext <<_ACEOF
3230 /* end confdefs.h. */
3233 #include <sys/types.h>
3234 #include <sys/stat.h>
3235 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3236 struct buf { int x; };
3237 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3238 static char *e (p, i)
3244 static char *f (char * (*g) (char **, int), char **p, ...)
3249 s = g (p, va_arg (v,int));
3254 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3255 function prototypes and stuff, but not '\xHH' hex character constants.
3256 These don't provoke an error unfortunately, instead are silently treated
3257 as 'x'. The following induces an error, until -std is added to get
3258 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3259 array size at least. It's necessary to write '\x00'==0 to get something
3260 that's true only with -std. */
3261 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3263 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3264 inside strings and character constants. */
3266 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3268 int test (int i, double x);
3269 struct s1 {int (*f) (int a);};
3270 struct s2 {int (*f) (double a);};
3271 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3277 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3282 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3283 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3285 CC="$ac_save_CC $ac_arg"
3286 rm -f conftest.$ac_objext
3287 if { (ac_try="$ac_compile"
3289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3290 *) ac_try_echo=$ac_try;;
3292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3293 (eval "$ac_compile") 2>conftest.er1
3295 grep -v '^ *+' conftest.er1 >conftest.err
3297 cat conftest.err >&5
3298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299 (exit $ac_status); } &&
3300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3301 { (case "(($ac_try" in
3302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3303 *) ac_try_echo=$ac_try;;
3305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3306 (eval "$ac_try") 2>&5
3308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3309 (exit $ac_status); }; } &&
3310 { ac_try='test -s conftest.$ac_objext'
3311 { (case "(($ac_try" in
3312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3313 *) ac_try_echo=$ac_try;;
3315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3316 (eval "$ac_try") 2>&5
3318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319 (exit $ac_status); }; }; then
3320 ac_cv_prog_cc_c89=$ac_arg
3322 echo "$as_me: failed program was:" >&5
3323 sed 's/^/| /' conftest.$ac_ext >&5
3328 rm -f core conftest.err conftest.$ac_objext
3329 test "x$ac_cv_prog_cc_c89" != "xno" && break
3331 rm -f conftest.$ac_ext
3336 case "x$ac_cv_prog_cc_c89" in
3338 { echo "$as_me:$LINENO: result: none needed" >&5
3339 echo "${ECHO_T}none needed" >&6; } ;;
3341 { echo "$as_me:$LINENO: result: unsupported" >&5
3342 echo "${ECHO_T}unsupported" >&6; } ;;
3344 CC="$CC $ac_cv_prog_cc_c89"
3345 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3346 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3351 ac_cpp='$CPP $CPPFLAGS'
3352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3358 ac_cpp='$CPP $CPPFLAGS'
3359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3362 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3363 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3364 # On Suns, sometimes $CPP names a directory.
3365 if test -n "$CPP" && test -d "$CPP"; then
3368 if test -z "$CPP"; then
3369 if test "${ac_cv_prog_CPP+set}" = set; then
3370 echo $ECHO_N "(cached) $ECHO_C" >&6
3372 # Double quotes because CPP needs to be expanded
3373 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3376 for ac_c_preproc_warn_flag in '' yes
3378 # Use a header file that comes with gcc, so configuring glibc
3379 # with a fresh cross-compiler works.
3380 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3381 # <limits.h> exists even on freestanding compilers.
3382 # On the NeXT, cc -E runs the code through the compiler's parser,
3383 # not just through cpp. "Syntax error" is here to catch this case.
3384 cat >conftest.$ac_ext <<_ACEOF
3387 cat confdefs.h >>conftest.$ac_ext
3388 cat >>conftest.$ac_ext <<_ACEOF
3389 /* end confdefs.h. */
3391 # include <limits.h>
3393 # include <assert.h>
3397 if { (ac_try="$ac_cpp conftest.$ac_ext"
3399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3400 *) ac_try_echo=$ac_try;;
3402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3403 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3405 grep -v '^ *+' conftest.er1 >conftest.err
3407 cat conftest.err >&5
3408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409 (exit $ac_status); } >/dev/null; then
3410 if test -s conftest.err; then
3411 ac_cpp_err=$ac_c_preproc_warn_flag
3412 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3419 if test -z "$ac_cpp_err"; then
3422 echo "$as_me: failed program was:" >&5
3423 sed 's/^/| /' conftest.$ac_ext >&5
3425 # Broken: fails on valid input.
3429 rm -f conftest.err conftest.$ac_ext
3431 # OK, works on sane cases. Now check whether nonexistent headers
3432 # can be detected and how.
3433 cat >conftest.$ac_ext <<_ACEOF
3436 cat confdefs.h >>conftest.$ac_ext
3437 cat >>conftest.$ac_ext <<_ACEOF
3438 /* end confdefs.h. */
3439 #include <ac_nonexistent.h>
3441 if { (ac_try="$ac_cpp conftest.$ac_ext"
3443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3444 *) ac_try_echo=$ac_try;;
3446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3447 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3449 grep -v '^ *+' conftest.er1 >conftest.err
3451 cat conftest.err >&5
3452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453 (exit $ac_status); } >/dev/null; then
3454 if test -s conftest.err; then
3455 ac_cpp_err=$ac_c_preproc_warn_flag
3456 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3463 if test -z "$ac_cpp_err"; then
3464 # Broken: success on invalid input.
3467 echo "$as_me: failed program was:" >&5
3468 sed 's/^/| /' conftest.$ac_ext >&5
3470 # Passes both tests.
3475 rm -f conftest.err conftest.$ac_ext
3478 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3479 rm -f conftest.err conftest.$ac_ext
3480 if $ac_preproc_ok; then
3492 { echo "$as_me:$LINENO: result: $CPP" >&5
3493 echo "${ECHO_T}$CPP" >&6; }
3495 for ac_c_preproc_warn_flag in '' yes
3497 # Use a header file that comes with gcc, so configuring glibc
3498 # with a fresh cross-compiler works.
3499 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3500 # <limits.h> exists even on freestanding compilers.
3501 # On the NeXT, cc -E runs the code through the compiler's parser,
3502 # not just through cpp. "Syntax error" is here to catch this case.
3503 cat >conftest.$ac_ext <<_ACEOF
3506 cat confdefs.h >>conftest.$ac_ext
3507 cat >>conftest.$ac_ext <<_ACEOF
3508 /* end confdefs.h. */
3510 # include <limits.h>
3512 # include <assert.h>
3516 if { (ac_try="$ac_cpp conftest.$ac_ext"
3518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3519 *) ac_try_echo=$ac_try;;
3521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3522 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3524 grep -v '^ *+' conftest.er1 >conftest.err
3526 cat conftest.err >&5
3527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528 (exit $ac_status); } >/dev/null; then
3529 if test -s conftest.err; then
3530 ac_cpp_err=$ac_c_preproc_warn_flag
3531 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3538 if test -z "$ac_cpp_err"; then
3541 echo "$as_me: failed program was:" >&5
3542 sed 's/^/| /' conftest.$ac_ext >&5
3544 # Broken: fails on valid input.
3548 rm -f conftest.err conftest.$ac_ext
3550 # OK, works on sane cases. Now check whether nonexistent headers
3551 # can be detected and how.
3552 cat >conftest.$ac_ext <<_ACEOF
3555 cat confdefs.h >>conftest.$ac_ext
3556 cat >>conftest.$ac_ext <<_ACEOF
3557 /* end confdefs.h. */
3558 #include <ac_nonexistent.h>
3560 if { (ac_try="$ac_cpp conftest.$ac_ext"
3562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3563 *) ac_try_echo=$ac_try;;
3565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3566 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3568 grep -v '^ *+' conftest.er1 >conftest.err
3570 cat conftest.err >&5
3571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572 (exit $ac_status); } >/dev/null; then
3573 if test -s conftest.err; then
3574 ac_cpp_err=$ac_c_preproc_warn_flag
3575 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3582 if test -z "$ac_cpp_err"; then
3583 # Broken: success on invalid input.
3586 echo "$as_me: failed program was:" >&5
3587 sed 's/^/| /' conftest.$ac_ext >&5
3589 # Passes both tests.
3594 rm -f conftest.err conftest.$ac_ext
3597 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3598 rm -f conftest.err conftest.$ac_ext
3599 if $ac_preproc_ok; then
3602 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3603 See \`config.log' for more details." >&5
3604 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3605 See \`config.log' for more details." >&2;}
3606 { (exit 1); exit 1; }; }
3610 ac_cpp='$CPP $CPPFLAGS'
3611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3616 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3617 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3618 if test "${ac_cv_path_GREP+set}" = set; then
3619 echo $ECHO_N "(cached) $ECHO_C" >&6
3621 # Extract the first word of "grep ggrep" to use in msg output
3622 if test -z "$GREP"; then
3623 set dummy grep ggrep; ac_prog_name=$2
3624 if test "${ac_cv_path_GREP+set}" = set; then
3625 echo $ECHO_N "(cached) $ECHO_C" >&6
3627 ac_path_GREP_found=false
3628 # Loop through the user's path and test for each of PROGNAME-LIST
3629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3630 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3633 test -z "$as_dir" && as_dir=.
3634 for ac_prog in grep ggrep; do
3635 for ac_exec_ext in '' $ac_executable_extensions; do
3636 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3637 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3638 # Check for GNU ac_path_GREP and select it if it is found.
3639 # Check for GNU $ac_path_GREP
3640 case `"$ac_path_GREP" --version 2>&1` in
3642 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3645 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3648 cat "conftest.in" "conftest.in" >"conftest.tmp"
3649 mv "conftest.tmp" "conftest.in"
3650 cp "conftest.in" "conftest.nl"
3651 echo 'GREP' >> "conftest.nl"
3652 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3653 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3654 ac_count=`expr $ac_count + 1`
3655 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3656 # Best one so far, save it but keep looking for a better one
3657 ac_cv_path_GREP="$ac_path_GREP"
3658 ac_path_GREP_max=$ac_count
3660 # 10*(2^10) chars as input seems more than enough
3661 test $ac_count -gt 10 && break
3663 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3667 $ac_path_GREP_found && break 3
3677 GREP="$ac_cv_path_GREP"
3678 if test -z "$GREP"; then
3679 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3680 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3681 { (exit 1); exit 1; }; }
3685 ac_cv_path_GREP=$GREP
3690 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3691 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3692 GREP="$ac_cv_path_GREP"
3695 { echo "$as_me:$LINENO: checking for egrep" >&5
3696 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3697 if test "${ac_cv_path_EGREP+set}" = set; then
3698 echo $ECHO_N "(cached) $ECHO_C" >&6
3700 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3701 then ac_cv_path_EGREP="$GREP -E"
3703 # Extract the first word of "egrep" to use in msg output
3704 if test -z "$EGREP"; then
3705 set dummy egrep; ac_prog_name=$2
3706 if test "${ac_cv_path_EGREP+set}" = set; then
3707 echo $ECHO_N "(cached) $ECHO_C" >&6
3709 ac_path_EGREP_found=false
3710 # Loop through the user's path and test for each of PROGNAME-LIST
3711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3712 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3715 test -z "$as_dir" && as_dir=.
3716 for ac_prog in egrep; do
3717 for ac_exec_ext in '' $ac_executable_extensions; do
3718 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3719 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3720 # Check for GNU ac_path_EGREP and select it if it is found.
3721 # Check for GNU $ac_path_EGREP
3722 case `"$ac_path_EGREP" --version 2>&1` in
3724 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3727 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3730 cat "conftest.in" "conftest.in" >"conftest.tmp"
3731 mv "conftest.tmp" "conftest.in"
3732 cp "conftest.in" "conftest.nl"
3733 echo 'EGREP' >> "conftest.nl"
3734 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3735 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3736 ac_count=`expr $ac_count + 1`
3737 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3738 # Best one so far, save it but keep looking for a better one
3739 ac_cv_path_EGREP="$ac_path_EGREP"
3740 ac_path_EGREP_max=$ac_count
3742 # 10*(2^10) chars as input seems more than enough
3743 test $ac_count -gt 10 && break
3745 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3749 $ac_path_EGREP_found && break 3
3759 EGREP="$ac_cv_path_EGREP"
3760 if test -z "$EGREP"; then
3761 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3762 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3763 { (exit 1); exit 1; }; }
3767 ac_cv_path_EGREP=$EGREP
3773 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3774 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3775 EGREP="$ac_cv_path_EGREP"
3778 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3779 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3780 if test "${ac_cv_header_stdc+set}" = set; then
3781 echo $ECHO_N "(cached) $ECHO_C" >&6
3783 cat >conftest.$ac_ext <<_ACEOF
3786 cat confdefs.h >>conftest.$ac_ext
3787 cat >>conftest.$ac_ext <<_ACEOF
3788 /* end confdefs.h. */
3802 rm -f conftest.$ac_objext
3803 if { (ac_try="$ac_compile"
3805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3806 *) ac_try_echo=$ac_try;;
3808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3809 (eval "$ac_compile") 2>conftest.er1
3811 grep -v '^ *+' conftest.er1 >conftest.err
3813 cat conftest.err >&5
3814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815 (exit $ac_status); } &&
3816 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3817 { (case "(($ac_try" in
3818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3819 *) ac_try_echo=$ac_try;;
3821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3822 (eval "$ac_try") 2>&5
3824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825 (exit $ac_status); }; } &&
3826 { ac_try='test -s conftest.$ac_objext'
3827 { (case "(($ac_try" in
3828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3829 *) ac_try_echo=$ac_try;;
3831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3832 (eval "$ac_try") 2>&5
3834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835 (exit $ac_status); }; }; then
3836 ac_cv_header_stdc=yes
3838 echo "$as_me: failed program was:" >&5
3839 sed 's/^/| /' conftest.$ac_ext >&5
3841 ac_cv_header_stdc=no
3844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3846 if test $ac_cv_header_stdc = yes; then
3847 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3848 cat >conftest.$ac_ext <<_ACEOF
3851 cat confdefs.h >>conftest.$ac_ext
3852 cat >>conftest.$ac_ext <<_ACEOF
3853 /* end confdefs.h. */
3857 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3858 $EGREP "memchr" >/dev/null 2>&1; then
3861 ac_cv_header_stdc=no
3867 if test $ac_cv_header_stdc = yes; then
3868 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3869 cat >conftest.$ac_ext <<_ACEOF
3872 cat confdefs.h >>conftest.$ac_ext
3873 cat >>conftest.$ac_ext <<_ACEOF
3874 /* end confdefs.h. */
3878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3879 $EGREP "free" >/dev/null 2>&1; then
3882 ac_cv_header_stdc=no
3888 if test $ac_cv_header_stdc = yes; then
3889 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3890 if test "$cross_compiling" = yes; then
3893 cat >conftest.$ac_ext <<_ACEOF
3896 cat confdefs.h >>conftest.$ac_ext
3897 cat >>conftest.$ac_ext <<_ACEOF
3898 /* end confdefs.h. */
3901 #if ((' ' & 0x0FF) == 0x020)
3902 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3903 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3905 # define ISLOWER(c) \
3906 (('a' <= (c) && (c) <= 'i') \
3907 || ('j' <= (c) && (c) <= 'r') \
3908 || ('s' <= (c) && (c) <= 'z'))
3909 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3912 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3917 for (i = 0; i < 256; i++)
3918 if (XOR (islower (i), ISLOWER (i))
3919 || toupper (i) != TOUPPER (i))
3924 rm -f conftest$ac_exeext
3925 if { (ac_try="$ac_link"
3927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3928 *) ac_try_echo=$ac_try;;
3930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3931 (eval "$ac_link") 2>&5
3933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3935 { (case "(($ac_try" in
3936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3937 *) ac_try_echo=$ac_try;;
3939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3940 (eval "$ac_try") 2>&5
3942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943 (exit $ac_status); }; }; then
3946 echo "$as_me: program exited with status $ac_status" >&5
3947 echo "$as_me: failed program was:" >&5
3948 sed 's/^/| /' conftest.$ac_ext >&5
3951 ac_cv_header_stdc=no
3953 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3959 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3960 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3961 if test $ac_cv_header_stdc = yes; then
3963 cat >>confdefs.h <<\_ACEOF
3964 #define STDC_HEADERS 1
3969 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3979 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3980 inttypes.h stdint.h unistd.h
3982 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3983 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3985 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3986 echo $ECHO_N "(cached) $ECHO_C" >&6
3988 cat >conftest.$ac_ext <<_ACEOF
3991 cat confdefs.h >>conftest.$ac_ext
3992 cat >>conftest.$ac_ext <<_ACEOF
3993 /* end confdefs.h. */
3994 $ac_includes_default
3996 #include <$ac_header>
3998 rm -f conftest.$ac_objext
3999 if { (ac_try="$ac_compile"
4001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4002 *) ac_try_echo=$ac_try;;
4004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4005 (eval "$ac_compile") 2>conftest.er1
4007 grep -v '^ *+' conftest.er1 >conftest.err
4009 cat conftest.err >&5
4010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011 (exit $ac_status); } &&
4012 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4013 { (case "(($ac_try" in
4014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4015 *) ac_try_echo=$ac_try;;
4017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4018 (eval "$ac_try") 2>&5
4020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021 (exit $ac_status); }; } &&
4022 { ac_try='test -s conftest.$ac_objext'
4023 { (case "(($ac_try" in
4024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4025 *) ac_try_echo=$ac_try;;
4027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4028 (eval "$ac_try") 2>&5
4030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031 (exit $ac_status); }; }; then
4032 eval "$as_ac_Header=yes"
4034 echo "$as_me: failed program was:" >&5
4035 sed 's/^/| /' conftest.$ac_ext >&5
4037 eval "$as_ac_Header=no"
4040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4042 ac_res=`eval echo '${'$as_ac_Header'}'`
4043 { echo "$as_me:$LINENO: result: $ac_res" >&5
4044 echo "${ECHO_T}$ac_res" >&6; }
4045 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4046 cat >>confdefs.h <<_ACEOF
4047 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4055 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4056 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4057 if test "${ac_cv_c_bigendian+set}" = set; then
4058 echo $ECHO_N "(cached) $ECHO_C" >&6
4060 # See if sys/param.h defines the BYTE_ORDER macro.
4061 cat >conftest.$ac_ext <<_ACEOF
4064 cat confdefs.h >>conftest.$ac_ext
4065 cat >>conftest.$ac_ext <<_ACEOF
4066 /* end confdefs.h. */
4067 #include <sys/types.h>
4068 #include <sys/param.h>
4073 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4081 rm -f conftest.$ac_objext
4082 if { (ac_try="$ac_compile"
4084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4085 *) ac_try_echo=$ac_try;;
4087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4088 (eval "$ac_compile") 2>conftest.er1
4090 grep -v '^ *+' conftest.er1 >conftest.err
4092 cat conftest.err >&5
4093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094 (exit $ac_status); } &&
4095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4096 { (case "(($ac_try" in
4097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4098 *) ac_try_echo=$ac_try;;
4100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4101 (eval "$ac_try") 2>&5
4103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104 (exit $ac_status); }; } &&
4105 { ac_try='test -s conftest.$ac_objext'
4106 { (case "(($ac_try" in
4107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4108 *) ac_try_echo=$ac_try;;
4110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4111 (eval "$ac_try") 2>&5
4113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114 (exit $ac_status); }; }; then
4115 # It does; now see whether it defined to BIG_ENDIAN or not.
4116 cat >conftest.$ac_ext <<_ACEOF
4119 cat confdefs.h >>conftest.$ac_ext
4120 cat >>conftest.$ac_ext <<_ACEOF
4121 /* end confdefs.h. */
4122 #include <sys/types.h>
4123 #include <sys/param.h>
4128 #if BYTE_ORDER != BIG_ENDIAN
4136 rm -f conftest.$ac_objext
4137 if { (ac_try="$ac_compile"
4139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4140 *) ac_try_echo=$ac_try;;
4142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4143 (eval "$ac_compile") 2>conftest.er1
4145 grep -v '^ *+' conftest.er1 >conftest.err
4147 cat conftest.err >&5
4148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149 (exit $ac_status); } &&
4150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4151 { (case "(($ac_try" in
4152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4153 *) ac_try_echo=$ac_try;;
4155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4156 (eval "$ac_try") 2>&5
4158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159 (exit $ac_status); }; } &&
4160 { ac_try='test -s conftest.$ac_objext'
4161 { (case "(($ac_try" in
4162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4163 *) ac_try_echo=$ac_try;;
4165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4166 (eval "$ac_try") 2>&5
4168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169 (exit $ac_status); }; }; then
4170 ac_cv_c_bigendian=yes
4172 echo "$as_me: failed program was:" >&5
4173 sed 's/^/| /' conftest.$ac_ext >&5
4175 ac_cv_c_bigendian=no
4178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4180 echo "$as_me: failed program was:" >&5
4181 sed 's/^/| /' conftest.$ac_ext >&5
4183 # It does not; compile a test program.
4184 if test "$cross_compiling" = yes; then
4185 # try to guess the endianness by grepping values into an object file
4186 ac_cv_c_bigendian=unknown
4187 cat >conftest.$ac_ext <<_ACEOF
4190 cat confdefs.h >>conftest.$ac_ext
4191 cat >>conftest.$ac_ext <<_ACEOF
4192 /* end confdefs.h. */
4193 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4194 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4195 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4196 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4197 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4198 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4202 _ascii (); _ebcdic ();
4207 rm -f conftest.$ac_objext
4208 if { (ac_try="$ac_compile"
4210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4211 *) ac_try_echo=$ac_try;;
4213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4214 (eval "$ac_compile") 2>conftest.er1
4216 grep -v '^ *+' conftest.er1 >conftest.err
4218 cat conftest.err >&5
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); } &&
4221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4222 { (case "(($ac_try" in
4223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4224 *) ac_try_echo=$ac_try;;
4226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4227 (eval "$ac_try") 2>&5
4229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230 (exit $ac_status); }; } &&
4231 { ac_try='test -s conftest.$ac_objext'
4232 { (case "(($ac_try" in
4233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4234 *) ac_try_echo=$ac_try;;
4236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4237 (eval "$ac_try") 2>&5
4239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240 (exit $ac_status); }; }; then
4241 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4242 ac_cv_c_bigendian=yes
4244 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4245 if test "$ac_cv_c_bigendian" = unknown; then
4246 ac_cv_c_bigendian=no
4248 # finding both strings is unlikely to happen, but who knows?
4249 ac_cv_c_bigendian=unknown
4253 echo "$as_me: failed program was:" >&5
4254 sed 's/^/| /' conftest.$ac_ext >&5
4259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4261 cat >conftest.$ac_ext <<_ACEOF
4264 cat confdefs.h >>conftest.$ac_ext
4265 cat >>conftest.$ac_ext <<_ACEOF
4266 /* end confdefs.h. */
4267 $ac_includes_default
4272 /* Are we little or big endian? From Harbison&Steele. */
4276 char c[sizeof (long int)];
4279 return u.c[sizeof (long int) - 1] == 1;
4285 rm -f conftest$ac_exeext
4286 if { (ac_try="$ac_link"
4288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4289 *) ac_try_echo=$ac_try;;
4291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4292 (eval "$ac_link") 2>&5
4294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4296 { (case "(($ac_try" in
4297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4298 *) ac_try_echo=$ac_try;;
4300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4301 (eval "$ac_try") 2>&5
4303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304 (exit $ac_status); }; }; then
4305 ac_cv_c_bigendian=no
4307 echo "$as_me: program exited with status $ac_status" >&5
4308 echo "$as_me: failed program was:" >&5
4309 sed 's/^/| /' conftest.$ac_ext >&5
4312 ac_cv_c_bigendian=yes
4314 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4322 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4323 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4324 case $ac_cv_c_bigendian in
4332 { { echo "$as_me:$LINENO: error: unknown endianness
4333 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4334 echo "$as_me: error: unknown endianness
4335 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4336 { (exit 1); exit 1; }; } ;;
4340 if test "$cross_compiling" = yes; then
4341 LLVM_CROSS_COMPILING=1
4344 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4345 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4346 if test "${ac_cv_build_exeext+set}" = set; then
4347 echo $ECHO_N "(cached) $ECHO_C" >&6
4349 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4350 ac_cv_build_exeext=.exe
4352 ac_build_prefix=${build_alias}-
4354 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4355 set dummy ${ac_build_prefix}gcc; ac_word=$2
4356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4358 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4359 echo $ECHO_N "(cached) $ECHO_C" >&6
4361 if test -n "$BUILD_CC"; then
4362 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4368 test -z "$as_dir" && as_dir=.
4369 for ac_exec_ext in '' $ac_executable_extensions; do
4370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4371 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4381 BUILD_CC=$ac_cv_prog_BUILD_CC
4382 if test -n "$BUILD_CC"; then
4383 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4384 echo "${ECHO_T}$BUILD_CC" >&6; }
4386 { echo "$as_me:$LINENO: result: no" >&5
4387 echo "${ECHO_T}no" >&6; }
4391 if test -z "$BUILD_CC"; then
4392 # Extract the first word of "gcc", so it can be a program name with args.
4393 set dummy gcc; ac_word=$2
4394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4396 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4397 echo $ECHO_N "(cached) $ECHO_C" >&6
4399 if test -n "$BUILD_CC"; then
4400 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4406 test -z "$as_dir" && as_dir=.
4407 for ac_exec_ext in '' $ac_executable_extensions; do
4408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4409 ac_cv_prog_BUILD_CC="gcc"
4410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4419 BUILD_CC=$ac_cv_prog_BUILD_CC
4420 if test -n "$BUILD_CC"; then
4421 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4422 echo "${ECHO_T}$BUILD_CC" >&6; }
4424 { echo "$as_me:$LINENO: result: no" >&5
4425 echo "${ECHO_T}no" >&6; }
4429 if test -z "$BUILD_CC"; then
4430 # Extract the first word of "cc", so it can be a program name with args.
4431 set dummy cc; ac_word=$2
4432 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4434 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4435 echo $ECHO_N "(cached) $ECHO_C" >&6
4437 if test -n "$BUILD_CC"; then
4438 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4445 test -z "$as_dir" && as_dir=.
4446 for ac_exec_ext in '' $ac_executable_extensions; do
4447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4448 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4449 ac_prog_rejected=yes
4452 ac_cv_prog_BUILD_CC="cc"
4453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4460 if test $ac_prog_rejected = yes; then
4461 # We found a bogon in the path, so make sure we never use it.
4462 set dummy $ac_cv_prog_BUILD_CC
4464 if test $# != 0; then
4465 # We chose a different compiler from the bogus one.
4466 # However, it has the same basename, so the bogon will be chosen
4467 # first if we set BUILD_CC to just the basename; use the full file name.
4469 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4474 BUILD_CC=$ac_cv_prog_BUILD_CC
4475 if test -n "$BUILD_CC"; then
4476 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4477 echo "${ECHO_T}$BUILD_CC" >&6; }
4479 { echo "$as_me:$LINENO: result: no" >&5
4480 echo "${ECHO_T}no" >&6; }
4486 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4487 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4488 { (exit 1); exit 1; }; }
4489 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4491 echo 'int main () { return 0; }' > conftest.$ac_ext
4493 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4494 (eval $ac_build_link) 2>&5
4496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497 (exit $ac_status); }; then
4498 for file in conftest.*; do
4500 *.c | *.o | *.obj | *.dSYM) ;;
4501 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4505 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4506 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4507 { (exit 1); exit 1; }; }
4510 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4515 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4516 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4517 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4518 ac_build_exeext=$BUILD_EXEEXT
4520 ac_build_prefix=${build_alias}-
4521 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4522 set dummy ${ac_build_prefix}g++; ac_word=$2
4523 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4525 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4526 echo $ECHO_N "(cached) $ECHO_C" >&6
4528 if test -n "$BUILD_CXX"; then
4529 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4535 test -z "$as_dir" && as_dir=.
4536 for ac_exec_ext in '' $ac_executable_extensions; do
4537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4538 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4548 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4549 if test -n "$BUILD_CXX"; then
4550 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4551 echo "${ECHO_T}$BUILD_CXX" >&6; }
4553 { echo "$as_me:$LINENO: result: no" >&5
4554 echo "${ECHO_T}no" >&6; }
4558 if test -z "$BUILD_CXX"; then
4559 # Extract the first word of "g++", so it can be a program name with args.
4560 set dummy g++; ac_word=$2
4561 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4563 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4564 echo $ECHO_N "(cached) $ECHO_C" >&6
4566 if test -n "$BUILD_CXX"; then
4567 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4573 test -z "$as_dir" && as_dir=.
4574 for ac_exec_ext in '' $ac_executable_extensions; do
4575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4576 ac_cv_prog_BUILD_CXX="g++"
4577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4586 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4587 if test -n "$BUILD_CXX"; then
4588 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4589 echo "${ECHO_T}$BUILD_CXX" >&6; }
4591 { echo "$as_me:$LINENO: result: no" >&5
4592 echo "${ECHO_T}no" >&6; }
4596 if test -z "$BUILD_CXX"; then
4597 # Extract the first word of "c++", so it can be a program name with args.
4598 set dummy c++; ac_word=$2
4599 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4601 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4602 echo $ECHO_N "(cached) $ECHO_C" >&6
4604 if test -n "$BUILD_CXX"; then
4605 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4612 test -z "$as_dir" && as_dir=.
4613 for ac_exec_ext in '' $ac_executable_extensions; do
4614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4615 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4616 ac_prog_rejected=yes
4619 ac_cv_prog_BUILD_CXX="c++"
4620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4627 if test $ac_prog_rejected = yes; then
4628 # We found a bogon in the path, so make sure we never use it.
4629 set dummy $ac_cv_prog_BUILD_CXX
4631 if test $# != 0; then
4632 # We chose a different compiler from the bogus one.
4633 # However, it has the same basename, so the bogon will be chosen
4634 # first if we set BUILD_CXX to just the basename; use the full file name.
4636 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4641 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4642 if test -n "$BUILD_CXX"; then
4643 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4644 echo "${ECHO_T}$BUILD_CXX" >&6; }
4646 { echo "$as_me:$LINENO: result: no" >&5
4647 echo "${ECHO_T}no" >&6; }
4654 LLVM_CROSS_COMPILING=0
4658 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4669 # Check whether --enable-optimized was given.
4670 if test "${enable_optimized+set}" = set; then
4671 enableval=$enable_optimized;
4676 if test ${enableval} = "no" ; then
4680 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4684 # Check whether --enable-profiling was given.
4685 if test "${enable_profiling+set}" = set; then
4686 enableval=$enable_profiling;
4691 if test ${enableval} = "no" ; then
4695 ENABLE_PROFILING=ENABLE_PROFILING=1
4699 # Check whether --enable-assertions was given.
4700 if test "${enable_assertions+set}" = set; then
4701 enableval=$enable_assertions;
4706 if test ${enableval} = "yes" ; then
4710 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4714 # Check whether --enable-expensive-checks was given.
4715 if test "${enable_expensive_checks+set}" = set; then
4716 enableval=$enable_expensive_checks;
4721 if test ${enableval} = "yes" ; then
4722 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4724 EXPENSIVE_CHECKS=yes
4727 ENABLE_EXPENSIVE_CHECKS=
4733 # Check whether --enable-debug-runtime was given.
4734 if test "${enable_debug_runtime+set}" = set; then
4735 enableval=$enable_debug_runtime;
4740 if test ${enableval} = "no" ; then
4744 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4748 # Check whether --enable-debug-symbols was given.
4749 if test "${enable_debug_symbols+set}" = set; then
4750 enableval=$enable_debug_symbols;
4755 if test ${enableval} = "no" ; then
4759 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4763 # Check whether --enable-jit was given.
4764 if test "${enable_jit+set}" = set; then
4765 enableval=$enable_jit;
4770 if test ${enableval} = "no"
4775 case "$llvm_cv_target_arch" in
4776 x86) TARGET_HAS_JIT=1
4778 Sparc) TARGET_HAS_JIT=0
4780 PowerPC) TARGET_HAS_JIT=1
4782 x86_64) TARGET_HAS_JIT=1
4784 Alpha) TARGET_HAS_JIT=1
4786 ARM) TARGET_HAS_JIT=1
4788 Mips) TARGET_HAS_JIT=0
4790 PIC16) TARGET_HAS_JIT=0
4792 XCore) TARGET_HAS_JIT=0
4794 MSP430) TARGET_HAS_JIT=0
4796 SystemZ) TARGET_HAS_JIT=0
4798 Blackfin) TARGET_HAS_JIT=0
4800 MBlaze) TARGET_HAS_JIT=0
4807 # Check whether --enable-doxygen was given.
4808 if test "${enable_doxygen+set}" = set; then
4809 enableval=$enable_doxygen;
4814 case "$enableval" in
4815 yes) ENABLE_DOXYGEN=1
4817 no) ENABLE_DOXYGEN=0
4819 default) ENABLE_DOXYGEN=0
4821 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4822 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4823 { (exit 1); exit 1; }; } ;;
4826 # Check whether --enable-threads was given.
4827 if test "${enable_threads+set}" = set; then
4828 enableval=$enable_threads;
4833 case "$enableval" in
4834 yes) ENABLE_THREADS=1
4836 no) ENABLE_THREADS=0
4838 default) ENABLE_THREADS=1
4840 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4841 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4842 { (exit 1); exit 1; }; } ;;
4845 cat >>confdefs.h <<_ACEOF
4846 #define ENABLE_THREADS $ENABLE_THREADS
4850 # Check whether --enable-pic was given.
4851 if test "${enable_pic+set}" = set; then
4852 enableval=$enable_pic;
4857 case "$enableval" in
4862 default) ENABLE_PIC=1
4864 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4865 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4866 { (exit 1); exit 1; }; } ;;
4869 cat >>confdefs.h <<_ACEOF
4870 #define ENABLE_PIC $ENABLE_PIC
4874 # Check whether --enable-shared was given.
4875 if test "${enable_shared+set}" = set; then
4876 enableval=$enable_shared;
4881 case "$enableval" in
4882 yes) ENABLE_SHARED=1
4886 default) ENABLE_SHARED=0
4888 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4889 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4890 { (exit 1); exit 1; }; } ;;
4894 # Check whether --enable-targets was given.
4895 if test "${enable_targets+set}" = set; then
4896 enableval=$enable_targets;
4901 if test "$enableval" = host-only ; then
4904 case "$enableval" in
4905 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend MBlaze" ;;
4906 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4908 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4909 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4910 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4911 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4912 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4913 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4914 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4915 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4916 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4917 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4918 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4919 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4920 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4921 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4922 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4923 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4924 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4925 host) case "$llvm_cv_target_arch" in
4926 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4927 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4928 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4929 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4930 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4931 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4932 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4933 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4934 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4935 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4936 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4937 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4938 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4939 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4940 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4941 echo "$as_me: error: Can not set target to build" >&2;}
4942 { (exit 1); exit 1; }; } ;;
4944 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4945 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4946 { (exit 1); exit 1; }; } ;;
4951 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4954 # Determine whether we are building LLVM support for the native architecture.
4955 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
4956 for a_target in $TARGETS_TO_BUILD; do
4957 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
4958 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
4960 cat >>confdefs.h <<_ACEOF
4961 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
4967 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
4968 # target feature def files.
4969 LLVM_ENUM_TARGETS=""
4970 LLVM_ENUM_ASM_PRINTERS=""
4971 LLVM_ENUM_ASM_PARSERS=""
4972 LLVM_ENUM_DISASSEMBLERS=""
4973 for target_to_build in $TARGETS_TO_BUILD; do
4974 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
4975 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
4976 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
4978 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
4979 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
4981 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
4982 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
4990 # Check whether --enable-cbe-printf-a was given.
4991 if test "${enable_cbe_printf_a+set}" = set; then
4992 enableval=$enable_cbe_printf_a;
4997 case "$enableval" in
4998 yes) ENABLE_CBE_PRINTF_A=1
5000 no) ENABLE_CBE_PRINTF_A=0
5002 default) ENABLE_CBE_PRINTF_A=1
5004 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5005 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5006 { (exit 1); exit 1; }; } ;;
5009 cat >>confdefs.h <<_ACEOF
5010 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5015 # Check whether --with-llvmgccdir was given.
5016 if test "${with_llvmgccdir+set}" = set; then
5017 withval=$with_llvmgccdir;
5023 default) WITH_LLVMGCCDIR=default ;;
5024 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5025 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5026 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5027 { (exit 1); exit 1; }; } ;;
5031 # Check whether --with-llvmgcc was given.
5032 if test "${with_llvmgcc+set}" = set; then
5033 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5039 # Check whether --with-llvmgxx was given.
5040 if test "${with_llvmgxx+set}" = set; then
5041 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5046 if test -n "$LLVMGCC"; then
5047 LLVMGCCCOMMAND="$LLVMGCC"
5050 if test -n "$LLVMGXX"; then
5051 LLVMGXXCOMMAND="$LLVMGXX"
5054 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5055 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5056 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5057 { (exit 1); exit 1; }; };
5060 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5061 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5062 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5063 { (exit 1); exit 1; }; };
5067 # Check whether --with-clang was given.
5068 if test "${with_clang+set}" = set; then
5069 withval=$with_clang;
5076 # Check whether --with-built-clang was given.
5077 if test "${with_built_clang+set}" = set; then
5078 withval=$with_built_clang;
5080 with_built_clang=check
5084 { echo "$as_me:$LINENO: checking clang compiler" >&5
5085 echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5088 if test "$with_clang" != "default"; then
5089 WITH_CLANGPATH="$with_clang"
5090 if ! test -x "$WITH_CLANGPATH"; then
5091 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5092 echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5093 { (exit 1); exit 1; }; }
5095 elif test "$with_built_clang" = "yes"; then
5097 elif test "$with_built_clang" = "no"; then
5100 if test "$with_built_clang" != "check"; then
5101 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5102 echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5103 { (exit 1); exit 1; }; }
5106 if test -f ${srcdir}/tools/clang/README.txt; then
5111 if ! test -z "$WITH_CLANGPATH"; then
5112 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5113 echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5114 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5115 elif test "$WITH_BUILT_CLANG" = "1"; then
5116 { echo "$as_me:$LINENO: result: built" >&5
5117 echo "${ECHO_T}built" >&6; }
5119 { echo "$as_me:$LINENO: result: none" >&5
5120 echo "${ECHO_T}none" >&6; }
5122 CLANGPATH=$WITH_CLANGPATH
5124 CLANGXXPATH=$WITH_CLANGXXPATH
5126 ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5130 # Check whether --with-optimize-option was given.
5131 if test "${with_optimize_option+set}" = set; then
5132 withval=$with_optimize_option;
5137 { echo "$as_me:$LINENO: checking optimization flags" >&5
5138 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5141 case "$llvm_cv_os_type" in
5142 MingW) optimize_option=-O3 ;;
5143 *) optimize_option=-O2 ;;
5145 *) optimize_option="$withval" ;;
5147 OPTIMIZE_OPTION=$optimize_option
5149 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5150 echo "${ECHO_T}$optimize_option" >&6; }
5153 # Check whether --with-extra-options was given.
5154 if test "${with_extra_options+set}" = set; then
5155 withval=$with_extra_options;
5161 default) EXTRA_OPTIONS= ;;
5162 *) EXTRA_OPTIONS=$withval ;;
5164 EXTRA_OPTIONS=$EXTRA_OPTIONS
5167 # Check whether --enable-bindings was given.
5168 if test "${enable_bindings+set}" = set; then
5169 enableval=$enable_bindings;
5174 BINDINGS_TO_BUILD=""
5175 case "$enableval" in
5176 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5177 all ) BINDINGS_TO_BUILD="ocaml" ;;
5178 none | no) BINDINGS_TO_BUILD="" ;;
5179 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5180 case "$a_binding" in
5181 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5182 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5183 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5184 { (exit 1); exit 1; }; } ;;
5191 # Check whether --with-ocaml-libdir was given.
5192 if test "${with_ocaml_libdir+set}" = set; then
5193 withval=$with_ocaml_libdir;
5199 auto) with_ocaml_libdir="$withval" ;;
5200 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5201 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5202 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5203 { (exit 1); exit 1; }; } ;;
5207 # Check whether --with-c-include-dirs was given.
5208 if test "${with_c_include_dirs+set}" = set; then
5209 withval=$with_c_include_dirs;
5215 cat >>confdefs.h <<_ACEOF
5216 #define C_INCLUDE_DIRS "$withval"
5221 # Check whether --with-cxx-include-root was given.
5222 if test "${with_cxx_include_root+set}" = set; then
5223 withval=$with_cxx_include_root;
5229 cat >>confdefs.h <<_ACEOF
5230 #define CXX_INCLUDE_ROOT "$withval"
5235 # Check whether --with-cxx-include-arch was given.
5236 if test "${with_cxx_include_arch+set}" = set; then
5237 withval=$with_cxx_include_arch;
5243 cat >>confdefs.h <<_ACEOF
5244 #define CXX_INCLUDE_ARCH "$withval"
5249 # Check whether --with-cxx-include-32bit-dir was given.
5250 if test "${with_cxx_include_32bit_dir+set}" = set; then
5251 withval=$with_cxx_include_32bit_dir;
5257 cat >>confdefs.h <<_ACEOF
5258 #define CXX_INCLUDE_32BIT_DIR "$withval"
5263 # Check whether --with-cxx-include-64bit-dir was given.
5264 if test "${with_cxx_include_64bit_dir+set}" = set; then
5265 withval=$with_cxx_include_64bit_dir;
5271 cat >>confdefs.h <<_ACEOF
5272 #define CXX_INCLUDE_64BIT_DIR "$withval"
5277 # Check whether --with-binutils-include was given.
5278 if test "${with_binutils_include+set}" = set; then
5279 withval=$with_binutils_include;
5285 default) WITH_BINUTILS_INCDIR=default ;;
5286 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5287 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5288 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5289 { (exit 1); exit 1; }; } ;;
5291 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5292 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5294 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5295 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5296 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5297 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5298 { (exit 1); exit 1; }; };
5302 # Check whether --enable-libffi was given.
5303 if test "${enable_libffi+set}" = set; then
5304 enableval=$enable_libffi; case "$enableval" in
5305 yes) llvm_cv_enable_libffi="yes" ;;
5306 no) llvm_cv_enable_libffi="no" ;;
5307 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5308 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5309 { (exit 1); exit 1; }; } ;;
5312 llvm_cv_enable_libffi=no
5316 if test "$llvm_cv_os_type" = "Win32" ; then
5322 # Check whether --enable-llvmc-dynamic was given.
5323 if test "${enable_llvmc_dynamic+set}" = set; then
5324 enableval=$enable_llvmc_dynamic;
5326 enableval=$llvmc_dynamic
5329 if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5330 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5333 ENABLE_LLVMC_DYNAMIC=
5337 # Check whether --enable-llvmc-dynamic-plugins was given.
5338 if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5339 enableval=$enable_llvmc_dynamic_plugins;
5344 if test ${enableval} = "yes" ; then
5345 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5348 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5354 ac_cpp='$CPP $CPPFLAGS'
5355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5358 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5359 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5360 # On Suns, sometimes $CPP names a directory.
5361 if test -n "$CPP" && test -d "$CPP"; then
5364 if test -z "$CPP"; then
5365 if test "${ac_cv_prog_CPP+set}" = set; then
5366 echo $ECHO_N "(cached) $ECHO_C" >&6
5368 # Double quotes because CPP needs to be expanded
5369 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5372 for ac_c_preproc_warn_flag in '' yes
5374 # Use a header file that comes with gcc, so configuring glibc
5375 # with a fresh cross-compiler works.
5376 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5377 # <limits.h> exists even on freestanding compilers.
5378 # On the NeXT, cc -E runs the code through the compiler's parser,
5379 # not just through cpp. "Syntax error" is here to catch this case.
5380 cat >conftest.$ac_ext <<_ACEOF
5383 cat confdefs.h >>conftest.$ac_ext
5384 cat >>conftest.$ac_ext <<_ACEOF
5385 /* end confdefs.h. */
5387 # include <limits.h>
5389 # include <assert.h>
5393 if { (ac_try="$ac_cpp conftest.$ac_ext"
5395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5396 *) ac_try_echo=$ac_try;;
5398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5399 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5401 grep -v '^ *+' conftest.er1 >conftest.err
5403 cat conftest.err >&5
5404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405 (exit $ac_status); } >/dev/null; then
5406 if test -s conftest.err; then
5407 ac_cpp_err=$ac_c_preproc_warn_flag
5408 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5415 if test -z "$ac_cpp_err"; then
5418 echo "$as_me: failed program was:" >&5
5419 sed 's/^/| /' conftest.$ac_ext >&5
5421 # Broken: fails on valid input.
5425 rm -f conftest.err conftest.$ac_ext
5427 # OK, works on sane cases. Now check whether nonexistent headers
5428 # can be detected and how.
5429 cat >conftest.$ac_ext <<_ACEOF
5432 cat confdefs.h >>conftest.$ac_ext
5433 cat >>conftest.$ac_ext <<_ACEOF
5434 /* end confdefs.h. */
5435 #include <ac_nonexistent.h>
5437 if { (ac_try="$ac_cpp conftest.$ac_ext"
5439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5440 *) ac_try_echo=$ac_try;;
5442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5443 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5445 grep -v '^ *+' conftest.er1 >conftest.err
5447 cat conftest.err >&5
5448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449 (exit $ac_status); } >/dev/null; then
5450 if test -s conftest.err; then
5451 ac_cpp_err=$ac_c_preproc_warn_flag
5452 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5459 if test -z "$ac_cpp_err"; then
5460 # Broken: success on invalid input.
5463 echo "$as_me: failed program was:" >&5
5464 sed 's/^/| /' conftest.$ac_ext >&5
5466 # Passes both tests.
5471 rm -f conftest.err conftest.$ac_ext
5474 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5475 rm -f conftest.err conftest.$ac_ext
5476 if $ac_preproc_ok; then
5488 { echo "$as_me:$LINENO: result: $CPP" >&5
5489 echo "${ECHO_T}$CPP" >&6; }
5491 for ac_c_preproc_warn_flag in '' yes
5493 # Use a header file that comes with gcc, so configuring glibc
5494 # with a fresh cross-compiler works.
5495 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5496 # <limits.h> exists even on freestanding compilers.
5497 # On the NeXT, cc -E runs the code through the compiler's parser,
5498 # not just through cpp. "Syntax error" is here to catch this case.
5499 cat >conftest.$ac_ext <<_ACEOF
5502 cat confdefs.h >>conftest.$ac_ext
5503 cat >>conftest.$ac_ext <<_ACEOF
5504 /* end confdefs.h. */
5506 # include <limits.h>
5508 # include <assert.h>
5512 if { (ac_try="$ac_cpp conftest.$ac_ext"
5514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5515 *) ac_try_echo=$ac_try;;
5517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5518 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5520 grep -v '^ *+' conftest.er1 >conftest.err
5522 cat conftest.err >&5
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); } >/dev/null; then
5525 if test -s conftest.err; then
5526 ac_cpp_err=$ac_c_preproc_warn_flag
5527 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5534 if test -z "$ac_cpp_err"; then
5537 echo "$as_me: failed program was:" >&5
5538 sed 's/^/| /' conftest.$ac_ext >&5
5540 # Broken: fails on valid input.
5544 rm -f conftest.err conftest.$ac_ext
5546 # OK, works on sane cases. Now check whether nonexistent headers
5547 # can be detected and how.
5548 cat >conftest.$ac_ext <<_ACEOF
5551 cat confdefs.h >>conftest.$ac_ext
5552 cat >>conftest.$ac_ext <<_ACEOF
5553 /* end confdefs.h. */
5554 #include <ac_nonexistent.h>
5556 if { (ac_try="$ac_cpp conftest.$ac_ext"
5558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5559 *) ac_try_echo=$ac_try;;
5561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5562 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5564 grep -v '^ *+' conftest.er1 >conftest.err
5566 cat conftest.err >&5
5567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568 (exit $ac_status); } >/dev/null; then
5569 if test -s conftest.err; then
5570 ac_cpp_err=$ac_c_preproc_warn_flag
5571 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5578 if test -z "$ac_cpp_err"; then
5579 # Broken: success on invalid input.
5582 echo "$as_me: failed program was:" >&5
5583 sed 's/^/| /' conftest.$ac_ext >&5
5585 # Passes both tests.
5590 rm -f conftest.err conftest.$ac_ext
5593 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5594 rm -f conftest.err conftest.$ac_ext
5595 if $ac_preproc_ok; then
5598 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5599 See \`config.log' for more details." >&5
5600 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5601 See \`config.log' for more details." >&2;}
5602 { (exit 1); exit 1; }; }
5606 ac_cpp='$CPP $CPPFLAGS'
5607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5612 ac_cpp='$CPP $CPPFLAGS'
5613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5616 if test -n "$ac_tool_prefix"; then
5619 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5620 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5621 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5623 if test "${ac_cv_prog_CC+set}" = set; then
5624 echo $ECHO_N "(cached) $ECHO_C" >&6
5626 if test -n "$CC"; then
5627 ac_cv_prog_CC="$CC" # Let the user override the test.
5629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5633 test -z "$as_dir" && as_dir=.
5634 for ac_exec_ext in '' $ac_executable_extensions; do
5635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5636 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5647 if test -n "$CC"; then
5648 { echo "$as_me:$LINENO: result: $CC" >&5
5649 echo "${ECHO_T}$CC" >&6; }
5651 { echo "$as_me:$LINENO: result: no" >&5
5652 echo "${ECHO_T}no" >&6; }
5656 test -n "$CC" && break
5659 if test -z "$CC"; then
5663 # Extract the first word of "$ac_prog", so it can be a program name with args.
5664 set dummy $ac_prog; ac_word=$2
5665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5667 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5668 echo $ECHO_N "(cached) $ECHO_C" >&6
5670 if test -n "$ac_ct_CC"; then
5671 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5677 test -z "$as_dir" && as_dir=.
5678 for ac_exec_ext in '' $ac_executable_extensions; do
5679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5680 ac_cv_prog_ac_ct_CC="$ac_prog"
5681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5690 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5691 if test -n "$ac_ct_CC"; then
5692 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5693 echo "${ECHO_T}$ac_ct_CC" >&6; }
5695 { echo "$as_me:$LINENO: result: no" >&5
5696 echo "${ECHO_T}no" >&6; }
5700 test -n "$ac_ct_CC" && break
5703 if test "x$ac_ct_CC" = x; then
5706 case $cross_compiling:$ac_tool_warned in
5708 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5709 whose name does not start with the host triplet. If you think this
5710 configuration is useful to you, please write to autoconf@gnu.org." >&5
5711 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5712 whose name does not start with the host triplet. If you think this
5713 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5714 ac_tool_warned=yes ;;
5721 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5722 See \`config.log' for more details." >&5
5723 echo "$as_me: error: no acceptable C compiler found in \$PATH
5724 See \`config.log' for more details." >&2;}
5725 { (exit 1); exit 1; }; }
5727 # Provide some information about the compiler.
5728 echo "$as_me:$LINENO: checking for C compiler version" >&5
5729 ac_compiler=`set X $ac_compile; echo $2`
5730 { (ac_try="$ac_compiler --version >&5"
5732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5733 *) ac_try_echo=$ac_try;;
5735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5736 (eval "$ac_compiler --version >&5") 2>&5
5738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739 (exit $ac_status); }
5740 { (ac_try="$ac_compiler -v >&5"
5742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5743 *) ac_try_echo=$ac_try;;
5745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5746 (eval "$ac_compiler -v >&5") 2>&5
5748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749 (exit $ac_status); }
5750 { (ac_try="$ac_compiler -V >&5"
5752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5753 *) ac_try_echo=$ac_try;;
5755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5756 (eval "$ac_compiler -V >&5") 2>&5
5758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759 (exit $ac_status); }
5761 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5762 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5763 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5764 echo $ECHO_N "(cached) $ECHO_C" >&6
5766 cat >conftest.$ac_ext <<_ACEOF
5769 cat confdefs.h >>conftest.$ac_ext
5770 cat >>conftest.$ac_ext <<_ACEOF
5771 /* end confdefs.h. */
5784 rm -f conftest.$ac_objext
5785 if { (ac_try="$ac_compile"
5787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5788 *) ac_try_echo=$ac_try;;
5790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5791 (eval "$ac_compile") 2>conftest.er1
5793 grep -v '^ *+' conftest.er1 >conftest.err
5795 cat conftest.err >&5
5796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797 (exit $ac_status); } &&
5798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5799 { (case "(($ac_try" in
5800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5801 *) ac_try_echo=$ac_try;;
5803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5804 (eval "$ac_try") 2>&5
5806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807 (exit $ac_status); }; } &&
5808 { ac_try='test -s conftest.$ac_objext'
5809 { (case "(($ac_try" in
5810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5811 *) ac_try_echo=$ac_try;;
5813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5814 (eval "$ac_try") 2>&5
5816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817 (exit $ac_status); }; }; then
5820 echo "$as_me: failed program was:" >&5
5821 sed 's/^/| /' conftest.$ac_ext >&5
5826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5827 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5830 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5831 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5832 GCC=`test $ac_compiler_gnu = yes && echo yes`
5833 ac_test_CFLAGS=${CFLAGS+set}
5834 ac_save_CFLAGS=$CFLAGS
5835 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5836 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5837 if test "${ac_cv_prog_cc_g+set}" = set; then
5838 echo $ECHO_N "(cached) $ECHO_C" >&6
5840 ac_save_c_werror_flag=$ac_c_werror_flag
5841 ac_c_werror_flag=yes
5844 cat >conftest.$ac_ext <<_ACEOF
5847 cat confdefs.h >>conftest.$ac_ext
5848 cat >>conftest.$ac_ext <<_ACEOF
5849 /* end confdefs.h. */
5859 rm -f conftest.$ac_objext
5860 if { (ac_try="$ac_compile"
5862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5863 *) ac_try_echo=$ac_try;;
5865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5866 (eval "$ac_compile") 2>conftest.er1
5868 grep -v '^ *+' conftest.er1 >conftest.err
5870 cat conftest.err >&5
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); } &&
5873 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5874 { (case "(($ac_try" in
5875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5876 *) ac_try_echo=$ac_try;;
5878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5879 (eval "$ac_try") 2>&5
5881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882 (exit $ac_status); }; } &&
5883 { ac_try='test -s conftest.$ac_objext'
5884 { (case "(($ac_try" in
5885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5886 *) ac_try_echo=$ac_try;;
5888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5889 (eval "$ac_try") 2>&5
5891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892 (exit $ac_status); }; }; then
5895 echo "$as_me: failed program was:" >&5
5896 sed 's/^/| /' conftest.$ac_ext >&5
5899 cat >conftest.$ac_ext <<_ACEOF
5902 cat confdefs.h >>conftest.$ac_ext
5903 cat >>conftest.$ac_ext <<_ACEOF
5904 /* end confdefs.h. */
5914 rm -f conftest.$ac_objext
5915 if { (ac_try="$ac_compile"
5917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5918 *) ac_try_echo=$ac_try;;
5920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5921 (eval "$ac_compile") 2>conftest.er1
5923 grep -v '^ *+' conftest.er1 >conftest.err
5925 cat conftest.err >&5
5926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927 (exit $ac_status); } &&
5928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5929 { (case "(($ac_try" in
5930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5931 *) ac_try_echo=$ac_try;;
5933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5934 (eval "$ac_try") 2>&5
5936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937 (exit $ac_status); }; } &&
5938 { ac_try='test -s conftest.$ac_objext'
5939 { (case "(($ac_try" in
5940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5941 *) ac_try_echo=$ac_try;;
5943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5944 (eval "$ac_try") 2>&5
5946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947 (exit $ac_status); }; }; then
5950 echo "$as_me: failed program was:" >&5
5951 sed 's/^/| /' conftest.$ac_ext >&5
5953 ac_c_werror_flag=$ac_save_c_werror_flag
5955 cat >conftest.$ac_ext <<_ACEOF
5958 cat confdefs.h >>conftest.$ac_ext
5959 cat >>conftest.$ac_ext <<_ACEOF
5960 /* end confdefs.h. */
5970 rm -f conftest.$ac_objext
5971 if { (ac_try="$ac_compile"
5973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5974 *) ac_try_echo=$ac_try;;
5976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5977 (eval "$ac_compile") 2>conftest.er1
5979 grep -v '^ *+' conftest.er1 >conftest.err
5981 cat conftest.err >&5
5982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983 (exit $ac_status); } &&
5984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5985 { (case "(($ac_try" in
5986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5987 *) ac_try_echo=$ac_try;;
5989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5990 (eval "$ac_try") 2>&5
5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993 (exit $ac_status); }; } &&
5994 { ac_try='test -s conftest.$ac_objext'
5995 { (case "(($ac_try" in
5996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5997 *) ac_try_echo=$ac_try;;
5999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6000 (eval "$ac_try") 2>&5
6002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003 (exit $ac_status); }; }; then
6006 echo "$as_me: failed program was:" >&5
6007 sed 's/^/| /' conftest.$ac_ext >&5
6012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6019 ac_c_werror_flag=$ac_save_c_werror_flag
6021 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6022 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6023 if test "$ac_test_CFLAGS" = set; then
6024 CFLAGS=$ac_save_CFLAGS
6025 elif test $ac_cv_prog_cc_g = yes; then
6026 if test "$GCC" = yes; then
6032 if test "$GCC" = yes; then
6038 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6039 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6040 if test "${ac_cv_prog_cc_c89+set}" = set; then
6041 echo $ECHO_N "(cached) $ECHO_C" >&6
6043 ac_cv_prog_cc_c89=no
6045 cat >conftest.$ac_ext <<_ACEOF
6048 cat confdefs.h >>conftest.$ac_ext
6049 cat >>conftest.$ac_ext <<_ACEOF
6050 /* end confdefs.h. */
6053 #include <sys/types.h>
6054 #include <sys/stat.h>
6055 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6056 struct buf { int x; };
6057 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6058 static char *e (p, i)
6064 static char *f (char * (*g) (char **, int), char **p, ...)
6069 s = g (p, va_arg (v,int));
6074 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6075 function prototypes and stuff, but not '\xHH' hex character constants.
6076 These don't provoke an error unfortunately, instead are silently treated
6077 as 'x'. The following induces an error, until -std is added to get
6078 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6079 array size at least. It's necessary to write '\x00'==0 to get something
6080 that's true only with -std. */
6081 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6083 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6084 inside strings and character constants. */
6086 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6088 int test (int i, double x);
6089 struct s1 {int (*f) (int a);};
6090 struct s2 {int (*f) (double a);};
6091 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6097 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6102 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6103 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6105 CC="$ac_save_CC $ac_arg"
6106 rm -f conftest.$ac_objext
6107 if { (ac_try="$ac_compile"
6109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6110 *) ac_try_echo=$ac_try;;
6112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6113 (eval "$ac_compile") 2>conftest.er1
6115 grep -v '^ *+' conftest.er1 >conftest.err
6117 cat conftest.err >&5
6118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119 (exit $ac_status); } &&
6120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6121 { (case "(($ac_try" in
6122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6123 *) ac_try_echo=$ac_try;;
6125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6126 (eval "$ac_try") 2>&5
6128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); }; } &&
6130 { ac_try='test -s conftest.$ac_objext'
6131 { (case "(($ac_try" in
6132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6133 *) ac_try_echo=$ac_try;;
6135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6136 (eval "$ac_try") 2>&5
6138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139 (exit $ac_status); }; }; then
6140 ac_cv_prog_cc_c89=$ac_arg
6142 echo "$as_me: failed program was:" >&5
6143 sed 's/^/| /' conftest.$ac_ext >&5
6148 rm -f core conftest.err conftest.$ac_objext
6149 test "x$ac_cv_prog_cc_c89" != "xno" && break
6151 rm -f conftest.$ac_ext
6156 case "x$ac_cv_prog_cc_c89" in
6158 { echo "$as_me:$LINENO: result: none needed" >&5
6159 echo "${ECHO_T}none needed" >&6; } ;;
6161 { echo "$as_me:$LINENO: result: unsupported" >&5
6162 echo "${ECHO_T}unsupported" >&6; } ;;
6164 CC="$CC $ac_cv_prog_cc_c89"
6165 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6166 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6171 ac_cpp='$CPP $CPPFLAGS'
6172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6177 ac_cpp='$CXXCPP $CPPFLAGS'
6178 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6179 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6180 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6181 if test -z "$CXX"; then
6182 if test -n "$CCC"; then
6185 if test -n "$ac_tool_prefix"; then
6188 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6189 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6190 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6192 if test "${ac_cv_prog_CXX+set}" = set; then
6193 echo $ECHO_N "(cached) $ECHO_C" >&6
6195 if test -n "$CXX"; then
6196 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6202 test -z "$as_dir" && as_dir=.
6203 for ac_exec_ext in '' $ac_executable_extensions; do
6204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6205 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6216 if test -n "$CXX"; then
6217 { echo "$as_me:$LINENO: result: $CXX" >&5
6218 echo "${ECHO_T}$CXX" >&6; }
6220 { echo "$as_me:$LINENO: result: no" >&5
6221 echo "${ECHO_T}no" >&6; }
6225 test -n "$CXX" && break
6228 if test -z "$CXX"; then
6232 # Extract the first word of "$ac_prog", so it can be a program name with args.
6233 set dummy $ac_prog; ac_word=$2
6234 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6236 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6237 echo $ECHO_N "(cached) $ECHO_C" >&6
6239 if test -n "$ac_ct_CXX"; then
6240 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6246 test -z "$as_dir" && as_dir=.
6247 for ac_exec_ext in '' $ac_executable_extensions; do
6248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6249 ac_cv_prog_ac_ct_CXX="$ac_prog"
6250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6259 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6260 if test -n "$ac_ct_CXX"; then
6261 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6262 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6264 { echo "$as_me:$LINENO: result: no" >&5
6265 echo "${ECHO_T}no" >&6; }
6269 test -n "$ac_ct_CXX" && break
6272 if test "x$ac_ct_CXX" = x; then
6275 case $cross_compiling:$ac_tool_warned in
6277 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6278 whose name does not start with the host triplet. If you think this
6279 configuration is useful to you, please write to autoconf@gnu.org." >&5
6280 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6281 whose name does not start with the host triplet. If you think this
6282 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6283 ac_tool_warned=yes ;;
6291 # Provide some information about the compiler.
6292 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6293 ac_compiler=`set X $ac_compile; echo $2`
6294 { (ac_try="$ac_compiler --version >&5"
6296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6297 *) ac_try_echo=$ac_try;;
6299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6300 (eval "$ac_compiler --version >&5") 2>&5
6302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6303 (exit $ac_status); }
6304 { (ac_try="$ac_compiler -v >&5"
6306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6307 *) ac_try_echo=$ac_try;;
6309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6310 (eval "$ac_compiler -v >&5") 2>&5
6312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313 (exit $ac_status); }
6314 { (ac_try="$ac_compiler -V >&5"
6316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6317 *) ac_try_echo=$ac_try;;
6319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6320 (eval "$ac_compiler -V >&5") 2>&5
6322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323 (exit $ac_status); }
6325 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6326 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6327 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6328 echo $ECHO_N "(cached) $ECHO_C" >&6
6330 cat >conftest.$ac_ext <<_ACEOF
6333 cat confdefs.h >>conftest.$ac_ext
6334 cat >>conftest.$ac_ext <<_ACEOF
6335 /* end confdefs.h. */
6348 rm -f conftest.$ac_objext
6349 if { (ac_try="$ac_compile"
6351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6352 *) ac_try_echo=$ac_try;;
6354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6355 (eval "$ac_compile") 2>conftest.er1
6357 grep -v '^ *+' conftest.er1 >conftest.err
6359 cat conftest.err >&5
6360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361 (exit $ac_status); } &&
6362 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6363 { (case "(($ac_try" in
6364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6365 *) ac_try_echo=$ac_try;;
6367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6368 (eval "$ac_try") 2>&5
6370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371 (exit $ac_status); }; } &&
6372 { ac_try='test -s conftest.$ac_objext'
6373 { (case "(($ac_try" in
6374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6375 *) ac_try_echo=$ac_try;;
6377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6378 (eval "$ac_try") 2>&5
6380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381 (exit $ac_status); }; }; then
6384 echo "$as_me: failed program was:" >&5
6385 sed 's/^/| /' conftest.$ac_ext >&5
6390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6391 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6394 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6395 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6396 GXX=`test $ac_compiler_gnu = yes && echo yes`
6397 ac_test_CXXFLAGS=${CXXFLAGS+set}
6398 ac_save_CXXFLAGS=$CXXFLAGS
6399 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6400 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6401 if test "${ac_cv_prog_cxx_g+set}" = set; then
6402 echo $ECHO_N "(cached) $ECHO_C" >&6
6404 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6405 ac_cxx_werror_flag=yes
6408 cat >conftest.$ac_ext <<_ACEOF
6411 cat confdefs.h >>conftest.$ac_ext
6412 cat >>conftest.$ac_ext <<_ACEOF
6413 /* end confdefs.h. */
6423 rm -f conftest.$ac_objext
6424 if { (ac_try="$ac_compile"
6426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6427 *) ac_try_echo=$ac_try;;
6429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6430 (eval "$ac_compile") 2>conftest.er1
6432 grep -v '^ *+' conftest.er1 >conftest.err
6434 cat conftest.err >&5
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); } &&
6437 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6438 { (case "(($ac_try" in
6439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6440 *) ac_try_echo=$ac_try;;
6442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6443 (eval "$ac_try") 2>&5
6445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446 (exit $ac_status); }; } &&
6447 { ac_try='test -s conftest.$ac_objext'
6448 { (case "(($ac_try" in
6449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6450 *) ac_try_echo=$ac_try;;
6452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6453 (eval "$ac_try") 2>&5
6455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6456 (exit $ac_status); }; }; then
6457 ac_cv_prog_cxx_g=yes
6459 echo "$as_me: failed program was:" >&5
6460 sed 's/^/| /' conftest.$ac_ext >&5
6463 cat >conftest.$ac_ext <<_ACEOF
6466 cat confdefs.h >>conftest.$ac_ext
6467 cat >>conftest.$ac_ext <<_ACEOF
6468 /* end confdefs.h. */
6478 rm -f conftest.$ac_objext
6479 if { (ac_try="$ac_compile"
6481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6482 *) ac_try_echo=$ac_try;;
6484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6485 (eval "$ac_compile") 2>conftest.er1
6487 grep -v '^ *+' conftest.er1 >conftest.err
6489 cat conftest.err >&5
6490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491 (exit $ac_status); } &&
6492 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6493 { (case "(($ac_try" in
6494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6495 *) ac_try_echo=$ac_try;;
6497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6498 (eval "$ac_try") 2>&5
6500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501 (exit $ac_status); }; } &&
6502 { ac_try='test -s conftest.$ac_objext'
6503 { (case "(($ac_try" in
6504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6505 *) ac_try_echo=$ac_try;;
6507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6508 (eval "$ac_try") 2>&5
6510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511 (exit $ac_status); }; }; then
6514 echo "$as_me: failed program was:" >&5
6515 sed 's/^/| /' conftest.$ac_ext >&5
6517 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6519 cat >conftest.$ac_ext <<_ACEOF
6522 cat confdefs.h >>conftest.$ac_ext
6523 cat >>conftest.$ac_ext <<_ACEOF
6524 /* end confdefs.h. */
6534 rm -f conftest.$ac_objext
6535 if { (ac_try="$ac_compile"
6537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6538 *) ac_try_echo=$ac_try;;
6540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6541 (eval "$ac_compile") 2>conftest.er1
6543 grep -v '^ *+' conftest.er1 >conftest.err
6545 cat conftest.err >&5
6546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6547 (exit $ac_status); } &&
6548 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6549 { (case "(($ac_try" in
6550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6551 *) ac_try_echo=$ac_try;;
6553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6554 (eval "$ac_try") 2>&5
6556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557 (exit $ac_status); }; } &&
6558 { ac_try='test -s conftest.$ac_objext'
6559 { (case "(($ac_try" in
6560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6561 *) ac_try_echo=$ac_try;;
6563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6564 (eval "$ac_try") 2>&5
6566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567 (exit $ac_status); }; }; then
6568 ac_cv_prog_cxx_g=yes
6570 echo "$as_me: failed program was:" >&5
6571 sed 's/^/| /' conftest.$ac_ext >&5
6576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6583 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6585 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6586 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6587 if test "$ac_test_CXXFLAGS" = set; then
6588 CXXFLAGS=$ac_save_CXXFLAGS
6589 elif test $ac_cv_prog_cxx_g = yes; then
6590 if test "$GXX" = yes; then
6596 if test "$GXX" = yes; then
6603 ac_cpp='$CPP $CPPFLAGS'
6604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6609 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6610 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6611 if test "${lt_cv_path_NM+set}" = set; then
6612 echo $ECHO_N "(cached) $ECHO_C" >&6
6614 if test -n "$NM"; then
6615 # Let the user override the test.
6618 lt_nm_to_check="${ac_tool_prefix}nm"
6619 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6620 lt_nm_to_check="$lt_nm_to_check nm"
6622 for lt_tmp_nm in $lt_nm_to_check; do
6623 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6624 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6626 test -z "$ac_dir" && ac_dir=.
6627 tmp_nm="$ac_dir/$lt_tmp_nm"
6628 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6629 # Check to see if the nm accepts a BSD-compat flag.
6630 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6631 # nm: unknown option "B" ignored
6632 # Tru64's nm complains that /dev/null is an invalid object file
6633 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6634 */dev/null* | *'Invalid file or object type'*)
6635 lt_cv_path_NM="$tmp_nm -B"
6639 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6641 lt_cv_path_NM="$tmp_nm -p"
6645 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6646 continue # so that we can try to find one that supports BSD flags
6655 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6658 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6659 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6664 { echo "$as_me:$LINENO: checking for GNU make" >&5
6665 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6666 if test "${llvm_cv_gnu_make_command+set}" = set; then
6667 echo $ECHO_N "(cached) $ECHO_C" >&6
6669 llvm_cv_gnu_make_command=''
6670 for a in "$MAKE" make gmake gnumake ; do
6671 if test -z "$a" ; then continue ; fi ;
6672 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6674 llvm_cv_gnu_make_command=$a ;
6679 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6680 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6681 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6685 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6686 echo "${ECHO_T}\"Not found\"" >&6; };
6690 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6691 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6693 if test "$LN_S" = "ln -s"; then
6694 { echo "$as_me:$LINENO: result: yes" >&5
6695 echo "${ECHO_T}yes" >&6; }
6697 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6698 echo "${ECHO_T}no, using $LN_S" >&6; }
6701 # Extract the first word of "cmp", so it can be a program name with args.
6702 set dummy cmp; ac_word=$2
6703 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6705 if test "${ac_cv_path_CMP+set}" = set; then
6706 echo $ECHO_N "(cached) $ECHO_C" >&6
6710 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6717 test -z "$as_dir" && as_dir=.
6718 for ac_exec_ext in '' $ac_executable_extensions; do
6719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6720 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6728 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6733 if test -n "$CMP"; then
6734 { echo "$as_me:$LINENO: result: $CMP" >&5
6735 echo "${ECHO_T}$CMP" >&6; }
6737 { echo "$as_me:$LINENO: result: no" >&5
6738 echo "${ECHO_T}no" >&6; }
6742 # Extract the first word of "cp", so it can be a program name with args.
6743 set dummy cp; ac_word=$2
6744 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6746 if test "${ac_cv_path_CP+set}" = set; then
6747 echo $ECHO_N "(cached) $ECHO_C" >&6
6751 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6758 test -z "$as_dir" && as_dir=.
6759 for ac_exec_ext in '' $ac_executable_extensions; do
6760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6761 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6769 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6774 if test -n "$CP"; then
6775 { echo "$as_me:$LINENO: result: $CP" >&5
6776 echo "${ECHO_T}$CP" >&6; }
6778 { echo "$as_me:$LINENO: result: no" >&5
6779 echo "${ECHO_T}no" >&6; }
6783 # Extract the first word of "date", so it can be a program name with args.
6784 set dummy date; ac_word=$2
6785 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6787 if test "${ac_cv_path_DATE+set}" = set; then
6788 echo $ECHO_N "(cached) $ECHO_C" >&6
6792 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6799 test -z "$as_dir" && as_dir=.
6800 for ac_exec_ext in '' $ac_executable_extensions; do
6801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6802 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6810 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6814 DATE=$ac_cv_path_DATE
6815 if test -n "$DATE"; then
6816 { echo "$as_me:$LINENO: result: $DATE" >&5
6817 echo "${ECHO_T}$DATE" >&6; }
6819 { echo "$as_me:$LINENO: result: no" >&5
6820 echo "${ECHO_T}no" >&6; }
6824 # Extract the first word of "find", so it can be a program name with args.
6825 set dummy find; ac_word=$2
6826 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6828 if test "${ac_cv_path_FIND+set}" = set; then
6829 echo $ECHO_N "(cached) $ECHO_C" >&6
6833 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6840 test -z "$as_dir" && as_dir=.
6841 for ac_exec_ext in '' $ac_executable_extensions; do
6842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6843 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6851 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6855 FIND=$ac_cv_path_FIND
6856 if test -n "$FIND"; then
6857 { echo "$as_me:$LINENO: result: $FIND" >&5
6858 echo "${ECHO_T}$FIND" >&6; }
6860 { echo "$as_me:$LINENO: result: no" >&5
6861 echo "${ECHO_T}no" >&6; }
6865 # Extract the first word of "grep", so it can be a program name with args.
6866 set dummy grep; ac_word=$2
6867 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6869 if test "${ac_cv_path_GREP+set}" = set; then
6870 echo $ECHO_N "(cached) $ECHO_C" >&6
6874 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6881 test -z "$as_dir" && as_dir=.
6882 for ac_exec_ext in '' $ac_executable_extensions; do
6883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6884 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6892 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6896 GREP=$ac_cv_path_GREP
6897 if test -n "$GREP"; then
6898 { echo "$as_me:$LINENO: result: $GREP" >&5
6899 echo "${ECHO_T}$GREP" >&6; }
6901 { echo "$as_me:$LINENO: result: no" >&5
6902 echo "${ECHO_T}no" >&6; }
6906 # Extract the first word of "mkdir", so it can be a program name with args.
6907 set dummy mkdir; ac_word=$2
6908 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6910 if test "${ac_cv_path_MKDIR+set}" = set; then
6911 echo $ECHO_N "(cached) $ECHO_C" >&6
6915 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6922 test -z "$as_dir" && as_dir=.
6923 for ac_exec_ext in '' $ac_executable_extensions; do
6924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6925 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6933 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6937 MKDIR=$ac_cv_path_MKDIR
6938 if test -n "$MKDIR"; then
6939 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6940 echo "${ECHO_T}$MKDIR" >&6; }
6942 { echo "$as_me:$LINENO: result: no" >&5
6943 echo "${ECHO_T}no" >&6; }
6947 # Extract the first word of "mv", so it can be a program name with args.
6948 set dummy mv; ac_word=$2
6949 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6951 if test "${ac_cv_path_MV+set}" = set; then
6952 echo $ECHO_N "(cached) $ECHO_C" >&6
6956 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6963 test -z "$as_dir" && as_dir=.
6964 for ac_exec_ext in '' $ac_executable_extensions; do
6965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6966 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6974 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6979 if test -n "$MV"; then
6980 { echo "$as_me:$LINENO: result: $MV" >&5
6981 echo "${ECHO_T}$MV" >&6; }
6983 { echo "$as_me:$LINENO: result: no" >&5
6984 echo "${ECHO_T}no" >&6; }
6988 if test -n "$ac_tool_prefix"; then
6989 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6990 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6993 if test "${ac_cv_prog_RANLIB+set}" = set; then
6994 echo $ECHO_N "(cached) $ECHO_C" >&6
6996 if test -n "$RANLIB"; then
6997 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7003 test -z "$as_dir" && as_dir=.
7004 for ac_exec_ext in '' $ac_executable_extensions; do
7005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7006 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7016 RANLIB=$ac_cv_prog_RANLIB
7017 if test -n "$RANLIB"; then
7018 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7019 echo "${ECHO_T}$RANLIB" >&6; }
7021 { echo "$as_me:$LINENO: result: no" >&5
7022 echo "${ECHO_T}no" >&6; }
7027 if test -z "$ac_cv_prog_RANLIB"; then
7028 ac_ct_RANLIB=$RANLIB
7029 # Extract the first word of "ranlib", so it can be a program name with args.
7030 set dummy ranlib; ac_word=$2
7031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7033 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7034 echo $ECHO_N "(cached) $ECHO_C" >&6
7036 if test -n "$ac_ct_RANLIB"; then
7037 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7043 test -z "$as_dir" && as_dir=.
7044 for ac_exec_ext in '' $ac_executable_extensions; do
7045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7046 ac_cv_prog_ac_ct_RANLIB="ranlib"
7047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7056 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7057 if test -n "$ac_ct_RANLIB"; then
7058 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7059 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7061 { echo "$as_me:$LINENO: result: no" >&5
7062 echo "${ECHO_T}no" >&6; }
7065 if test "x$ac_ct_RANLIB" = x; then
7068 case $cross_compiling:$ac_tool_warned in
7070 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7071 whose name does not start with the host triplet. If you think this
7072 configuration is useful to you, please write to autoconf@gnu.org." >&5
7073 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7074 whose name does not start with the host triplet. If you think this
7075 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7076 ac_tool_warned=yes ;;
7078 RANLIB=$ac_ct_RANLIB
7081 RANLIB="$ac_cv_prog_RANLIB"
7084 if test -n "$ac_tool_prefix"; then
7085 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7086 set dummy ${ac_tool_prefix}ar; ac_word=$2
7087 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7089 if test "${ac_cv_prog_AR+set}" = set; then
7090 echo $ECHO_N "(cached) $ECHO_C" >&6
7092 if test -n "$AR"; then
7093 ac_cv_prog_AR="$AR" # Let the user override the test.
7095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7099 test -z "$as_dir" && as_dir=.
7100 for ac_exec_ext in '' $ac_executable_extensions; do
7101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7102 ac_cv_prog_AR="${ac_tool_prefix}ar"
7103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7113 if test -n "$AR"; then
7114 { echo "$as_me:$LINENO: result: $AR" >&5
7115 echo "${ECHO_T}$AR" >&6; }
7117 { echo "$as_me:$LINENO: result: no" >&5
7118 echo "${ECHO_T}no" >&6; }
7123 if test -z "$ac_cv_prog_AR"; then
7125 # Extract the first word of "ar", so it can be a program name with args.
7126 set dummy ar; ac_word=$2
7127 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7129 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7130 echo $ECHO_N "(cached) $ECHO_C" >&6
7132 if test -n "$ac_ct_AR"; then
7133 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7139 test -z "$as_dir" && as_dir=.
7140 for ac_exec_ext in '' $ac_executable_extensions; do
7141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7142 ac_cv_prog_ac_ct_AR="ar"
7143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7152 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7153 if test -n "$ac_ct_AR"; then
7154 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7155 echo "${ECHO_T}$ac_ct_AR" >&6; }
7157 { echo "$as_me:$LINENO: result: no" >&5
7158 echo "${ECHO_T}no" >&6; }
7161 if test "x$ac_ct_AR" = x; then
7164 case $cross_compiling:$ac_tool_warned in
7166 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7167 whose name does not start with the host triplet. If you think this
7168 configuration is useful to you, please write to autoconf@gnu.org." >&5
7169 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7170 whose name does not start with the host triplet. If you think this
7171 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7172 ac_tool_warned=yes ;;
7180 # Extract the first word of "rm", so it can be a program name with args.
7181 set dummy rm; ac_word=$2
7182 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7184 if test "${ac_cv_path_RM+set}" = set; then
7185 echo $ECHO_N "(cached) $ECHO_C" >&6
7189 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7196 test -z "$as_dir" && as_dir=.
7197 for ac_exec_ext in '' $ac_executable_extensions; do
7198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7199 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7207 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7212 if test -n "$RM"; then
7213 { echo "$as_me:$LINENO: result: $RM" >&5
7214 echo "${ECHO_T}$RM" >&6; }
7216 { echo "$as_me:$LINENO: result: no" >&5
7217 echo "${ECHO_T}no" >&6; }
7221 # Extract the first word of "sed", so it can be a program name with args.
7222 set dummy sed; ac_word=$2
7223 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7225 if test "${ac_cv_path_SED+set}" = set; then
7226 echo $ECHO_N "(cached) $ECHO_C" >&6
7230 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7237 test -z "$as_dir" && as_dir=.
7238 for ac_exec_ext in '' $ac_executable_extensions; do
7239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7240 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7248 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7253 if test -n "$SED"; then
7254 { echo "$as_me:$LINENO: result: $SED" >&5
7255 echo "${ECHO_T}$SED" >&6; }
7257 { echo "$as_me:$LINENO: result: no" >&5
7258 echo "${ECHO_T}no" >&6; }
7262 # Extract the first word of "tar", so it can be a program name with args.
7263 set dummy tar; ac_word=$2
7264 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7266 if test "${ac_cv_path_TAR+set}" = set; then
7267 echo $ECHO_N "(cached) $ECHO_C" >&6
7271 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7278 test -z "$as_dir" && as_dir=.
7279 for ac_exec_ext in '' $ac_executable_extensions; do
7280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7281 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7289 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7294 if test -n "$TAR"; then
7295 { echo "$as_me:$LINENO: result: $TAR" >&5
7296 echo "${ECHO_T}$TAR" >&6; }
7298 { echo "$as_me:$LINENO: result: no" >&5
7299 echo "${ECHO_T}no" >&6; }
7303 # Extract the first word of "pwd", so it can be a program name with args.
7304 set dummy pwd; ac_word=$2
7305 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7307 if test "${ac_cv_path_BINPWD+set}" = set; then
7308 echo $ECHO_N "(cached) $ECHO_C" >&6
7312 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7319 test -z "$as_dir" && as_dir=.
7320 for ac_exec_ext in '' $ac_executable_extensions; do
7321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7322 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7330 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7334 BINPWD=$ac_cv_path_BINPWD
7335 if test -n "$BINPWD"; then
7336 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7337 echo "${ECHO_T}$BINPWD" >&6; }
7339 { echo "$as_me:$LINENO: result: no" >&5
7340 echo "${ECHO_T}no" >&6; }
7345 # Extract the first word of "Graphviz", so it can be a program name with args.
7346 set dummy Graphviz; ac_word=$2
7347 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7349 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7350 echo $ECHO_N "(cached) $ECHO_C" >&6
7354 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7361 test -z "$as_dir" && as_dir=.
7362 for ac_exec_ext in '' $ac_executable_extensions; do
7363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7364 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7372 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7376 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7377 if test -n "$GRAPHVIZ"; then
7378 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7379 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7381 { echo "$as_me:$LINENO: result: no" >&5
7382 echo "${ECHO_T}no" >&6; }
7386 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7388 cat >>confdefs.h <<\_ACEOF
7389 #define HAVE_GRAPHVIZ 1
7392 if test "$llvm_cv_os_type" = "MingW" ; then
7393 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7396 cat >>confdefs.h <<_ACEOF
7397 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7401 # Extract the first word of "dot", so it can be a program name with args.
7402 set dummy dot; ac_word=$2
7403 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7405 if test "${ac_cv_path_DOT+set}" = set; then
7406 echo $ECHO_N "(cached) $ECHO_C" >&6
7410 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7417 test -z "$as_dir" && as_dir=.
7418 for ac_exec_ext in '' $ac_executable_extensions; do
7419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7420 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7428 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7433 if test -n "$DOT"; then
7434 { echo "$as_me:$LINENO: result: $DOT" >&5
7435 echo "${ECHO_T}$DOT" >&6; }
7437 { echo "$as_me:$LINENO: result: no" >&5
7438 echo "${ECHO_T}no" >&6; }
7442 if test "$DOT" != "echo dot" ; then
7444 cat >>confdefs.h <<\_ACEOF
7448 if test "$llvm_cv_os_type" = "MingW" ; then
7449 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7452 cat >>confdefs.h <<_ACEOF
7453 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7457 # Extract the first word of "fdp", so it can be a program name with args.
7458 set dummy fdp; ac_word=$2
7459 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7461 if test "${ac_cv_path_FDP+set}" = set; then
7462 echo $ECHO_N "(cached) $ECHO_C" >&6
7466 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7473 test -z "$as_dir" && as_dir=.
7474 for ac_exec_ext in '' $ac_executable_extensions; do
7475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7476 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7484 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7489 if test -n "$FDP"; then
7490 { echo "$as_me:$LINENO: result: $FDP" >&5
7491 echo "${ECHO_T}$FDP" >&6; }
7493 { echo "$as_me:$LINENO: result: no" >&5
7494 echo "${ECHO_T}no" >&6; }
7498 if test "$FDP" != "echo fdp" ; then
7500 cat >>confdefs.h <<\_ACEOF
7504 if test "$llvm_cv_os_type" = "MingW" ; then
7505 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7508 cat >>confdefs.h <<_ACEOF
7509 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7513 # Extract the first word of "neato", so it can be a program name with args.
7514 set dummy neato; ac_word=$2
7515 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7517 if test "${ac_cv_path_NEATO+set}" = set; then
7518 echo $ECHO_N "(cached) $ECHO_C" >&6
7522 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7529 test -z "$as_dir" && as_dir=.
7530 for ac_exec_ext in '' $ac_executable_extensions; do
7531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7532 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7540 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7544 NEATO=$ac_cv_path_NEATO
7545 if test -n "$NEATO"; then
7546 { echo "$as_me:$LINENO: result: $NEATO" >&5
7547 echo "${ECHO_T}$NEATO" >&6; }
7549 { echo "$as_me:$LINENO: result: no" >&5
7550 echo "${ECHO_T}no" >&6; }
7554 if test "$NEATO" != "echo neato" ; then
7556 cat >>confdefs.h <<\_ACEOF
7557 #define HAVE_NEATO 1
7560 if test "$llvm_cv_os_type" = "MingW" ; then
7561 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7564 cat >>confdefs.h <<_ACEOF
7565 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7569 # Extract the first word of "twopi", so it can be a program name with args.
7570 set dummy twopi; ac_word=$2
7571 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7573 if test "${ac_cv_path_TWOPI+set}" = set; then
7574 echo $ECHO_N "(cached) $ECHO_C" >&6
7578 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7585 test -z "$as_dir" && as_dir=.
7586 for ac_exec_ext in '' $ac_executable_extensions; do
7587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7588 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7596 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7600 TWOPI=$ac_cv_path_TWOPI
7601 if test -n "$TWOPI"; then
7602 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7603 echo "${ECHO_T}$TWOPI" >&6; }
7605 { echo "$as_me:$LINENO: result: no" >&5
7606 echo "${ECHO_T}no" >&6; }
7610 if test "$TWOPI" != "echo twopi" ; then
7612 cat >>confdefs.h <<\_ACEOF
7613 #define HAVE_TWOPI 1
7616 if test "$llvm_cv_os_type" = "MingW" ; then
7617 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7620 cat >>confdefs.h <<_ACEOF
7621 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7625 # Extract the first word of "circo", so it can be a program name with args.
7626 set dummy circo; ac_word=$2
7627 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7629 if test "${ac_cv_path_CIRCO+set}" = set; then
7630 echo $ECHO_N "(cached) $ECHO_C" >&6
7634 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7641 test -z "$as_dir" && as_dir=.
7642 for ac_exec_ext in '' $ac_executable_extensions; do
7643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7644 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7652 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7656 CIRCO=$ac_cv_path_CIRCO
7657 if test -n "$CIRCO"; then
7658 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7659 echo "${ECHO_T}$CIRCO" >&6; }
7661 { echo "$as_me:$LINENO: result: no" >&5
7662 echo "${ECHO_T}no" >&6; }
7666 if test "$CIRCO" != "echo circo" ; then
7668 cat >>confdefs.h <<\_ACEOF
7669 #define HAVE_CIRCO 1
7672 if test "$llvm_cv_os_type" = "MingW" ; then
7673 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7676 cat >>confdefs.h <<_ACEOF
7677 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7681 for ac_prog in gv gsview32
7683 # Extract the first word of "$ac_prog", so it can be a program name with args.
7684 set dummy $ac_prog; ac_word=$2
7685 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7687 if test "${ac_cv_path_GV+set}" = set; then
7688 echo $ECHO_N "(cached) $ECHO_C" >&6
7692 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7699 test -z "$as_dir" && as_dir=.
7700 for ac_exec_ext in '' $ac_executable_extensions; do
7701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7702 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7714 if test -n "$GV"; then
7715 { echo "$as_me:$LINENO: result: $GV" >&5
7716 echo "${ECHO_T}$GV" >&6; }
7718 { echo "$as_me:$LINENO: result: no" >&5
7719 echo "${ECHO_T}no" >&6; }
7723 test -n "$GV" && break
7725 test -n "$GV" || GV="echo gv"
7727 if test "$GV" != "echo gv" ; then
7729 cat >>confdefs.h <<\_ACEOF
7733 if test "$llvm_cv_os_type" = "MingW" ; then
7734 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7737 cat >>confdefs.h <<_ACEOF
7738 #define LLVM_PATH_GV "$GV${EXEEXT}"
7742 # Extract the first word of "dotty", so it can be a program name with args.
7743 set dummy dotty; ac_word=$2
7744 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7746 if test "${ac_cv_path_DOTTY+set}" = set; then
7747 echo $ECHO_N "(cached) $ECHO_C" >&6
7751 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7758 test -z "$as_dir" && as_dir=.
7759 for ac_exec_ext in '' $ac_executable_extensions; do
7760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7761 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7769 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7773 DOTTY=$ac_cv_path_DOTTY
7774 if test -n "$DOTTY"; then
7775 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7776 echo "${ECHO_T}$DOTTY" >&6; }
7778 { echo "$as_me:$LINENO: result: no" >&5
7779 echo "${ECHO_T}no" >&6; }
7783 if test "$DOTTY" != "echo dotty" ; then
7785 cat >>confdefs.h <<\_ACEOF
7786 #define HAVE_DOTTY 1
7789 if test "$llvm_cv_os_type" = "MingW" ; then
7790 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7793 cat >>confdefs.h <<_ACEOF
7794 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7800 # Extract the first word of "perl", so it can be a program name with args.
7801 set dummy perl; ac_word=$2
7802 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7804 if test "${ac_cv_path_PERL+set}" = set; then
7805 echo $ECHO_N "(cached) $ECHO_C" >&6
7809 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7816 test -z "$as_dir" && as_dir=.
7817 for ac_exec_ext in '' $ac_executable_extensions; do
7818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7819 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7827 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7831 PERL=$ac_cv_path_PERL
7832 if test -n "$PERL"; then
7833 { echo "$as_me:$LINENO: result: $PERL" >&5
7834 echo "${ECHO_T}$PERL" >&6; }
7836 { echo "$as_me:$LINENO: result: no" >&5
7837 echo "${ECHO_T}no" >&6; }
7841 if test "$PERL" != "none"; then
7842 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7843 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7844 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7845 { echo "$as_me:$LINENO: result: yes" >&5
7846 echo "${ECHO_T}yes" >&6; }
7849 { echo "$as_me:$LINENO: result: not found" >&5
7850 echo "${ECHO_T}not found" >&6; }
7855 if test x"$PERL" = xnone; then
7858 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7859 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7860 { (exit 1); exit 1; }; }
7866 # Find a good install program. We prefer a C program (faster),
7867 # so one script is as good as another. But avoid the broken or
7868 # incompatible versions:
7869 # SysV /etc/install, /usr/sbin/install
7870 # SunOS /usr/etc/install
7871 # IRIX /sbin/install
7873 # AmigaOS /C/install, which installs bootblocks on floppy discs
7874 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7875 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7876 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7877 # OS/2's system install, which has a completely different semantic
7878 # ./install, which can be erroneously created by make from ./install.sh.
7879 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7880 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7881 if test -z "$INSTALL"; then
7882 if test "${ac_cv_path_install+set}" = set; then
7883 echo $ECHO_N "(cached) $ECHO_C" >&6
7885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7889 test -z "$as_dir" && as_dir=.
7890 # Account for people who put trailing slashes in PATH elements.
7892 ./ | .// | /cC/* | \
7893 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7894 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7897 # OSF1 and SCO ODT 3.0 have their own names for install.
7898 # Don't use installbsd from OSF since it installs stuff as root
7900 for ac_prog in ginstall scoinst install; do
7901 for ac_exec_ext in '' $ac_executable_extensions; do
7902 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7903 if test $ac_prog = install &&
7904 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7905 # AIX install. It has an incompatible calling convention.
7907 elif test $ac_prog = install &&
7908 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7909 # program-specific install script used by HP pwplus--don't use.
7912 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7925 if test "${ac_cv_path_install+set}" = set; then
7926 INSTALL=$ac_cv_path_install
7928 # As a last resort, use the slow shell script. Don't cache a
7929 # value for INSTALL within a source directory, because that will
7930 # break other packages using the cache if that directory is
7931 # removed, or if the value is a relative name.
7932 INSTALL=$ac_install_sh
7935 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7936 echo "${ECHO_T}$INSTALL" >&6; }
7938 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7939 # It thinks the first close brace ends the variable substitution.
7940 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7942 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7944 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7947 # Extract the first word of "bzip2", so it can be a program name with args.
7948 set dummy bzip2; ac_word=$2
7949 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7951 if test "${ac_cv_path_BZIP2+set}" = set; then
7952 echo $ECHO_N "(cached) $ECHO_C" >&6
7956 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7963 test -z "$as_dir" && as_dir=.
7964 for ac_exec_ext in '' $ac_executable_extensions; do
7965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7966 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7977 BZIP2=$ac_cv_path_BZIP2
7978 if test -n "$BZIP2"; then
7979 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7980 echo "${ECHO_T}$BZIP2" >&6; }
7982 { echo "$as_me:$LINENO: result: no" >&5
7983 echo "${ECHO_T}no" >&6; }
7987 # Extract the first word of "doxygen", so it can be a program name with args.
7988 set dummy doxygen; ac_word=$2
7989 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7991 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7992 echo $ECHO_N "(cached) $ECHO_C" >&6
7996 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8003 test -z "$as_dir" && as_dir=.
8004 for ac_exec_ext in '' $ac_executable_extensions; do
8005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8006 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
8007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8017 DOXYGEN=$ac_cv_path_DOXYGEN
8018 if test -n "$DOXYGEN"; then
8019 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8020 echo "${ECHO_T}$DOXYGEN" >&6; }
8022 { echo "$as_me:$LINENO: result: no" >&5
8023 echo "${ECHO_T}no" >&6; }
8027 # Extract the first word of "groff", so it can be a program name with args.
8028 set dummy groff; ac_word=$2
8029 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8031 if test "${ac_cv_path_GROFF+set}" = set; then
8032 echo $ECHO_N "(cached) $ECHO_C" >&6
8036 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8043 test -z "$as_dir" && as_dir=.
8044 for ac_exec_ext in '' $ac_executable_extensions; do
8045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8046 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
8047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8057 GROFF=$ac_cv_path_GROFF
8058 if test -n "$GROFF"; then
8059 { echo "$as_me:$LINENO: result: $GROFF" >&5
8060 echo "${ECHO_T}$GROFF" >&6; }
8062 { echo "$as_me:$LINENO: result: no" >&5
8063 echo "${ECHO_T}no" >&6; }
8067 # Extract the first word of "gzip", so it can be a program name with args.
8068 set dummy gzip; ac_word=$2
8069 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8071 if test "${ac_cv_path_GZIP+set}" = set; then
8072 echo $ECHO_N "(cached) $ECHO_C" >&6
8076 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8083 test -z "$as_dir" && as_dir=.
8084 for ac_exec_ext in '' $ac_executable_extensions; do
8085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8086 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8097 GZIP=$ac_cv_path_GZIP
8098 if test -n "$GZIP"; then
8099 { echo "$as_me:$LINENO: result: $GZIP" >&5
8100 echo "${ECHO_T}$GZIP" >&6; }
8102 { echo "$as_me:$LINENO: result: no" >&5
8103 echo "${ECHO_T}no" >&6; }
8107 # Extract the first word of "pod2html", so it can be a program name with args.
8108 set dummy pod2html; ac_word=$2
8109 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8111 if test "${ac_cv_path_POD2HTML+set}" = set; then
8112 echo $ECHO_N "(cached) $ECHO_C" >&6
8116 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8123 test -z "$as_dir" && as_dir=.
8124 for ac_exec_ext in '' $ac_executable_extensions; do
8125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8126 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8137 POD2HTML=$ac_cv_path_POD2HTML
8138 if test -n "$POD2HTML"; then
8139 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8140 echo "${ECHO_T}$POD2HTML" >&6; }
8142 { echo "$as_me:$LINENO: result: no" >&5
8143 echo "${ECHO_T}no" >&6; }
8147 # Extract the first word of "pod2man", so it can be a program name with args.
8148 set dummy pod2man; ac_word=$2
8149 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8151 if test "${ac_cv_path_POD2MAN+set}" = set; then
8152 echo $ECHO_N "(cached) $ECHO_C" >&6
8156 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8163 test -z "$as_dir" && as_dir=.
8164 for ac_exec_ext in '' $ac_executable_extensions; do
8165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8166 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8177 POD2MAN=$ac_cv_path_POD2MAN
8178 if test -n "$POD2MAN"; then
8179 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8180 echo "${ECHO_T}$POD2MAN" >&6; }
8182 { echo "$as_me:$LINENO: result: no" >&5
8183 echo "${ECHO_T}no" >&6; }
8187 # Extract the first word of "runtest", so it can be a program name with args.
8188 set dummy runtest; ac_word=$2
8189 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8191 if test "${ac_cv_path_RUNTEST+set}" = set; then
8192 echo $ECHO_N "(cached) $ECHO_C" >&6
8196 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8203 test -z "$as_dir" && as_dir=.
8204 for ac_exec_ext in '' $ac_executable_extensions; do
8205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8206 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8217 RUNTEST=$ac_cv_path_RUNTEST
8218 if test -n "$RUNTEST"; then
8219 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8220 echo "${ECHO_T}$RUNTEST" >&6; }
8222 { echo "$as_me:$LINENO: result: no" >&5
8223 echo "${ECHO_T}no" >&6; }
8229 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8230 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8232 # Check whether --with-tclinclude was given.
8233 if test "${with_tclinclude+set}" = set; then
8234 withval=$with_tclinclude; with_tclinclude=${withval}
8239 if test "${ac_cv_path_tclsh+set}" = set; then
8240 echo $ECHO_N "(cached) $ECHO_C" >&6
8243 if test x"${with_tclinclude}" != x ; then
8244 if test -f ${with_tclinclude}/tclsh ; then
8245 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8246 elif test -f ${with_tclinclude}/src/tclsh ; then
8247 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8249 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8250 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8251 { (exit 1); exit 1; }; }
8257 if test x"${ac_cv_path_tclsh}" = x ; then
8258 { echo "$as_me:$LINENO: result: none" >&5
8259 echo "${ECHO_T}none" >&6; }
8260 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
8262 # Extract the first word of "$ac_prog", so it can be a program name with args.
8263 set dummy $ac_prog; ac_word=$2
8264 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8266 if test "${ac_cv_path_TCLSH+set}" = set; then
8267 echo $ECHO_N "(cached) $ECHO_C" >&6
8271 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8278 test -z "$as_dir" && as_dir=.
8279 for ac_exec_ext in '' $ac_executable_extensions; do
8280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8281 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8292 TCLSH=$ac_cv_path_TCLSH
8293 if test -n "$TCLSH"; then
8294 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8295 echo "${ECHO_T}$TCLSH" >&6; }
8297 { echo "$as_me:$LINENO: result: no" >&5
8298 echo "${ECHO_T}no" >&6; }
8302 test -n "$TCLSH" && break
8305 if test x"${TCLSH}" = x ; then
8306 ac_cv_path_tclsh='';
8308 ac_cv_path_tclsh="${TCLSH}";
8311 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8312 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8313 TCLSH="${ac_cv_path_tclsh}"
8317 # Extract the first word of "zip", so it can be a program name with args.
8318 set dummy zip; ac_word=$2
8319 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8321 if test "${ac_cv_path_ZIP+set}" = set; then
8322 echo $ECHO_N "(cached) $ECHO_C" >&6
8326 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8333 test -z "$as_dir" && as_dir=.
8334 for ac_exec_ext in '' $ac_executable_extensions; do
8335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8336 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8348 if test -n "$ZIP"; then
8349 { echo "$as_me:$LINENO: result: $ZIP" >&5
8350 echo "${ECHO_T}$ZIP" >&6; }
8352 { echo "$as_me:$LINENO: result: no" >&5
8353 echo "${ECHO_T}no" >&6; }
8357 for ac_prog in ocamlc
8359 # Extract the first word of "$ac_prog", so it can be a program name with args.
8360 set dummy $ac_prog; ac_word=$2
8361 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8363 if test "${ac_cv_path_OCAMLC+set}" = set; then
8364 echo $ECHO_N "(cached) $ECHO_C" >&6
8368 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8375 test -z "$as_dir" && as_dir=.
8376 for ac_exec_ext in '' $ac_executable_extensions; do
8377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8378 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8389 OCAMLC=$ac_cv_path_OCAMLC
8390 if test -n "$OCAMLC"; then
8391 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8392 echo "${ECHO_T}$OCAMLC" >&6; }
8394 { echo "$as_me:$LINENO: result: no" >&5
8395 echo "${ECHO_T}no" >&6; }
8399 test -n "$OCAMLC" && break
8402 for ac_prog in ocamlopt
8404 # Extract the first word of "$ac_prog", so it can be a program name with args.
8405 set dummy $ac_prog; ac_word=$2
8406 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8408 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8409 echo $ECHO_N "(cached) $ECHO_C" >&6
8413 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8420 test -z "$as_dir" && as_dir=.
8421 for ac_exec_ext in '' $ac_executable_extensions; do
8422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8423 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8434 OCAMLOPT=$ac_cv_path_OCAMLOPT
8435 if test -n "$OCAMLOPT"; then
8436 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8437 echo "${ECHO_T}$OCAMLOPT" >&6; }
8439 { echo "$as_me:$LINENO: result: no" >&5
8440 echo "${ECHO_T}no" >&6; }
8444 test -n "$OCAMLOPT" && break
8447 for ac_prog in ocamldep
8449 # Extract the first word of "$ac_prog", so it can be a program name with args.
8450 set dummy $ac_prog; ac_word=$2
8451 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8453 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8454 echo $ECHO_N "(cached) $ECHO_C" >&6
8458 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8465 test -z "$as_dir" && as_dir=.
8466 for ac_exec_ext in '' $ac_executable_extensions; do
8467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8468 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8479 OCAMLDEP=$ac_cv_path_OCAMLDEP
8480 if test -n "$OCAMLDEP"; then
8481 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8482 echo "${ECHO_T}$OCAMLDEP" >&6; }
8484 { echo "$as_me:$LINENO: result: no" >&5
8485 echo "${ECHO_T}no" >&6; }
8489 test -n "$OCAMLDEP" && break
8492 for ac_prog in ocamldoc
8494 # Extract the first word of "$ac_prog", so it can be a program name with args.
8495 set dummy $ac_prog; ac_word=$2
8496 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8498 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8499 echo $ECHO_N "(cached) $ECHO_C" >&6
8503 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8510 test -z "$as_dir" && as_dir=.
8511 for ac_exec_ext in '' $ac_executable_extensions; do
8512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8513 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8524 OCAMLDOC=$ac_cv_path_OCAMLDOC
8525 if test -n "$OCAMLDOC"; then
8526 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8527 echo "${ECHO_T}$OCAMLDOC" >&6; }
8529 { echo "$as_me:$LINENO: result: no" >&5
8530 echo "${ECHO_T}no" >&6; }
8534 test -n "$OCAMLDOC" && break
8537 for ac_prog in gas as
8539 # Extract the first word of "$ac_prog", so it can be a program name with args.
8540 set dummy $ac_prog; ac_word=$2
8541 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8543 if test "${ac_cv_path_GAS+set}" = set; then
8544 echo $ECHO_N "(cached) $ECHO_C" >&6
8548 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8555 test -z "$as_dir" && as_dir=.
8556 for ac_exec_ext in '' $ac_executable_extensions; do
8557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8558 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8570 if test -n "$GAS"; then
8571 { echo "$as_me:$LINENO: result: $GAS" >&5
8572 echo "${ECHO_T}$GAS" >&6; }
8574 { echo "$as_me:$LINENO: result: no" >&5
8575 echo "${ECHO_T}no" >&6; }
8579 test -n "$GAS" && break
8583 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8584 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8585 if test "${llvm_cv_link_use_r+set}" = set; then
8586 echo $ECHO_N "(cached) $ECHO_C" >&6
8589 ac_cpp='$CPP $CPPFLAGS'
8590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8595 CFLAGS="$CFLAGS -Wl,-R."
8596 cat >conftest.$ac_ext <<_ACEOF
8599 cat confdefs.h >>conftest.$ac_ext
8600 cat >>conftest.$ac_ext <<_ACEOF
8601 /* end confdefs.h. */
8606 int main() { return 0; }
8611 rm -f conftest.$ac_objext conftest$ac_exeext
8612 if { (ac_try="$ac_link"
8614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8615 *) ac_try_echo=$ac_try;;
8617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8618 (eval "$ac_link") 2>conftest.er1
8620 grep -v '^ *+' conftest.er1 >conftest.err
8622 cat conftest.err >&5
8623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624 (exit $ac_status); } &&
8625 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8626 { (case "(($ac_try" in
8627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8628 *) ac_try_echo=$ac_try;;
8630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8631 (eval "$ac_try") 2>&5
8633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634 (exit $ac_status); }; } &&
8635 { ac_try='test -s conftest$ac_exeext'
8636 { (case "(($ac_try" in
8637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8638 *) ac_try_echo=$ac_try;;
8640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8641 (eval "$ac_try") 2>&5
8643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644 (exit $ac_status); }; }; then
8645 llvm_cv_link_use_r=yes
8647 echo "$as_me: failed program was:" >&5
8648 sed 's/^/| /' conftest.$ac_ext >&5
8650 llvm_cv_link_use_r=no
8653 rm -f core conftest.err conftest.$ac_objext \
8654 conftest$ac_exeext conftest.$ac_ext
8657 ac_cpp='$CPP $CPPFLAGS'
8658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8664 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8665 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8666 if test "$llvm_cv_link_use_r" = yes ; then
8668 cat >>confdefs.h <<\_ACEOF
8669 #define HAVE_LINK_R 1
8675 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8676 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8677 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8678 echo $ECHO_N "(cached) $ECHO_C" >&6
8681 ac_cpp='$CPP $CPPFLAGS'
8682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8687 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8688 cat >conftest.$ac_ext <<_ACEOF
8691 cat confdefs.h >>conftest.$ac_ext
8692 cat >>conftest.$ac_ext <<_ACEOF
8693 /* end confdefs.h. */
8698 int main() { return 0; }
8703 rm -f conftest.$ac_objext conftest$ac_exeext
8704 if { (ac_try="$ac_link"
8706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8707 *) ac_try_echo=$ac_try;;
8709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8710 (eval "$ac_link") 2>conftest.er1
8712 grep -v '^ *+' conftest.er1 >conftest.err
8714 cat conftest.err >&5
8715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716 (exit $ac_status); } &&
8717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8718 { (case "(($ac_try" in
8719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8720 *) ac_try_echo=$ac_try;;
8722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8723 (eval "$ac_try") 2>&5
8725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726 (exit $ac_status); }; } &&
8727 { ac_try='test -s conftest$ac_exeext'
8728 { (case "(($ac_try" in
8729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8730 *) ac_try_echo=$ac_try;;
8732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8733 (eval "$ac_try") 2>&5
8735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736 (exit $ac_status); }; }; then
8737 llvm_cv_link_use_export_dynamic=yes
8739 echo "$as_me: failed program was:" >&5
8740 sed 's/^/| /' conftest.$ac_ext >&5
8742 llvm_cv_link_use_export_dynamic=no
8745 rm -f core conftest.err conftest.$ac_objext \
8746 conftest$ac_exeext conftest.$ac_ext
8749 ac_cpp='$CPP $CPPFLAGS'
8750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8756 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8757 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8758 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8760 cat >>confdefs.h <<\_ACEOF
8761 #define HAVE_LINK_EXPORT_DYNAMIC 1
8769 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8770 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8771 if test "${ac_cv_c_const+set}" = set; then
8772 echo $ECHO_N "(cached) $ECHO_C" >&6
8774 cat >conftest.$ac_ext <<_ACEOF
8777 cat confdefs.h >>conftest.$ac_ext
8778 cat >>conftest.$ac_ext <<_ACEOF
8779 /* end confdefs.h. */
8784 /* FIXME: Include the comments suggested by Paul. */
8786 /* Ultrix mips cc rejects this. */
8787 typedef int charset[2];
8789 /* SunOS 4.1.1 cc rejects this. */
8790 char const *const *ccp;
8792 /* NEC SVR4.0.2 mips cc rejects this. */
8793 struct point {int x, y;};
8794 static struct point const zero = {0,0};
8795 /* AIX XL C 1.02.0.0 rejects this.
8796 It does not let you subtract one const X* pointer from another in
8797 an arm of an if-expression whose if-part is not a constant
8799 const char *g = "string";
8800 ccp = &g + (g ? g-g : 0);
8801 /* HPUX 7.0 cc rejects these. */
8804 ccp = (char const *const *) p;
8805 { /* SCO 3.2v4 cc rejects this. */
8807 char const *s = 0 ? (char *) 0 : (char const *) 0;
8812 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8814 const int *foo = &x[0];
8817 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8818 typedef const int *iptr;
8822 { /* AIX XL C 1.02.0.0 rejects this saying
8823 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8824 struct s { int j; const int *ap[3]; };
8825 struct s *b; b->j = 5;
8827 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8831 return !x[0] && !zero.x;
8838 rm -f conftest.$ac_objext
8839 if { (ac_try="$ac_compile"
8841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8842 *) ac_try_echo=$ac_try;;
8844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8845 (eval "$ac_compile") 2>conftest.er1
8847 grep -v '^ *+' conftest.er1 >conftest.err
8849 cat conftest.err >&5
8850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851 (exit $ac_status); } &&
8852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8853 { (case "(($ac_try" in
8854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8855 *) ac_try_echo=$ac_try;;
8857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8858 (eval "$ac_try") 2>&5
8860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8861 (exit $ac_status); }; } &&
8862 { ac_try='test -s conftest.$ac_objext'
8863 { (case "(($ac_try" in
8864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8865 *) ac_try_echo=$ac_try;;
8867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8868 (eval "$ac_try") 2>&5
8870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871 (exit $ac_status); }; }; then
8874 echo "$as_me: failed program was:" >&5
8875 sed 's/^/| /' conftest.$ac_ext >&5
8880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8882 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8883 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8884 if test $ac_cv_c_const = no; then
8886 cat >>confdefs.h <<\_ACEOF
8898 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8899 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8900 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8901 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8902 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8903 echo $ECHO_N "(cached) $ECHO_C" >&6
8905 cat >conftest.$ac_ext <<_ACEOF
8908 cat confdefs.h >>conftest.$ac_ext
8909 cat >>conftest.$ac_ext <<_ACEOF
8910 /* end confdefs.h. */
8911 #include <sys/types.h>
8923 rm -f conftest.$ac_objext
8924 if { (ac_try="$ac_compile"
8926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8927 *) ac_try_echo=$ac_try;;
8929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8930 (eval "$ac_compile") 2>conftest.er1
8932 grep -v '^ *+' conftest.er1 >conftest.err
8934 cat conftest.err >&5
8935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936 (exit $ac_status); } &&
8937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8938 { (case "(($ac_try" in
8939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8940 *) ac_try_echo=$ac_try;;
8942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8943 (eval "$ac_try") 2>&5
8945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946 (exit $ac_status); }; } &&
8947 { ac_try='test -s conftest.$ac_objext'
8948 { (case "(($ac_try" in
8949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8950 *) ac_try_echo=$ac_try;;
8952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8953 (eval "$ac_try") 2>&5
8955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956 (exit $ac_status); }; }; then
8957 eval "$as_ac_Header=yes"
8959 echo "$as_me: failed program was:" >&5
8960 sed 's/^/| /' conftest.$ac_ext >&5
8962 eval "$as_ac_Header=no"
8965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8967 ac_res=`eval echo '${'$as_ac_Header'}'`
8968 { echo "$as_me:$LINENO: result: $ac_res" >&5
8969 echo "${ECHO_T}$ac_res" >&6; }
8970 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8971 cat >>confdefs.h <<_ACEOF
8972 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8975 ac_header_dirent=$ac_hdr; break
8979 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8980 if test $ac_header_dirent = dirent.h; then
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 '' dir; 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"
9081 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9082 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9083 if test "${ac_cv_search_opendir+set}" = set; then
9084 echo $ECHO_N "(cached) $ECHO_C" >&6
9086 ac_func_search_save_LIBS=$LIBS
9087 cat >conftest.$ac_ext <<_ACEOF
9090 cat confdefs.h >>conftest.$ac_ext
9091 cat >>conftest.$ac_ext <<_ACEOF
9092 /* end confdefs.h. */
9094 /* Override any GCC internal prototype to avoid an error.
9095 Use char because int might match the return type of a GCC
9096 builtin and then its argument prototype would still apply. */
9109 for ac_lib in '' x; do
9110 if test -z "$ac_lib"; then
9111 ac_res="none required"
9114 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9116 rm -f conftest.$ac_objext conftest$ac_exeext
9117 if { (ac_try="$ac_link"
9119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9120 *) ac_try_echo=$ac_try;;
9122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9123 (eval "$ac_link") 2>conftest.er1
9125 grep -v '^ *+' conftest.er1 >conftest.err
9127 cat conftest.err >&5
9128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129 (exit $ac_status); } &&
9130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9131 { (case "(($ac_try" in
9132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9133 *) ac_try_echo=$ac_try;;
9135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9136 (eval "$ac_try") 2>&5
9138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139 (exit $ac_status); }; } &&
9140 { ac_try='test -s conftest$ac_exeext'
9141 { (case "(($ac_try" in
9142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9143 *) ac_try_echo=$ac_try;;
9145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9146 (eval "$ac_try") 2>&5
9148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149 (exit $ac_status); }; }; then
9150 ac_cv_search_opendir=$ac_res
9152 echo "$as_me: failed program was:" >&5
9153 sed 's/^/| /' conftest.$ac_ext >&5
9158 rm -f core conftest.err conftest.$ac_objext \
9160 if test "${ac_cv_search_opendir+set}" = set; then
9164 if test "${ac_cv_search_opendir+set}" = set; then
9167 ac_cv_search_opendir=no
9170 LIBS=$ac_func_search_save_LIBS
9172 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9173 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9174 ac_res=$ac_cv_search_opendir
9175 if test "$ac_res" != no; then
9176 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9183 for ac_header in dlfcn.h
9185 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9186 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9187 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9188 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9189 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9190 echo $ECHO_N "(cached) $ECHO_C" >&6
9192 ac_res=`eval echo '${'$as_ac_Header'}'`
9193 { echo "$as_me:$LINENO: result: $ac_res" >&5
9194 echo "${ECHO_T}$ac_res" >&6; }
9196 # Is the header compilable?
9197 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9198 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9199 cat >conftest.$ac_ext <<_ACEOF
9202 cat confdefs.h >>conftest.$ac_ext
9203 cat >>conftest.$ac_ext <<_ACEOF
9204 /* end confdefs.h. */
9205 $ac_includes_default
9206 #include <$ac_header>
9208 rm -f conftest.$ac_objext
9209 if { (ac_try="$ac_compile"
9211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9212 *) ac_try_echo=$ac_try;;
9214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9215 (eval "$ac_compile") 2>conftest.er1
9217 grep -v '^ *+' conftest.er1 >conftest.err
9219 cat conftest.err >&5
9220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9221 (exit $ac_status); } &&
9222 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9223 { (case "(($ac_try" in
9224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9225 *) ac_try_echo=$ac_try;;
9227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9228 (eval "$ac_try") 2>&5
9230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9231 (exit $ac_status); }; } &&
9232 { ac_try='test -s conftest.$ac_objext'
9233 { (case "(($ac_try" in
9234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9235 *) ac_try_echo=$ac_try;;
9237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9238 (eval "$ac_try") 2>&5
9240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241 (exit $ac_status); }; }; then
9242 ac_header_compiler=yes
9244 echo "$as_me: failed program was:" >&5
9245 sed 's/^/| /' conftest.$ac_ext >&5
9247 ac_header_compiler=no
9250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9251 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9252 echo "${ECHO_T}$ac_header_compiler" >&6; }
9254 # Is the header present?
9255 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9256 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9257 cat >conftest.$ac_ext <<_ACEOF
9260 cat confdefs.h >>conftest.$ac_ext
9261 cat >>conftest.$ac_ext <<_ACEOF
9262 /* end confdefs.h. */
9263 #include <$ac_header>
9265 if { (ac_try="$ac_cpp conftest.$ac_ext"
9267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9268 *) ac_try_echo=$ac_try;;
9270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9271 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9273 grep -v '^ *+' conftest.er1 >conftest.err
9275 cat conftest.err >&5
9276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9277 (exit $ac_status); } >/dev/null; then
9278 if test -s conftest.err; then
9279 ac_cpp_err=$ac_c_preproc_warn_flag
9280 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9287 if test -z "$ac_cpp_err"; then
9288 ac_header_preproc=yes
9290 echo "$as_me: failed program was:" >&5
9291 sed 's/^/| /' conftest.$ac_ext >&5
9293 ac_header_preproc=no
9296 rm -f conftest.err conftest.$ac_ext
9297 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9298 echo "${ECHO_T}$ac_header_preproc" >&6; }
9300 # So? What about this header?
9301 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9303 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9304 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9305 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9306 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9307 ac_header_preproc=yes
9310 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9311 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9312 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9313 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9314 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9315 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9316 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9317 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9318 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9319 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9320 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9321 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9323 ## ----------------------------------- ##
9324 ## Report this to llvmbugs@cs.uiuc.edu ##
9325 ## ----------------------------------- ##
9327 ) | sed "s/^/$as_me: WARNING: /" >&2
9330 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9332 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9333 echo $ECHO_N "(cached) $ECHO_C" >&6
9335 eval "$as_ac_Header=\$ac_header_preproc"
9337 ac_res=`eval echo '${'$as_ac_Header'}'`
9338 { echo "$as_me:$LINENO: result: $ac_res" >&5
9339 echo "${ECHO_T}$ac_res" >&6; }
9342 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9343 cat >>confdefs.h <<_ACEOF
9344 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9351 # Check whether --enable-ltdl-install was given.
9352 if test "${enable_ltdl_install+set}" = set; then
9353 enableval=$enable_ltdl_install;
9359 if test x"${enable_ltdl_install-no}" != xno; then
9361 INSTALL_LTDL_FALSE='#'
9363 INSTALL_LTDL_TRUE='#'
9369 if test x"${enable_ltdl_convenience-no}" != xno; then
9370 CONVENIENCE_LTDL_TRUE=
9371 CONVENIENCE_LTDL_FALSE='#'
9373 CONVENIENCE_LTDL_TRUE='#'
9374 CONVENIENCE_LTDL_FALSE=
9378 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9379 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9381 libname_spec='lib$name'
9389 shlibpath_overrides_runpath=unknown
9391 dynamic_linker="$host_os ld.so"
9392 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9393 if test "$GCC" = yes; then
9394 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9395 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9396 # if the path contains ";" then we assume it to be the separator
9397 # otherwise default to the standard path separator (i.e. ":") - it is
9398 # assumed that no part of a normal pathname contains ";" but that should
9399 # okay in the real world where ";" in dirpaths is itself problematic.
9400 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9402 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9405 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9407 need_lib_prefix=unknown
9408 hardcode_into_libs=no
9410 # when you set need_version to no, make sure it does not cause -set_version
9411 # flags to be left without arguments
9412 need_version=unknown
9417 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9418 shlibpath_var=LIBPATH
9420 # AIX 3 has no versioning support, so we append a major version to the name.
9421 soname_spec='${libname}${release}${shared_ext}$major'
9428 hardcode_into_libs=yes
9429 if test "$host_cpu" = ia64; then
9430 # AIX 5 supports IA64
9431 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9432 shlibpath_var=LD_LIBRARY_PATH
9434 # With GCC up to 2.95.x, collect2 would create an import file
9435 # for dependence libraries. The import file would start with
9436 # the line `#! .'. This would cause the generated library to
9437 # depend on `.', always an invalid library. This was fixed in
9438 # development snapshots of GCC prior to 3.0.
9440 aix4 | aix4.[01] | aix4.[01].*)
9441 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9443 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9450 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9451 # soname into executable. Probably we can add versioning support to
9452 # collect2, so additional links can be useful in future.
9453 if test "$aix_use_runtimelinking" = yes; then
9454 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9455 # instead of lib<name>.a to let people know that these are not
9456 # typical AIX shared libraries.
9457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9459 # We preserve .a as extension for shared libraries through AIX4.2
9460 # and later when we are not doing run time linking.
9461 library_names_spec='${libname}${release}.a $libname.a'
9462 soname_spec='${libname}${release}${shared_ext}$major'
9464 shlibpath_var=LIBPATH
9469 library_names_spec='$libname.ixlibrary $libname.a'
9470 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9471 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'
9475 library_names_spec='${libname}${shared_ext}'
9476 dynamic_linker="$host_os ld.so"
9477 shlibpath_var=LIBRARY_PATH
9483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9484 soname_spec='${libname}${release}${shared_ext}$major'
9485 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9486 shlibpath_var=LD_LIBRARY_PATH
9487 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9488 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9489 # the default ld.so.conf also contains /usr/contrib/lib and
9490 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9491 # libtool to hard-code these into programs
9494 cygwin* | mingw* | pw32*)
9495 version_type=windows
9500 case $GCC,$host_os in
9501 yes,cygwin* | yes,mingw* | yes,pw32*)
9502 library_names_spec='$libname.dll.a'
9503 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9504 postinstall_cmds='base_file=`basename \${file}`~
9505 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9506 dldir=$destdir/`dirname \$dlpath`~
9507 test -d \$dldir || mkdir -p \$dldir~
9508 $install_prog $dir/$dlname \$dldir/$dlname~
9509 chmod a+x \$dldir/$dlname'
9510 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9511 dlpath=$dir/\$dldll~
9513 shlibpath_overrides_runpath=yes
9517 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9518 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9519 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9522 # MinGW DLLs use traditional 'lib' prefix
9523 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9524 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9525 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9526 # It is most probably a Windows format PATH printed by
9527 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9528 # path with ; separators, and with drive letters. We can handle the
9529 # drive letters (cygwin fileutils understands them), so leave them,
9530 # especially as we might pass files found there to a mingw objdump,
9531 # which wouldn't understand a cygwinified path. Ahh.
9532 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9534 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9538 # pw32 DLLs use 'pw' prefix rather than 'lib'
9539 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9545 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9548 dynamic_linker='Win32 ld.exe'
9549 # FIXME: first we should search . and the directory the executable is in
9553 darwin* | rhapsody*)
9554 dynamic_linker="$host_os dyld"
9558 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9559 soname_spec='${libname}${release}${major}$shared_ext'
9560 shlibpath_overrides_runpath=yes
9561 shlibpath_var=DYLD_LIBRARY_PATH
9562 shrext_cmds='.dylib'
9563 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9564 if test "$GCC" = yes; then
9565 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"`
9567 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9569 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9577 soname_spec='${libname}${release}${shared_ext}$major'
9578 shlibpath_var=LD_LIBRARY_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'
9591 shlibpath_var=LD_LIBRARY_PATH
9592 shlibpath_overrides_runpath=no
9593 hardcode_into_libs=yes
9594 dynamic_linker='GNU ld.so'
9597 freebsd* | dragonfly*)
9598 # DragonFly does not have aout. When/if they implement a new
9599 # versioning mechanism, adjust this.
9600 if test -x /usr/bin/objformat; then
9601 objformat=`/usr/bin/objformat`
9604 freebsd[123]*) objformat=aout ;;
9608 version_type=freebsd-$objformat
9609 case $version_type in
9611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9616 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9620 shlibpath_var=LD_LIBRARY_PATH
9623 shlibpath_overrides_runpath=yes
9625 freebsd3.[01]* | freebsdelf3.[01]*)
9626 shlibpath_overrides_runpath=yes
9627 hardcode_into_libs=yes
9629 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9630 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9631 shlibpath_overrides_runpath=no
9632 hardcode_into_libs=yes
9634 freebsd*) # from 4.6 on
9635 shlibpath_overrides_runpath=yes
9636 hardcode_into_libs=yes
9645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9646 soname_spec='${libname}${release}${shared_ext}$major'
9647 shlibpath_var=LD_LIBRARY_PATH
9648 hardcode_into_libs=yes
9651 hpux9* | hpux10* | hpux11*)
9652 # Give a soname corresponding to the major version so that dld.sl refuses to
9653 # link against other versions.
9660 hardcode_into_libs=yes
9661 dynamic_linker="$host_os dld.so"
9662 shlibpath_var=LD_LIBRARY_PATH
9663 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9665 soname_spec='${libname}${release}${shared_ext}$major'
9666 if test "X$HPUX_IA64_MODE" = X32; then
9667 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9669 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9671 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9675 hardcode_into_libs=yes
9676 dynamic_linker="$host_os dld.sl"
9677 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9678 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9680 soname_spec='${libname}${release}${shared_ext}$major'
9681 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9682 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9686 dynamic_linker="$host_os dld.sl"
9687 shlibpath_var=SHLIB_PATH
9688 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9690 soname_spec='${libname}${release}${shared_ext}$major'
9693 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9694 postinstall_cmds='chmod 555 $lib'
9701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9702 soname_spec='${libname}${release}${shared_ext}$major'
9703 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9704 shlibpath_var=LD_LIBRARY_PATH
9705 shlibpath_overrides_runpath=no
9706 hardcode_into_libs=yes
9709 irix5* | irix6* | nonstopux*)
9711 nonstopux*) version_type=nonstopux ;;
9713 if test "$lt_cv_prog_gnu_ld" = yes; then
9721 soname_spec='${libname}${release}${shared_ext}$major'
9722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9724 irix5* | nonstopux*)
9728 case $LD in # libtool.m4 will add one of these switches to LD
9729 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9730 libsuff= shlibsuff= libmagic=32-bit;;
9731 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9732 libsuff=32 shlibsuff=N32 libmagic=N32;;
9733 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9734 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9735 *) libsuff= shlibsuff= libmagic=never-match;;
9739 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9740 shlibpath_overrides_runpath=no
9741 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9742 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9743 hardcode_into_libs=yes
9746 # No shared lib support for Linux oldld, aout, or coff.
9747 linux*oldld* | linux*aout* | linux*coff*)
9751 # This must be Linux ELF.
9756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9757 soname_spec='${libname}${release}${shared_ext}$major'
9758 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9759 shlibpath_var=LD_LIBRARY_PATH
9760 shlibpath_overrides_runpath=no
9761 # This implies no fast_install, which is unacceptable.
9762 # Some rework will be needed to allow for fast_install
9763 # before this can be enabled.
9764 hardcode_into_libs=yes
9766 # Append ld.so.conf contents to the search path
9767 if test -f /etc/ld.so.conf; then
9768 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' ' '`
9769 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9772 # We used to test for /lib/ld.so.1 and disable shared libraries on
9773 # powerpc, because MkLinux only supported shared libraries with the
9774 # GNU dynamic linker. Since this was broken with cross compilers,
9775 # most powerpc-linux boxes support dynamic linking these days and
9776 # people can always --disable-shared, the test was removed, and we
9777 # assume the GNU/Linux dynamic linker is in use.
9778 dynamic_linker='GNU/Linux ld.so'
9785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9786 soname_spec='${libname}${release}${shared_ext}$major'
9787 shlibpath_var=LD_LIBRARY_PATH
9788 shlibpath_overrides_runpath=no
9789 hardcode_into_libs=yes
9790 dynamic_linker='GNU ld.so'
9797 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9799 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9800 dynamic_linker='NetBSD (a.out) ld.so'
9802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9803 soname_spec='${libname}${release}${shared_ext}$major'
9804 dynamic_linker='NetBSD ld.elf_so'
9806 shlibpath_var=LD_LIBRARY_PATH
9807 shlibpath_overrides_runpath=yes
9808 hardcode_into_libs=yes
9813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9814 shlibpath_var=LD_LIBRARY_PATH
9815 shlibpath_overrides_runpath=yes
9822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9823 soname_spec='${libname}${release}${shared_ext}$major'
9824 shlibpath_var=LD_LIBRARY_PATH
9825 shlibpath_overrides_runpath=yes
9830 sys_lib_dlsearch_path_spec="/usr/lib"
9832 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9834 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9835 *) need_version=no ;;
9837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9838 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9839 shlibpath_var=LD_LIBRARY_PATH
9840 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9842 openbsd2.[89] | openbsd2.[89].*)
9843 shlibpath_overrides_runpath=no
9846 shlibpath_overrides_runpath=yes
9850 shlibpath_overrides_runpath=yes
9855 libname_spec='$name'
9858 library_names_spec='$libname${shared_ext} $libname.a'
9859 dynamic_linker='OS/2 ld.exe'
9860 shlibpath_var=LIBPATH
9863 osf3* | osf4* | osf5*)
9867 soname_spec='${libname}${release}${shared_ext}$major'
9868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9869 shlibpath_var=LD_LIBRARY_PATH
9870 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9871 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9879 soname_spec='${libname}${release}${shared_ext}$major'
9880 shlibpath_var=LD_LIBRARY_PATH
9881 shlibpath_overrides_runpath=yes
9882 hardcode_into_libs=yes
9883 # ldd complains unless libraries are executable
9884 postinstall_cmds='chmod +x $lib'
9889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9890 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9891 shlibpath_var=LD_LIBRARY_PATH
9892 shlibpath_overrides_runpath=yes
9893 if test "$with_gnu_ld" = yes; then
9901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9902 soname_spec='${libname}${release}${shared_ext}$major'
9903 shlibpath_var=LD_LIBRARY_PATH
9904 case $host_vendor in
9906 shlibpath_overrides_runpath=no
9908 export_dynamic_flag_spec='${wl}-Blargedynsym'
9909 runpath_var=LD_RUN_PATH
9917 shlibpath_overrides_runpath=no
9918 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9924 if test -d /usr/nec ;then
9926 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9927 soname_spec='$libname${shared_ext}.$major'
9928 shlibpath_var=LD_LIBRARY_PATH
9932 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9933 version_type=freebsd-elf
9936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9937 soname_spec='${libname}${release}${shared_ext}$major'
9938 shlibpath_var=LD_LIBRARY_PATH
9939 hardcode_into_libs=yes
9940 if test "$with_gnu_ld" = yes; then
9941 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9942 shlibpath_overrides_runpath=no
9944 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9945 shlibpath_overrides_runpath=yes
9948 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9952 sys_lib_dlsearch_path_spec='/usr/lib'
9957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9958 soname_spec='${libname}${release}${shared_ext}$major'
9959 shlibpath_var=LD_LIBRARY_PATH
9966 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9967 echo "${ECHO_T}$dynamic_linker" >&6; }
9968 test "$dynamic_linker" = no && can_build_shared=no
9970 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9971 if test "$GCC" = yes; then
9972 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9976 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9977 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9978 if test "${libltdl_cv_shlibext+set}" = set; then
9979 echo $ECHO_N "(cached) $ECHO_C" >&6
9983 eval libltdl_cv_shlibext=$shrext_cmds
9986 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9987 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9988 if test -n "$libltdl_cv_shlibext"; then
9990 cat >>confdefs.h <<_ACEOF
9991 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9997 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9998 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9999 if test "${libltdl_cv_shlibpath_var+set}" = set; then
10000 echo $ECHO_N "(cached) $ECHO_C" >&6
10002 libltdl_cv_shlibpath_var="$shlibpath_var"
10004 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10005 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
10006 if test -n "$libltdl_cv_shlibpath_var"; then
10008 cat >>confdefs.h <<_ACEOF
10009 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10015 { echo "$as_me:$LINENO: checking for the default library search path" >&5
10016 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10017 if test "${libltdl_cv_sys_search_path+set}" = set; then
10018 echo $ECHO_N "(cached) $ECHO_C" >&6
10020 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10022 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10023 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
10024 if test -n "$libltdl_cv_sys_search_path"; then
10026 for dir in $libltdl_cv_sys_search_path; do
10027 if test -z "$sys_search_path"; then
10028 sys_search_path="$dir"
10030 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10034 cat >>confdefs.h <<_ACEOF
10035 #define LTDL_SYSSEARCHPATH "$sys_search_path"
10040 { echo "$as_me:$LINENO: checking for objdir" >&5
10041 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10042 if test "${libltdl_cv_objdir+set}" = set; then
10043 echo $ECHO_N "(cached) $ECHO_C" >&6
10045 libltdl_cv_objdir="$objdir"
10046 if test -n "$objdir"; then
10049 rm -f .libs 2>/dev/null
10050 mkdir .libs 2>/dev/null
10051 if test -d .libs; then
10052 libltdl_cv_objdir=.libs
10054 # MS-DOS does not allow filenames that begin with a dot.
10055 libltdl_cv_objdir=_libs
10057 rmdir .libs 2>/dev/null
10061 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10062 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
10064 cat >>confdefs.h <<_ACEOF
10065 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
10073 # Check for command to grab the raw symbol name followed by C symbol from nm.
10074 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10075 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10076 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10077 echo $ECHO_N "(cached) $ECHO_C" >&6
10080 # These are sane defaults that work on at least a few old systems.
10081 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10083 # Character class describing NM global symbol codes.
10084 symcode='[BCDEGRST]'
10086 # Regexp to match symbols that can be accessed directly from C.
10087 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10089 # Transform an extracted symbol line into a proper C declaration
10090 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10092 # Transform an extracted symbol line into symbol name and symbol address
10093 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'"
10095 # Define system-specific variables.
10100 cygwin* | mingw* | pw32*)
10101 symcode='[ABCDGISTW]'
10103 hpux*) # Its linker distinguishes data from code symbols
10104 if test "$host_cpu" = ia64; then
10105 symcode='[ABCDEGRST]'
10107 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10108 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
10111 if test "$host_cpu" = ia64; then
10112 symcode='[ABCDGIRSTW]'
10113 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10114 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'"
10117 irix* | nonstopux*)
10118 symcode='[BCDEGRST]'
10121 symcode='[BCDEGQRST]'
10132 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10140 # Handle CRLF in mingw tool chain
10144 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10148 # If we're using GNU nm, then use its standard symbol codes.
10149 case `$NM -V 2>&1` in
10150 *GNU* | *'with BFD'*)
10151 symcode='[ABCDGIRSTW]' ;;
10154 # Try without a prefix undercore, then with it.
10155 for ac_symprfx in "" "_"; do
10157 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10158 symxfrm="\\1 $ac_symprfx\\2 \\2"
10160 # Write the raw and C identifiers.
10161 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10163 # Check to see that the pipe works correctly.
10167 cat > conftest.$ac_ext <<EOF
10172 void nm_test_func(){}
10176 int main(){nm_test_var='a';nm_test_func();return(0);}
10179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10180 (eval $ac_compile) 2>&5
10182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183 (exit $ac_status); }; then
10184 # Now try to grab the symbols.
10186 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10187 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10190 (exit $ac_status); } && test -s "$nlist"; then
10191 # Try sorting and uniquifying the output.
10192 if sort "$nlist" | uniq > "$nlist"T; then
10193 mv -f "$nlist"T "$nlist"
10198 # Make sure that we snagged all the symbols we need.
10199 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10200 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10201 cat <<EOF > conftest.$ac_ext
10207 # Now generate the symbol file.
10208 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10210 cat <<EOF >> conftest.$ac_ext
10211 #if defined (__STDC__) && __STDC__
10212 # define lt_ptr_t void *
10214 # define lt_ptr_t char *
10218 /* The mapping between symbol names and symbols. */
10223 lt_preloaded_symbols[] =
10226 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10227 cat <<\EOF >> conftest.$ac_ext
10235 # Now try linking the two files.
10236 mv conftest.$ac_objext conftstm.$ac_objext
10237 lt_save_LIBS="$LIBS"
10238 lt_save_CFLAGS="$CFLAGS"
10239 LIBS="conftstm.$ac_objext"
10240 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10242 (eval $ac_link) 2>&5
10244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10245 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10248 LIBS="$lt_save_LIBS"
10249 CFLAGS="$lt_save_CFLAGS"
10251 echo "cannot find nm_test_func in $nlist" >&5
10254 echo "cannot find nm_test_var in $nlist" >&5
10257 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10260 echo "$progname: failed program was:" >&5
10261 cat conftest.$ac_ext >&5
10263 rm -f conftest* conftst*
10265 # Do not use the global_symbol_pipe unless it works.
10266 if test "$pipe_works" = yes; then
10269 lt_cv_sys_global_symbol_pipe=
10275 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10276 lt_cv_sys_global_symbol_to_cdecl=
10278 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10279 { echo "$as_me:$LINENO: result: failed" >&5
10280 echo "${ECHO_T}failed" >&6; }
10282 { echo "$as_me:$LINENO: result: ok" >&5
10283 echo "${ECHO_T}ok" >&6; }
10287 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10288 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10289 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10290 echo $ECHO_N "(cached) $ECHO_C" >&6
10292 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10293 libltdl_cv_preloaded_symbols=yes
10295 libltdl_cv_preloaded_symbols=no
10299 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10300 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10301 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10303 cat >>confdefs.h <<\_ACEOF
10304 #define HAVE_PRELOADED_SYMBOLS 1
10312 ac_cpp='$CPP $CPPFLAGS'
10313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10318 { echo "$as_me:$LINENO: checking for shl_load" >&5
10319 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10320 if test "${ac_cv_func_shl_load+set}" = set; then
10321 echo $ECHO_N "(cached) $ECHO_C" >&6
10323 cat >conftest.$ac_ext <<_ACEOF
10326 cat confdefs.h >>conftest.$ac_ext
10327 cat >>conftest.$ac_ext <<_ACEOF
10328 /* end confdefs.h. */
10329 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10330 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10331 #define shl_load innocuous_shl_load
10333 /* System header to define __stub macros and hopefully few prototypes,
10334 which can conflict with char shl_load (); below.
10335 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10336 <limits.h> exists even on freestanding compilers. */
10339 # include <limits.h>
10341 # include <assert.h>
10346 /* Override any GCC internal prototype to avoid an error.
10347 Use char because int might match the return type of a GCC
10348 builtin and then its argument prototype would still apply. */
10353 /* The GNU C library defines this for functions which it implements
10354 to always fail with ENOSYS. Some functions are actually named
10355 something starting with __ and the normal name is an alias. */
10356 #if defined __stub_shl_load || defined __stub___shl_load
10363 return shl_load ();
10368 rm -f conftest.$ac_objext conftest$ac_exeext
10369 if { (ac_try="$ac_link"
10370 case "(($ac_try" in
10371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10372 *) ac_try_echo=$ac_try;;
10374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10375 (eval "$ac_link") 2>conftest.er1
10377 grep -v '^ *+' conftest.er1 >conftest.err
10379 cat conftest.err >&5
10380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10381 (exit $ac_status); } &&
10382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10383 { (case "(($ac_try" in
10384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10385 *) ac_try_echo=$ac_try;;
10387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10388 (eval "$ac_try") 2>&5
10390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10391 (exit $ac_status); }; } &&
10392 { ac_try='test -s conftest$ac_exeext'
10393 { (case "(($ac_try" in
10394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10395 *) ac_try_echo=$ac_try;;
10397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10398 (eval "$ac_try") 2>&5
10400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10401 (exit $ac_status); }; }; then
10402 ac_cv_func_shl_load=yes
10404 echo "$as_me: failed program was:" >&5
10405 sed 's/^/| /' conftest.$ac_ext >&5
10407 ac_cv_func_shl_load=no
10410 rm -f core conftest.err conftest.$ac_objext \
10411 conftest$ac_exeext conftest.$ac_ext
10413 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10414 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10415 if test $ac_cv_func_shl_load = yes; then
10417 cat >>confdefs.h <<\_ACEOF
10418 #define HAVE_SHL_LOAD 1
10422 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10423 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10424 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10425 echo $ECHO_N "(cached) $ECHO_C" >&6
10427 ac_check_lib_save_LIBS=$LIBS
10429 cat >conftest.$ac_ext <<_ACEOF
10432 cat confdefs.h >>conftest.$ac_ext
10433 cat >>conftest.$ac_ext <<_ACEOF
10434 /* end confdefs.h. */
10436 /* Override any GCC internal prototype to avoid an error.
10437 Use char because int might match the return type of a GCC
10438 builtin and then its argument prototype would still apply. */
10446 return shl_load ();
10451 rm -f conftest.$ac_objext conftest$ac_exeext
10452 if { (ac_try="$ac_link"
10453 case "(($ac_try" in
10454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10455 *) ac_try_echo=$ac_try;;
10457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10458 (eval "$ac_link") 2>conftest.er1
10460 grep -v '^ *+' conftest.er1 >conftest.err
10462 cat conftest.err >&5
10463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464 (exit $ac_status); } &&
10465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10466 { (case "(($ac_try" in
10467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10468 *) ac_try_echo=$ac_try;;
10470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10471 (eval "$ac_try") 2>&5
10473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474 (exit $ac_status); }; } &&
10475 { ac_try='test -s conftest$ac_exeext'
10476 { (case "(($ac_try" in
10477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10478 *) ac_try_echo=$ac_try;;
10480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10481 (eval "$ac_try") 2>&5
10483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10484 (exit $ac_status); }; }; then
10485 ac_cv_lib_dld_shl_load=yes
10487 echo "$as_me: failed program was:" >&5
10488 sed 's/^/| /' conftest.$ac_ext >&5
10490 ac_cv_lib_dld_shl_load=no
10493 rm -f core conftest.err conftest.$ac_objext \
10494 conftest$ac_exeext conftest.$ac_ext
10495 LIBS=$ac_check_lib_save_LIBS
10497 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10498 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10499 if test $ac_cv_lib_dld_shl_load = yes; then
10501 cat >>confdefs.h <<\_ACEOF
10502 #define HAVE_SHL_LOAD 1
10505 LIBADD_DL="$LIBADD_DL -ldld"
10507 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10508 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10509 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10510 echo $ECHO_N "(cached) $ECHO_C" >&6
10512 ac_check_lib_save_LIBS=$LIBS
10514 cat >conftest.$ac_ext <<_ACEOF
10517 cat confdefs.h >>conftest.$ac_ext
10518 cat >>conftest.$ac_ext <<_ACEOF
10519 /* end confdefs.h. */
10521 /* Override any GCC internal prototype to avoid an error.
10522 Use char because int might match the return type of a GCC
10523 builtin and then its argument prototype would still apply. */
10536 rm -f conftest.$ac_objext conftest$ac_exeext
10537 if { (ac_try="$ac_link"
10538 case "(($ac_try" in
10539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10540 *) ac_try_echo=$ac_try;;
10542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10543 (eval "$ac_link") 2>conftest.er1
10545 grep -v '^ *+' conftest.er1 >conftest.err
10547 cat conftest.err >&5
10548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549 (exit $ac_status); } &&
10550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10551 { (case "(($ac_try" in
10552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10553 *) ac_try_echo=$ac_try;;
10555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10556 (eval "$ac_try") 2>&5
10558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559 (exit $ac_status); }; } &&
10560 { ac_try='test -s conftest$ac_exeext'
10561 { (case "(($ac_try" in
10562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10563 *) ac_try_echo=$ac_try;;
10565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10566 (eval "$ac_try") 2>&5
10568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10569 (exit $ac_status); }; }; then
10570 ac_cv_lib_dl_dlopen=yes
10572 echo "$as_me: failed program was:" >&5
10573 sed 's/^/| /' conftest.$ac_ext >&5
10575 ac_cv_lib_dl_dlopen=no
10578 rm -f core conftest.err conftest.$ac_objext \
10579 conftest$ac_exeext conftest.$ac_ext
10580 LIBS=$ac_check_lib_save_LIBS
10582 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10583 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10584 if test $ac_cv_lib_dl_dlopen = yes; then
10586 cat >>confdefs.h <<\_ACEOF
10587 #define HAVE_LIBDL 1
10590 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10592 cat >conftest.$ac_ext <<_ACEOF
10595 cat confdefs.h >>conftest.$ac_ext
10596 cat >>conftest.$ac_ext <<_ACEOF
10597 /* end confdefs.h. */
10599 # include <dlfcn.h>
10610 rm -f conftest.$ac_objext conftest$ac_exeext
10611 if { (ac_try="$ac_link"
10612 case "(($ac_try" in
10613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10614 *) ac_try_echo=$ac_try;;
10616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10617 (eval "$ac_link") 2>conftest.er1
10619 grep -v '^ *+' conftest.er1 >conftest.err
10621 cat conftest.err >&5
10622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623 (exit $ac_status); } &&
10624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10625 { (case "(($ac_try" in
10626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10627 *) ac_try_echo=$ac_try;;
10629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10630 (eval "$ac_try") 2>&5
10632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633 (exit $ac_status); }; } &&
10634 { ac_try='test -s conftest$ac_exeext'
10635 { (case "(($ac_try" in
10636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10637 *) ac_try_echo=$ac_try;;
10639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10640 (eval "$ac_try") 2>&5
10642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643 (exit $ac_status); }; }; then
10645 cat >>confdefs.h <<\_ACEOF
10646 #define HAVE_LIBDL 1
10648 libltdl_cv_func_dlopen="yes"
10650 echo "$as_me: failed program was:" >&5
10651 sed 's/^/| /' conftest.$ac_ext >&5
10653 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10654 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10655 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10656 echo $ECHO_N "(cached) $ECHO_C" >&6
10658 ac_check_lib_save_LIBS=$LIBS
10659 LIBS="-lsvld $LIBS"
10660 cat >conftest.$ac_ext <<_ACEOF
10663 cat confdefs.h >>conftest.$ac_ext
10664 cat >>conftest.$ac_ext <<_ACEOF
10665 /* end confdefs.h. */
10667 /* Override any GCC internal prototype to avoid an error.
10668 Use char because int might match the return type of a GCC
10669 builtin and then its argument prototype would still apply. */
10682 rm -f conftest.$ac_objext conftest$ac_exeext
10683 if { (ac_try="$ac_link"
10684 case "(($ac_try" in
10685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10686 *) ac_try_echo=$ac_try;;
10688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10689 (eval "$ac_link") 2>conftest.er1
10691 grep -v '^ *+' conftest.er1 >conftest.err
10693 cat conftest.err >&5
10694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10695 (exit $ac_status); } &&
10696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10697 { (case "(($ac_try" in
10698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10699 *) ac_try_echo=$ac_try;;
10701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10702 (eval "$ac_try") 2>&5
10704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10705 (exit $ac_status); }; } &&
10706 { ac_try='test -s conftest$ac_exeext'
10707 { (case "(($ac_try" in
10708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10709 *) ac_try_echo=$ac_try;;
10711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10712 (eval "$ac_try") 2>&5
10714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10715 (exit $ac_status); }; }; then
10716 ac_cv_lib_svld_dlopen=yes
10718 echo "$as_me: failed program was:" >&5
10719 sed 's/^/| /' conftest.$ac_ext >&5
10721 ac_cv_lib_svld_dlopen=no
10724 rm -f core conftest.err conftest.$ac_objext \
10725 conftest$ac_exeext conftest.$ac_ext
10726 LIBS=$ac_check_lib_save_LIBS
10728 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10729 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10730 if test $ac_cv_lib_svld_dlopen = yes; then
10732 cat >>confdefs.h <<\_ACEOF
10733 #define HAVE_LIBDL 1
10736 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10738 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10739 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10740 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10741 echo $ECHO_N "(cached) $ECHO_C" >&6
10743 ac_check_lib_save_LIBS=$LIBS
10745 cat >conftest.$ac_ext <<_ACEOF
10748 cat confdefs.h >>conftest.$ac_ext
10749 cat >>conftest.$ac_ext <<_ACEOF
10750 /* end confdefs.h. */
10752 /* Override any GCC internal prototype to avoid an error.
10753 Use char because int might match the return type of a GCC
10754 builtin and then its argument prototype would still apply. */
10762 return dld_link ();
10767 rm -f conftest.$ac_objext conftest$ac_exeext
10768 if { (ac_try="$ac_link"
10769 case "(($ac_try" in
10770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10771 *) ac_try_echo=$ac_try;;
10773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10774 (eval "$ac_link") 2>conftest.er1
10776 grep -v '^ *+' conftest.er1 >conftest.err
10778 cat conftest.err >&5
10779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10780 (exit $ac_status); } &&
10781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10782 { (case "(($ac_try" in
10783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10784 *) ac_try_echo=$ac_try;;
10786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10787 (eval "$ac_try") 2>&5
10789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10790 (exit $ac_status); }; } &&
10791 { ac_try='test -s conftest$ac_exeext'
10792 { (case "(($ac_try" in
10793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10794 *) ac_try_echo=$ac_try;;
10796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10797 (eval "$ac_try") 2>&5
10799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10800 (exit $ac_status); }; }; then
10801 ac_cv_lib_dld_dld_link=yes
10803 echo "$as_me: failed program was:" >&5
10804 sed 's/^/| /' conftest.$ac_ext >&5
10806 ac_cv_lib_dld_dld_link=no
10809 rm -f core conftest.err conftest.$ac_objext \
10810 conftest$ac_exeext conftest.$ac_ext
10811 LIBS=$ac_check_lib_save_LIBS
10813 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10814 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10815 if test $ac_cv_lib_dld_dld_link = yes; then
10817 cat >>confdefs.h <<\_ACEOF
10821 LIBADD_DL="$LIBADD_DL -ldld"
10823 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10824 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10825 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10826 echo $ECHO_N "(cached) $ECHO_C" >&6
10828 cat >conftest.$ac_ext <<_ACEOF
10831 cat confdefs.h >>conftest.$ac_ext
10832 cat >>conftest.$ac_ext <<_ACEOF
10833 /* end confdefs.h. */
10834 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10835 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10836 #define _dyld_func_lookup innocuous__dyld_func_lookup
10838 /* System header to define __stub macros and hopefully few prototypes,
10839 which can conflict with char _dyld_func_lookup (); below.
10840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10841 <limits.h> exists even on freestanding compilers. */
10844 # include <limits.h>
10846 # include <assert.h>
10849 #undef _dyld_func_lookup
10851 /* Override any GCC internal prototype to avoid an error.
10852 Use char because int might match the return type of a GCC
10853 builtin and then its argument prototype would still apply. */
10857 char _dyld_func_lookup ();
10858 /* The GNU C library defines this for functions which it implements
10859 to always fail with ENOSYS. Some functions are actually named
10860 something starting with __ and the normal name is an alias. */
10861 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10868 return _dyld_func_lookup ();
10873 rm -f conftest.$ac_objext conftest$ac_exeext
10874 if { (ac_try="$ac_link"
10875 case "(($ac_try" in
10876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10877 *) ac_try_echo=$ac_try;;
10879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10880 (eval "$ac_link") 2>conftest.er1
10882 grep -v '^ *+' conftest.er1 >conftest.err
10884 cat conftest.err >&5
10885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886 (exit $ac_status); } &&
10887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10888 { (case "(($ac_try" in
10889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10890 *) ac_try_echo=$ac_try;;
10892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10893 (eval "$ac_try") 2>&5
10895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896 (exit $ac_status); }; } &&
10897 { ac_try='test -s conftest$ac_exeext'
10898 { (case "(($ac_try" in
10899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10900 *) ac_try_echo=$ac_try;;
10902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10903 (eval "$ac_try") 2>&5
10905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10906 (exit $ac_status); }; }; then
10907 ac_cv_func__dyld_func_lookup=yes
10909 echo "$as_me: failed program was:" >&5
10910 sed 's/^/| /' conftest.$ac_ext >&5
10912 ac_cv_func__dyld_func_lookup=no
10915 rm -f core conftest.err conftest.$ac_objext \
10916 conftest$ac_exeext conftest.$ac_ext
10918 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10919 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10920 if test $ac_cv_func__dyld_func_lookup = yes; then
10922 cat >>confdefs.h <<\_ACEOF
10923 #define HAVE_DYLD 1
10937 rm -f core conftest.err conftest.$ac_objext \
10938 conftest$ac_exeext conftest.$ac_ext
10949 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10951 lt_save_LIBS="$LIBS"
10952 LIBS="$LIBS $LIBADD_DL"
10954 for ac_func in dlerror
10956 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10957 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10958 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10959 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10960 echo $ECHO_N "(cached) $ECHO_C" >&6
10962 cat >conftest.$ac_ext <<_ACEOF
10965 cat confdefs.h >>conftest.$ac_ext
10966 cat >>conftest.$ac_ext <<_ACEOF
10967 /* end confdefs.h. */
10968 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10969 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10970 #define $ac_func innocuous_$ac_func
10972 /* System header to define __stub macros and hopefully few prototypes,
10973 which can conflict with char $ac_func (); below.
10974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10975 <limits.h> exists even on freestanding compilers. */
10978 # include <limits.h>
10980 # include <assert.h>
10985 /* Override any GCC internal prototype to avoid an error.
10986 Use char because int might match the return type of a GCC
10987 builtin and then its argument prototype would still apply. */
10992 /* The GNU C library defines this for functions which it implements
10993 to always fail with ENOSYS. Some functions are actually named
10994 something starting with __ and the normal name is an alias. */
10995 #if defined __stub_$ac_func || defined __stub___$ac_func
11002 return $ac_func ();
11007 rm -f conftest.$ac_objext conftest$ac_exeext
11008 if { (ac_try="$ac_link"
11009 case "(($ac_try" in
11010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11011 *) ac_try_echo=$ac_try;;
11013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11014 (eval "$ac_link") 2>conftest.er1
11016 grep -v '^ *+' conftest.er1 >conftest.err
11018 cat conftest.err >&5
11019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020 (exit $ac_status); } &&
11021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11022 { (case "(($ac_try" in
11023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11024 *) ac_try_echo=$ac_try;;
11026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11027 (eval "$ac_try") 2>&5
11029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030 (exit $ac_status); }; } &&
11031 { ac_try='test -s conftest$ac_exeext'
11032 { (case "(($ac_try" in
11033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11034 *) ac_try_echo=$ac_try;;
11036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11037 (eval "$ac_try") 2>&5
11039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11040 (exit $ac_status); }; }; then
11041 eval "$as_ac_var=yes"
11043 echo "$as_me: failed program was:" >&5
11044 sed 's/^/| /' conftest.$ac_ext >&5
11046 eval "$as_ac_var=no"
11049 rm -f core conftest.err conftest.$ac_objext \
11050 conftest$ac_exeext conftest.$ac_ext
11052 ac_res=`eval echo '${'$as_ac_var'}'`
11053 { echo "$as_me:$LINENO: result: $ac_res" >&5
11054 echo "${ECHO_T}$ac_res" >&6; }
11055 if test `eval echo '${'$as_ac_var'}'` = yes; then
11056 cat >>confdefs.h <<_ACEOF
11057 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11063 LIBS="$lt_save_LIBS"
11066 ac_cpp='$CPP $CPPFLAGS'
11067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11073 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11074 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11075 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11076 echo $ECHO_N "(cached) $ECHO_C" >&6
11078 ac_cv_sys_symbol_underscore=no
11079 cat > conftest.$ac_ext <<EOF
11080 void nm_test_func(){}
11081 int main(){nm_test_func;return 0;}
11083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11084 (eval $ac_compile) 2>&5
11086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11087 (exit $ac_status); }; then
11088 # Now try to grab the symbols.
11089 ac_nlist=conftest.nm
11090 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11091 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094 (exit $ac_status); } && test -s "$ac_nlist"; then
11095 # See whether the symbols have a leading underscore.
11096 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11097 ac_cv_sys_symbol_underscore=yes
11099 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11102 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11106 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11109 echo "configure: failed program was:" >&5
11115 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11116 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11119 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11120 if test x"$libltdl_cv_func_dlopen" = xyes ||
11121 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11122 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11123 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11124 if test "${libltdl_cv_need_uscore+set}" = set; then
11125 echo $ECHO_N "(cached) $ECHO_C" >&6
11127 libltdl_cv_need_uscore=unknown
11129 LIBS="$LIBS $LIBADD_DL"
11130 if test "$cross_compiling" = yes; then :
11131 libltdl_cv_need_uscore=cross
11133 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11134 lt_status=$lt_dlunknown
11135 cat > conftest.$ac_ext <<EOF
11136 #line 11136 "configure"
11137 #include "confdefs.h"
11146 # define LT_DLGLOBAL RTLD_GLOBAL
11149 # define LT_DLGLOBAL DL_GLOBAL
11151 # define LT_DLGLOBAL 0
11155 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11156 find out it does not work in some platform. */
11157 #ifndef LT_DLLAZY_OR_NOW
11159 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11162 # define LT_DLLAZY_OR_NOW DL_LAZY
11165 # define LT_DLLAZY_OR_NOW RTLD_NOW
11168 # define LT_DLLAZY_OR_NOW DL_NOW
11170 # define LT_DLLAZY_OR_NOW 0
11178 extern "C" void exit (int);
11181 void fnord() { int i=42;}
11184 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11185 int status = $lt_dlunknown;
11189 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11190 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11191 /* dlclose (self); */
11199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11200 (eval $ac_link) 2>&5
11202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11203 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11204 (./conftest; exit; ) >&5 2>/dev/null
11206 case x$lt_status in
11207 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11208 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11209 x$lt_dlunknown|x*) ;;
11212 # compilation failed
11221 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11222 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11226 if test x"$libltdl_cv_need_uscore" = xyes; then
11228 cat >>confdefs.h <<\_ACEOF
11229 #define NEED_USCORE 1
11235 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11236 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11237 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11238 echo $ECHO_N "(cached) $ECHO_C" >&6
11240 # PORTME does your system automatically load deplibs for dlopen?
11241 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11242 # For now, we just catch OSes we know something about -- in the
11243 # future, we'll try test this programmatically.
11244 libltdl_cv_sys_dlopen_deplibs=unknown
11246 aix3*|aix4.1.*|aix4.2.*)
11247 # Unknown whether this is true for these versions of AIX, but
11248 # we want this `case' here to explicitly catch those versions.
11249 libltdl_cv_sys_dlopen_deplibs=unknown
11252 libltdl_cv_sys_dlopen_deplibs=yes
11255 # Assuming the user has installed a libdl from somewhere, this is true
11256 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11257 libltdl_cv_sys_dlopen_deplibs=yes
11259 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11260 # GNU and its variants, using gnu ld.so (Glibc)
11261 libltdl_cv_sys_dlopen_deplibs=yes
11264 libltdl_cv_sys_dlopen_deplibs=yes
11267 libltdl_cv_sys_dlopen_deplibs=yes
11269 irix[12345]*|irix6.[01]*)
11270 # Catch all versions of IRIX before 6.2, and indicate that we don't
11271 # know how it worked for any of those versions.
11272 libltdl_cv_sys_dlopen_deplibs=unknown
11275 # The case above catches anything before 6.2, and it's known that
11276 # at 6.2 and later dlopen does load deplibs.
11277 libltdl_cv_sys_dlopen_deplibs=yes
11280 libltdl_cv_sys_dlopen_deplibs=yes
11283 libltdl_cv_sys_dlopen_deplibs=yes
11286 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11287 # it did *not* use an RPATH in a shared library to find objects the
11288 # library depends on, so we explictly say `no'.
11289 libltdl_cv_sys_dlopen_deplibs=no
11291 osf5.0|osf5.0a|osf5.1)
11292 # dlopen *does* load deplibs and with the right loader patch applied
11293 # it even uses RPATH in a shared library to search for shared objects
11294 # that the library depends on, but there's no easy way to know if that
11295 # patch is installed. Since this is the case, all we can really
11296 # say is unknown -- it depends on the patch being installed. If
11297 # it is, this changes to `yes'. Without it, it would be `no'.
11298 libltdl_cv_sys_dlopen_deplibs=unknown
11301 # the two cases above should catch all versions of osf <= 5.1. Read
11302 # the comments above for what we know about them.
11303 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11304 # is used to find them so we can finally say `yes'.
11305 libltdl_cv_sys_dlopen_deplibs=yes
11308 libltdl_cv_sys_dlopen_deplibs=yes
11310 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11311 libltdl_cv_sys_dlopen_deplibs=yes
11316 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11317 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11318 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11320 cat >>confdefs.h <<\_ACEOF
11321 #define LTDL_DLOPEN_DEPLIBS 1
11327 for ac_header in argz.h
11329 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11331 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11333 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11334 echo $ECHO_N "(cached) $ECHO_C" >&6
11336 ac_res=`eval echo '${'$as_ac_Header'}'`
11337 { echo "$as_me:$LINENO: result: $ac_res" >&5
11338 echo "${ECHO_T}$ac_res" >&6; }
11340 # Is the header compilable?
11341 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11342 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11343 cat >conftest.$ac_ext <<_ACEOF
11346 cat confdefs.h >>conftest.$ac_ext
11347 cat >>conftest.$ac_ext <<_ACEOF
11348 /* end confdefs.h. */
11349 $ac_includes_default
11350 #include <$ac_header>
11352 rm -f conftest.$ac_objext
11353 if { (ac_try="$ac_compile"
11354 case "(($ac_try" in
11355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11356 *) ac_try_echo=$ac_try;;
11358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11359 (eval "$ac_compile") 2>conftest.er1
11361 grep -v '^ *+' conftest.er1 >conftest.err
11363 cat conftest.err >&5
11364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11365 (exit $ac_status); } &&
11366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11367 { (case "(($ac_try" in
11368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11369 *) ac_try_echo=$ac_try;;
11371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11372 (eval "$ac_try") 2>&5
11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); }; } &&
11376 { ac_try='test -s conftest.$ac_objext'
11377 { (case "(($ac_try" in
11378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11379 *) ac_try_echo=$ac_try;;
11381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11382 (eval "$ac_try") 2>&5
11384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385 (exit $ac_status); }; }; then
11386 ac_header_compiler=yes
11388 echo "$as_me: failed program was:" >&5
11389 sed 's/^/| /' conftest.$ac_ext >&5
11391 ac_header_compiler=no
11394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11395 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11396 echo "${ECHO_T}$ac_header_compiler" >&6; }
11398 # Is the header present?
11399 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11400 echo $ECHO_N "checking $ac_header presence... $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. */
11407 #include <$ac_header>
11409 if { (ac_try="$ac_cpp conftest.$ac_ext"
11410 case "(($ac_try" in
11411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11412 *) ac_try_echo=$ac_try;;
11414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11415 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11417 grep -v '^ *+' conftest.er1 >conftest.err
11419 cat conftest.err >&5
11420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421 (exit $ac_status); } >/dev/null; then
11422 if test -s conftest.err; then
11423 ac_cpp_err=$ac_c_preproc_warn_flag
11424 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11431 if test -z "$ac_cpp_err"; then
11432 ac_header_preproc=yes
11434 echo "$as_me: failed program was:" >&5
11435 sed 's/^/| /' conftest.$ac_ext >&5
11437 ac_header_preproc=no
11440 rm -f conftest.err conftest.$ac_ext
11441 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11442 echo "${ECHO_T}$ac_header_preproc" >&6; }
11444 # So? What about this header?
11445 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11447 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11448 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11449 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11450 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11451 ac_header_preproc=yes
11454 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11455 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11456 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11457 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11458 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11459 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11460 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11461 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11462 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11463 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11464 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11465 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11467 ## ----------------------------------- ##
11468 ## Report this to llvmbugs@cs.uiuc.edu ##
11469 ## ----------------------------------- ##
11471 ) | sed "s/^/$as_me: WARNING: /" >&2
11474 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11476 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11477 echo $ECHO_N "(cached) $ECHO_C" >&6
11479 eval "$as_ac_Header=\$ac_header_preproc"
11481 ac_res=`eval echo '${'$as_ac_Header'}'`
11482 { echo "$as_me:$LINENO: result: $ac_res" >&5
11483 echo "${ECHO_T}$ac_res" >&6; }
11486 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11487 cat >>confdefs.h <<_ACEOF
11488 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11496 { echo "$as_me:$LINENO: checking for error_t" >&5
11497 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11498 if test "${ac_cv_type_error_t+set}" = set; then
11499 echo $ECHO_N "(cached) $ECHO_C" >&6
11501 cat >conftest.$ac_ext <<_ACEOF
11504 cat confdefs.h >>conftest.$ac_ext
11505 cat >>conftest.$ac_ext <<_ACEOF
11506 /* end confdefs.h. */
11511 typedef error_t ac__type_new_;
11515 if ((ac__type_new_ *) 0)
11517 if (sizeof (ac__type_new_))
11523 rm -f conftest.$ac_objext
11524 if { (ac_try="$ac_compile"
11525 case "(($ac_try" in
11526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11527 *) ac_try_echo=$ac_try;;
11529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11530 (eval "$ac_compile") 2>conftest.er1
11532 grep -v '^ *+' conftest.er1 >conftest.err
11534 cat conftest.err >&5
11535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11536 (exit $ac_status); } &&
11537 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11538 { (case "(($ac_try" in
11539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11540 *) ac_try_echo=$ac_try;;
11542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11543 (eval "$ac_try") 2>&5
11545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546 (exit $ac_status); }; } &&
11547 { ac_try='test -s conftest.$ac_objext'
11548 { (case "(($ac_try" in
11549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11550 *) ac_try_echo=$ac_try;;
11552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11553 (eval "$ac_try") 2>&5
11555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556 (exit $ac_status); }; }; then
11557 ac_cv_type_error_t=yes
11559 echo "$as_me: failed program was:" >&5
11560 sed 's/^/| /' conftest.$ac_ext >&5
11562 ac_cv_type_error_t=no
11565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11567 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11568 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11569 if test $ac_cv_type_error_t = yes; then
11571 cat >>confdefs.h <<_ACEOF
11572 #define HAVE_ERROR_T 1
11578 cat >>confdefs.h <<\_ACEOF
11579 #define error_t int
11590 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11592 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11593 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11594 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11595 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11596 echo $ECHO_N "(cached) $ECHO_C" >&6
11598 cat >conftest.$ac_ext <<_ACEOF
11601 cat confdefs.h >>conftest.$ac_ext
11602 cat >>conftest.$ac_ext <<_ACEOF
11603 /* end confdefs.h. */
11604 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11605 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11606 #define $ac_func innocuous_$ac_func
11608 /* System header to define __stub macros and hopefully few prototypes,
11609 which can conflict with char $ac_func (); below.
11610 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11611 <limits.h> exists even on freestanding compilers. */
11614 # include <limits.h>
11616 # include <assert.h>
11621 /* Override any GCC internal prototype to avoid an error.
11622 Use char because int might match the return type of a GCC
11623 builtin and then its argument prototype would still apply. */
11628 /* The GNU C library defines this for functions which it implements
11629 to always fail with ENOSYS. Some functions are actually named
11630 something starting with __ and the normal name is an alias. */
11631 #if defined __stub_$ac_func || defined __stub___$ac_func
11638 return $ac_func ();
11643 rm -f conftest.$ac_objext conftest$ac_exeext
11644 if { (ac_try="$ac_link"
11645 case "(($ac_try" in
11646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11647 *) ac_try_echo=$ac_try;;
11649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11650 (eval "$ac_link") 2>conftest.er1
11652 grep -v '^ *+' conftest.er1 >conftest.err
11654 cat conftest.err >&5
11655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656 (exit $ac_status); } &&
11657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11658 { (case "(($ac_try" in
11659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11660 *) ac_try_echo=$ac_try;;
11662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11663 (eval "$ac_try") 2>&5
11665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666 (exit $ac_status); }; } &&
11667 { ac_try='test -s conftest$ac_exeext'
11668 { (case "(($ac_try" in
11669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11670 *) ac_try_echo=$ac_try;;
11672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11673 (eval "$ac_try") 2>&5
11675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676 (exit $ac_status); }; }; then
11677 eval "$as_ac_var=yes"
11679 echo "$as_me: failed program was:" >&5
11680 sed 's/^/| /' conftest.$ac_ext >&5
11682 eval "$as_ac_var=no"
11685 rm -f core conftest.err conftest.$ac_objext \
11686 conftest$ac_exeext conftest.$ac_ext
11688 ac_res=`eval echo '${'$as_ac_var'}'`
11689 { echo "$as_me:$LINENO: result: $ac_res" >&5
11690 echo "${ECHO_T}$ac_res" >&6; }
11691 if test `eval echo '${'$as_ac_var'}'` = yes; then
11692 cat >>confdefs.h <<_ACEOF
11693 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11726 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11729 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11730 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11731 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11732 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11733 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11734 echo $ECHO_N "(cached) $ECHO_C" >&6
11736 ac_res=`eval echo '${'$as_ac_Header'}'`
11737 { echo "$as_me:$LINENO: result: $ac_res" >&5
11738 echo "${ECHO_T}$ac_res" >&6; }
11740 # Is the header compilable?
11741 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11742 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11743 cat >conftest.$ac_ext <<_ACEOF
11746 cat confdefs.h >>conftest.$ac_ext
11747 cat >>conftest.$ac_ext <<_ACEOF
11748 /* end confdefs.h. */
11749 $ac_includes_default
11750 #include <$ac_header>
11752 rm -f conftest.$ac_objext
11753 if { (ac_try="$ac_compile"
11754 case "(($ac_try" in
11755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11756 *) ac_try_echo=$ac_try;;
11758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11759 (eval "$ac_compile") 2>conftest.er1
11761 grep -v '^ *+' conftest.er1 >conftest.err
11763 cat conftest.err >&5
11764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765 (exit $ac_status); } &&
11766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11767 { (case "(($ac_try" in
11768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11769 *) ac_try_echo=$ac_try;;
11771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11772 (eval "$ac_try") 2>&5
11774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11775 (exit $ac_status); }; } &&
11776 { ac_try='test -s conftest.$ac_objext'
11777 { (case "(($ac_try" in
11778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11779 *) ac_try_echo=$ac_try;;
11781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11782 (eval "$ac_try") 2>&5
11784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11785 (exit $ac_status); }; }; then
11786 ac_header_compiler=yes
11788 echo "$as_me: failed program was:" >&5
11789 sed 's/^/| /' conftest.$ac_ext >&5
11791 ac_header_compiler=no
11794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11795 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11796 echo "${ECHO_T}$ac_header_compiler" >&6; }
11798 # Is the header present?
11799 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11800 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11801 cat >conftest.$ac_ext <<_ACEOF
11804 cat confdefs.h >>conftest.$ac_ext
11805 cat >>conftest.$ac_ext <<_ACEOF
11806 /* end confdefs.h. */
11807 #include <$ac_header>
11809 if { (ac_try="$ac_cpp conftest.$ac_ext"
11810 case "(($ac_try" in
11811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11812 *) ac_try_echo=$ac_try;;
11814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11815 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11817 grep -v '^ *+' conftest.er1 >conftest.err
11819 cat conftest.err >&5
11820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821 (exit $ac_status); } >/dev/null; then
11822 if test -s conftest.err; then
11823 ac_cpp_err=$ac_c_preproc_warn_flag
11824 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11831 if test -z "$ac_cpp_err"; then
11832 ac_header_preproc=yes
11834 echo "$as_me: failed program was:" >&5
11835 sed 's/^/| /' conftest.$ac_ext >&5
11837 ac_header_preproc=no
11840 rm -f conftest.err conftest.$ac_ext
11841 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11842 echo "${ECHO_T}$ac_header_preproc" >&6; }
11844 # So? What about this header?
11845 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11847 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11848 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11849 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11850 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11851 ac_header_preproc=yes
11854 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11855 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11856 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11857 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11858 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11859 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11860 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11861 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11862 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11863 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11864 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11865 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11867 ## ----------------------------------- ##
11868 ## Report this to llvmbugs@cs.uiuc.edu ##
11869 ## ----------------------------------- ##
11871 ) | sed "s/^/$as_me: WARNING: /" >&2
11874 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11875 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11876 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11877 echo $ECHO_N "(cached) $ECHO_C" >&6
11879 eval "$as_ac_Header=\$ac_header_preproc"
11881 ac_res=`eval echo '${'$as_ac_Header'}'`
11882 { echo "$as_me:$LINENO: result: $ac_res" >&5
11883 echo "${ECHO_T}$ac_res" >&6; }
11886 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11887 cat >>confdefs.h <<_ACEOF
11888 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11899 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11901 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11902 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11903 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11904 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11905 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11906 echo $ECHO_N "(cached) $ECHO_C" >&6
11908 ac_res=`eval echo '${'$as_ac_Header'}'`
11909 { echo "$as_me:$LINENO: result: $ac_res" >&5
11910 echo "${ECHO_T}$ac_res" >&6; }
11912 # Is the header compilable?
11913 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11914 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11915 cat >conftest.$ac_ext <<_ACEOF
11918 cat confdefs.h >>conftest.$ac_ext
11919 cat >>conftest.$ac_ext <<_ACEOF
11920 /* end confdefs.h. */
11921 $ac_includes_default
11922 #include <$ac_header>
11924 rm -f conftest.$ac_objext
11925 if { (ac_try="$ac_compile"
11926 case "(($ac_try" in
11927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11928 *) ac_try_echo=$ac_try;;
11930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11931 (eval "$ac_compile") 2>conftest.er1
11933 grep -v '^ *+' conftest.er1 >conftest.err
11935 cat conftest.err >&5
11936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11937 (exit $ac_status); } &&
11938 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11939 { (case "(($ac_try" in
11940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11941 *) ac_try_echo=$ac_try;;
11943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11944 (eval "$ac_try") 2>&5
11946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947 (exit $ac_status); }; } &&
11948 { ac_try='test -s conftest.$ac_objext'
11949 { (case "(($ac_try" in
11950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11951 *) ac_try_echo=$ac_try;;
11953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11954 (eval "$ac_try") 2>&5
11956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11957 (exit $ac_status); }; }; then
11958 ac_header_compiler=yes
11960 echo "$as_me: failed program was:" >&5
11961 sed 's/^/| /' conftest.$ac_ext >&5
11963 ac_header_compiler=no
11966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11967 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11968 echo "${ECHO_T}$ac_header_compiler" >&6; }
11970 # Is the header present?
11971 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11972 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11973 cat >conftest.$ac_ext <<_ACEOF
11976 cat confdefs.h >>conftest.$ac_ext
11977 cat >>conftest.$ac_ext <<_ACEOF
11978 /* end confdefs.h. */
11979 #include <$ac_header>
11981 if { (ac_try="$ac_cpp conftest.$ac_ext"
11982 case "(($ac_try" in
11983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11984 *) ac_try_echo=$ac_try;;
11986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11987 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11989 grep -v '^ *+' conftest.er1 >conftest.err
11991 cat conftest.err >&5
11992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11993 (exit $ac_status); } >/dev/null; then
11994 if test -s conftest.err; then
11995 ac_cpp_err=$ac_c_preproc_warn_flag
11996 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12003 if test -z "$ac_cpp_err"; then
12004 ac_header_preproc=yes
12006 echo "$as_me: failed program was:" >&5
12007 sed 's/^/| /' conftest.$ac_ext >&5
12009 ac_header_preproc=no
12012 rm -f conftest.err conftest.$ac_ext
12013 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12014 echo "${ECHO_T}$ac_header_preproc" >&6; }
12016 # So? What about this header?
12017 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12019 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12020 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12021 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12022 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12023 ac_header_preproc=yes
12026 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12027 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12028 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12029 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12030 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12031 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12032 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12033 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12034 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12035 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12036 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12037 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12039 ## ----------------------------------- ##
12040 ## Report this to llvmbugs@cs.uiuc.edu ##
12041 ## ----------------------------------- ##
12043 ) | sed "s/^/$as_me: WARNING: /" >&2
12046 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12047 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12048 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12049 echo $ECHO_N "(cached) $ECHO_C" >&6
12051 eval "$as_ac_Header=\$ac_header_preproc"
12053 ac_res=`eval echo '${'$as_ac_Header'}'`
12054 { echo "$as_me:$LINENO: result: $ac_res" >&5
12055 echo "${ECHO_T}$ac_res" >&6; }
12058 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12059 cat >>confdefs.h <<_ACEOF
12060 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12069 for ac_header in string.h strings.h
12071 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12072 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12073 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12074 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12075 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12076 echo $ECHO_N "(cached) $ECHO_C" >&6
12078 ac_res=`eval echo '${'$as_ac_Header'}'`
12079 { echo "$as_me:$LINENO: result: $ac_res" >&5
12080 echo "${ECHO_T}$ac_res" >&6; }
12082 # Is the header compilable?
12083 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12084 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12085 cat >conftest.$ac_ext <<_ACEOF
12088 cat confdefs.h >>conftest.$ac_ext
12089 cat >>conftest.$ac_ext <<_ACEOF
12090 /* end confdefs.h. */
12091 $ac_includes_default
12092 #include <$ac_header>
12094 rm -f conftest.$ac_objext
12095 if { (ac_try="$ac_compile"
12096 case "(($ac_try" in
12097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12098 *) ac_try_echo=$ac_try;;
12100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12101 (eval "$ac_compile") 2>conftest.er1
12103 grep -v '^ *+' conftest.er1 >conftest.err
12105 cat conftest.err >&5
12106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12107 (exit $ac_status); } &&
12108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12109 { (case "(($ac_try" in
12110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12111 *) ac_try_echo=$ac_try;;
12113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12114 (eval "$ac_try") 2>&5
12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); }; } &&
12118 { ac_try='test -s conftest.$ac_objext'
12119 { (case "(($ac_try" in
12120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12121 *) ac_try_echo=$ac_try;;
12123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12124 (eval "$ac_try") 2>&5
12126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127 (exit $ac_status); }; }; then
12128 ac_header_compiler=yes
12130 echo "$as_me: failed program was:" >&5
12131 sed 's/^/| /' conftest.$ac_ext >&5
12133 ac_header_compiler=no
12136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12137 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12138 echo "${ECHO_T}$ac_header_compiler" >&6; }
12140 # Is the header present?
12141 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12142 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12143 cat >conftest.$ac_ext <<_ACEOF
12146 cat confdefs.h >>conftest.$ac_ext
12147 cat >>conftest.$ac_ext <<_ACEOF
12148 /* end confdefs.h. */
12149 #include <$ac_header>
12151 if { (ac_try="$ac_cpp conftest.$ac_ext"
12152 case "(($ac_try" in
12153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12154 *) ac_try_echo=$ac_try;;
12156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12157 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12159 grep -v '^ *+' conftest.er1 >conftest.err
12161 cat conftest.err >&5
12162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12163 (exit $ac_status); } >/dev/null; then
12164 if test -s conftest.err; then
12165 ac_cpp_err=$ac_c_preproc_warn_flag
12166 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12173 if test -z "$ac_cpp_err"; then
12174 ac_header_preproc=yes
12176 echo "$as_me: failed program was:" >&5
12177 sed 's/^/| /' conftest.$ac_ext >&5
12179 ac_header_preproc=no
12182 rm -f conftest.err conftest.$ac_ext
12183 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12184 echo "${ECHO_T}$ac_header_preproc" >&6; }
12186 # So? What about this header?
12187 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12189 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12190 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12191 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12192 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12193 ac_header_preproc=yes
12196 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12197 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12198 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12199 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12200 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12201 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12202 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12203 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12204 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12205 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12206 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12207 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12209 ## ----------------------------------- ##
12210 ## Report this to llvmbugs@cs.uiuc.edu ##
12211 ## ----------------------------------- ##
12213 ) | sed "s/^/$as_me: WARNING: /" >&2
12216 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12217 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12219 echo $ECHO_N "(cached) $ECHO_C" >&6
12221 eval "$as_ac_Header=\$ac_header_preproc"
12223 ac_res=`eval echo '${'$as_ac_Header'}'`
12224 { echo "$as_me:$LINENO: result: $ac_res" >&5
12225 echo "${ECHO_T}$ac_res" >&6; }
12228 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12229 cat >>confdefs.h <<_ACEOF
12230 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12240 for ac_func in strchr index
12242 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12243 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12244 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12245 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12246 echo $ECHO_N "(cached) $ECHO_C" >&6
12248 cat >conftest.$ac_ext <<_ACEOF
12251 cat confdefs.h >>conftest.$ac_ext
12252 cat >>conftest.$ac_ext <<_ACEOF
12253 /* end confdefs.h. */
12254 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12255 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12256 #define $ac_func innocuous_$ac_func
12258 /* System header to define __stub macros and hopefully few prototypes,
12259 which can conflict with char $ac_func (); below.
12260 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12261 <limits.h> exists even on freestanding compilers. */
12264 # include <limits.h>
12266 # include <assert.h>
12271 /* Override any GCC internal prototype to avoid an error.
12272 Use char because int might match the return type of a GCC
12273 builtin and then its argument prototype would still apply. */
12278 /* The GNU C library defines this for functions which it implements
12279 to always fail with ENOSYS. Some functions are actually named
12280 something starting with __ and the normal name is an alias. */
12281 #if defined __stub_$ac_func || defined __stub___$ac_func
12288 return $ac_func ();
12293 rm -f conftest.$ac_objext conftest$ac_exeext
12294 if { (ac_try="$ac_link"
12295 case "(($ac_try" in
12296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12297 *) ac_try_echo=$ac_try;;
12299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12300 (eval "$ac_link") 2>conftest.er1
12302 grep -v '^ *+' conftest.er1 >conftest.err
12304 cat conftest.err >&5
12305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306 (exit $ac_status); } &&
12307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12308 { (case "(($ac_try" in
12309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12310 *) ac_try_echo=$ac_try;;
12312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12313 (eval "$ac_try") 2>&5
12315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316 (exit $ac_status); }; } &&
12317 { ac_try='test -s conftest$ac_exeext'
12318 { (case "(($ac_try" in
12319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12320 *) ac_try_echo=$ac_try;;
12322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12323 (eval "$ac_try") 2>&5
12325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12326 (exit $ac_status); }; }; then
12327 eval "$as_ac_var=yes"
12329 echo "$as_me: failed program was:" >&5
12330 sed 's/^/| /' conftest.$ac_ext >&5
12332 eval "$as_ac_var=no"
12335 rm -f core conftest.err conftest.$ac_objext \
12336 conftest$ac_exeext conftest.$ac_ext
12338 ac_res=`eval echo '${'$as_ac_var'}'`
12339 { echo "$as_me:$LINENO: result: $ac_res" >&5
12340 echo "${ECHO_T}$ac_res" >&6; }
12341 if test `eval echo '${'$as_ac_var'}'` = yes; then
12342 cat >>confdefs.h <<_ACEOF
12343 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12351 for ac_func in strrchr rindex
12353 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12354 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12355 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12356 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12357 echo $ECHO_N "(cached) $ECHO_C" >&6
12359 cat >conftest.$ac_ext <<_ACEOF
12362 cat confdefs.h >>conftest.$ac_ext
12363 cat >>conftest.$ac_ext <<_ACEOF
12364 /* end confdefs.h. */
12365 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12366 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12367 #define $ac_func innocuous_$ac_func
12369 /* System header to define __stub macros and hopefully few prototypes,
12370 which can conflict with char $ac_func (); below.
12371 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12372 <limits.h> exists even on freestanding compilers. */
12375 # include <limits.h>
12377 # include <assert.h>
12382 /* Override any GCC internal prototype to avoid an error.
12383 Use char because int might match the return type of a GCC
12384 builtin and then its argument prototype would still apply. */
12389 /* The GNU C library defines this for functions which it implements
12390 to always fail with ENOSYS. Some functions are actually named
12391 something starting with __ and the normal name is an alias. */
12392 #if defined __stub_$ac_func || defined __stub___$ac_func
12399 return $ac_func ();
12404 rm -f conftest.$ac_objext conftest$ac_exeext
12405 if { (ac_try="$ac_link"
12406 case "(($ac_try" in
12407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12408 *) ac_try_echo=$ac_try;;
12410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12411 (eval "$ac_link") 2>conftest.er1
12413 grep -v '^ *+' conftest.er1 >conftest.err
12415 cat conftest.err >&5
12416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417 (exit $ac_status); } &&
12418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12419 { (case "(($ac_try" in
12420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12421 *) ac_try_echo=$ac_try;;
12423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12424 (eval "$ac_try") 2>&5
12426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427 (exit $ac_status); }; } &&
12428 { ac_try='test -s conftest$ac_exeext'
12429 { (case "(($ac_try" in
12430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12431 *) ac_try_echo=$ac_try;;
12433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12434 (eval "$ac_try") 2>&5
12436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437 (exit $ac_status); }; }; then
12438 eval "$as_ac_var=yes"
12440 echo "$as_me: failed program was:" >&5
12441 sed 's/^/| /' conftest.$ac_ext >&5
12443 eval "$as_ac_var=no"
12446 rm -f core conftest.err conftest.$ac_objext \
12447 conftest$ac_exeext conftest.$ac_ext
12449 ac_res=`eval echo '${'$as_ac_var'}'`
12450 { echo "$as_me:$LINENO: result: $ac_res" >&5
12451 echo "${ECHO_T}$ac_res" >&6; }
12452 if test `eval echo '${'$as_ac_var'}'` = yes; then
12453 cat >>confdefs.h <<_ACEOF
12454 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12462 for ac_func in memcpy bcopy
12464 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12465 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12466 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12467 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12468 echo $ECHO_N "(cached) $ECHO_C" >&6
12470 cat >conftest.$ac_ext <<_ACEOF
12473 cat confdefs.h >>conftest.$ac_ext
12474 cat >>conftest.$ac_ext <<_ACEOF
12475 /* end confdefs.h. */
12476 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12477 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12478 #define $ac_func innocuous_$ac_func
12480 /* System header to define __stub macros and hopefully few prototypes,
12481 which can conflict with char $ac_func (); below.
12482 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12483 <limits.h> exists even on freestanding compilers. */
12486 # include <limits.h>
12488 # include <assert.h>
12493 /* Override any GCC internal prototype to avoid an error.
12494 Use char because int might match the return type of a GCC
12495 builtin and then its argument prototype would still apply. */
12500 /* The GNU C library defines this for functions which it implements
12501 to always fail with ENOSYS. Some functions are actually named
12502 something starting with __ and the normal name is an alias. */
12503 #if defined __stub_$ac_func || defined __stub___$ac_func
12510 return $ac_func ();
12515 rm -f conftest.$ac_objext conftest$ac_exeext
12516 if { (ac_try="$ac_link"
12517 case "(($ac_try" in
12518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12519 *) ac_try_echo=$ac_try;;
12521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12522 (eval "$ac_link") 2>conftest.er1
12524 grep -v '^ *+' conftest.er1 >conftest.err
12526 cat conftest.err >&5
12527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12528 (exit $ac_status); } &&
12529 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12530 { (case "(($ac_try" in
12531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12532 *) ac_try_echo=$ac_try;;
12534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12535 (eval "$ac_try") 2>&5
12537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538 (exit $ac_status); }; } &&
12539 { ac_try='test -s conftest$ac_exeext'
12540 { (case "(($ac_try" in
12541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12542 *) ac_try_echo=$ac_try;;
12544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12545 (eval "$ac_try") 2>&5
12547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548 (exit $ac_status); }; }; then
12549 eval "$as_ac_var=yes"
12551 echo "$as_me: failed program was:" >&5
12552 sed 's/^/| /' conftest.$ac_ext >&5
12554 eval "$as_ac_var=no"
12557 rm -f core conftest.err conftest.$ac_objext \
12558 conftest$ac_exeext conftest.$ac_ext
12560 ac_res=`eval echo '${'$as_ac_var'}'`
12561 { echo "$as_me:$LINENO: result: $ac_res" >&5
12562 echo "${ECHO_T}$ac_res" >&6; }
12563 if test `eval echo '${'$as_ac_var'}'` = yes; then
12564 cat >>confdefs.h <<_ACEOF
12565 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12573 for ac_func in memmove strcmp
12575 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12576 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12577 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12578 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12579 echo $ECHO_N "(cached) $ECHO_C" >&6
12581 cat >conftest.$ac_ext <<_ACEOF
12584 cat confdefs.h >>conftest.$ac_ext
12585 cat >>conftest.$ac_ext <<_ACEOF
12586 /* end confdefs.h. */
12587 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12588 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12589 #define $ac_func innocuous_$ac_func
12591 /* System header to define __stub macros and hopefully few prototypes,
12592 which can conflict with char $ac_func (); below.
12593 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12594 <limits.h> exists even on freestanding compilers. */
12597 # include <limits.h>
12599 # include <assert.h>
12604 /* Override any GCC internal prototype to avoid an error.
12605 Use char because int might match the return type of a GCC
12606 builtin and then its argument prototype would still apply. */
12611 /* The GNU C library defines this for functions which it implements
12612 to always fail with ENOSYS. Some functions are actually named
12613 something starting with __ and the normal name is an alias. */
12614 #if defined __stub_$ac_func || defined __stub___$ac_func
12621 return $ac_func ();
12626 rm -f conftest.$ac_objext conftest$ac_exeext
12627 if { (ac_try="$ac_link"
12628 case "(($ac_try" in
12629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12630 *) ac_try_echo=$ac_try;;
12632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12633 (eval "$ac_link") 2>conftest.er1
12635 grep -v '^ *+' conftest.er1 >conftest.err
12637 cat conftest.err >&5
12638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639 (exit $ac_status); } &&
12640 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12641 { (case "(($ac_try" in
12642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12643 *) ac_try_echo=$ac_try;;
12645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12646 (eval "$ac_try") 2>&5
12648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12649 (exit $ac_status); }; } &&
12650 { ac_try='test -s conftest$ac_exeext'
12651 { (case "(($ac_try" in
12652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12653 *) ac_try_echo=$ac_try;;
12655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12656 (eval "$ac_try") 2>&5
12658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659 (exit $ac_status); }; }; then
12660 eval "$as_ac_var=yes"
12662 echo "$as_me: failed program was:" >&5
12663 sed 's/^/| /' conftest.$ac_ext >&5
12665 eval "$as_ac_var=no"
12668 rm -f core conftest.err conftest.$ac_objext \
12669 conftest$ac_exeext conftest.$ac_ext
12671 ac_res=`eval echo '${'$as_ac_var'}'`
12672 { echo "$as_me:$LINENO: result: $ac_res" >&5
12673 echo "${ECHO_T}$ac_res" >&6; }
12674 if test `eval echo '${'$as_ac_var'}'` = yes; then
12675 cat >>confdefs.h <<_ACEOF
12676 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12685 for ac_func in closedir opendir readdir
12687 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12688 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12689 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12690 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12691 echo $ECHO_N "(cached) $ECHO_C" >&6
12693 cat >conftest.$ac_ext <<_ACEOF
12696 cat confdefs.h >>conftest.$ac_ext
12697 cat >>conftest.$ac_ext <<_ACEOF
12698 /* end confdefs.h. */
12699 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12700 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12701 #define $ac_func innocuous_$ac_func
12703 /* System header to define __stub macros and hopefully few prototypes,
12704 which can conflict with char $ac_func (); below.
12705 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12706 <limits.h> exists even on freestanding compilers. */
12709 # include <limits.h>
12711 # include <assert.h>
12716 /* Override any GCC internal prototype to avoid an error.
12717 Use char because int might match the return type of a GCC
12718 builtin and then its argument prototype would still apply. */
12723 /* The GNU C library defines this for functions which it implements
12724 to always fail with ENOSYS. Some functions are actually named
12725 something starting with __ and the normal name is an alias. */
12726 #if defined __stub_$ac_func || defined __stub___$ac_func
12733 return $ac_func ();
12738 rm -f conftest.$ac_objext conftest$ac_exeext
12739 if { (ac_try="$ac_link"
12740 case "(($ac_try" in
12741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12742 *) ac_try_echo=$ac_try;;
12744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12745 (eval "$ac_link") 2>conftest.er1
12747 grep -v '^ *+' conftest.er1 >conftest.err
12749 cat conftest.err >&5
12750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751 (exit $ac_status); } &&
12752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12753 { (case "(($ac_try" in
12754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12755 *) ac_try_echo=$ac_try;;
12757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12758 (eval "$ac_try") 2>&5
12760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761 (exit $ac_status); }; } &&
12762 { ac_try='test -s conftest$ac_exeext'
12763 { (case "(($ac_try" in
12764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12765 *) ac_try_echo=$ac_try;;
12767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12768 (eval "$ac_try") 2>&5
12770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771 (exit $ac_status); }; }; then
12772 eval "$as_ac_var=yes"
12774 echo "$as_me: failed program was:" >&5
12775 sed 's/^/| /' conftest.$ac_ext >&5
12777 eval "$as_ac_var=no"
12780 rm -f core conftest.err conftest.$ac_objext \
12781 conftest$ac_exeext conftest.$ac_ext
12783 ac_res=`eval echo '${'$as_ac_var'}'`
12784 { echo "$as_me:$LINENO: result: $ac_res" >&5
12785 echo "${ECHO_T}$ac_res" >&6; }
12786 if test `eval echo '${'$as_ac_var'}'` = yes; then
12787 cat >>confdefs.h <<_ACEOF
12788 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12796 if test "$WITH_LLVMGCCDIR" = "default" ; then
12797 LLVMGCC="llvm-gcc${EXEEXT}"
12798 LLVMGXX="llvm-g++${EXEEXT}"
12799 LLVMGCCCOMMAND="$LLVMGCC"
12800 LLVMGXXCOMMAND="$LLVMGXX"
12801 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12803 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12805 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
12806 set dummy $LLVMGCC; ac_word=$2
12807 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12809 if test "${ac_cv_path_LLVMGCC+set}" = set; then
12810 echo $ECHO_N "(cached) $ECHO_C" >&6
12814 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
12817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12818 for as_dir in $PATH
12821 test -z "$as_dir" && as_dir=.
12822 for ac_exec_ext in '' $ac_executable_extensions; do
12823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12824 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
12825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12835 LLVMGCC=$ac_cv_path_LLVMGCC
12836 if test -n "$LLVMGCC"; then
12837 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
12838 echo "${ECHO_T}$LLVMGCC" >&6; }
12840 { echo "$as_me:$LINENO: result: no" >&5
12841 echo "${ECHO_T}no" >&6; }
12845 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
12846 set dummy $LLVMGXX; ac_word=$2
12847 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12849 if test "${ac_cv_path_LLVMGXX+set}" = set; then
12850 echo $ECHO_N "(cached) $ECHO_C" >&6
12854 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
12857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12858 for as_dir in $PATH
12861 test -z "$as_dir" && as_dir=.
12862 for ac_exec_ext in '' $ac_executable_extensions; do
12863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12864 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
12865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12875 LLVMGXX=$ac_cv_path_LLVMGXX
12876 if test -n "$LLVMGXX"; then
12877 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
12878 echo "${ECHO_T}$LLVMGXX" >&6; }
12880 { echo "$as_me:$LINENO: result: no" >&5
12881 echo "${ECHO_T}no" >&6; }
12886 if test -z "$LLVMGCC"; then
12887 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
12888 LLVMGCCCOMMAND="$LLVMGCC"
12890 if test -z "$LLVMGXX"; then
12891 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
12892 LLVMGXXCOMMAND="$LLVMGXX"
12899 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12901 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12906 # Check whether --with-llvmcc was given.
12907 if test "${with_llvmcc+set}" = set; then
12908 withval=$with_llvmcc;
12913 { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
12914 echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
12915 if test "$with_llvmcc" != "check"; then
12916 if (test "$with_llvmcc" != "llvm-gcc" &&
12917 test "$with_llvmcc" != "clang" &&
12918 test "$with_llvmcc" != "none"); then
12919 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
12920 echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
12921 { (exit 1); exit 1; }; }
12923 WITH_LLVMCC="$with_llvmcc"
12924 elif test -n "$LLVMGCC"; then
12925 WITH_LLVMCC=llvm-gcc
12926 elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
12931 { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
12932 echo "${ECHO_T}$WITH_LLVMCC" >&6; }
12933 LLVMCC_OPTION=$WITH_LLVMCC
12936 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12937 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12950 if test "$GCC" != "yes" && test "$ICC" != "yes"
12952 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12953 echo "$as_me: error: gcc|icc required but not found" >&2;}
12954 { (exit 1); exit 1; }; }
12957 if test "$GXX" != "yes" && test "$IXX" != "yes"
12959 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
12960 echo "$as_me: error: g++|icc required but not found" >&2;}
12961 { (exit 1); exit 1; }; }
12964 if test "$GCC" = "yes"
12966 cat >conftest.$ac_ext <<_ACEOF
12967 #if !defined(__GNUC__) || __GNUC__ < 3
12968 #error Unsupported GCC version
12972 rm -f conftest.$ac_objext
12973 if { (ac_try="$ac_compile"
12974 case "(($ac_try" in
12975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12976 *) ac_try_echo=$ac_try;;
12978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12979 (eval "$ac_compile") 2>conftest.er1
12981 grep -v '^ *+' conftest.er1 >conftest.err
12983 cat conftest.err >&5
12984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985 (exit $ac_status); } &&
12986 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12987 { (case "(($ac_try" in
12988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12989 *) ac_try_echo=$ac_try;;
12991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12992 (eval "$ac_try") 2>&5
12994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995 (exit $ac_status); }; } &&
12996 { ac_try='test -s conftest.$ac_objext'
12997 { (case "(($ac_try" in
12998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12999 *) ac_try_echo=$ac_try;;
13001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13002 (eval "$ac_try") 2>&5
13004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13005 (exit $ac_status); }; }; then
13008 echo "$as_me: failed program was:" >&5
13009 sed 's/^/| /' conftest.$ac_ext >&5
13011 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13012 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13013 { (exit 1); exit 1; }; }
13016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13019 if test -z "$llvm_cv_gnu_make_command"
13021 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13022 echo "$as_me: error: GNU Make required but not found" >&2;}
13023 { (exit 1); exit 1; }; }
13026 { echo "$as_me:$LINENO: result: ok" >&5
13027 echo "${ECHO_T}ok" >&6; }
13029 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
13030 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
13031 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13033 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13035 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13036 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
13040 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
13041 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13042 if test "${ac_cv_lib_m_sin+set}" = set; then
13043 echo $ECHO_N "(cached) $ECHO_C" >&6
13045 ac_check_lib_save_LIBS=$LIBS
13047 cat >conftest.$ac_ext <<_ACEOF
13050 cat confdefs.h >>conftest.$ac_ext
13051 cat >>conftest.$ac_ext <<_ACEOF
13052 /* end confdefs.h. */
13054 /* Override any GCC internal prototype to avoid an error.
13055 Use char because int might match the return type of a GCC
13056 builtin and then its argument prototype would still apply. */
13069 rm -f conftest.$ac_objext conftest$ac_exeext
13070 if { (ac_try="$ac_link"
13071 case "(($ac_try" in
13072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13073 *) ac_try_echo=$ac_try;;
13075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13076 (eval "$ac_link") 2>conftest.er1
13078 grep -v '^ *+' conftest.er1 >conftest.err
13080 cat conftest.err >&5
13081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13082 (exit $ac_status); } &&
13083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13084 { (case "(($ac_try" in
13085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13086 *) ac_try_echo=$ac_try;;
13088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13089 (eval "$ac_try") 2>&5
13091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13092 (exit $ac_status); }; } &&
13093 { ac_try='test -s conftest$ac_exeext'
13094 { (case "(($ac_try" in
13095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13096 *) ac_try_echo=$ac_try;;
13098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13099 (eval "$ac_try") 2>&5
13101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13102 (exit $ac_status); }; }; then
13103 ac_cv_lib_m_sin=yes
13105 echo "$as_me: failed program was:" >&5
13106 sed 's/^/| /' conftest.$ac_ext >&5
13111 rm -f core conftest.err conftest.$ac_objext \
13112 conftest$ac_exeext conftest.$ac_ext
13113 LIBS=$ac_check_lib_save_LIBS
13115 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13116 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13117 if test $ac_cv_lib_m_sin = yes; then
13118 cat >>confdefs.h <<_ACEOF
13119 #define HAVE_LIBM 1
13126 if test "$llvm_cv_os_type" = "MingW" ; then
13128 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13129 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13130 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13131 echo $ECHO_N "(cached) $ECHO_C" >&6
13133 ac_check_lib_save_LIBS=$LIBS
13134 LIBS="-limagehlp $LIBS"
13135 cat >conftest.$ac_ext <<_ACEOF
13138 cat confdefs.h >>conftest.$ac_ext
13139 cat >>conftest.$ac_ext <<_ACEOF
13140 /* end confdefs.h. */
13151 rm -f conftest.$ac_objext conftest$ac_exeext
13152 if { (ac_try="$ac_link"
13153 case "(($ac_try" in
13154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13155 *) ac_try_echo=$ac_try;;
13157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13158 (eval "$ac_link") 2>conftest.er1
13160 grep -v '^ *+' conftest.er1 >conftest.err
13162 cat conftest.err >&5
13163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13164 (exit $ac_status); } &&
13165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13166 { (case "(($ac_try" in
13167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13168 *) ac_try_echo=$ac_try;;
13170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13171 (eval "$ac_try") 2>&5
13173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13174 (exit $ac_status); }; } &&
13175 { ac_try='test -s conftest$ac_exeext'
13176 { (case "(($ac_try" in
13177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13178 *) ac_try_echo=$ac_try;;
13180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13181 (eval "$ac_try") 2>&5
13183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13184 (exit $ac_status); }; }; then
13185 ac_cv_lib_imagehlp_main=yes
13187 echo "$as_me: failed program was:" >&5
13188 sed 's/^/| /' conftest.$ac_ext >&5
13190 ac_cv_lib_imagehlp_main=no
13193 rm -f core conftest.err conftest.$ac_objext \
13194 conftest$ac_exeext conftest.$ac_ext
13195 LIBS=$ac_check_lib_save_LIBS
13197 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13198 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13199 if test $ac_cv_lib_imagehlp_main = yes; then
13200 cat >>confdefs.h <<_ACEOF
13201 #define HAVE_LIBIMAGEHLP 1
13204 LIBS="-limagehlp $LIBS"
13209 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13210 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13211 if test "${ac_cv_lib_psapi_main+set}" = set; then
13212 echo $ECHO_N "(cached) $ECHO_C" >&6
13214 ac_check_lib_save_LIBS=$LIBS
13215 LIBS="-lpsapi $LIBS"
13216 cat >conftest.$ac_ext <<_ACEOF
13219 cat confdefs.h >>conftest.$ac_ext
13220 cat >>conftest.$ac_ext <<_ACEOF
13221 /* end confdefs.h. */
13232 rm -f conftest.$ac_objext conftest$ac_exeext
13233 if { (ac_try="$ac_link"
13234 case "(($ac_try" in
13235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13236 *) ac_try_echo=$ac_try;;
13238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13239 (eval "$ac_link") 2>conftest.er1
13241 grep -v '^ *+' conftest.er1 >conftest.err
13243 cat conftest.err >&5
13244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13245 (exit $ac_status); } &&
13246 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13247 { (case "(($ac_try" in
13248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13249 *) ac_try_echo=$ac_try;;
13251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13252 (eval "$ac_try") 2>&5
13254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255 (exit $ac_status); }; } &&
13256 { ac_try='test -s conftest$ac_exeext'
13257 { (case "(($ac_try" in
13258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13259 *) ac_try_echo=$ac_try;;
13261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13262 (eval "$ac_try") 2>&5
13264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13265 (exit $ac_status); }; }; then
13266 ac_cv_lib_psapi_main=yes
13268 echo "$as_me: failed program was:" >&5
13269 sed 's/^/| /' conftest.$ac_ext >&5
13271 ac_cv_lib_psapi_main=no
13274 rm -f core conftest.err conftest.$ac_objext \
13275 conftest$ac_exeext conftest.$ac_ext
13276 LIBS=$ac_check_lib_save_LIBS
13278 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13279 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13280 if test $ac_cv_lib_psapi_main = yes; then
13281 cat >>confdefs.h <<_ACEOF
13282 #define HAVE_LIBPSAPI 1
13285 LIBS="-lpsapi $LIBS"
13291 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13292 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13293 if test "${ac_cv_search_dlopen+set}" = set; then
13294 echo $ECHO_N "(cached) $ECHO_C" >&6
13296 ac_func_search_save_LIBS=$LIBS
13297 cat >conftest.$ac_ext <<_ACEOF
13300 cat confdefs.h >>conftest.$ac_ext
13301 cat >>conftest.$ac_ext <<_ACEOF
13302 /* end confdefs.h. */
13304 /* Override any GCC internal prototype to avoid an error.
13305 Use char because int might match the return type of a GCC
13306 builtin and then its argument prototype would still apply. */
13319 for ac_lib in '' dl; do
13320 if test -z "$ac_lib"; then
13321 ac_res="none required"
13324 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13326 rm -f conftest.$ac_objext conftest$ac_exeext
13327 if { (ac_try="$ac_link"
13328 case "(($ac_try" in
13329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13330 *) ac_try_echo=$ac_try;;
13332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13333 (eval "$ac_link") 2>conftest.er1
13335 grep -v '^ *+' conftest.er1 >conftest.err
13337 cat conftest.err >&5
13338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13339 (exit $ac_status); } &&
13340 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13341 { (case "(($ac_try" in
13342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13343 *) ac_try_echo=$ac_try;;
13345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13346 (eval "$ac_try") 2>&5
13348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13349 (exit $ac_status); }; } &&
13350 { ac_try='test -s conftest$ac_exeext'
13351 { (case "(($ac_try" in
13352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13353 *) ac_try_echo=$ac_try;;
13355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13356 (eval "$ac_try") 2>&5
13358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13359 (exit $ac_status); }; }; then
13360 ac_cv_search_dlopen=$ac_res
13362 echo "$as_me: failed program was:" >&5
13363 sed 's/^/| /' conftest.$ac_ext >&5
13368 rm -f core conftest.err conftest.$ac_objext \
13370 if test "${ac_cv_search_dlopen+set}" = set; then
13374 if test "${ac_cv_search_dlopen+set}" = set; then
13377 ac_cv_search_dlopen=no
13379 rm conftest.$ac_ext
13380 LIBS=$ac_func_search_save_LIBS
13382 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13383 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13384 ac_res=$ac_cv_search_dlopen
13385 if test "$ac_res" != no; then
13386 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13388 cat >>confdefs.h <<\_ACEOF
13389 #define HAVE_DLOPEN 1
13393 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13394 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
13398 if test "$llvm_cv_enable_libffi" = "yes" ; then
13399 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13400 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13401 if test "${ac_cv_search_ffi_call+set}" = set; then
13402 echo $ECHO_N "(cached) $ECHO_C" >&6
13404 ac_func_search_save_LIBS=$LIBS
13405 cat >conftest.$ac_ext <<_ACEOF
13408 cat confdefs.h >>conftest.$ac_ext
13409 cat >>conftest.$ac_ext <<_ACEOF
13410 /* end confdefs.h. */
13412 /* Override any GCC internal prototype to avoid an error.
13413 Use char because int might match the return type of a GCC
13414 builtin and then its argument prototype would still apply. */
13422 return ffi_call ();
13427 for ac_lib in '' ffi; do
13428 if test -z "$ac_lib"; then
13429 ac_res="none required"
13432 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13434 rm -f conftest.$ac_objext conftest$ac_exeext
13435 if { (ac_try="$ac_link"
13436 case "(($ac_try" in
13437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13438 *) ac_try_echo=$ac_try;;
13440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13441 (eval "$ac_link") 2>conftest.er1
13443 grep -v '^ *+' conftest.er1 >conftest.err
13445 cat conftest.err >&5
13446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447 (exit $ac_status); } &&
13448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13449 { (case "(($ac_try" in
13450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13451 *) ac_try_echo=$ac_try;;
13453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13454 (eval "$ac_try") 2>&5
13456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13457 (exit $ac_status); }; } &&
13458 { ac_try='test -s conftest$ac_exeext'
13459 { (case "(($ac_try" in
13460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13461 *) ac_try_echo=$ac_try;;
13463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13464 (eval "$ac_try") 2>&5
13466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467 (exit $ac_status); }; }; then
13468 ac_cv_search_ffi_call=$ac_res
13470 echo "$as_me: failed program was:" >&5
13471 sed 's/^/| /' conftest.$ac_ext >&5
13476 rm -f core conftest.err conftest.$ac_objext \
13478 if test "${ac_cv_search_ffi_call+set}" = set; then
13482 if test "${ac_cv_search_ffi_call+set}" = set; then
13485 ac_cv_search_ffi_call=no
13487 rm conftest.$ac_ext
13488 LIBS=$ac_func_search_save_LIBS
13490 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13491 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
13492 ac_res=$ac_cv_search_ffi_call
13493 if test "$ac_res" != no; then
13494 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13496 cat >>confdefs.h <<\_ACEOF
13497 #define HAVE_FFI_CALL 1
13501 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13502 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13503 { (exit 1); exit 1; }; }
13508 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13509 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13510 if test "${ac_cv_search_mallinfo+set}" = set; then
13511 echo $ECHO_N "(cached) $ECHO_C" >&6
13513 ac_func_search_save_LIBS=$LIBS
13514 cat >conftest.$ac_ext <<_ACEOF
13517 cat confdefs.h >>conftest.$ac_ext
13518 cat >>conftest.$ac_ext <<_ACEOF
13519 /* end confdefs.h. */
13521 /* Override any GCC internal prototype to avoid an error.
13522 Use char because int might match the return type of a GCC
13523 builtin and then its argument prototype would still apply. */
13531 return mallinfo ();
13536 for ac_lib in '' malloc; do
13537 if test -z "$ac_lib"; then
13538 ac_res="none required"
13541 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13543 rm -f conftest.$ac_objext conftest$ac_exeext
13544 if { (ac_try="$ac_link"
13545 case "(($ac_try" in
13546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13547 *) ac_try_echo=$ac_try;;
13549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13550 (eval "$ac_link") 2>conftest.er1
13552 grep -v '^ *+' conftest.er1 >conftest.err
13554 cat conftest.err >&5
13555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13556 (exit $ac_status); } &&
13557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13558 { (case "(($ac_try" in
13559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13560 *) ac_try_echo=$ac_try;;
13562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13563 (eval "$ac_try") 2>&5
13565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566 (exit $ac_status); }; } &&
13567 { ac_try='test -s conftest$ac_exeext'
13568 { (case "(($ac_try" in
13569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13570 *) ac_try_echo=$ac_try;;
13572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13573 (eval "$ac_try") 2>&5
13575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576 (exit $ac_status); }; }; then
13577 ac_cv_search_mallinfo=$ac_res
13579 echo "$as_me: failed program was:" >&5
13580 sed 's/^/| /' conftest.$ac_ext >&5
13585 rm -f core conftest.err conftest.$ac_objext \
13587 if test "${ac_cv_search_mallinfo+set}" = set; then
13591 if test "${ac_cv_search_mallinfo+set}" = set; then
13594 ac_cv_search_mallinfo=no
13596 rm conftest.$ac_ext
13597 LIBS=$ac_func_search_save_LIBS
13599 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13600 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13601 ac_res=$ac_cv_search_mallinfo
13602 if test "$ac_res" != no; then
13603 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13605 cat >>confdefs.h <<\_ACEOF
13606 #define HAVE_MALLINFO 1
13612 if test "$ENABLE_THREADS" -eq 1 ; then
13614 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13615 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13616 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13617 echo $ECHO_N "(cached) $ECHO_C" >&6
13619 ac_check_lib_save_LIBS=$LIBS
13620 LIBS="-lpthread $LIBS"
13621 cat >conftest.$ac_ext <<_ACEOF
13624 cat confdefs.h >>conftest.$ac_ext
13625 cat >>conftest.$ac_ext <<_ACEOF
13626 /* end confdefs.h. */
13628 /* Override any GCC internal prototype to avoid an error.
13629 Use char because int might match the return type of a GCC
13630 builtin and then its argument prototype would still apply. */
13634 char pthread_mutex_init ();
13638 return pthread_mutex_init ();
13643 rm -f conftest.$ac_objext conftest$ac_exeext
13644 if { (ac_try="$ac_link"
13645 case "(($ac_try" in
13646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13647 *) ac_try_echo=$ac_try;;
13649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13650 (eval "$ac_link") 2>conftest.er1
13652 grep -v '^ *+' conftest.er1 >conftest.err
13654 cat conftest.err >&5
13655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13656 (exit $ac_status); } &&
13657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13658 { (case "(($ac_try" in
13659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13660 *) ac_try_echo=$ac_try;;
13662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13663 (eval "$ac_try") 2>&5
13665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13666 (exit $ac_status); }; } &&
13667 { ac_try='test -s conftest$ac_exeext'
13668 { (case "(($ac_try" in
13669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13670 *) ac_try_echo=$ac_try;;
13672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13673 (eval "$ac_try") 2>&5
13675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13676 (exit $ac_status); }; }; then
13677 ac_cv_lib_pthread_pthread_mutex_init=yes
13679 echo "$as_me: failed program was:" >&5
13680 sed 's/^/| /' conftest.$ac_ext >&5
13682 ac_cv_lib_pthread_pthread_mutex_init=no
13685 rm -f core conftest.err conftest.$ac_objext \
13686 conftest$ac_exeext conftest.$ac_ext
13687 LIBS=$ac_check_lib_save_LIBS
13689 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13690 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13691 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13692 cat >>confdefs.h <<_ACEOF
13693 #define HAVE_LIBPTHREAD 1
13696 LIBS="-lpthread $LIBS"
13700 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13701 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13702 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13703 echo $ECHO_N "(cached) $ECHO_C" >&6
13705 ac_func_search_save_LIBS=$LIBS
13706 cat >conftest.$ac_ext <<_ACEOF
13709 cat confdefs.h >>conftest.$ac_ext
13710 cat >>conftest.$ac_ext <<_ACEOF
13711 /* end confdefs.h. */
13713 /* Override any GCC internal prototype to avoid an error.
13714 Use char because int might match the return type of a GCC
13715 builtin and then its argument prototype would still apply. */
13719 char pthread_mutex_lock ();
13723 return pthread_mutex_lock ();
13728 for ac_lib in '' pthread; do
13729 if test -z "$ac_lib"; then
13730 ac_res="none required"
13733 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13735 rm -f conftest.$ac_objext conftest$ac_exeext
13736 if { (ac_try="$ac_link"
13737 case "(($ac_try" in
13738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13739 *) ac_try_echo=$ac_try;;
13741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13742 (eval "$ac_link") 2>conftest.er1
13744 grep -v '^ *+' conftest.er1 >conftest.err
13746 cat conftest.err >&5
13747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13748 (exit $ac_status); } &&
13749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13750 { (case "(($ac_try" in
13751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13752 *) ac_try_echo=$ac_try;;
13754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13755 (eval "$ac_try") 2>&5
13757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758 (exit $ac_status); }; } &&
13759 { ac_try='test -s conftest$ac_exeext'
13760 { (case "(($ac_try" in
13761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13762 *) ac_try_echo=$ac_try;;
13764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13765 (eval "$ac_try") 2>&5
13767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768 (exit $ac_status); }; }; then
13769 ac_cv_search_pthread_mutex_lock=$ac_res
13771 echo "$as_me: failed program was:" >&5
13772 sed 's/^/| /' conftest.$ac_ext >&5
13777 rm -f core conftest.err conftest.$ac_objext \
13779 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13783 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13786 ac_cv_search_pthread_mutex_lock=no
13788 rm conftest.$ac_ext
13789 LIBS=$ac_func_search_save_LIBS
13791 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13792 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13793 ac_res=$ac_cv_search_pthread_mutex_lock
13794 if test "$ac_res" != no; then
13795 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13797 cat >>confdefs.h <<\_ACEOF
13798 #define HAVE_PTHREAD_MUTEX_LOCK 1
13803 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13804 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13805 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13806 echo $ECHO_N "(cached) $ECHO_C" >&6
13808 ac_func_search_save_LIBS=$LIBS
13809 cat >conftest.$ac_ext <<_ACEOF
13812 cat confdefs.h >>conftest.$ac_ext
13813 cat >>conftest.$ac_ext <<_ACEOF
13814 /* end confdefs.h. */
13816 /* Override any GCC internal prototype to avoid an error.
13817 Use char because int might match the return type of a GCC
13818 builtin and then its argument prototype would still apply. */
13822 char pthread_rwlock_init ();
13826 return pthread_rwlock_init ();
13831 for ac_lib in '' pthread; do
13832 if test -z "$ac_lib"; then
13833 ac_res="none required"
13836 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13838 rm -f conftest.$ac_objext conftest$ac_exeext
13839 if { (ac_try="$ac_link"
13840 case "(($ac_try" in
13841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13842 *) ac_try_echo=$ac_try;;
13844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13845 (eval "$ac_link") 2>conftest.er1
13847 grep -v '^ *+' conftest.er1 >conftest.err
13849 cat conftest.err >&5
13850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851 (exit $ac_status); } &&
13852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13853 { (case "(($ac_try" in
13854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13855 *) ac_try_echo=$ac_try;;
13857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13858 (eval "$ac_try") 2>&5
13860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861 (exit $ac_status); }; } &&
13862 { ac_try='test -s conftest$ac_exeext'
13863 { (case "(($ac_try" in
13864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13865 *) ac_try_echo=$ac_try;;
13867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13868 (eval "$ac_try") 2>&5
13870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13871 (exit $ac_status); }; }; then
13872 ac_cv_search_pthread_rwlock_init=$ac_res
13874 echo "$as_me: failed program was:" >&5
13875 sed 's/^/| /' conftest.$ac_ext >&5
13880 rm -f core conftest.err conftest.$ac_objext \
13882 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13886 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13889 ac_cv_search_pthread_rwlock_init=no
13891 rm conftest.$ac_ext
13892 LIBS=$ac_func_search_save_LIBS
13894 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13895 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13896 ac_res=$ac_cv_search_pthread_rwlock_init
13897 if test "$ac_res" != no; then
13898 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13900 cat >>confdefs.h <<\_ACEOF
13901 #define HAVE_PTHREAD_RWLOCK_INIT 1
13906 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13907 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13908 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13909 echo $ECHO_N "(cached) $ECHO_C" >&6
13911 ac_func_search_save_LIBS=$LIBS
13912 cat >conftest.$ac_ext <<_ACEOF
13915 cat confdefs.h >>conftest.$ac_ext
13916 cat >>conftest.$ac_ext <<_ACEOF
13917 /* end confdefs.h. */
13919 /* Override any GCC internal prototype to avoid an error.
13920 Use char because int might match the return type of a GCC
13921 builtin and then its argument prototype would still apply. */
13925 char pthread_getspecific ();
13929 return pthread_getspecific ();
13934 for ac_lib in '' pthread; do
13935 if test -z "$ac_lib"; then
13936 ac_res="none required"
13939 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13941 rm -f conftest.$ac_objext conftest$ac_exeext
13942 if { (ac_try="$ac_link"
13943 case "(($ac_try" in
13944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13945 *) ac_try_echo=$ac_try;;
13947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13948 (eval "$ac_link") 2>conftest.er1
13950 grep -v '^ *+' conftest.er1 >conftest.err
13952 cat conftest.err >&5
13953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13954 (exit $ac_status); } &&
13955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13956 { (case "(($ac_try" in
13957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13958 *) ac_try_echo=$ac_try;;
13960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13961 (eval "$ac_try") 2>&5
13963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964 (exit $ac_status); }; } &&
13965 { ac_try='test -s conftest$ac_exeext'
13966 { (case "(($ac_try" in
13967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13968 *) ac_try_echo=$ac_try;;
13970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13971 (eval "$ac_try") 2>&5
13973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13974 (exit $ac_status); }; }; then
13975 ac_cv_search_pthread_getspecific=$ac_res
13977 echo "$as_me: failed program was:" >&5
13978 sed 's/^/| /' conftest.$ac_ext >&5
13983 rm -f core conftest.err conftest.$ac_objext \
13985 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13989 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13992 ac_cv_search_pthread_getspecific=no
13994 rm conftest.$ac_ext
13995 LIBS=$ac_func_search_save_LIBS
13997 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13998 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13999 ac_res=$ac_cv_search_pthread_getspecific
14000 if test "$ac_res" != no; then
14001 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14003 cat >>confdefs.h <<\_ACEOF
14004 #define HAVE_PTHREAD_GETSPECIFIC 1
14012 # Check whether --with-udis86 was given.
14013 if test "${with_udis86+set}" = set; then
14014 withval=$with_udis86;
14019 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14022 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14023 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14024 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14025 echo $ECHO_N "(cached) $ECHO_C" >&6
14027 ac_check_lib_save_LIBS=$LIBS
14028 LIBS="-ludis86 $LIBS"
14029 cat >conftest.$ac_ext <<_ACEOF
14032 cat confdefs.h >>conftest.$ac_ext
14033 cat >>conftest.$ac_ext <<_ACEOF
14034 /* end confdefs.h. */
14036 /* Override any GCC internal prototype to avoid an error.
14037 Use char because int might match the return type of a GCC
14038 builtin and then its argument prototype would still apply. */
14051 rm -f conftest.$ac_objext conftest$ac_exeext
14052 if { (ac_try="$ac_link"
14053 case "(($ac_try" in
14054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14055 *) ac_try_echo=$ac_try;;
14057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14058 (eval "$ac_link") 2>conftest.er1
14060 grep -v '^ *+' conftest.er1 >conftest.err
14062 cat conftest.err >&5
14063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14064 (exit $ac_status); } &&
14065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14066 { (case "(($ac_try" in
14067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14068 *) ac_try_echo=$ac_try;;
14070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14071 (eval "$ac_try") 2>&5
14073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14074 (exit $ac_status); }; } &&
14075 { ac_try='test -s conftest$ac_exeext'
14076 { (case "(($ac_try" in
14077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14078 *) ac_try_echo=$ac_try;;
14080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14081 (eval "$ac_try") 2>&5
14083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14084 (exit $ac_status); }; }; then
14085 ac_cv_lib_udis86_ud_init=yes
14087 echo "$as_me: failed program was:" >&5
14088 sed 's/^/| /' conftest.$ac_ext >&5
14090 ac_cv_lib_udis86_ud_init=no
14093 rm -f core conftest.err conftest.$ac_objext \
14094 conftest$ac_exeext conftest.$ac_ext
14095 LIBS=$ac_check_lib_save_LIBS
14097 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14098 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14099 if test $ac_cv_lib_udis86_ud_init = yes; then
14100 cat >>confdefs.h <<_ACEOF
14101 #define HAVE_LIBUDIS86 1
14104 LIBS="-ludis86 $LIBS"
14108 echo "Error! You need to have libudis86 around."
14120 cat >>confdefs.h <<_ACEOF
14121 #define USE_UDIS86 $USE_UDIS86
14126 # Check whether --with-oprofile was given.
14127 if test "${with_oprofile+set}" = set; then
14128 withval=$with_oprofile;
14132 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
14133 no) llvm_cv_oppath=
14136 *) llvm_cv_oppath="${withval}/lib/oprofile"
14137 CPPFLAGS="-I${withval}/include";;
14139 if test -n "$llvm_cv_oppath" ; then
14140 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
14141 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14142 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14143 if test "${ac_cv_search_bfd_init+set}" = set; then
14144 echo $ECHO_N "(cached) $ECHO_C" >&6
14146 ac_func_search_save_LIBS=$LIBS
14147 cat >conftest.$ac_ext <<_ACEOF
14150 cat confdefs.h >>conftest.$ac_ext
14151 cat >>conftest.$ac_ext <<_ACEOF
14152 /* end confdefs.h. */
14154 /* Override any GCC internal prototype to avoid an error.
14155 Use char because int might match the return type of a GCC
14156 builtin and then its argument prototype would still apply. */
14164 return bfd_init ();
14169 for ac_lib in '' bfd; do
14170 if test -z "$ac_lib"; then
14171 ac_res="none required"
14174 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14176 rm -f conftest.$ac_objext conftest$ac_exeext
14177 if { (ac_try="$ac_link"
14178 case "(($ac_try" in
14179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14180 *) ac_try_echo=$ac_try;;
14182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14183 (eval "$ac_link") 2>conftest.er1
14185 grep -v '^ *+' conftest.er1 >conftest.err
14187 cat conftest.err >&5
14188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189 (exit $ac_status); } &&
14190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14191 { (case "(($ac_try" in
14192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14193 *) ac_try_echo=$ac_try;;
14195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14196 (eval "$ac_try") 2>&5
14198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14199 (exit $ac_status); }; } &&
14200 { ac_try='test -s conftest$ac_exeext'
14201 { (case "(($ac_try" in
14202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14203 *) ac_try_echo=$ac_try;;
14205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14206 (eval "$ac_try") 2>&5
14208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14209 (exit $ac_status); }; }; then
14210 ac_cv_search_bfd_init=$ac_res
14212 echo "$as_me: failed program was:" >&5
14213 sed 's/^/| /' conftest.$ac_ext >&5
14218 rm -f core conftest.err conftest.$ac_objext \
14220 if test "${ac_cv_search_bfd_init+set}" = set; then
14224 if test "${ac_cv_search_bfd_init+set}" = set; then
14227 ac_cv_search_bfd_init=no
14229 rm conftest.$ac_ext
14230 LIBS=$ac_func_search_save_LIBS
14232 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14233 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
14234 ac_res=$ac_cv_search_bfd_init
14235 if test "$ac_res" != no; then
14236 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14240 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14241 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14242 if test "${ac_cv_search_op_open_agent+set}" = set; then
14243 echo $ECHO_N "(cached) $ECHO_C" >&6
14245 ac_func_search_save_LIBS=$LIBS
14246 cat >conftest.$ac_ext <<_ACEOF
14249 cat confdefs.h >>conftest.$ac_ext
14250 cat >>conftest.$ac_ext <<_ACEOF
14251 /* end confdefs.h. */
14253 /* Override any GCC internal prototype to avoid an error.
14254 Use char because int might match the return type of a GCC
14255 builtin and then its argument prototype would still apply. */
14259 char op_open_agent ();
14263 return op_open_agent ();
14268 for ac_lib in '' opagent; do
14269 if test -z "$ac_lib"; then
14270 ac_res="none required"
14273 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14275 rm -f conftest.$ac_objext conftest$ac_exeext
14276 if { (ac_try="$ac_link"
14277 case "(($ac_try" in
14278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14279 *) ac_try_echo=$ac_try;;
14281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14282 (eval "$ac_link") 2>conftest.er1
14284 grep -v '^ *+' conftest.er1 >conftest.err
14286 cat conftest.err >&5
14287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14288 (exit $ac_status); } &&
14289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14290 { (case "(($ac_try" in
14291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14292 *) ac_try_echo=$ac_try;;
14294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14295 (eval "$ac_try") 2>&5
14297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14298 (exit $ac_status); }; } &&
14299 { ac_try='test -s conftest$ac_exeext'
14300 { (case "(($ac_try" in
14301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14302 *) ac_try_echo=$ac_try;;
14304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14305 (eval "$ac_try") 2>&5
14307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14308 (exit $ac_status); }; }; then
14309 ac_cv_search_op_open_agent=$ac_res
14311 echo "$as_me: failed program was:" >&5
14312 sed 's/^/| /' conftest.$ac_ext >&5
14317 rm -f core conftest.err conftest.$ac_objext \
14319 if test "${ac_cv_search_op_open_agent+set}" = set; then
14323 if test "${ac_cv_search_op_open_agent+set}" = set; then
14326 ac_cv_search_op_open_agent=no
14328 rm conftest.$ac_ext
14329 LIBS=$ac_func_search_save_LIBS
14331 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14332 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
14333 ac_res=$ac_cv_search_op_open_agent
14334 if test "$ac_res" != no; then
14335 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14339 echo "Error! You need to have libopagent around."
14344 if test "${ac_cv_header_opagent_h+set}" = set; then
14345 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14346 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14347 if test "${ac_cv_header_opagent_h+set}" = set; then
14348 echo $ECHO_N "(cached) $ECHO_C" >&6
14350 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14351 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14353 # Is the header compilable?
14354 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
14355 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14356 cat >conftest.$ac_ext <<_ACEOF
14359 cat confdefs.h >>conftest.$ac_ext
14360 cat >>conftest.$ac_ext <<_ACEOF
14361 /* end confdefs.h. */
14362 $ac_includes_default
14363 #include <opagent.h>
14365 rm -f conftest.$ac_objext
14366 if { (ac_try="$ac_compile"
14367 case "(($ac_try" in
14368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14369 *) ac_try_echo=$ac_try;;
14371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14372 (eval "$ac_compile") 2>conftest.er1
14374 grep -v '^ *+' conftest.er1 >conftest.err
14376 cat conftest.err >&5
14377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378 (exit $ac_status); } &&
14379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14380 { (case "(($ac_try" in
14381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14382 *) ac_try_echo=$ac_try;;
14384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14385 (eval "$ac_try") 2>&5
14387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14388 (exit $ac_status); }; } &&
14389 { ac_try='test -s conftest.$ac_objext'
14390 { (case "(($ac_try" in
14391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14392 *) ac_try_echo=$ac_try;;
14394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14395 (eval "$ac_try") 2>&5
14397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14398 (exit $ac_status); }; }; then
14399 ac_header_compiler=yes
14401 echo "$as_me: failed program was:" >&5
14402 sed 's/^/| /' conftest.$ac_ext >&5
14404 ac_header_compiler=no
14407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14408 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14409 echo "${ECHO_T}$ac_header_compiler" >&6; }
14411 # Is the header present?
14412 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
14413 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14414 cat >conftest.$ac_ext <<_ACEOF
14417 cat confdefs.h >>conftest.$ac_ext
14418 cat >>conftest.$ac_ext <<_ACEOF
14419 /* end confdefs.h. */
14420 #include <opagent.h>
14422 if { (ac_try="$ac_cpp conftest.$ac_ext"
14423 case "(($ac_try" in
14424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14425 *) ac_try_echo=$ac_try;;
14427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14428 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14430 grep -v '^ *+' conftest.er1 >conftest.err
14432 cat conftest.err >&5
14433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434 (exit $ac_status); } >/dev/null; then
14435 if test -s conftest.err; then
14436 ac_cpp_err=$ac_c_preproc_warn_flag
14437 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14444 if test -z "$ac_cpp_err"; then
14445 ac_header_preproc=yes
14447 echo "$as_me: failed program was:" >&5
14448 sed 's/^/| /' conftest.$ac_ext >&5
14450 ac_header_preproc=no
14453 rm -f conftest.err conftest.$ac_ext
14454 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14455 echo "${ECHO_T}$ac_header_preproc" >&6; }
14457 # So? What about this header?
14458 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14460 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14461 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14462 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14463 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14464 ac_header_preproc=yes
14467 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14468 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14469 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14470 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14471 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14472 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14473 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14474 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14475 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14476 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14477 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14478 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14480 ## ----------------------------------- ##
14481 ## Report this to llvmbugs@cs.uiuc.edu ##
14482 ## ----------------------------------- ##
14484 ) | sed "s/^/$as_me: WARNING: /" >&2
14487 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14488 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14489 if test "${ac_cv_header_opagent_h+set}" = set; then
14490 echo $ECHO_N "(cached) $ECHO_C" >&6
14492 ac_cv_header_opagent_h=$ac_header_preproc
14494 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14495 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14498 if test $ac_cv_header_opagent_h = yes; then
14502 echo "Error! You need to have opagent.h around."
14518 cat >>confdefs.h <<_ACEOF
14519 #define USE_OPROFILE $USE_OPROFILE
14529 ac_header_dirent=no
14530 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14531 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14532 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14533 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14534 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14535 echo $ECHO_N "(cached) $ECHO_C" >&6
14537 cat >conftest.$ac_ext <<_ACEOF
14540 cat confdefs.h >>conftest.$ac_ext
14541 cat >>conftest.$ac_ext <<_ACEOF
14542 /* end confdefs.h. */
14543 #include <sys/types.h>
14555 rm -f conftest.$ac_objext
14556 if { (ac_try="$ac_compile"
14557 case "(($ac_try" in
14558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14559 *) ac_try_echo=$ac_try;;
14561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14562 (eval "$ac_compile") 2>conftest.er1
14564 grep -v '^ *+' conftest.er1 >conftest.err
14566 cat conftest.err >&5
14567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14568 (exit $ac_status); } &&
14569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14570 { (case "(($ac_try" in
14571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14572 *) ac_try_echo=$ac_try;;
14574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14575 (eval "$ac_try") 2>&5
14577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14578 (exit $ac_status); }; } &&
14579 { ac_try='test -s conftest.$ac_objext'
14580 { (case "(($ac_try" in
14581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14582 *) ac_try_echo=$ac_try;;
14584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14585 (eval "$ac_try") 2>&5
14587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14588 (exit $ac_status); }; }; then
14589 eval "$as_ac_Header=yes"
14591 echo "$as_me: failed program was:" >&5
14592 sed 's/^/| /' conftest.$ac_ext >&5
14594 eval "$as_ac_Header=no"
14597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14599 ac_res=`eval echo '${'$as_ac_Header'}'`
14600 { echo "$as_me:$LINENO: result: $ac_res" >&5
14601 echo "${ECHO_T}$ac_res" >&6; }
14602 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14603 cat >>confdefs.h <<_ACEOF
14604 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14607 ac_header_dirent=$ac_hdr; break
14611 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14612 if test $ac_header_dirent = dirent.h; then
14613 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14614 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14615 if test "${ac_cv_search_opendir+set}" = set; then
14616 echo $ECHO_N "(cached) $ECHO_C" >&6
14618 ac_func_search_save_LIBS=$LIBS
14619 cat >conftest.$ac_ext <<_ACEOF
14622 cat confdefs.h >>conftest.$ac_ext
14623 cat >>conftest.$ac_ext <<_ACEOF
14624 /* end confdefs.h. */
14626 /* Override any GCC internal prototype to avoid an error.
14627 Use char because int might match the return type of a GCC
14628 builtin and then its argument prototype would still apply. */
14641 for ac_lib in '' dir; do
14642 if test -z "$ac_lib"; then
14643 ac_res="none required"
14646 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14648 rm -f conftest.$ac_objext conftest$ac_exeext
14649 if { (ac_try="$ac_link"
14650 case "(($ac_try" in
14651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14652 *) ac_try_echo=$ac_try;;
14654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14655 (eval "$ac_link") 2>conftest.er1
14657 grep -v '^ *+' conftest.er1 >conftest.err
14659 cat conftest.err >&5
14660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14661 (exit $ac_status); } &&
14662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14663 { (case "(($ac_try" in
14664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14665 *) ac_try_echo=$ac_try;;
14667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14668 (eval "$ac_try") 2>&5
14670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14671 (exit $ac_status); }; } &&
14672 { ac_try='test -s conftest$ac_exeext'
14673 { (case "(($ac_try" in
14674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14675 *) ac_try_echo=$ac_try;;
14677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14678 (eval "$ac_try") 2>&5
14680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14681 (exit $ac_status); }; }; then
14682 ac_cv_search_opendir=$ac_res
14684 echo "$as_me: failed program was:" >&5
14685 sed 's/^/| /' conftest.$ac_ext >&5
14690 rm -f core conftest.err conftest.$ac_objext \
14692 if test "${ac_cv_search_opendir+set}" = set; then
14696 if test "${ac_cv_search_opendir+set}" = set; then
14699 ac_cv_search_opendir=no
14701 rm conftest.$ac_ext
14702 LIBS=$ac_func_search_save_LIBS
14704 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14705 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14706 ac_res=$ac_cv_search_opendir
14707 if test "$ac_res" != no; then
14708 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14713 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14714 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14715 if test "${ac_cv_search_opendir+set}" = set; then
14716 echo $ECHO_N "(cached) $ECHO_C" >&6
14718 ac_func_search_save_LIBS=$LIBS
14719 cat >conftest.$ac_ext <<_ACEOF
14722 cat confdefs.h >>conftest.$ac_ext
14723 cat >>conftest.$ac_ext <<_ACEOF
14724 /* end confdefs.h. */
14726 /* Override any GCC internal prototype to avoid an error.
14727 Use char because int might match the return type of a GCC
14728 builtin and then its argument prototype would still apply. */
14741 for ac_lib in '' x; do
14742 if test -z "$ac_lib"; then
14743 ac_res="none required"
14746 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14748 rm -f conftest.$ac_objext conftest$ac_exeext
14749 if { (ac_try="$ac_link"
14750 case "(($ac_try" in
14751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14752 *) ac_try_echo=$ac_try;;
14754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14755 (eval "$ac_link") 2>conftest.er1
14757 grep -v '^ *+' conftest.er1 >conftest.err
14759 cat conftest.err >&5
14760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14761 (exit $ac_status); } &&
14762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14763 { (case "(($ac_try" in
14764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14765 *) ac_try_echo=$ac_try;;
14767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14768 (eval "$ac_try") 2>&5
14770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14771 (exit $ac_status); }; } &&
14772 { ac_try='test -s conftest$ac_exeext'
14773 { (case "(($ac_try" in
14774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14775 *) ac_try_echo=$ac_try;;
14777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14778 (eval "$ac_try") 2>&5
14780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14781 (exit $ac_status); }; }; then
14782 ac_cv_search_opendir=$ac_res
14784 echo "$as_me: failed program was:" >&5
14785 sed 's/^/| /' conftest.$ac_ext >&5
14790 rm -f core conftest.err conftest.$ac_objext \
14792 if test "${ac_cv_search_opendir+set}" = set; then
14796 if test "${ac_cv_search_opendir+set}" = set; then
14799 ac_cv_search_opendir=no
14801 rm conftest.$ac_ext
14802 LIBS=$ac_func_search_save_LIBS
14804 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14805 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14806 ac_res=$ac_cv_search_opendir
14807 if test "$ac_res" != no; then
14808 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14814 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14815 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14816 if test "${ac_cv_header_mmap_anon+set}" = set; then
14817 echo $ECHO_N "(cached) $ECHO_C" >&6
14820 ac_cpp='$CPP $CPPFLAGS'
14821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14825 cat >conftest.$ac_ext <<_ACEOF
14828 cat confdefs.h >>conftest.$ac_ext
14829 cat >>conftest.$ac_ext <<_ACEOF
14830 /* end confdefs.h. */
14831 #include <sys/mman.h>
14832 #include <unistd.h>
14837 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14842 rm -f conftest.$ac_objext
14843 if { (ac_try="$ac_compile"
14844 case "(($ac_try" in
14845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14846 *) ac_try_echo=$ac_try;;
14848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14849 (eval "$ac_compile") 2>conftest.er1
14851 grep -v '^ *+' conftest.er1 >conftest.err
14853 cat conftest.err >&5
14854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14855 (exit $ac_status); } &&
14856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
14864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14865 (exit $ac_status); }; } &&
14866 { ac_try='test -s conftest.$ac_objext'
14867 { (case "(($ac_try" in
14868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14869 *) ac_try_echo=$ac_try;;
14871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14872 (eval "$ac_try") 2>&5
14874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875 (exit $ac_status); }; }; then
14876 ac_cv_header_mmap_anon=yes
14878 echo "$as_me: failed program was:" >&5
14879 sed 's/^/| /' conftest.$ac_ext >&5
14881 ac_cv_header_mmap_anon=no
14884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14886 ac_cpp='$CPP $CPPFLAGS'
14887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14893 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14894 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14895 if test "$ac_cv_header_mmap_anon" = yes; then
14897 cat >>confdefs.h <<\_ACEOF
14898 #define HAVE_MMAP_ANONYMOUS 1
14903 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14904 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14905 if test "${ac_cv_header_stat_broken+set}" = set; then
14906 echo $ECHO_N "(cached) $ECHO_C" >&6
14908 cat >conftest.$ac_ext <<_ACEOF
14911 cat confdefs.h >>conftest.$ac_ext
14912 cat >>conftest.$ac_ext <<_ACEOF
14913 /* end confdefs.h. */
14914 #include <sys/types.h>
14915 #include <sys/stat.h>
14917 #if defined S_ISBLK && defined S_IFDIR
14918 # if S_ISBLK (S_IFDIR)
14923 #if defined S_ISBLK && defined S_IFCHR
14924 # if S_ISBLK (S_IFCHR)
14929 #if defined S_ISLNK && defined S_IFREG
14930 # if S_ISLNK (S_IFREG)
14935 #if defined S_ISSOCK && defined S_IFREG
14936 # if S_ISSOCK (S_IFREG)
14942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14943 $EGREP "You lose" >/dev/null 2>&1; then
14944 ac_cv_header_stat_broken=yes
14946 ac_cv_header_stat_broken=no
14951 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14952 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14953 if test $ac_cv_header_stat_broken = yes; then
14955 cat >>confdefs.h <<\_ACEOF
14956 #define STAT_MACROS_BROKEN 1
14961 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14962 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
14963 if test "${ac_cv_header_stdc+set}" = set; then
14964 echo $ECHO_N "(cached) $ECHO_C" >&6
14966 cat >conftest.$ac_ext <<_ACEOF
14969 cat confdefs.h >>conftest.$ac_ext
14970 cat >>conftest.$ac_ext <<_ACEOF
14971 /* end confdefs.h. */
14972 #include <stdlib.h>
14973 #include <stdarg.h>
14974 #include <string.h>
14985 rm -f conftest.$ac_objext
14986 if { (ac_try="$ac_compile"
14987 case "(($ac_try" in
14988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14989 *) ac_try_echo=$ac_try;;
14991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14992 (eval "$ac_compile") 2>conftest.er1
14994 grep -v '^ *+' conftest.er1 >conftest.err
14996 cat conftest.err >&5
14997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14998 (exit $ac_status); } &&
14999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15000 { (case "(($ac_try" in
15001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15002 *) ac_try_echo=$ac_try;;
15004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15005 (eval "$ac_try") 2>&5
15007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15008 (exit $ac_status); }; } &&
15009 { ac_try='test -s conftest.$ac_objext'
15010 { (case "(($ac_try" in
15011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15012 *) ac_try_echo=$ac_try;;
15014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15015 (eval "$ac_try") 2>&5
15017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15018 (exit $ac_status); }; }; then
15019 ac_cv_header_stdc=yes
15021 echo "$as_me: failed program was:" >&5
15022 sed 's/^/| /' conftest.$ac_ext >&5
15024 ac_cv_header_stdc=no
15027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15029 if test $ac_cv_header_stdc = yes; then
15030 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15031 cat >conftest.$ac_ext <<_ACEOF
15034 cat confdefs.h >>conftest.$ac_ext
15035 cat >>conftest.$ac_ext <<_ACEOF
15036 /* end confdefs.h. */
15037 #include <string.h>
15040 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15041 $EGREP "memchr" >/dev/null 2>&1; then
15044 ac_cv_header_stdc=no
15050 if test $ac_cv_header_stdc = yes; then
15051 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15052 cat >conftest.$ac_ext <<_ACEOF
15055 cat confdefs.h >>conftest.$ac_ext
15056 cat >>conftest.$ac_ext <<_ACEOF
15057 /* end confdefs.h. */
15058 #include <stdlib.h>
15061 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15062 $EGREP "free" >/dev/null 2>&1; then
15065 ac_cv_header_stdc=no
15071 if test $ac_cv_header_stdc = yes; then
15072 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15073 if test "$cross_compiling" = yes; then
15076 cat >conftest.$ac_ext <<_ACEOF
15079 cat confdefs.h >>conftest.$ac_ext
15080 cat >>conftest.$ac_ext <<_ACEOF
15081 /* end confdefs.h. */
15083 #include <stdlib.h>
15084 #if ((' ' & 0x0FF) == 0x020)
15085 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15086 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15088 # define ISLOWER(c) \
15089 (('a' <= (c) && (c) <= 'i') \
15090 || ('j' <= (c) && (c) <= 'r') \
15091 || ('s' <= (c) && (c) <= 'z'))
15092 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15095 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15100 for (i = 0; i < 256; i++)
15101 if (XOR (islower (i), ISLOWER (i))
15102 || toupper (i) != TOUPPER (i))
15107 rm -f conftest$ac_exeext
15108 if { (ac_try="$ac_link"
15109 case "(($ac_try" in
15110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15111 *) ac_try_echo=$ac_try;;
15113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15114 (eval "$ac_link") 2>&5
15116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15117 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15118 { (case "(($ac_try" in
15119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15120 *) ac_try_echo=$ac_try;;
15122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15123 (eval "$ac_try") 2>&5
15125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15126 (exit $ac_status); }; }; then
15129 echo "$as_me: program exited with status $ac_status" >&5
15130 echo "$as_me: failed program was:" >&5
15131 sed 's/^/| /' conftest.$ac_ext >&5
15133 ( exit $ac_status )
15134 ac_cv_header_stdc=no
15136 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15142 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15143 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15144 if test $ac_cv_header_stdc = yes; then
15146 cat >>confdefs.h <<\_ACEOF
15147 #define STDC_HEADERS 1
15152 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15153 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15154 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15155 echo $ECHO_N "(cached) $ECHO_C" >&6
15157 cat >conftest.$ac_ext <<_ACEOF
15160 cat confdefs.h >>conftest.$ac_ext
15161 cat >>conftest.$ac_ext <<_ACEOF
15162 /* end confdefs.h. */
15163 #include <sys/types.h>
15164 #include <sys/wait.h>
15165 #ifndef WEXITSTATUS
15166 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15169 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15177 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15182 rm -f conftest.$ac_objext
15183 if { (ac_try="$ac_compile"
15184 case "(($ac_try" in
15185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15186 *) ac_try_echo=$ac_try;;
15188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15189 (eval "$ac_compile") 2>conftest.er1
15191 grep -v '^ *+' conftest.er1 >conftest.err
15193 cat conftest.err >&5
15194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15195 (exit $ac_status); } &&
15196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15197 { (case "(($ac_try" in
15198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15199 *) ac_try_echo=$ac_try;;
15201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15202 (eval "$ac_try") 2>&5
15204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15205 (exit $ac_status); }; } &&
15206 { ac_try='test -s conftest.$ac_objext'
15207 { (case "(($ac_try" in
15208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15209 *) ac_try_echo=$ac_try;;
15211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15212 (eval "$ac_try") 2>&5
15214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15215 (exit $ac_status); }; }; then
15216 ac_cv_header_sys_wait_h=yes
15218 echo "$as_me: failed program was:" >&5
15219 sed 's/^/| /' conftest.$ac_ext >&5
15221 ac_cv_header_sys_wait_h=no
15224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15226 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15227 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15228 if test $ac_cv_header_sys_wait_h = yes; then
15230 cat >>confdefs.h <<\_ACEOF
15231 #define HAVE_SYS_WAIT_H 1
15236 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15237 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15238 if test "${ac_cv_header_time+set}" = set; then
15239 echo $ECHO_N "(cached) $ECHO_C" >&6
15241 cat >conftest.$ac_ext <<_ACEOF
15244 cat confdefs.h >>conftest.$ac_ext
15245 cat >>conftest.$ac_ext <<_ACEOF
15246 /* end confdefs.h. */
15247 #include <sys/types.h>
15248 #include <sys/time.h>
15254 if ((struct tm *) 0)
15260 rm -f conftest.$ac_objext
15261 if { (ac_try="$ac_compile"
15262 case "(($ac_try" in
15263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15264 *) ac_try_echo=$ac_try;;
15266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15267 (eval "$ac_compile") 2>conftest.er1
15269 grep -v '^ *+' conftest.er1 >conftest.err
15271 cat conftest.err >&5
15272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15273 (exit $ac_status); } &&
15274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15275 { (case "(($ac_try" in
15276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15277 *) ac_try_echo=$ac_try;;
15279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15280 (eval "$ac_try") 2>&5
15282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15283 (exit $ac_status); }; } &&
15284 { ac_try='test -s conftest.$ac_objext'
15285 { (case "(($ac_try" in
15286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15287 *) ac_try_echo=$ac_try;;
15289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15290 (eval "$ac_try") 2>&5
15292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15293 (exit $ac_status); }; }; then
15294 ac_cv_header_time=yes
15296 echo "$as_me: failed program was:" >&5
15297 sed 's/^/| /' conftest.$ac_ext >&5
15299 ac_cv_header_time=no
15302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15304 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15305 echo "${ECHO_T}$ac_cv_header_time" >&6; }
15306 if test $ac_cv_header_time = yes; then
15308 cat >>confdefs.h <<\_ACEOF
15309 #define TIME_WITH_SYS_TIME 1
15321 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15323 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15324 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15325 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15327 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15328 echo $ECHO_N "(cached) $ECHO_C" >&6
15330 ac_res=`eval echo '${'$as_ac_Header'}'`
15331 { echo "$as_me:$LINENO: result: $ac_res" >&5
15332 echo "${ECHO_T}$ac_res" >&6; }
15334 # Is the header compilable?
15335 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15336 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15337 cat >conftest.$ac_ext <<_ACEOF
15340 cat confdefs.h >>conftest.$ac_ext
15341 cat >>conftest.$ac_ext <<_ACEOF
15342 /* end confdefs.h. */
15343 $ac_includes_default
15344 #include <$ac_header>
15346 rm -f conftest.$ac_objext
15347 if { (ac_try="$ac_compile"
15348 case "(($ac_try" in
15349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15350 *) ac_try_echo=$ac_try;;
15352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15353 (eval "$ac_compile") 2>conftest.er1
15355 grep -v '^ *+' conftest.er1 >conftest.err
15357 cat conftest.err >&5
15358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15359 (exit $ac_status); } &&
15360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15361 { (case "(($ac_try" in
15362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15363 *) ac_try_echo=$ac_try;;
15365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15366 (eval "$ac_try") 2>&5
15368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15369 (exit $ac_status); }; } &&
15370 { ac_try='test -s conftest.$ac_objext'
15371 { (case "(($ac_try" in
15372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15373 *) ac_try_echo=$ac_try;;
15375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15376 (eval "$ac_try") 2>&5
15378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15379 (exit $ac_status); }; }; then
15380 ac_header_compiler=yes
15382 echo "$as_me: failed program was:" >&5
15383 sed 's/^/| /' conftest.$ac_ext >&5
15385 ac_header_compiler=no
15388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15389 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15390 echo "${ECHO_T}$ac_header_compiler" >&6; }
15392 # Is the header present?
15393 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15394 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15395 cat >conftest.$ac_ext <<_ACEOF
15398 cat confdefs.h >>conftest.$ac_ext
15399 cat >>conftest.$ac_ext <<_ACEOF
15400 /* end confdefs.h. */
15401 #include <$ac_header>
15403 if { (ac_try="$ac_cpp conftest.$ac_ext"
15404 case "(($ac_try" in
15405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15406 *) ac_try_echo=$ac_try;;
15408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15409 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15411 grep -v '^ *+' conftest.er1 >conftest.err
15413 cat conftest.err >&5
15414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15415 (exit $ac_status); } >/dev/null; then
15416 if test -s conftest.err; then
15417 ac_cpp_err=$ac_c_preproc_warn_flag
15418 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15425 if test -z "$ac_cpp_err"; then
15426 ac_header_preproc=yes
15428 echo "$as_me: failed program was:" >&5
15429 sed 's/^/| /' conftest.$ac_ext >&5
15431 ac_header_preproc=no
15434 rm -f conftest.err conftest.$ac_ext
15435 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15436 echo "${ECHO_T}$ac_header_preproc" >&6; }
15438 # So? What about this header?
15439 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15441 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15442 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15443 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15444 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15445 ac_header_preproc=yes
15448 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15449 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15450 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15451 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15452 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15453 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15454 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15455 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15456 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15457 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15458 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15459 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15461 ## ----------------------------------- ##
15462 ## Report this to llvmbugs@cs.uiuc.edu ##
15463 ## ----------------------------------- ##
15465 ) | sed "s/^/$as_me: WARNING: /" >&2
15468 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15469 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15470 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15471 echo $ECHO_N "(cached) $ECHO_C" >&6
15473 eval "$as_ac_Header=\$ac_header_preproc"
15475 ac_res=`eval echo '${'$as_ac_Header'}'`
15476 { echo "$as_me:$LINENO: result: $ac_res" >&5
15477 echo "${ECHO_T}$ac_res" >&6; }
15480 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15481 cat >>confdefs.h <<_ACEOF
15482 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15495 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15497 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15498 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15499 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15501 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15502 echo $ECHO_N "(cached) $ECHO_C" >&6
15504 ac_res=`eval echo '${'$as_ac_Header'}'`
15505 { echo "$as_me:$LINENO: result: $ac_res" >&5
15506 echo "${ECHO_T}$ac_res" >&6; }
15508 # Is the header compilable?
15509 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15510 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15511 cat >conftest.$ac_ext <<_ACEOF
15514 cat confdefs.h >>conftest.$ac_ext
15515 cat >>conftest.$ac_ext <<_ACEOF
15516 /* end confdefs.h. */
15517 $ac_includes_default
15518 #include <$ac_header>
15520 rm -f conftest.$ac_objext
15521 if { (ac_try="$ac_compile"
15522 case "(($ac_try" in
15523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15524 *) ac_try_echo=$ac_try;;
15526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15527 (eval "$ac_compile") 2>conftest.er1
15529 grep -v '^ *+' conftest.er1 >conftest.err
15531 cat conftest.err >&5
15532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15533 (exit $ac_status); } &&
15534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15535 { (case "(($ac_try" in
15536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15537 *) ac_try_echo=$ac_try;;
15539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15540 (eval "$ac_try") 2>&5
15542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15543 (exit $ac_status); }; } &&
15544 { ac_try='test -s conftest.$ac_objext'
15545 { (case "(($ac_try" in
15546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15547 *) ac_try_echo=$ac_try;;
15549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15550 (eval "$ac_try") 2>&5
15552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15553 (exit $ac_status); }; }; then
15554 ac_header_compiler=yes
15556 echo "$as_me: failed program was:" >&5
15557 sed 's/^/| /' conftest.$ac_ext >&5
15559 ac_header_compiler=no
15562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15563 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15564 echo "${ECHO_T}$ac_header_compiler" >&6; }
15566 # Is the header present?
15567 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15568 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15569 cat >conftest.$ac_ext <<_ACEOF
15572 cat confdefs.h >>conftest.$ac_ext
15573 cat >>conftest.$ac_ext <<_ACEOF
15574 /* end confdefs.h. */
15575 #include <$ac_header>
15577 if { (ac_try="$ac_cpp conftest.$ac_ext"
15578 case "(($ac_try" in
15579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15580 *) ac_try_echo=$ac_try;;
15582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15583 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15585 grep -v '^ *+' conftest.er1 >conftest.err
15587 cat conftest.err >&5
15588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589 (exit $ac_status); } >/dev/null; then
15590 if test -s conftest.err; then
15591 ac_cpp_err=$ac_c_preproc_warn_flag
15592 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15599 if test -z "$ac_cpp_err"; then
15600 ac_header_preproc=yes
15602 echo "$as_me: failed program was:" >&5
15603 sed 's/^/| /' conftest.$ac_ext >&5
15605 ac_header_preproc=no
15608 rm -f conftest.err conftest.$ac_ext
15609 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15610 echo "${ECHO_T}$ac_header_preproc" >&6; }
15612 # So? What about this header?
15613 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15615 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15616 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15617 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15618 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15619 ac_header_preproc=yes
15622 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15623 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15624 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15625 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15626 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15627 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15628 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15629 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15630 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15631 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15632 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15633 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15635 ## ----------------------------------- ##
15636 ## Report this to llvmbugs@cs.uiuc.edu ##
15637 ## ----------------------------------- ##
15639 ) | sed "s/^/$as_me: WARNING: /" >&2
15642 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15643 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15644 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15645 echo $ECHO_N "(cached) $ECHO_C" >&6
15647 eval "$as_ac_Header=\$ac_header_preproc"
15649 ac_res=`eval echo '${'$as_ac_Header'}'`
15650 { echo "$as_me:$LINENO: result: $ac_res" >&5
15651 echo "${ECHO_T}$ac_res" >&6; }
15654 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15655 cat >>confdefs.h <<_ACEOF
15656 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15665 for ac_header in utime.h windows.h
15667 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15669 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15670 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15671 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15672 echo $ECHO_N "(cached) $ECHO_C" >&6
15674 ac_res=`eval echo '${'$as_ac_Header'}'`
15675 { echo "$as_me:$LINENO: result: $ac_res" >&5
15676 echo "${ECHO_T}$ac_res" >&6; }
15678 # Is the header compilable?
15679 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15680 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15681 cat >conftest.$ac_ext <<_ACEOF
15684 cat confdefs.h >>conftest.$ac_ext
15685 cat >>conftest.$ac_ext <<_ACEOF
15686 /* end confdefs.h. */
15687 $ac_includes_default
15688 #include <$ac_header>
15690 rm -f conftest.$ac_objext
15691 if { (ac_try="$ac_compile"
15692 case "(($ac_try" in
15693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15694 *) ac_try_echo=$ac_try;;
15696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15697 (eval "$ac_compile") 2>conftest.er1
15699 grep -v '^ *+' conftest.er1 >conftest.err
15701 cat conftest.err >&5
15702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15703 (exit $ac_status); } &&
15704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15705 { (case "(($ac_try" in
15706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15707 *) ac_try_echo=$ac_try;;
15709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15710 (eval "$ac_try") 2>&5
15712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15713 (exit $ac_status); }; } &&
15714 { ac_try='test -s conftest.$ac_objext'
15715 { (case "(($ac_try" in
15716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15717 *) ac_try_echo=$ac_try;;
15719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15720 (eval "$ac_try") 2>&5
15722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15723 (exit $ac_status); }; }; then
15724 ac_header_compiler=yes
15726 echo "$as_me: failed program was:" >&5
15727 sed 's/^/| /' conftest.$ac_ext >&5
15729 ac_header_compiler=no
15732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15733 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15734 echo "${ECHO_T}$ac_header_compiler" >&6; }
15736 # Is the header present?
15737 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15738 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15739 cat >conftest.$ac_ext <<_ACEOF
15742 cat confdefs.h >>conftest.$ac_ext
15743 cat >>conftest.$ac_ext <<_ACEOF
15744 /* end confdefs.h. */
15745 #include <$ac_header>
15747 if { (ac_try="$ac_cpp conftest.$ac_ext"
15748 case "(($ac_try" in
15749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15750 *) ac_try_echo=$ac_try;;
15752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15753 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15755 grep -v '^ *+' conftest.er1 >conftest.err
15757 cat conftest.err >&5
15758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15759 (exit $ac_status); } >/dev/null; then
15760 if test -s conftest.err; then
15761 ac_cpp_err=$ac_c_preproc_warn_flag
15762 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15769 if test -z "$ac_cpp_err"; then
15770 ac_header_preproc=yes
15772 echo "$as_me: failed program was:" >&5
15773 sed 's/^/| /' conftest.$ac_ext >&5
15775 ac_header_preproc=no
15778 rm -f conftest.err conftest.$ac_ext
15779 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15780 echo "${ECHO_T}$ac_header_preproc" >&6; }
15782 # So? What about this header?
15783 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15785 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15786 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15787 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15788 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15789 ac_header_preproc=yes
15792 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15793 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15794 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15795 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15796 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15797 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15798 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15799 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15800 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15801 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15802 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15803 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15805 ## ----------------------------------- ##
15806 ## Report this to llvmbugs@cs.uiuc.edu ##
15807 ## ----------------------------------- ##
15809 ) | sed "s/^/$as_me: WARNING: /" >&2
15812 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15814 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15815 echo $ECHO_N "(cached) $ECHO_C" >&6
15817 eval "$as_ac_Header=\$ac_header_preproc"
15819 ac_res=`eval echo '${'$as_ac_Header'}'`
15820 { echo "$as_me:$LINENO: result: $ac_res" >&5
15821 echo "${ECHO_T}$ac_res" >&6; }
15824 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15825 cat >>confdefs.h <<_ACEOF
15826 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15837 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
15839 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15840 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15841 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15843 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15844 echo $ECHO_N "(cached) $ECHO_C" >&6
15846 ac_res=`eval echo '${'$as_ac_Header'}'`
15847 { echo "$as_me:$LINENO: result: $ac_res" >&5
15848 echo "${ECHO_T}$ac_res" >&6; }
15850 # Is the header compilable?
15851 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15852 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15853 cat >conftest.$ac_ext <<_ACEOF
15856 cat confdefs.h >>conftest.$ac_ext
15857 cat >>conftest.$ac_ext <<_ACEOF
15858 /* end confdefs.h. */
15859 $ac_includes_default
15860 #include <$ac_header>
15862 rm -f conftest.$ac_objext
15863 if { (ac_try="$ac_compile"
15864 case "(($ac_try" in
15865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15866 *) ac_try_echo=$ac_try;;
15868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15869 (eval "$ac_compile") 2>conftest.er1
15871 grep -v '^ *+' conftest.er1 >conftest.err
15873 cat conftest.err >&5
15874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15875 (exit $ac_status); } &&
15876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15877 { (case "(($ac_try" in
15878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15879 *) ac_try_echo=$ac_try;;
15881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15882 (eval "$ac_try") 2>&5
15884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15885 (exit $ac_status); }; } &&
15886 { ac_try='test -s conftest.$ac_objext'
15887 { (case "(($ac_try" in
15888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15889 *) ac_try_echo=$ac_try;;
15891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15892 (eval "$ac_try") 2>&5
15894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15895 (exit $ac_status); }; }; then
15896 ac_header_compiler=yes
15898 echo "$as_me: failed program was:" >&5
15899 sed 's/^/| /' conftest.$ac_ext >&5
15901 ac_header_compiler=no
15904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15905 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15906 echo "${ECHO_T}$ac_header_compiler" >&6; }
15908 # Is the header present?
15909 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15910 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15911 cat >conftest.$ac_ext <<_ACEOF
15914 cat confdefs.h >>conftest.$ac_ext
15915 cat >>conftest.$ac_ext <<_ACEOF
15916 /* end confdefs.h. */
15917 #include <$ac_header>
15919 if { (ac_try="$ac_cpp conftest.$ac_ext"
15920 case "(($ac_try" in
15921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15922 *) ac_try_echo=$ac_try;;
15924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15925 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15927 grep -v '^ *+' conftest.er1 >conftest.err
15929 cat conftest.err >&5
15930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15931 (exit $ac_status); } >/dev/null; then
15932 if test -s conftest.err; then
15933 ac_cpp_err=$ac_c_preproc_warn_flag
15934 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15941 if test -z "$ac_cpp_err"; then
15942 ac_header_preproc=yes
15944 echo "$as_me: failed program was:" >&5
15945 sed 's/^/| /' conftest.$ac_ext >&5
15947 ac_header_preproc=no
15950 rm -f conftest.err conftest.$ac_ext
15951 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15952 echo "${ECHO_T}$ac_header_preproc" >&6; }
15954 # So? What about this header?
15955 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15957 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15958 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15959 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15960 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15961 ac_header_preproc=yes
15964 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15965 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15966 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15967 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15968 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15969 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15970 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15971 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15972 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15973 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15974 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15975 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15977 ## ----------------------------------- ##
15978 ## Report this to llvmbugs@cs.uiuc.edu ##
15979 ## ----------------------------------- ##
15981 ) | sed "s/^/$as_me: WARNING: /" >&2
15984 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15985 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15986 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15987 echo $ECHO_N "(cached) $ECHO_C" >&6
15989 eval "$as_ac_Header=\$ac_header_preproc"
15991 ac_res=`eval echo '${'$as_ac_Header'}'`
15992 { echo "$as_me:$LINENO: result: $ac_res" >&5
15993 echo "${ECHO_T}$ac_res" >&6; }
15996 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15997 cat >>confdefs.h <<_ACEOF
15998 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16009 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
16011 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16012 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16013 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16016 echo $ECHO_N "(cached) $ECHO_C" >&6
16018 ac_res=`eval echo '${'$as_ac_Header'}'`
16019 { echo "$as_me:$LINENO: result: $ac_res" >&5
16020 echo "${ECHO_T}$ac_res" >&6; }
16022 # Is the header compilable?
16023 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16024 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16025 cat >conftest.$ac_ext <<_ACEOF
16028 cat confdefs.h >>conftest.$ac_ext
16029 cat >>conftest.$ac_ext <<_ACEOF
16030 /* end confdefs.h. */
16031 $ac_includes_default
16032 #include <$ac_header>
16034 rm -f conftest.$ac_objext
16035 if { (ac_try="$ac_compile"
16036 case "(($ac_try" in
16037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16038 *) ac_try_echo=$ac_try;;
16040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16041 (eval "$ac_compile") 2>conftest.er1
16043 grep -v '^ *+' conftest.er1 >conftest.err
16045 cat conftest.err >&5
16046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16047 (exit $ac_status); } &&
16048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16049 { (case "(($ac_try" in
16050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16051 *) ac_try_echo=$ac_try;;
16053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16054 (eval "$ac_try") 2>&5
16056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16057 (exit $ac_status); }; } &&
16058 { ac_try='test -s conftest.$ac_objext'
16059 { (case "(($ac_try" in
16060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16061 *) ac_try_echo=$ac_try;;
16063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16064 (eval "$ac_try") 2>&5
16066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16067 (exit $ac_status); }; }; then
16068 ac_header_compiler=yes
16070 echo "$as_me: failed program was:" >&5
16071 sed 's/^/| /' conftest.$ac_ext >&5
16073 ac_header_compiler=no
16076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16077 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16078 echo "${ECHO_T}$ac_header_compiler" >&6; }
16080 # Is the header present?
16081 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16082 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16083 cat >conftest.$ac_ext <<_ACEOF
16086 cat confdefs.h >>conftest.$ac_ext
16087 cat >>conftest.$ac_ext <<_ACEOF
16088 /* end confdefs.h. */
16089 #include <$ac_header>
16091 if { (ac_try="$ac_cpp conftest.$ac_ext"
16092 case "(($ac_try" in
16093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16094 *) ac_try_echo=$ac_try;;
16096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16097 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16099 grep -v '^ *+' conftest.er1 >conftest.err
16101 cat conftest.err >&5
16102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16103 (exit $ac_status); } >/dev/null; then
16104 if test -s conftest.err; then
16105 ac_cpp_err=$ac_c_preproc_warn_flag
16106 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16113 if test -z "$ac_cpp_err"; then
16114 ac_header_preproc=yes
16116 echo "$as_me: failed program was:" >&5
16117 sed 's/^/| /' conftest.$ac_ext >&5
16119 ac_header_preproc=no
16122 rm -f conftest.err conftest.$ac_ext
16123 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16124 echo "${ECHO_T}$ac_header_preproc" >&6; }
16126 # So? What about this header?
16127 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16129 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16130 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16131 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16132 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16133 ac_header_preproc=yes
16136 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16137 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16138 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16139 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16140 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16141 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16142 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16143 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16144 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16145 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16146 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16147 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16149 ## ----------------------------------- ##
16150 ## Report this to llvmbugs@cs.uiuc.edu ##
16151 ## ----------------------------------- ##
16153 ) | sed "s/^/$as_me: WARNING: /" >&2
16156 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16157 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16158 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16159 echo $ECHO_N "(cached) $ECHO_C" >&6
16161 eval "$as_ac_Header=\$ac_header_preproc"
16163 ac_res=`eval echo '${'$as_ac_Header'}'`
16164 { echo "$as_me:$LINENO: result: $ac_res" >&5
16165 echo "${ECHO_T}$ac_res" >&6; }
16168 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16169 cat >>confdefs.h <<_ACEOF
16170 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16177 if test "$ENABLE_THREADS" -eq 1 ; then
16179 for ac_header in pthread.h
16181 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16182 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16183 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16184 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16185 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16186 echo $ECHO_N "(cached) $ECHO_C" >&6
16188 ac_res=`eval echo '${'$as_ac_Header'}'`
16189 { echo "$as_me:$LINENO: result: $ac_res" >&5
16190 echo "${ECHO_T}$ac_res" >&6; }
16192 # Is the header compilable?
16193 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16194 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16195 cat >conftest.$ac_ext <<_ACEOF
16198 cat confdefs.h >>conftest.$ac_ext
16199 cat >>conftest.$ac_ext <<_ACEOF
16200 /* end confdefs.h. */
16201 $ac_includes_default
16202 #include <$ac_header>
16204 rm -f conftest.$ac_objext
16205 if { (ac_try="$ac_compile"
16206 case "(($ac_try" in
16207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16208 *) ac_try_echo=$ac_try;;
16210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16211 (eval "$ac_compile") 2>conftest.er1
16213 grep -v '^ *+' conftest.er1 >conftest.err
16215 cat conftest.err >&5
16216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16217 (exit $ac_status); } &&
16218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16219 { (case "(($ac_try" in
16220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16221 *) ac_try_echo=$ac_try;;
16223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16224 (eval "$ac_try") 2>&5
16226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16227 (exit $ac_status); }; } &&
16228 { ac_try='test -s conftest.$ac_objext'
16229 { (case "(($ac_try" in
16230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16231 *) ac_try_echo=$ac_try;;
16233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16234 (eval "$ac_try") 2>&5
16236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16237 (exit $ac_status); }; }; then
16238 ac_header_compiler=yes
16240 echo "$as_me: failed program was:" >&5
16241 sed 's/^/| /' conftest.$ac_ext >&5
16243 ac_header_compiler=no
16246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16247 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16248 echo "${ECHO_T}$ac_header_compiler" >&6; }
16250 # Is the header present?
16251 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16252 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16253 cat >conftest.$ac_ext <<_ACEOF
16256 cat confdefs.h >>conftest.$ac_ext
16257 cat >>conftest.$ac_ext <<_ACEOF
16258 /* end confdefs.h. */
16259 #include <$ac_header>
16261 if { (ac_try="$ac_cpp conftest.$ac_ext"
16262 case "(($ac_try" in
16263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16264 *) ac_try_echo=$ac_try;;
16266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16267 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16269 grep -v '^ *+' conftest.er1 >conftest.err
16271 cat conftest.err >&5
16272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16273 (exit $ac_status); } >/dev/null; then
16274 if test -s conftest.err; then
16275 ac_cpp_err=$ac_c_preproc_warn_flag
16276 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16283 if test -z "$ac_cpp_err"; then
16284 ac_header_preproc=yes
16286 echo "$as_me: failed program was:" >&5
16287 sed 's/^/| /' conftest.$ac_ext >&5
16289 ac_header_preproc=no
16292 rm -f conftest.err conftest.$ac_ext
16293 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16294 echo "${ECHO_T}$ac_header_preproc" >&6; }
16296 # So? What about this header?
16297 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16299 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16300 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16301 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16302 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16303 ac_header_preproc=yes
16306 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16307 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16308 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16309 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16310 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16311 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16312 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16313 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16314 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16315 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16316 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16317 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16319 ## ----------------------------------- ##
16320 ## Report this to llvmbugs@cs.uiuc.edu ##
16321 ## ----------------------------------- ##
16323 ) | sed "s/^/$as_me: WARNING: /" >&2
16326 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16328 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16329 echo $ECHO_N "(cached) $ECHO_C" >&6
16331 eval "$as_ac_Header=\$ac_header_preproc"
16333 ac_res=`eval echo '${'$as_ac_Header'}'`
16334 { echo "$as_me:$LINENO: result: $ac_res" >&5
16335 echo "${ECHO_T}$ac_res" >&6; }
16338 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16339 cat >>confdefs.h <<_ACEOF
16340 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16356 if test "$llvm_cv_enable_libffi" = "yes" ; then
16359 for ac_header in ffi.h ffi/ffi.h
16361 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16362 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16363 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16366 echo $ECHO_N "(cached) $ECHO_C" >&6
16368 ac_res=`eval echo '${'$as_ac_Header'}'`
16369 { echo "$as_me:$LINENO: result: $ac_res" >&5
16370 echo "${ECHO_T}$ac_res" >&6; }
16372 # Is the header compilable?
16373 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16374 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16375 cat >conftest.$ac_ext <<_ACEOF
16378 cat confdefs.h >>conftest.$ac_ext
16379 cat >>conftest.$ac_ext <<_ACEOF
16380 /* end confdefs.h. */
16381 $ac_includes_default
16382 #include <$ac_header>
16384 rm -f conftest.$ac_objext
16385 if { (ac_try="$ac_compile"
16386 case "(($ac_try" in
16387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16388 *) ac_try_echo=$ac_try;;
16390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16391 (eval "$ac_compile") 2>conftest.er1
16393 grep -v '^ *+' conftest.er1 >conftest.err
16395 cat conftest.err >&5
16396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16397 (exit $ac_status); } &&
16398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16399 { (case "(($ac_try" in
16400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16401 *) ac_try_echo=$ac_try;;
16403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16404 (eval "$ac_try") 2>&5
16406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16407 (exit $ac_status); }; } &&
16408 { ac_try='test -s conftest.$ac_objext'
16409 { (case "(($ac_try" in
16410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16411 *) ac_try_echo=$ac_try;;
16413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16414 (eval "$ac_try") 2>&5
16416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16417 (exit $ac_status); }; }; then
16418 ac_header_compiler=yes
16420 echo "$as_me: failed program was:" >&5
16421 sed 's/^/| /' conftest.$ac_ext >&5
16423 ac_header_compiler=no
16426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16427 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16428 echo "${ECHO_T}$ac_header_compiler" >&6; }
16430 # Is the header present?
16431 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16432 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16433 cat >conftest.$ac_ext <<_ACEOF
16436 cat confdefs.h >>conftest.$ac_ext
16437 cat >>conftest.$ac_ext <<_ACEOF
16438 /* end confdefs.h. */
16439 #include <$ac_header>
16441 if { (ac_try="$ac_cpp conftest.$ac_ext"
16442 case "(($ac_try" in
16443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16444 *) ac_try_echo=$ac_try;;
16446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16447 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16449 grep -v '^ *+' conftest.er1 >conftest.err
16451 cat conftest.err >&5
16452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16453 (exit $ac_status); } >/dev/null; then
16454 if test -s conftest.err; then
16455 ac_cpp_err=$ac_c_preproc_warn_flag
16456 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16463 if test -z "$ac_cpp_err"; then
16464 ac_header_preproc=yes
16466 echo "$as_me: failed program was:" >&5
16467 sed 's/^/| /' conftest.$ac_ext >&5
16469 ac_header_preproc=no
16472 rm -f conftest.err conftest.$ac_ext
16473 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16474 echo "${ECHO_T}$ac_header_preproc" >&6; }
16476 # So? What about this header?
16477 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16479 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16480 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16482 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16483 ac_header_preproc=yes
16486 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16487 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16488 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16489 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16490 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16491 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16492 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16493 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16494 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16495 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16496 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16497 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16499 ## ----------------------------------- ##
16500 ## Report this to llvmbugs@cs.uiuc.edu ##
16501 ## ----------------------------------- ##
16503 ) | sed "s/^/$as_me: WARNING: /" >&2
16506 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16508 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16509 echo $ECHO_N "(cached) $ECHO_C" >&6
16511 eval "$as_ac_Header=\$ac_header_preproc"
16513 ac_res=`eval echo '${'$as_ac_Header'}'`
16514 { echo "$as_me:$LINENO: result: $ac_res" >&5
16515 echo "${ECHO_T}$ac_res" >&6; }
16518 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16519 cat >>confdefs.h <<_ACEOF
16520 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16532 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16533 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16534 if test "${ac_cv_huge_val_sanity+set}" = set; then
16535 echo $ECHO_N "(cached) $ECHO_C" >&6
16539 ac_cpp='$CXXCPP $CPPFLAGS'
16540 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16541 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16542 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16545 if test "$cross_compiling" = yes; then
16546 ac_cv_huge_val_sanity=yes
16548 cat >conftest.$ac_ext <<_ACEOF
16551 cat confdefs.h >>conftest.$ac_ext
16552 cat >>conftest.$ac_ext <<_ACEOF
16553 /* end confdefs.h. */
16558 double x = HUGE_VAL; return x != x;
16563 rm -f conftest$ac_exeext
16564 if { (ac_try="$ac_link"
16565 case "(($ac_try" in
16566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16567 *) ac_try_echo=$ac_try;;
16569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16570 (eval "$ac_link") 2>&5
16572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16574 { (case "(($ac_try" in
16575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16576 *) ac_try_echo=$ac_try;;
16578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16579 (eval "$ac_try") 2>&5
16581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16582 (exit $ac_status); }; }; then
16583 ac_cv_huge_val_sanity=yes
16585 echo "$as_me: program exited with status $ac_status" >&5
16586 echo "$as_me: failed program was:" >&5
16587 sed 's/^/| /' conftest.$ac_ext >&5
16589 ( exit $ac_status )
16590 ac_cv_huge_val_sanity=no
16592 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16597 ac_cpp='$CPP $CPPFLAGS'
16598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16604 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16605 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16606 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16609 { echo "$as_me:$LINENO: checking for pid_t" >&5
16610 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16611 if test "${ac_cv_type_pid_t+set}" = set; then
16612 echo $ECHO_N "(cached) $ECHO_C" >&6
16614 cat >conftest.$ac_ext <<_ACEOF
16617 cat confdefs.h >>conftest.$ac_ext
16618 cat >>conftest.$ac_ext <<_ACEOF
16619 /* end confdefs.h. */
16620 $ac_includes_default
16621 typedef pid_t ac__type_new_;
16625 if ((ac__type_new_ *) 0)
16627 if (sizeof (ac__type_new_))
16633 rm -f conftest.$ac_objext
16634 if { (ac_try="$ac_compile"
16635 case "(($ac_try" in
16636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16637 *) ac_try_echo=$ac_try;;
16639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16640 (eval "$ac_compile") 2>conftest.er1
16642 grep -v '^ *+' conftest.er1 >conftest.err
16644 cat conftest.err >&5
16645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16646 (exit $ac_status); } &&
16647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16648 { (case "(($ac_try" in
16649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16650 *) ac_try_echo=$ac_try;;
16652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16653 (eval "$ac_try") 2>&5
16655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16656 (exit $ac_status); }; } &&
16657 { ac_try='test -s conftest.$ac_objext'
16658 { (case "(($ac_try" in
16659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16660 *) ac_try_echo=$ac_try;;
16662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16663 (eval "$ac_try") 2>&5
16665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16666 (exit $ac_status); }; }; then
16667 ac_cv_type_pid_t=yes
16669 echo "$as_me: failed program was:" >&5
16670 sed 's/^/| /' conftest.$ac_ext >&5
16672 ac_cv_type_pid_t=no
16675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16677 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16678 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16679 if test $ac_cv_type_pid_t = yes; then
16683 cat >>confdefs.h <<_ACEOF
16689 { echo "$as_me:$LINENO: checking for size_t" >&5
16690 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16691 if test "${ac_cv_type_size_t+set}" = set; then
16692 echo $ECHO_N "(cached) $ECHO_C" >&6
16694 cat >conftest.$ac_ext <<_ACEOF
16697 cat confdefs.h >>conftest.$ac_ext
16698 cat >>conftest.$ac_ext <<_ACEOF
16699 /* end confdefs.h. */
16700 $ac_includes_default
16701 typedef size_t ac__type_new_;
16705 if ((ac__type_new_ *) 0)
16707 if (sizeof (ac__type_new_))
16713 rm -f conftest.$ac_objext
16714 if { (ac_try="$ac_compile"
16715 case "(($ac_try" in
16716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16717 *) ac_try_echo=$ac_try;;
16719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16720 (eval "$ac_compile") 2>conftest.er1
16722 grep -v '^ *+' conftest.er1 >conftest.err
16724 cat conftest.err >&5
16725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16726 (exit $ac_status); } &&
16727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16728 { (case "(($ac_try" in
16729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16730 *) ac_try_echo=$ac_try;;
16732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16733 (eval "$ac_try") 2>&5
16735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16736 (exit $ac_status); }; } &&
16737 { ac_try='test -s conftest.$ac_objext'
16738 { (case "(($ac_try" in
16739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16740 *) ac_try_echo=$ac_try;;
16742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16743 (eval "$ac_try") 2>&5
16745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16746 (exit $ac_status); }; }; then
16747 ac_cv_type_size_t=yes
16749 echo "$as_me: failed program was:" >&5
16750 sed 's/^/| /' conftest.$ac_ext >&5
16752 ac_cv_type_size_t=no
16755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16757 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16758 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16759 if test $ac_cv_type_size_t = yes; then
16763 cat >>confdefs.h <<_ACEOF
16764 #define size_t unsigned int
16770 cat >>confdefs.h <<_ACEOF
16771 #define RETSIGTYPE void
16774 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16775 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16776 if test "${ac_cv_struct_tm+set}" = set; then
16777 echo $ECHO_N "(cached) $ECHO_C" >&6
16779 cat >conftest.$ac_ext <<_ACEOF
16782 cat confdefs.h >>conftest.$ac_ext
16783 cat >>conftest.$ac_ext <<_ACEOF
16784 /* end confdefs.h. */
16785 #include <sys/types.h>
16791 struct tm *tp; tp->tm_sec;
16796 rm -f conftest.$ac_objext
16797 if { (ac_try="$ac_compile"
16798 case "(($ac_try" in
16799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16800 *) ac_try_echo=$ac_try;;
16802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16803 (eval "$ac_compile") 2>conftest.er1
16805 grep -v '^ *+' conftest.er1 >conftest.err
16807 cat conftest.err >&5
16808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16809 (exit $ac_status); } &&
16810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16811 { (case "(($ac_try" in
16812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16813 *) ac_try_echo=$ac_try;;
16815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16816 (eval "$ac_try") 2>&5
16818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16819 (exit $ac_status); }; } &&
16820 { ac_try='test -s conftest.$ac_objext'
16821 { (case "(($ac_try" in
16822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16823 *) ac_try_echo=$ac_try;;
16825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16826 (eval "$ac_try") 2>&5
16828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16829 (exit $ac_status); }; }; then
16830 ac_cv_struct_tm=time.h
16832 echo "$as_me: failed program was:" >&5
16833 sed 's/^/| /' conftest.$ac_ext >&5
16835 ac_cv_struct_tm=sys/time.h
16838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16840 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16841 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16842 if test $ac_cv_struct_tm = sys/time.h; then
16844 cat >>confdefs.h <<\_ACEOF
16845 #define TM_IN_SYS_TIME 1
16850 { echo "$as_me:$LINENO: checking for int64_t" >&5
16851 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16852 if test "${ac_cv_type_int64_t+set}" = set; then
16853 echo $ECHO_N "(cached) $ECHO_C" >&6
16855 cat >conftest.$ac_ext <<_ACEOF
16858 cat confdefs.h >>conftest.$ac_ext
16859 cat >>conftest.$ac_ext <<_ACEOF
16860 /* end confdefs.h. */
16861 $ac_includes_default
16862 typedef int64_t ac__type_new_;
16866 if ((ac__type_new_ *) 0)
16868 if (sizeof (ac__type_new_))
16874 rm -f conftest.$ac_objext
16875 if { (ac_try="$ac_compile"
16876 case "(($ac_try" in
16877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16878 *) ac_try_echo=$ac_try;;
16880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16881 (eval "$ac_compile") 2>conftest.er1
16883 grep -v '^ *+' conftest.er1 >conftest.err
16885 cat conftest.err >&5
16886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16887 (exit $ac_status); } &&
16888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16889 { (case "(($ac_try" in
16890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16891 *) ac_try_echo=$ac_try;;
16893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16894 (eval "$ac_try") 2>&5
16896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16897 (exit $ac_status); }; } &&
16898 { ac_try='test -s conftest.$ac_objext'
16899 { (case "(($ac_try" in
16900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16901 *) ac_try_echo=$ac_try;;
16903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16904 (eval "$ac_try") 2>&5
16906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16907 (exit $ac_status); }; }; then
16908 ac_cv_type_int64_t=yes
16910 echo "$as_me: failed program was:" >&5
16911 sed 's/^/| /' conftest.$ac_ext >&5
16913 ac_cv_type_int64_t=no
16916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16918 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16919 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16920 if test $ac_cv_type_int64_t = yes; then
16922 cat >>confdefs.h <<_ACEOF
16923 #define HAVE_INT64_T 1
16928 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16929 echo "$as_me: error: Type int64_t required but not found" >&2;}
16930 { (exit 1); exit 1; }; }
16933 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16934 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16935 if test "${ac_cv_type_uint64_t+set}" = set; then
16936 echo $ECHO_N "(cached) $ECHO_C" >&6
16938 cat >conftest.$ac_ext <<_ACEOF
16941 cat confdefs.h >>conftest.$ac_ext
16942 cat >>conftest.$ac_ext <<_ACEOF
16943 /* end confdefs.h. */
16944 $ac_includes_default
16945 typedef uint64_t ac__type_new_;
16949 if ((ac__type_new_ *) 0)
16951 if (sizeof (ac__type_new_))
16957 rm -f conftest.$ac_objext
16958 if { (ac_try="$ac_compile"
16959 case "(($ac_try" in
16960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16961 *) ac_try_echo=$ac_try;;
16963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16964 (eval "$ac_compile") 2>conftest.er1
16966 grep -v '^ *+' conftest.er1 >conftest.err
16968 cat conftest.err >&5
16969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16970 (exit $ac_status); } &&
16971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16972 { (case "(($ac_try" in
16973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16974 *) ac_try_echo=$ac_try;;
16976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16977 (eval "$ac_try") 2>&5
16979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16980 (exit $ac_status); }; } &&
16981 { ac_try='test -s conftest.$ac_objext'
16982 { (case "(($ac_try" in
16983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16984 *) ac_try_echo=$ac_try;;
16986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16987 (eval "$ac_try") 2>&5
16989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990 (exit $ac_status); }; }; then
16991 ac_cv_type_uint64_t=yes
16993 echo "$as_me: failed program was:" >&5
16994 sed 's/^/| /' conftest.$ac_ext >&5
16996 ac_cv_type_uint64_t=no
16999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17001 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17002 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17003 if test $ac_cv_type_uint64_t = yes; then
17005 cat >>confdefs.h <<_ACEOF
17006 #define HAVE_UINT64_T 1
17011 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17012 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17013 if test "${ac_cv_type_u_int64_t+set}" = set; then
17014 echo $ECHO_N "(cached) $ECHO_C" >&6
17016 cat >conftest.$ac_ext <<_ACEOF
17019 cat confdefs.h >>conftest.$ac_ext
17020 cat >>conftest.$ac_ext <<_ACEOF
17021 /* end confdefs.h. */
17022 $ac_includes_default
17023 typedef u_int64_t ac__type_new_;
17027 if ((ac__type_new_ *) 0)
17029 if (sizeof (ac__type_new_))
17035 rm -f conftest.$ac_objext
17036 if { (ac_try="$ac_compile"
17037 case "(($ac_try" in
17038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17039 *) ac_try_echo=$ac_try;;
17041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17042 (eval "$ac_compile") 2>conftest.er1
17044 grep -v '^ *+' conftest.er1 >conftest.err
17046 cat conftest.err >&5
17047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17048 (exit $ac_status); } &&
17049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17050 { (case "(($ac_try" in
17051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17052 *) ac_try_echo=$ac_try;;
17054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17055 (eval "$ac_try") 2>&5
17057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17058 (exit $ac_status); }; } &&
17059 { ac_try='test -s conftest.$ac_objext'
17060 { (case "(($ac_try" in
17061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17062 *) ac_try_echo=$ac_try;;
17064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17065 (eval "$ac_try") 2>&5
17067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17068 (exit $ac_status); }; }; then
17069 ac_cv_type_u_int64_t=yes
17071 echo "$as_me: failed program was:" >&5
17072 sed 's/^/| /' conftest.$ac_ext >&5
17074 ac_cv_type_u_int64_t=no
17077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17079 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17080 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17081 if test $ac_cv_type_u_int64_t = yes; then
17083 cat >>confdefs.h <<_ACEOF
17084 #define HAVE_U_INT64_T 1
17089 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17090 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17091 { (exit 1); exit 1; }; }
17105 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17107 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17108 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17109 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17110 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17111 echo $ECHO_N "(cached) $ECHO_C" >&6
17113 cat >conftest.$ac_ext <<_ACEOF
17116 cat confdefs.h >>conftest.$ac_ext
17117 cat >>conftest.$ac_ext <<_ACEOF
17118 /* end confdefs.h. */
17119 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17120 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17121 #define $ac_func innocuous_$ac_func
17123 /* System header to define __stub macros and hopefully few prototypes,
17124 which can conflict with char $ac_func (); below.
17125 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17126 <limits.h> exists even on freestanding compilers. */
17129 # include <limits.h>
17131 # include <assert.h>
17136 /* Override any GCC internal prototype to avoid an error.
17137 Use char because int might match the return type of a GCC
17138 builtin and then its argument prototype would still apply. */
17143 /* The GNU C library defines this for functions which it implements
17144 to always fail with ENOSYS. Some functions are actually named
17145 something starting with __ and the normal name is an alias. */
17146 #if defined __stub_$ac_func || defined __stub___$ac_func
17153 return $ac_func ();
17158 rm -f conftest.$ac_objext conftest$ac_exeext
17159 if { (ac_try="$ac_link"
17160 case "(($ac_try" in
17161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17162 *) ac_try_echo=$ac_try;;
17164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17165 (eval "$ac_link") 2>conftest.er1
17167 grep -v '^ *+' conftest.er1 >conftest.err
17169 cat conftest.err >&5
17170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17171 (exit $ac_status); } &&
17172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17173 { (case "(($ac_try" in
17174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17175 *) ac_try_echo=$ac_try;;
17177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17178 (eval "$ac_try") 2>&5
17180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17181 (exit $ac_status); }; } &&
17182 { ac_try='test -s conftest$ac_exeext'
17183 { (case "(($ac_try" in
17184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17185 *) ac_try_echo=$ac_try;;
17187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17188 (eval "$ac_try") 2>&5
17190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17191 (exit $ac_status); }; }; then
17192 eval "$as_ac_var=yes"
17194 echo "$as_me: failed program was:" >&5
17195 sed 's/^/| /' conftest.$ac_ext >&5
17197 eval "$as_ac_var=no"
17200 rm -f core conftest.err conftest.$ac_objext \
17201 conftest$ac_exeext conftest.$ac_ext
17203 ac_res=`eval echo '${'$as_ac_var'}'`
17204 { echo "$as_me:$LINENO: result: $ac_res" >&5
17205 echo "${ECHO_T}$ac_res" >&6; }
17206 if test `eval echo '${'$as_ac_var'}'` = yes; then
17207 cat >>confdefs.h <<_ACEOF
17208 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17218 for ac_func in powf fmodf strtof round
17220 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17221 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17222 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17223 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17224 echo $ECHO_N "(cached) $ECHO_C" >&6
17226 cat >conftest.$ac_ext <<_ACEOF
17229 cat confdefs.h >>conftest.$ac_ext
17230 cat >>conftest.$ac_ext <<_ACEOF
17231 /* end confdefs.h. */
17232 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17233 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17234 #define $ac_func innocuous_$ac_func
17236 /* System header to define __stub macros and hopefully few prototypes,
17237 which can conflict with char $ac_func (); below.
17238 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17239 <limits.h> exists even on freestanding compilers. */
17242 # include <limits.h>
17244 # include <assert.h>
17249 /* Override any GCC internal prototype to avoid an error.
17250 Use char because int might match the return type of a GCC
17251 builtin and then its argument prototype would still apply. */
17256 /* The GNU C library defines this for functions which it implements
17257 to always fail with ENOSYS. Some functions are actually named
17258 something starting with __ and the normal name is an alias. */
17259 #if defined __stub_$ac_func || defined __stub___$ac_func
17266 return $ac_func ();
17271 rm -f conftest.$ac_objext conftest$ac_exeext
17272 if { (ac_try="$ac_link"
17273 case "(($ac_try" in
17274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17275 *) ac_try_echo=$ac_try;;
17277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17278 (eval "$ac_link") 2>conftest.er1
17280 grep -v '^ *+' conftest.er1 >conftest.err
17282 cat conftest.err >&5
17283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17284 (exit $ac_status); } &&
17285 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17286 { (case "(($ac_try" in
17287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17288 *) ac_try_echo=$ac_try;;
17290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17291 (eval "$ac_try") 2>&5
17293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17294 (exit $ac_status); }; } &&
17295 { ac_try='test -s conftest$ac_exeext'
17296 { (case "(($ac_try" in
17297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17298 *) ac_try_echo=$ac_try;;
17300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17301 (eval "$ac_try") 2>&5
17303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17304 (exit $ac_status); }; }; then
17305 eval "$as_ac_var=yes"
17307 echo "$as_me: failed program was:" >&5
17308 sed 's/^/| /' conftest.$ac_ext >&5
17310 eval "$as_ac_var=no"
17313 rm -f core conftest.err conftest.$ac_objext \
17314 conftest$ac_exeext conftest.$ac_ext
17316 ac_res=`eval echo '${'$as_ac_var'}'`
17317 { echo "$as_me:$LINENO: result: $ac_res" >&5
17318 echo "${ECHO_T}$ac_res" >&6; }
17319 if test `eval echo '${'$as_ac_var'}'` = yes; then
17320 cat >>confdefs.h <<_ACEOF
17321 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17332 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17334 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17335 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17336 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17337 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17338 echo $ECHO_N "(cached) $ECHO_C" >&6
17340 cat >conftest.$ac_ext <<_ACEOF
17343 cat confdefs.h >>conftest.$ac_ext
17344 cat >>conftest.$ac_ext <<_ACEOF
17345 /* end confdefs.h. */
17346 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17347 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17348 #define $ac_func innocuous_$ac_func
17350 /* System header to define __stub macros and hopefully few prototypes,
17351 which can conflict with char $ac_func (); below.
17352 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17353 <limits.h> exists even on freestanding compilers. */
17356 # include <limits.h>
17358 # include <assert.h>
17363 /* Override any GCC internal prototype to avoid an error.
17364 Use char because int might match the return type of a GCC
17365 builtin and then its argument prototype would still apply. */
17370 /* The GNU C library defines this for functions which it implements
17371 to always fail with ENOSYS. Some functions are actually named
17372 something starting with __ and the normal name is an alias. */
17373 #if defined __stub_$ac_func || defined __stub___$ac_func
17380 return $ac_func ();
17385 rm -f conftest.$ac_objext conftest$ac_exeext
17386 if { (ac_try="$ac_link"
17387 case "(($ac_try" in
17388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17389 *) ac_try_echo=$ac_try;;
17391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17392 (eval "$ac_link") 2>conftest.er1
17394 grep -v '^ *+' conftest.er1 >conftest.err
17396 cat conftest.err >&5
17397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398 (exit $ac_status); } &&
17399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17400 { (case "(($ac_try" in
17401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17402 *) ac_try_echo=$ac_try;;
17404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17405 (eval "$ac_try") 2>&5
17407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408 (exit $ac_status); }; } &&
17409 { ac_try='test -s conftest$ac_exeext'
17410 { (case "(($ac_try" in
17411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17412 *) ac_try_echo=$ac_try;;
17414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17415 (eval "$ac_try") 2>&5
17417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17418 (exit $ac_status); }; }; then
17419 eval "$as_ac_var=yes"
17421 echo "$as_me: failed program was:" >&5
17422 sed 's/^/| /' conftest.$ac_ext >&5
17424 eval "$as_ac_var=no"
17427 rm -f core conftest.err conftest.$ac_objext \
17428 conftest$ac_exeext conftest.$ac_ext
17430 ac_res=`eval echo '${'$as_ac_var'}'`
17431 { echo "$as_me:$LINENO: result: $ac_res" >&5
17432 echo "${ECHO_T}$ac_res" >&6; }
17433 if test `eval echo '${'$as_ac_var'}'` = yes; then
17434 cat >>confdefs.h <<_ACEOF
17435 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17444 for ac_func in isatty mkdtemp mkstemp
17446 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17447 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17448 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17449 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17450 echo $ECHO_N "(cached) $ECHO_C" >&6
17452 cat >conftest.$ac_ext <<_ACEOF
17455 cat confdefs.h >>conftest.$ac_ext
17456 cat >>conftest.$ac_ext <<_ACEOF
17457 /* end confdefs.h. */
17458 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17459 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17460 #define $ac_func innocuous_$ac_func
17462 /* System header to define __stub macros and hopefully few prototypes,
17463 which can conflict with char $ac_func (); below.
17464 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17465 <limits.h> exists even on freestanding compilers. */
17468 # include <limits.h>
17470 # include <assert.h>
17475 /* Override any GCC internal prototype to avoid an error.
17476 Use char because int might match the return type of a GCC
17477 builtin and then its argument prototype would still apply. */
17482 /* The GNU C library defines this for functions which it implements
17483 to always fail with ENOSYS. Some functions are actually named
17484 something starting with __ and the normal name is an alias. */
17485 #if defined __stub_$ac_func || defined __stub___$ac_func
17492 return $ac_func ();
17497 rm -f conftest.$ac_objext conftest$ac_exeext
17498 if { (ac_try="$ac_link"
17499 case "(($ac_try" in
17500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17501 *) ac_try_echo=$ac_try;;
17503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17504 (eval "$ac_link") 2>conftest.er1
17506 grep -v '^ *+' conftest.er1 >conftest.err
17508 cat conftest.err >&5
17509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17510 (exit $ac_status); } &&
17511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17512 { (case "(($ac_try" in
17513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17514 *) ac_try_echo=$ac_try;;
17516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17517 (eval "$ac_try") 2>&5
17519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17520 (exit $ac_status); }; } &&
17521 { ac_try='test -s conftest$ac_exeext'
17522 { (case "(($ac_try" in
17523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17524 *) ac_try_echo=$ac_try;;
17526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17527 (eval "$ac_try") 2>&5
17529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17530 (exit $ac_status); }; }; then
17531 eval "$as_ac_var=yes"
17533 echo "$as_me: failed program was:" >&5
17534 sed 's/^/| /' conftest.$ac_ext >&5
17536 eval "$as_ac_var=no"
17539 rm -f core conftest.err conftest.$ac_objext \
17540 conftest$ac_exeext conftest.$ac_ext
17542 ac_res=`eval echo '${'$as_ac_var'}'`
17543 { echo "$as_me:$LINENO: result: $ac_res" >&5
17544 echo "${ECHO_T}$ac_res" >&6; }
17545 if test `eval echo '${'$as_ac_var'}'` = yes; then
17546 cat >>confdefs.h <<_ACEOF
17547 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17558 for ac_func in mktemp realpath sbrk setrlimit strdup
17560 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17561 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17562 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17563 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17564 echo $ECHO_N "(cached) $ECHO_C" >&6
17566 cat >conftest.$ac_ext <<_ACEOF
17569 cat confdefs.h >>conftest.$ac_ext
17570 cat >>conftest.$ac_ext <<_ACEOF
17571 /* end confdefs.h. */
17572 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17573 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17574 #define $ac_func innocuous_$ac_func
17576 /* System header to define __stub macros and hopefully few prototypes,
17577 which can conflict with char $ac_func (); below.
17578 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17579 <limits.h> exists even on freestanding compilers. */
17582 # include <limits.h>
17584 # include <assert.h>
17589 /* Override any GCC internal prototype to avoid an error.
17590 Use char because int might match the return type of a GCC
17591 builtin and then its argument prototype would still apply. */
17596 /* The GNU C library defines this for functions which it implements
17597 to always fail with ENOSYS. Some functions are actually named
17598 something starting with __ and the normal name is an alias. */
17599 #if defined __stub_$ac_func || defined __stub___$ac_func
17606 return $ac_func ();
17611 rm -f conftest.$ac_objext conftest$ac_exeext
17612 if { (ac_try="$ac_link"
17613 case "(($ac_try" in
17614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17615 *) ac_try_echo=$ac_try;;
17617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17618 (eval "$ac_link") 2>conftest.er1
17620 grep -v '^ *+' conftest.er1 >conftest.err
17622 cat conftest.err >&5
17623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624 (exit $ac_status); } &&
17625 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17626 { (case "(($ac_try" in
17627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17628 *) ac_try_echo=$ac_try;;
17630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17631 (eval "$ac_try") 2>&5
17633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17634 (exit $ac_status); }; } &&
17635 { ac_try='test -s conftest$ac_exeext'
17636 { (case "(($ac_try" in
17637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17638 *) ac_try_echo=$ac_try;;
17640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17641 (eval "$ac_try") 2>&5
17643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17644 (exit $ac_status); }; }; then
17645 eval "$as_ac_var=yes"
17647 echo "$as_me: failed program was:" >&5
17648 sed 's/^/| /' conftest.$ac_ext >&5
17650 eval "$as_ac_var=no"
17653 rm -f core conftest.err conftest.$ac_objext \
17654 conftest$ac_exeext conftest.$ac_ext
17656 ac_res=`eval echo '${'$as_ac_var'}'`
17657 { echo "$as_me:$LINENO: result: $ac_res" >&5
17658 echo "${ECHO_T}$ac_res" >&6; }
17659 if test `eval echo '${'$as_ac_var'}'` = yes; then
17660 cat >>confdefs.h <<_ACEOF
17661 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17671 for ac_func in strerror strerror_r strerror_s setenv
17673 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17674 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17675 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17676 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17677 echo $ECHO_N "(cached) $ECHO_C" >&6
17679 cat >conftest.$ac_ext <<_ACEOF
17682 cat confdefs.h >>conftest.$ac_ext
17683 cat >>conftest.$ac_ext <<_ACEOF
17684 /* end confdefs.h. */
17685 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17686 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17687 #define $ac_func innocuous_$ac_func
17689 /* System header to define __stub macros and hopefully few prototypes,
17690 which can conflict with char $ac_func (); below.
17691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17692 <limits.h> exists even on freestanding compilers. */
17695 # include <limits.h>
17697 # include <assert.h>
17702 /* Override any GCC internal prototype to avoid an error.
17703 Use char because int might match the return type of a GCC
17704 builtin and then its argument prototype would still apply. */
17709 /* The GNU C library defines this for functions which it implements
17710 to always fail with ENOSYS. Some functions are actually named
17711 something starting with __ and the normal name is an alias. */
17712 #if defined __stub_$ac_func || defined __stub___$ac_func
17719 return $ac_func ();
17724 rm -f conftest.$ac_objext conftest$ac_exeext
17725 if { (ac_try="$ac_link"
17726 case "(($ac_try" in
17727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17728 *) ac_try_echo=$ac_try;;
17730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17731 (eval "$ac_link") 2>conftest.er1
17733 grep -v '^ *+' conftest.er1 >conftest.err
17735 cat conftest.err >&5
17736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17737 (exit $ac_status); } &&
17738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17739 { (case "(($ac_try" in
17740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17741 *) ac_try_echo=$ac_try;;
17743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17744 (eval "$ac_try") 2>&5
17746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17747 (exit $ac_status); }; } &&
17748 { ac_try='test -s conftest$ac_exeext'
17749 { (case "(($ac_try" in
17750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17751 *) ac_try_echo=$ac_try;;
17753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17754 (eval "$ac_try") 2>&5
17756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757 (exit $ac_status); }; }; then
17758 eval "$as_ac_var=yes"
17760 echo "$as_me: failed program was:" >&5
17761 sed 's/^/| /' conftest.$ac_ext >&5
17763 eval "$as_ac_var=no"
17766 rm -f core conftest.err conftest.$ac_objext \
17767 conftest$ac_exeext conftest.$ac_ext
17769 ac_res=`eval echo '${'$as_ac_var'}'`
17770 { echo "$as_me:$LINENO: result: $ac_res" >&5
17771 echo "${ECHO_T}$ac_res" >&6; }
17772 if test `eval echo '${'$as_ac_var'}'` = yes; then
17773 cat >>confdefs.h <<_ACEOF
17774 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17784 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17786 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17787 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17788 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17789 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17790 echo $ECHO_N "(cached) $ECHO_C" >&6
17792 cat >conftest.$ac_ext <<_ACEOF
17795 cat confdefs.h >>conftest.$ac_ext
17796 cat >>conftest.$ac_ext <<_ACEOF
17797 /* end confdefs.h. */
17798 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17799 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17800 #define $ac_func innocuous_$ac_func
17802 /* System header to define __stub macros and hopefully few prototypes,
17803 which can conflict with char $ac_func (); below.
17804 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17805 <limits.h> exists even on freestanding compilers. */
17808 # include <limits.h>
17810 # include <assert.h>
17815 /* Override any GCC internal prototype to avoid an error.
17816 Use char because int might match the return type of a GCC
17817 builtin and then its argument prototype would still apply. */
17822 /* The GNU C library defines this for functions which it implements
17823 to always fail with ENOSYS. Some functions are actually named
17824 something starting with __ and the normal name is an alias. */
17825 #if defined __stub_$ac_func || defined __stub___$ac_func
17832 return $ac_func ();
17837 rm -f conftest.$ac_objext conftest$ac_exeext
17838 if { (ac_try="$ac_link"
17839 case "(($ac_try" in
17840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17841 *) ac_try_echo=$ac_try;;
17843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17844 (eval "$ac_link") 2>conftest.er1
17846 grep -v '^ *+' conftest.er1 >conftest.err
17848 cat conftest.err >&5
17849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17850 (exit $ac_status); } &&
17851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17852 { (case "(($ac_try" in
17853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17854 *) ac_try_echo=$ac_try;;
17856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17857 (eval "$ac_try") 2>&5
17859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17860 (exit $ac_status); }; } &&
17861 { ac_try='test -s conftest$ac_exeext'
17862 { (case "(($ac_try" in
17863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17864 *) ac_try_echo=$ac_try;;
17866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17867 (eval "$ac_try") 2>&5
17869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17870 (exit $ac_status); }; }; then
17871 eval "$as_ac_var=yes"
17873 echo "$as_me: failed program was:" >&5
17874 sed 's/^/| /' conftest.$ac_ext >&5
17876 eval "$as_ac_var=no"
17879 rm -f core conftest.err conftest.$ac_objext \
17880 conftest$ac_exeext conftest.$ac_ext
17882 ac_res=`eval echo '${'$as_ac_var'}'`
17883 { echo "$as_me:$LINENO: result: $ac_res" >&5
17884 echo "${ECHO_T}$ac_res" >&6; }
17885 if test `eval echo '${'$as_ac_var'}'` = yes; then
17886 cat >>confdefs.h <<_ACEOF
17887 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17897 for ac_func in setjmp longjmp sigsetjmp siglongjmp
17899 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17900 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17901 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17902 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17903 echo $ECHO_N "(cached) $ECHO_C" >&6
17905 cat >conftest.$ac_ext <<_ACEOF
17908 cat confdefs.h >>conftest.$ac_ext
17909 cat >>conftest.$ac_ext <<_ACEOF
17910 /* end confdefs.h. */
17911 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17912 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17913 #define $ac_func innocuous_$ac_func
17915 /* System header to define __stub macros and hopefully few prototypes,
17916 which can conflict with char $ac_func (); below.
17917 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17918 <limits.h> exists even on freestanding compilers. */
17921 # include <limits.h>
17923 # include <assert.h>
17928 /* Override any GCC internal prototype to avoid an error.
17929 Use char because int might match the return type of a GCC
17930 builtin and then its argument prototype would still apply. */
17935 /* The GNU C library defines this for functions which it implements
17936 to always fail with ENOSYS. Some functions are actually named
17937 something starting with __ and the normal name is an alias. */
17938 #if defined __stub_$ac_func || defined __stub___$ac_func
17945 return $ac_func ();
17950 rm -f conftest.$ac_objext conftest$ac_exeext
17951 if { (ac_try="$ac_link"
17952 case "(($ac_try" in
17953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17954 *) ac_try_echo=$ac_try;;
17956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17957 (eval "$ac_link") 2>conftest.er1
17959 grep -v '^ *+' conftest.er1 >conftest.err
17961 cat conftest.err >&5
17962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17963 (exit $ac_status); } &&
17964 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17965 { (case "(($ac_try" in
17966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17967 *) ac_try_echo=$ac_try;;
17969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17970 (eval "$ac_try") 2>&5
17972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17973 (exit $ac_status); }; } &&
17974 { ac_try='test -s conftest$ac_exeext'
17975 { (case "(($ac_try" in
17976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17977 *) ac_try_echo=$ac_try;;
17979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17980 (eval "$ac_try") 2>&5
17982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17983 (exit $ac_status); }; }; then
17984 eval "$as_ac_var=yes"
17986 echo "$as_me: failed program was:" >&5
17987 sed 's/^/| /' conftest.$ac_ext >&5
17989 eval "$as_ac_var=no"
17992 rm -f core conftest.err conftest.$ac_objext \
17993 conftest$ac_exeext conftest.$ac_ext
17995 ac_res=`eval echo '${'$as_ac_var'}'`
17996 { echo "$as_me:$LINENO: result: $ac_res" >&5
17997 echo "${ECHO_T}$ac_res" >&6; }
17998 if test `eval echo '${'$as_ac_var'}'` = yes; then
17999 cat >>confdefs.h <<_ACEOF
18000 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18006 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18007 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18008 if test "${llvm_cv_c_printf_a+set}" = set; then
18009 echo $ECHO_N "(cached) $ECHO_C" >&6
18012 ac_cpp='$CPP $CPPFLAGS'
18013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18017 if test "$cross_compiling" = yes; then
18018 llvmac_cv_c_printf_a=no
18020 cat >conftest.$ac_ext <<_ACEOF
18024 cat confdefs.h >>conftest.$ac_ext
18025 cat >>conftest.$ac_ext <<_ACEOF
18026 /* end confdefs.h. */
18029 #include <stdlib.h>
18035 volatile double A, B;
18039 sprintf(Buffer, "%a", A);
18043 if (A != 0x1.999999999999ap-4)
18050 rm -f conftest$ac_exeext
18051 if { (ac_try="$ac_link"
18052 case "(($ac_try" in
18053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18054 *) ac_try_echo=$ac_try;;
18056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18057 (eval "$ac_link") 2>&5
18059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18060 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18061 { (case "(($ac_try" in
18062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18063 *) ac_try_echo=$ac_try;;
18065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18066 (eval "$ac_try") 2>&5
18068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18069 (exit $ac_status); }; }; then
18070 llvm_cv_c_printf_a=yes
18072 echo "$as_me: program exited with status $ac_status" >&5
18073 echo "$as_me: failed program was:" >&5
18074 sed 's/^/| /' conftest.$ac_ext >&5
18076 ( exit $ac_status )
18077 llvmac_cv_c_printf_a=no
18079 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18084 ac_cpp='$CPP $CPPFLAGS'
18085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18090 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18091 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18092 if test "$llvm_cv_c_printf_a" = "yes"; then
18094 cat >>confdefs.h <<\_ACEOF
18095 #define HAVE_PRINTF_A 1
18101 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18102 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18103 if test "${ac_cv_func_rand48+set}" = set; then
18104 echo $ECHO_N "(cached) $ECHO_C" >&6
18107 ac_cpp='$CXXCPP $CPPFLAGS'
18108 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18109 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18110 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18112 cat >conftest.$ac_ext <<_ACEOF
18115 cat confdefs.h >>conftest.$ac_ext
18116 cat >>conftest.$ac_ext <<_ACEOF
18117 /* end confdefs.h. */
18118 #include <stdlib.h>
18122 srand48(0);lrand48();drand48();
18127 rm -f conftest.$ac_objext
18128 if { (ac_try="$ac_compile"
18129 case "(($ac_try" in
18130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18131 *) ac_try_echo=$ac_try;;
18133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18134 (eval "$ac_compile") 2>conftest.er1
18136 grep -v '^ *+' conftest.er1 >conftest.err
18138 cat conftest.err >&5
18139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18140 (exit $ac_status); } &&
18141 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18142 { (case "(($ac_try" in
18143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18144 *) ac_try_echo=$ac_try;;
18146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18147 (eval "$ac_try") 2>&5
18149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18150 (exit $ac_status); }; } &&
18151 { ac_try='test -s conftest.$ac_objext'
18152 { (case "(($ac_try" in
18153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18154 *) ac_try_echo=$ac_try;;
18156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18157 (eval "$ac_try") 2>&5
18159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18160 (exit $ac_status); }; }; then
18161 ac_cv_func_rand48=yes
18163 echo "$as_me: failed program was:" >&5
18164 sed 's/^/| /' conftest.$ac_ext >&5
18166 ac_cv_func_rand48=no
18169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18171 ac_cpp='$CPP $CPPFLAGS'
18172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18177 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18178 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18180 if test "$ac_cv_func_rand48" = "yes" ; then
18182 cat >>confdefs.h <<\_ACEOF
18183 #define HAVE_RAND48 1
18190 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
18191 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
18192 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
18193 echo $ECHO_N "(cached) $ECHO_C" >&6
18196 ac_cpp='$CXXCPP $CPPFLAGS'
18197 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18198 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18199 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18201 cat >conftest.$ac_ext <<_ACEOF
18204 cat confdefs.h >>conftest.$ac_ext
18205 cat >>conftest.$ac_ext <<_ACEOF
18206 /* end confdefs.h. */
18216 rm -f conftest.$ac_objext
18217 if { (ac_try="$ac_compile"
18218 case "(($ac_try" in
18219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18220 *) ac_try_echo=$ac_try;;
18222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18223 (eval "$ac_compile") 2>conftest.er1
18225 grep -v '^ *+' conftest.er1 >conftest.err
18227 cat conftest.err >&5
18228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18229 (exit $ac_status); } &&
18230 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18231 { (case "(($ac_try" in
18232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18233 *) ac_try_echo=$ac_try;;
18235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18236 (eval "$ac_try") 2>&5
18238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18239 (exit $ac_status); }; } &&
18240 { ac_try='test -s conftest.$ac_objext'
18241 { (case "(($ac_try" in
18242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18243 *) ac_try_echo=$ac_try;;
18245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18246 (eval "$ac_try") 2>&5
18248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18249 (exit $ac_status); }; }; then
18250 ac_cv_func_isnan_in_math_h=yes
18252 echo "$as_me: failed program was:" >&5
18253 sed 's/^/| /' conftest.$ac_ext >&5
18255 ac_cv_func_isnan_in_math_h=no
18258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18260 ac_cpp='$CPP $CPPFLAGS'
18261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18266 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
18267 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
18270 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
18272 cat >>confdefs.h <<\_ACEOF
18273 #define HAVE_ISNAN_IN_MATH_H 1
18278 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
18279 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
18280 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
18281 echo $ECHO_N "(cached) $ECHO_C" >&6
18284 ac_cpp='$CXXCPP $CPPFLAGS'
18285 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18286 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18287 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18289 cat >conftest.$ac_ext <<_ACEOF
18292 cat confdefs.h >>conftest.$ac_ext
18293 cat >>conftest.$ac_ext <<_ACEOF
18294 /* end confdefs.h. */
18304 rm -f conftest.$ac_objext
18305 if { (ac_try="$ac_compile"
18306 case "(($ac_try" in
18307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18308 *) ac_try_echo=$ac_try;;
18310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18311 (eval "$ac_compile") 2>conftest.er1
18313 grep -v '^ *+' conftest.er1 >conftest.err
18315 cat conftest.err >&5
18316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18317 (exit $ac_status); } &&
18318 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18319 { (case "(($ac_try" in
18320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18321 *) ac_try_echo=$ac_try;;
18323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18324 (eval "$ac_try") 2>&5
18326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18327 (exit $ac_status); }; } &&
18328 { ac_try='test -s conftest.$ac_objext'
18329 { (case "(($ac_try" in
18330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18331 *) ac_try_echo=$ac_try;;
18333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18334 (eval "$ac_try") 2>&5
18336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18337 (exit $ac_status); }; }; then
18338 ac_cv_func_isnan_in_cmath=yes
18340 echo "$as_me: failed program was:" >&5
18341 sed 's/^/| /' conftest.$ac_ext >&5
18343 ac_cv_func_isnan_in_cmath=no
18346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18348 ac_cpp='$CPP $CPPFLAGS'
18349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18354 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
18355 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
18357 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
18359 cat >>confdefs.h <<\_ACEOF
18360 #define HAVE_ISNAN_IN_CMATH 1
18365 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
18366 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
18367 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
18368 echo $ECHO_N "(cached) $ECHO_C" >&6
18371 ac_cpp='$CXXCPP $CPPFLAGS'
18372 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18373 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18374 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18376 cat >conftest.$ac_ext <<_ACEOF
18379 cat confdefs.h >>conftest.$ac_ext
18380 cat >>conftest.$ac_ext <<_ACEOF
18381 /* end confdefs.h. */
18386 float f; std::isnan(f);
18391 rm -f conftest.$ac_objext
18392 if { (ac_try="$ac_compile"
18393 case "(($ac_try" in
18394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18395 *) ac_try_echo=$ac_try;;
18397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18398 (eval "$ac_compile") 2>conftest.er1
18400 grep -v '^ *+' conftest.er1 >conftest.err
18402 cat conftest.err >&5
18403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18404 (exit $ac_status); } &&
18405 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18406 { (case "(($ac_try" in
18407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18408 *) ac_try_echo=$ac_try;;
18410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18411 (eval "$ac_try") 2>&5
18413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18414 (exit $ac_status); }; } &&
18415 { ac_try='test -s conftest.$ac_objext'
18416 { (case "(($ac_try" in
18417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18418 *) ac_try_echo=$ac_try;;
18420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18421 (eval "$ac_try") 2>&5
18423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18424 (exit $ac_status); }; }; then
18425 ac_cv_func_std_isnan_in_cmath=yes
18427 echo "$as_me: failed program was:" >&5
18428 sed 's/^/| /' conftest.$ac_ext >&5
18430 ac_cv_func_std_isnan_in_cmath=no
18433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18435 ac_cpp='$CPP $CPPFLAGS'
18436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18441 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
18442 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
18444 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
18446 cat >>confdefs.h <<\_ACEOF
18447 #define HAVE_STD_ISNAN_IN_CMATH 1
18453 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
18454 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
18455 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
18456 echo $ECHO_N "(cached) $ECHO_C" >&6
18459 ac_cpp='$CXXCPP $CPPFLAGS'
18460 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18461 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18462 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18464 cat >conftest.$ac_ext <<_ACEOF
18467 cat confdefs.h >>conftest.$ac_ext
18468 cat >>conftest.$ac_ext <<_ACEOF
18469 /* end confdefs.h. */
18479 rm -f conftest.$ac_objext
18480 if { (ac_try="$ac_compile"
18481 case "(($ac_try" in
18482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18483 *) ac_try_echo=$ac_try;;
18485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18486 (eval "$ac_compile") 2>conftest.er1
18488 grep -v '^ *+' conftest.er1 >conftest.err
18490 cat conftest.err >&5
18491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18492 (exit $ac_status); } &&
18493 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18494 { (case "(($ac_try" in
18495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18496 *) ac_try_echo=$ac_try;;
18498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18499 (eval "$ac_try") 2>&5
18501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18502 (exit $ac_status); }; } &&
18503 { ac_try='test -s conftest.$ac_objext'
18504 { (case "(($ac_try" in
18505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18506 *) ac_try_echo=$ac_try;;
18508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18509 (eval "$ac_try") 2>&5
18511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18512 (exit $ac_status); }; }; then
18513 ac_cv_func_isinf_in_math_h=yes
18515 echo "$as_me: failed program was:" >&5
18516 sed 's/^/| /' conftest.$ac_ext >&5
18518 ac_cv_func_isinf_in_math_h=no
18521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18523 ac_cpp='$CPP $CPPFLAGS'
18524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18529 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
18530 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
18532 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
18534 cat >>confdefs.h <<\_ACEOF
18535 #define HAVE_ISINF_IN_MATH_H 1
18540 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
18541 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
18542 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
18543 echo $ECHO_N "(cached) $ECHO_C" >&6
18546 ac_cpp='$CXXCPP $CPPFLAGS'
18547 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18548 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18549 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18551 cat >conftest.$ac_ext <<_ACEOF
18554 cat confdefs.h >>conftest.$ac_ext
18555 cat >>conftest.$ac_ext <<_ACEOF
18556 /* end confdefs.h. */
18566 rm -f conftest.$ac_objext
18567 if { (ac_try="$ac_compile"
18568 case "(($ac_try" in
18569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18570 *) ac_try_echo=$ac_try;;
18572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18573 (eval "$ac_compile") 2>conftest.er1
18575 grep -v '^ *+' conftest.er1 >conftest.err
18577 cat conftest.err >&5
18578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18579 (exit $ac_status); } &&
18580 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18581 { (case "(($ac_try" in
18582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18583 *) ac_try_echo=$ac_try;;
18585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18586 (eval "$ac_try") 2>&5
18588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18589 (exit $ac_status); }; } &&
18590 { ac_try='test -s conftest.$ac_objext'
18591 { (case "(($ac_try" in
18592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18593 *) ac_try_echo=$ac_try;;
18595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18596 (eval "$ac_try") 2>&5
18598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18599 (exit $ac_status); }; }; then
18600 ac_cv_func_isinf_in_cmath=yes
18602 echo "$as_me: failed program was:" >&5
18603 sed 's/^/| /' conftest.$ac_ext >&5
18605 ac_cv_func_isinf_in_cmath=no
18608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18610 ac_cpp='$CPP $CPPFLAGS'
18611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18616 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
18617 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
18619 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
18621 cat >>confdefs.h <<\_ACEOF
18622 #define HAVE_ISINF_IN_CMATH 1
18627 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
18628 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
18629 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
18630 echo $ECHO_N "(cached) $ECHO_C" >&6
18633 ac_cpp='$CXXCPP $CPPFLAGS'
18634 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18635 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18636 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18638 cat >conftest.$ac_ext <<_ACEOF
18641 cat confdefs.h >>conftest.$ac_ext
18642 cat >>conftest.$ac_ext <<_ACEOF
18643 /* end confdefs.h. */
18648 float f; std::isinf(f)}
18653 rm -f conftest.$ac_objext
18654 if { (ac_try="$ac_compile"
18655 case "(($ac_try" in
18656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18657 *) ac_try_echo=$ac_try;;
18659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18660 (eval "$ac_compile") 2>conftest.er1
18662 grep -v '^ *+' conftest.er1 >conftest.err
18664 cat conftest.err >&5
18665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18666 (exit $ac_status); } &&
18667 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18668 { (case "(($ac_try" in
18669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18670 *) ac_try_echo=$ac_try;;
18672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18673 (eval "$ac_try") 2>&5
18675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18676 (exit $ac_status); }; } &&
18677 { ac_try='test -s conftest.$ac_objext'
18678 { (case "(($ac_try" in
18679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18680 *) ac_try_echo=$ac_try;;
18682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18683 (eval "$ac_try") 2>&5
18685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18686 (exit $ac_status); }; }; then
18687 ac_cv_func_std_isinf_in_cmath=yes
18689 echo "$as_me: failed program was:" >&5
18690 sed 's/^/| /' conftest.$ac_ext >&5
18692 ac_cv_func_std_isinf_in_cmath=no
18695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18697 ac_cpp='$CPP $CPPFLAGS'
18698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18703 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
18704 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
18706 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
18708 cat >>confdefs.h <<\_ACEOF
18709 #define HAVE_STD_ISINF_IN_CMATH 1
18714 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
18715 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
18716 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
18717 echo $ECHO_N "(cached) $ECHO_C" >&6
18720 ac_cpp='$CXXCPP $CPPFLAGS'
18721 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18722 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18723 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18725 cat >conftest.$ac_ext <<_ACEOF
18728 cat confdefs.h >>conftest.$ac_ext
18729 cat >>conftest.$ac_ext <<_ACEOF
18730 /* end confdefs.h. */
18731 #include <ieeefp.h>
18735 float f; finite(f);
18740 rm -f conftest.$ac_objext
18741 if { (ac_try="$ac_compile"
18742 case "(($ac_try" in
18743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18744 *) ac_try_echo=$ac_try;;
18746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18747 (eval "$ac_compile") 2>conftest.er1
18749 grep -v '^ *+' conftest.er1 >conftest.err
18751 cat conftest.err >&5
18752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18753 (exit $ac_status); } &&
18754 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18755 { (case "(($ac_try" in
18756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18757 *) ac_try_echo=$ac_try;;
18759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18760 (eval "$ac_try") 2>&5
18762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18763 (exit $ac_status); }; } &&
18764 { ac_try='test -s conftest.$ac_objext'
18765 { (case "(($ac_try" in
18766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18767 *) ac_try_echo=$ac_try;;
18769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18770 (eval "$ac_try") 2>&5
18772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18773 (exit $ac_status); }; }; then
18774 ac_cv_func_finite_in_ieeefp_h=yes
18776 echo "$as_me: failed program was:" >&5
18777 sed 's/^/| /' conftest.$ac_ext >&5
18779 ac_cv_func_finite_in_ieeefp_h=no
18782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18784 ac_cpp='$CPP $CPPFLAGS'
18785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18790 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
18791 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
18793 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
18795 cat >>confdefs.h <<\_ACEOF
18796 #define HAVE_FINITE_IN_IEEEFP_H 1
18803 if test "$llvm_cv_platform_type" = "Unix" ; then
18806 for ac_header in stdlib.h unistd.h
18808 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18809 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18810 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18811 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18812 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18813 echo $ECHO_N "(cached) $ECHO_C" >&6
18815 ac_res=`eval echo '${'$as_ac_Header'}'`
18816 { echo "$as_me:$LINENO: result: $ac_res" >&5
18817 echo "${ECHO_T}$ac_res" >&6; }
18819 # Is the header compilable?
18820 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18821 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18822 cat >conftest.$ac_ext <<_ACEOF
18825 cat confdefs.h >>conftest.$ac_ext
18826 cat >>conftest.$ac_ext <<_ACEOF
18827 /* end confdefs.h. */
18828 $ac_includes_default
18829 #include <$ac_header>
18831 rm -f conftest.$ac_objext
18832 if { (ac_try="$ac_compile"
18833 case "(($ac_try" in
18834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18835 *) ac_try_echo=$ac_try;;
18837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18838 (eval "$ac_compile") 2>conftest.er1
18840 grep -v '^ *+' conftest.er1 >conftest.err
18842 cat conftest.err >&5
18843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18844 (exit $ac_status); } &&
18845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18846 { (case "(($ac_try" in
18847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18848 *) ac_try_echo=$ac_try;;
18850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18851 (eval "$ac_try") 2>&5
18853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18854 (exit $ac_status); }; } &&
18855 { ac_try='test -s conftest.$ac_objext'
18856 { (case "(($ac_try" in
18857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18858 *) ac_try_echo=$ac_try;;
18860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18861 (eval "$ac_try") 2>&5
18863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18864 (exit $ac_status); }; }; then
18865 ac_header_compiler=yes
18867 echo "$as_me: failed program was:" >&5
18868 sed 's/^/| /' conftest.$ac_ext >&5
18870 ac_header_compiler=no
18873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18874 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18875 echo "${ECHO_T}$ac_header_compiler" >&6; }
18877 # Is the header present?
18878 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18879 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18880 cat >conftest.$ac_ext <<_ACEOF
18883 cat confdefs.h >>conftest.$ac_ext
18884 cat >>conftest.$ac_ext <<_ACEOF
18885 /* end confdefs.h. */
18886 #include <$ac_header>
18888 if { (ac_try="$ac_cpp conftest.$ac_ext"
18889 case "(($ac_try" in
18890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18891 *) ac_try_echo=$ac_try;;
18893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18894 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18896 grep -v '^ *+' conftest.er1 >conftest.err
18898 cat conftest.err >&5
18899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18900 (exit $ac_status); } >/dev/null; then
18901 if test -s conftest.err; then
18902 ac_cpp_err=$ac_c_preproc_warn_flag
18903 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18910 if test -z "$ac_cpp_err"; then
18911 ac_header_preproc=yes
18913 echo "$as_me: failed program was:" >&5
18914 sed 's/^/| /' conftest.$ac_ext >&5
18916 ac_header_preproc=no
18919 rm -f conftest.err conftest.$ac_ext
18920 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18921 echo "${ECHO_T}$ac_header_preproc" >&6; }
18923 # So? What about this header?
18924 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18926 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18927 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18928 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18929 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18930 ac_header_preproc=yes
18933 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18934 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18935 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18936 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18937 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18938 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18939 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18940 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18941 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18942 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18943 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18944 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18946 ## ----------------------------------- ##
18947 ## Report this to llvmbugs@cs.uiuc.edu ##
18948 ## ----------------------------------- ##
18950 ) | sed "s/^/$as_me: WARNING: /" >&2
18953 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18954 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18955 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18956 echo $ECHO_N "(cached) $ECHO_C" >&6
18958 eval "$as_ac_Header=\$ac_header_preproc"
18960 ac_res=`eval echo '${'$as_ac_Header'}'`
18961 { echo "$as_me:$LINENO: result: $ac_res" >&5
18962 echo "${ECHO_T}$ac_res" >&6; }
18965 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18966 cat >>confdefs.h <<_ACEOF
18967 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18975 for ac_func in getpagesize
18977 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18978 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18979 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18980 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18981 echo $ECHO_N "(cached) $ECHO_C" >&6
18983 cat >conftest.$ac_ext <<_ACEOF
18986 cat confdefs.h >>conftest.$ac_ext
18987 cat >>conftest.$ac_ext <<_ACEOF
18988 /* end confdefs.h. */
18989 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18990 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18991 #define $ac_func innocuous_$ac_func
18993 /* System header to define __stub macros and hopefully few prototypes,
18994 which can conflict with char $ac_func (); below.
18995 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18996 <limits.h> exists even on freestanding compilers. */
18999 # include <limits.h>
19001 # include <assert.h>
19006 /* Override any GCC internal prototype to avoid an error.
19007 Use char because int might match the return type of a GCC
19008 builtin and then its argument prototype would still apply. */
19013 /* The GNU C library defines this for functions which it implements
19014 to always fail with ENOSYS. Some functions are actually named
19015 something starting with __ and the normal name is an alias. */
19016 #if defined __stub_$ac_func || defined __stub___$ac_func
19023 return $ac_func ();
19028 rm -f conftest.$ac_objext conftest$ac_exeext
19029 if { (ac_try="$ac_link"
19030 case "(($ac_try" in
19031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19032 *) ac_try_echo=$ac_try;;
19034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19035 (eval "$ac_link") 2>conftest.er1
19037 grep -v '^ *+' conftest.er1 >conftest.err
19039 cat conftest.err >&5
19040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19041 (exit $ac_status); } &&
19042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19043 { (case "(($ac_try" in
19044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19045 *) ac_try_echo=$ac_try;;
19047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19048 (eval "$ac_try") 2>&5
19050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19051 (exit $ac_status); }; } &&
19052 { ac_try='test -s conftest$ac_exeext'
19053 { (case "(($ac_try" in
19054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19055 *) ac_try_echo=$ac_try;;
19057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19058 (eval "$ac_try") 2>&5
19060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19061 (exit $ac_status); }; }; then
19062 eval "$as_ac_var=yes"
19064 echo "$as_me: failed program was:" >&5
19065 sed 's/^/| /' conftest.$ac_ext >&5
19067 eval "$as_ac_var=no"
19070 rm -f core conftest.err conftest.$ac_objext \
19071 conftest$ac_exeext conftest.$ac_ext
19073 ac_res=`eval echo '${'$as_ac_var'}'`
19074 { echo "$as_me:$LINENO: result: $ac_res" >&5
19075 echo "${ECHO_T}$ac_res" >&6; }
19076 if test `eval echo '${'$as_ac_var'}'` = yes; then
19077 cat >>confdefs.h <<_ACEOF
19078 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19084 { echo "$as_me:$LINENO: checking for working mmap" >&5
19085 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19086 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19087 echo $ECHO_N "(cached) $ECHO_C" >&6
19089 if test "$cross_compiling" = yes; then
19090 ac_cv_func_mmap_fixed_mapped=no
19092 cat >conftest.$ac_ext <<_ACEOF
19095 cat confdefs.h >>conftest.$ac_ext
19096 cat >>conftest.$ac_ext <<_ACEOF
19097 /* end confdefs.h. */
19098 $ac_includes_default
19099 /* malloc might have been renamed as rpl_malloc. */
19102 /* Thanks to Mike Haertel and Jim Avera for this test.
19103 Here is a matrix of mmap possibilities:
19104 mmap private not fixed
19105 mmap private fixed at somewhere currently unmapped
19106 mmap private fixed at somewhere already mapped
19107 mmap shared not fixed
19108 mmap shared fixed at somewhere currently unmapped
19109 mmap shared fixed at somewhere already mapped
19110 For private mappings, we should verify that changes cannot be read()
19111 back from the file, nor mmap's back from the file at a different
19112 address. (There have been systems where private was not correctly
19113 implemented like the infamous i386 svr4.0, and systems where the
19114 VM page cache was not coherent with the file system buffer cache
19115 like early versions of FreeBSD and possibly contemporary NetBSD.)
19116 For shared mappings, we should conversely verify that changes get
19117 propagated back to all the places they're supposed to be.
19119 Grep wants private fixed already mapped.
19120 The main things grep needs to know about mmap are:
19121 * does it exist and is it safe to write into the mmap'd area
19122 * how to use it (BSD variants) */
19125 #include <sys/mman.h>
19127 #if !STDC_HEADERS && !HAVE_STDLIB_H
19131 /* This mess was copied from the GNU getpagesize.h. */
19132 #if !HAVE_GETPAGESIZE
19133 /* Assume that all systems that can run configure have sys/param.h. */
19134 # if !HAVE_SYS_PARAM_H
19135 # define HAVE_SYS_PARAM_H 1
19138 # ifdef _SC_PAGESIZE
19139 # define getpagesize() sysconf(_SC_PAGESIZE)
19140 # else /* no _SC_PAGESIZE */
19141 # if HAVE_SYS_PARAM_H
19142 # include <sys/param.h>
19143 # ifdef EXEC_PAGESIZE
19144 # define getpagesize() EXEC_PAGESIZE
19145 # else /* no EXEC_PAGESIZE */
19147 # define getpagesize() NBPG * CLSIZE
19150 # endif /* no CLSIZE */
19151 # else /* no NBPG */
19153 # define getpagesize() NBPC
19154 # else /* no NBPC */
19156 # define getpagesize() PAGESIZE
19157 # endif /* PAGESIZE */
19158 # endif /* no NBPC */
19159 # endif /* no NBPG */
19160 # endif /* no EXEC_PAGESIZE */
19161 # else /* no HAVE_SYS_PARAM_H */
19162 # define getpagesize() 8192 /* punt totally */
19163 # endif /* no HAVE_SYS_PARAM_H */
19164 # endif /* no _SC_PAGESIZE */
19166 #endif /* no HAVE_GETPAGESIZE */
19171 char *data, *data2, *data3;
19175 pagesize = getpagesize ();
19177 /* First, make a file with some known garbage in it. */
19178 data = (char *) malloc (pagesize);
19181 for (i = 0; i < pagesize; ++i)
19182 *(data + i) = rand ();
19184 fd = creat ("conftest.mmap", 0600);
19187 if (write (fd, data, pagesize) != pagesize)
19191 /* Next, try to mmap the file at a fixed address which already has
19192 something else allocated at it. If we can, also make sure that
19193 we see the same garbage. */
19194 fd = open ("conftest.mmap", O_RDWR);
19197 data2 = (char *) malloc (2 * pagesize);
19200 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
19201 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19202 MAP_PRIVATE | MAP_FIXED, fd, 0L))
19204 for (i = 0; i < pagesize; ++i)
19205 if (*(data + i) != *(data2 + i))
19208 /* Finally, make sure that changes to the mapped area do not
19209 percolate back to the file as seen by read(). (This is a bug on
19210 some variants of i386 svr4.0.) */
19211 for (i = 0; i < pagesize; ++i)
19212 *(data2 + i) = *(data2 + i) + 1;
19213 data3 = (char *) malloc (pagesize);
19216 if (read (fd, data3, pagesize) != pagesize)
19218 for (i = 0; i < pagesize; ++i)
19219 if (*(data + i) != *(data3 + i))
19225 rm -f conftest$ac_exeext
19226 if { (ac_try="$ac_link"
19227 case "(($ac_try" in
19228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19229 *) ac_try_echo=$ac_try;;
19231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19232 (eval "$ac_link") 2>&5
19234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19235 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19236 { (case "(($ac_try" in
19237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19238 *) ac_try_echo=$ac_try;;
19240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19241 (eval "$ac_try") 2>&5
19243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244 (exit $ac_status); }; }; then
19245 ac_cv_func_mmap_fixed_mapped=yes
19247 echo "$as_me: program exited with status $ac_status" >&5
19248 echo "$as_me: failed program was:" >&5
19249 sed 's/^/| /' conftest.$ac_ext >&5
19251 ( exit $ac_status )
19252 ac_cv_func_mmap_fixed_mapped=no
19254 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19259 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
19260 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
19261 if test $ac_cv_func_mmap_fixed_mapped = yes; then
19263 cat >>confdefs.h <<\_ACEOF
19264 #define HAVE_MMAP 1
19268 rm -f conftest.mmap
19270 { echo "$as_me:$LINENO: checking for mmap of files" >&5
19271 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
19272 if test "${ac_cv_func_mmap_file+set}" = set; then
19273 echo $ECHO_N "(cached) $ECHO_C" >&6
19276 ac_cpp='$CPP $CPPFLAGS'
19277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19281 if test "$cross_compiling" = yes; then
19282 ac_cv_func_mmap_file=no
19284 cat >conftest.$ac_ext <<_ACEOF
19288 cat confdefs.h >>conftest.$ac_ext
19289 cat >>conftest.$ac_ext <<_ACEOF
19290 /* end confdefs.h. */
19292 #include <sys/types.h>
19293 #include <sys/mman.h>
19301 fd = creat ("foo",0777);
19302 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
19304 return (fd != (int) MAP_FAILED);
19309 rm -f conftest$ac_exeext
19310 if { (ac_try="$ac_link"
19311 case "(($ac_try" in
19312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19313 *) ac_try_echo=$ac_try;;
19315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19316 (eval "$ac_link") 2>&5
19318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19319 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19320 { (case "(($ac_try" in
19321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19322 *) ac_try_echo=$ac_try;;
19324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19325 (eval "$ac_try") 2>&5
19327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19328 (exit $ac_status); }; }; then
19329 ac_cv_func_mmap_file=yes
19331 echo "$as_me: program exited with status $ac_status" >&5
19332 echo "$as_me: failed program was:" >&5
19333 sed 's/^/| /' conftest.$ac_ext >&5
19335 ( exit $ac_status )
19336 ac_cv_func_mmap_file=no
19338 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19343 ac_cpp='$CPP $CPPFLAGS'
19344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19350 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
19351 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
19352 if test "$ac_cv_func_mmap_file" = yes; then
19354 cat >>confdefs.h <<\_ACEOF
19355 #define HAVE_MMAP_FILE
19362 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
19363 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
19364 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
19365 echo $ECHO_N "(cached) $ECHO_C" >&6
19367 if test "$llvm_cv_os_type" = "Interix" ; then
19368 ac_cv_need_dev_zero_for_mmap=yes
19370 ac_cv_need_dev_zero_for_mmap=no
19374 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
19375 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
19376 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
19378 cat >>confdefs.h <<\_ACEOF
19379 #define NEED_DEV_ZERO_FOR_MMAP 1
19384 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
19386 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
19387 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
19389 if test "$ac_cv_func_mmap_file" = "no"
19391 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
19392 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
19396 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
19397 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
19398 cat >conftest.$ac_ext <<_ACEOF
19401 cat confdefs.h >>conftest.$ac_ext
19402 cat >>conftest.$ac_ext <<_ACEOF
19403 /* end confdefs.h. */
19405 volatile unsigned long val = 1;
19406 __sync_synchronize();
19407 __sync_val_compare_and_swap(&val, 1, 0);
19408 __sync_add_and_fetch(&val, 1);
19409 __sync_sub_and_fetch(&val, 1);
19414 rm -f conftest.$ac_objext conftest$ac_exeext
19415 if { (ac_try="$ac_link"
19416 case "(($ac_try" in
19417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19418 *) ac_try_echo=$ac_try;;
19420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19421 (eval "$ac_link") 2>conftest.er1
19423 grep -v '^ *+' conftest.er1 >conftest.err
19425 cat conftest.err >&5
19426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19427 (exit $ac_status); } &&
19428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19429 { (case "(($ac_try" in
19430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19431 *) ac_try_echo=$ac_try;;
19433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19434 (eval "$ac_try") 2>&5
19436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437 (exit $ac_status); }; } &&
19438 { ac_try='test -s conftest$ac_exeext'
19439 { (case "(($ac_try" in
19440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19441 *) ac_try_echo=$ac_try;;
19443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19444 (eval "$ac_try") 2>&5
19446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19447 (exit $ac_status); }; }; then
19448 { echo "$as_me:$LINENO: result: yes" >&5
19449 echo "${ECHO_T}yes" >&6; }
19451 cat >>confdefs.h <<\_ACEOF
19452 #define LLVM_MULTITHREADED 1
19456 echo "$as_me: failed program was:" >&5
19457 sed 's/^/| /' conftest.$ac_ext >&5
19459 { echo "$as_me:$LINENO: result: no" >&5
19460 echo "${ECHO_T}no" >&6; }
19462 cat >>confdefs.h <<\_ACEOF
19463 #define LLVM_MULTITHREADED 0
19466 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
19467 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
19470 rm -f core conftest.err conftest.$ac_objext \
19471 conftest$ac_exeext conftest.$ac_ext
19475 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
19476 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
19477 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
19478 if test "${llvm_cv_linux_mixed+set}" = set; then
19479 echo $ECHO_N "(cached) $ECHO_C" >&6
19482 ac_cpp='$CPP $CPPFLAGS'
19483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19487 cat >conftest.$ac_ext <<_ACEOF
19490 cat confdefs.h >>conftest.$ac_ext
19491 cat >>conftest.$ac_ext <<_ACEOF
19492 /* end confdefs.h. */
19494 error: Not x86-64 even if uname says so!
19505 rm -f conftest.$ac_objext
19506 if { (ac_try="$ac_compile"
19507 case "(($ac_try" in
19508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19509 *) ac_try_echo=$ac_try;;
19511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19512 (eval "$ac_compile") 2>conftest.er1
19514 grep -v '^ *+' conftest.er1 >conftest.err
19516 cat conftest.err >&5
19517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19518 (exit $ac_status); } &&
19519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19520 { (case "(($ac_try" in
19521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19522 *) ac_try_echo=$ac_try;;
19524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19525 (eval "$ac_try") 2>&5
19527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19528 (exit $ac_status); }; } &&
19529 { ac_try='test -s conftest.$ac_objext'
19530 { (case "(($ac_try" in
19531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19532 *) ac_try_echo=$ac_try;;
19534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19535 (eval "$ac_try") 2>&5
19537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19538 (exit $ac_status); }; }; then
19539 llvm_cv_linux_mixed=no
19541 echo "$as_me: failed program was:" >&5
19542 sed 's/^/| /' conftest.$ac_ext >&5
19544 llvm_cv_linux_mixed=yes
19547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19549 ac_cpp='$CPP $CPPFLAGS'
19550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19556 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
19557 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
19559 if test "$llvm_cv_linux_mixed" = "yes"; then
19560 llvm_cv_target_arch="x86"
19566 for ac_func in __dso_handle
19568 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19569 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19570 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19571 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19572 echo $ECHO_N "(cached) $ECHO_C" >&6
19574 cat >conftest.$ac_ext <<_ACEOF
19577 cat confdefs.h >>conftest.$ac_ext
19578 cat >>conftest.$ac_ext <<_ACEOF
19579 /* end confdefs.h. */
19580 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19581 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19582 #define $ac_func innocuous_$ac_func
19584 /* System header to define __stub macros and hopefully few prototypes,
19585 which can conflict with char $ac_func (); below.
19586 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19587 <limits.h> exists even on freestanding compilers. */
19590 # include <limits.h>
19592 # include <assert.h>
19597 /* Override any GCC internal prototype to avoid an error.
19598 Use char because int might match the return type of a GCC
19599 builtin and then its argument prototype would still apply. */
19604 /* The GNU C library defines this for functions which it implements
19605 to always fail with ENOSYS. Some functions are actually named
19606 something starting with __ and the normal name is an alias. */
19607 #if defined __stub_$ac_func || defined __stub___$ac_func
19614 return $ac_func ();
19619 rm -f conftest.$ac_objext conftest$ac_exeext
19620 if { (ac_try="$ac_link"
19621 case "(($ac_try" in
19622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19623 *) ac_try_echo=$ac_try;;
19625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19626 (eval "$ac_link") 2>conftest.er1
19628 grep -v '^ *+' conftest.er1 >conftest.err
19630 cat conftest.err >&5
19631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632 (exit $ac_status); } &&
19633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19634 { (case "(($ac_try" in
19635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19636 *) ac_try_echo=$ac_try;;
19638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19639 (eval "$ac_try") 2>&5
19641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19642 (exit $ac_status); }; } &&
19643 { ac_try='test -s conftest$ac_exeext'
19644 { (case "(($ac_try" in
19645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19646 *) ac_try_echo=$ac_try;;
19648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19649 (eval "$ac_try") 2>&5
19651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19652 (exit $ac_status); }; }; then
19653 eval "$as_ac_var=yes"
19655 echo "$as_me: failed program was:" >&5
19656 sed 's/^/| /' conftest.$ac_ext >&5
19658 eval "$as_ac_var=no"
19661 rm -f core conftest.err conftest.$ac_objext \
19662 conftest$ac_exeext conftest.$ac_ext
19664 ac_res=`eval echo '${'$as_ac_var'}'`
19665 { echo "$as_me:$LINENO: result: $ac_res" >&5
19666 echo "${ECHO_T}$ac_res" >&6; }
19667 if test `eval echo '${'$as_ac_var'}'` = yes; then
19668 cat >>confdefs.h <<_ACEOF
19669 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19676 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
19677 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
19678 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
19679 echo $ECHO_N "(cached) $ECHO_C" >&6
19681 llvm_cv_llvmgcc_sanity="no"
19682 if test -x "$LLVMGCC" ; then
19683 cp /dev/null conftest.c
19684 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
19685 grep 'target datalayout =' > /dev/null 2>&1
19686 if test $? -eq 0 ; then
19687 llvm_cv_llvmgcc_sanity="yes"
19692 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
19693 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
19695 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
19696 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
19697 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
19698 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
19699 LLVMCC1=$llvmcc1path
19701 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
19702 LLVMCC1PLUS=$llvmcc1pluspath
19704 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
19705 LLVMGCCDIR=$llvmgccdir
19707 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
19708 LLVMGCC_LANGS=$llvmgcclangs
19710 { echo "$as_me:$LINENO: result: ok" >&5
19711 echo "${ECHO_T}ok" >&6; }
19714 SHLIBEXT=$libltdl_cv_shlibext
19717 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
19720 # Translate the various configuration directories and other basic
19721 # information into substitutions that will end up in Makefile.config.in
19722 # that these configured values can be used by the makefiles
19723 if test "${prefix}" = "NONE" ; then
19724 prefix="/usr/local"
19726 eval LLVM_PREFIX="${prefix}";
19727 eval LLVM_BINDIR="${prefix}/bin";
19728 eval LLVM_LIBDIR="${prefix}/lib";
19729 eval LLVM_DATADIR="${prefix}/share/llvm";
19730 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
19731 eval LLVM_ETCDIR="${prefix}/etc/llvm";
19732 eval LLVM_INCLUDEDIR="${prefix}/include";
19733 eval LLVM_INFODIR="${prefix}/info";
19734 eval LLVM_MANDIR="${prefix}/man";
19735 LLVM_CONFIGTIME=`date`
19747 # Place the various directores into the config.h file as #defines so that we
19748 # can know about the installation paths within LLVM.
19750 cat >>confdefs.h <<_ACEOF
19751 #define LLVM_PREFIX "$LLVM_PREFIX"
19755 cat >>confdefs.h <<_ACEOF
19756 #define LLVM_BINDIR "$LLVM_BINDIR"
19760 cat >>confdefs.h <<_ACEOF
19761 #define LLVM_LIBDIR "$LLVM_LIBDIR"
19765 cat >>confdefs.h <<_ACEOF
19766 #define LLVM_DATADIR "$LLVM_DATADIR"
19770 cat >>confdefs.h <<_ACEOF
19771 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
19775 cat >>confdefs.h <<_ACEOF
19776 #define LLVM_ETCDIR "$LLVM_ETCDIR"
19780 cat >>confdefs.h <<_ACEOF
19781 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
19785 cat >>confdefs.h <<_ACEOF
19786 #define LLVM_INFODIR "$LLVM_INFODIR"
19790 cat >>confdefs.h <<_ACEOF
19791 #define LLVM_MANDIR "$LLVM_MANDIR"
19795 cat >>confdefs.h <<_ACEOF
19796 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
19800 cat >>confdefs.h <<_ACEOF
19801 #define LLVM_HOSTTRIPLE "$host"
19805 # Determine which bindings to build.
19806 if test "$BINDINGS_TO_BUILD" = auto ; then
19807 BINDINGS_TO_BUILD=""
19808 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
19809 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
19812 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
19815 # This isn't really configurey, but it avoids having to repeat the list in
19820 # Do any work necessary to ensure that bindings have what they need.
19821 binding_prereqs_failed=0
19822 for a_binding in $BINDINGS_TO_BUILD ; do
19823 case "$a_binding" in
19825 if test "x$OCAMLC" = x ; then
19826 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
19827 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
19828 binding_prereqs_failed=1
19830 if test "x$OCAMLDEP" = x ; then
19831 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
19832 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
19833 binding_prereqs_failed=1
19835 if test "x$OCAMLOPT" = x ; then
19836 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
19837 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
19839 if test "x$with_ocaml_libdir" != xauto ; then
19840 OCAML_LIBDIR=$with_ocaml_libdir
19843 ocaml_stdlib="`"$OCAMLC" -where`"
19844 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
19846 # ocaml stdlib is beneath our prefix; use stdlib
19847 OCAML_LIBDIR=$ocaml_stdlib
19850 # ocaml stdlib is outside our prefix; use libdir/ocaml
19851 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
19858 if test "$binding_prereqs_failed" = 1 ; then
19859 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
19860 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
19861 { (exit 1); exit 1; }; }
19864 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
19865 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
19866 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
19867 echo $ECHO_N "(cached) $ECHO_C" >&6
19870 ac_cpp='$CXXCPP $CPPFLAGS'
19871 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19872 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19873 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19875 oldcxxflags="$CXXFLAGS"
19876 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
19877 cat >conftest.$ac_ext <<_ACEOF
19880 cat confdefs.h >>conftest.$ac_ext
19881 cat >>conftest.$ac_ext <<_ACEOF
19882 /* end confdefs.h. */
19892 rm -f conftest.$ac_objext
19893 if { (ac_try="$ac_compile"
19894 case "(($ac_try" in
19895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19896 *) ac_try_echo=$ac_try;;
19898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19899 (eval "$ac_compile") 2>conftest.er1
19901 grep -v '^ *+' conftest.er1 >conftest.err
19903 cat conftest.err >&5
19904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19905 (exit $ac_status); } &&
19906 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19907 { (case "(($ac_try" in
19908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19909 *) ac_try_echo=$ac_try;;
19911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19912 (eval "$ac_try") 2>&5
19914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19915 (exit $ac_status); }; } &&
19916 { ac_try='test -s conftest.$ac_objext'
19917 { (case "(($ac_try" in
19918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19919 *) ac_try_echo=$ac_try;;
19921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19922 (eval "$ac_try") 2>&5
19924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19925 (exit $ac_status); }; }; then
19926 llvm_cv_cxx_visibility_inlines_hidden=yes
19928 echo "$as_me: failed program was:" >&5
19929 sed 's/^/| /' conftest.$ac_ext >&5
19931 llvm_cv_cxx_visibility_inlines_hidden=no
19934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19935 CXXFLAGS="$oldcxxflags"
19937 ac_cpp='$CPP $CPPFLAGS'
19938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19944 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
19945 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
19946 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
19947 ENABLE_VISIBILITY_INLINES_HIDDEN=1
19950 ENABLE_VISIBILITY_INLINES_HIDDEN=0
19955 if test "$llvm_cv_link_use_r" = "yes" ; then
19962 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
19963 RDYNAMIC="-Wl,-export-dynamic"
19970 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
19972 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
19974 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
19976 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
19978 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
19980 ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
19983 ac_config_files="$ac_config_files Makefile.config"
19986 ac_config_files="$ac_config_files llvm.spec"
19989 ac_config_files="$ac_config_files docs/doxygen.cfg"
19992 ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
19995 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
19998 ac_config_commands="$ac_config_commands setup"
20000 ac_config_commands="$ac_config_commands Makefile"
20003 ac_config_commands="$ac_config_commands Makefile.common"
20006 ac_config_commands="$ac_config_commands examples/Makefile"
20009 ac_config_commands="$ac_config_commands lib/Makefile"
20012 ac_config_commands="$ac_config_commands runtime/Makefile"
20015 ac_config_commands="$ac_config_commands test/Makefile"
20018 ac_config_commands="$ac_config_commands test/Makefile.tests"
20021 ac_config_commands="$ac_config_commands unittests/Makefile"
20024 ac_config_commands="$ac_config_commands tools/Makefile"
20027 ac_config_commands="$ac_config_commands utils/Makefile"
20030 ac_config_commands="$ac_config_commands projects/Makefile"
20033 ac_config_commands="$ac_config_commands bindings/Makefile"
20036 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
20040 cat >confcache <<\_ACEOF
20041 # This file is a shell script that caches the results of configure
20042 # tests run on this system so they can be shared between configure
20043 # scripts and configure runs, see configure's option --config-cache.
20044 # It is not useful on other systems. If it contains results you don't
20045 # want to keep, you may remove or edit it.
20047 # config.status only pays attention to the cache file if you give it
20048 # the --recheck option to rerun configure.
20050 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20051 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20052 # following values.
20056 # The following way of writing the cache mishandles newlines in values,
20057 # but we know of no workaround that is simple, portable, and efficient.
20058 # So, we kill variables containing newlines.
20059 # Ultrix sh set writes to stderr and can't be redirected directly,
20060 # and sets the high bit in the cache file unless we assign to the vars.
20062 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20063 eval ac_val=\$$ac_var
20067 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20068 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20071 _ | IFS | as_nl) ;; #(
20072 *) $as_unset $ac_var ;;
20078 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20079 *${as_nl}ac_space=\ *)
20080 # `set' does not quote correctly, so add quotes (double-quote
20081 # substitution turns \\\\ into \\, and sed turns \\ into \).
20084 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20087 # `set' quotes correctly as required by POSIX, so do not add quotes.
20088 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20097 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20099 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20101 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20102 if test -w "$cache_file"; then
20103 test "x$cache_file" != "x/dev/null" &&
20104 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20105 echo "$as_me: updating cache $cache_file" >&6;}
20106 cat confcache >$cache_file
20108 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20109 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20114 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20115 # Let make expand exec_prefix.
20116 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20118 DEFS=-DHAVE_CONFIG_H
20122 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20123 # 1. Remove the extension, and $U if already installed.
20124 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20125 ac_i=`echo "$ac_i" | sed "$ac_script"`
20126 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20127 # will be set to the directory where LIBOBJS objects are built.
20128 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20129 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20131 LIBOBJS=$ac_libobjs
20133 LTLIBOBJS=$ac_ltlibobjs
20136 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
20137 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20138 Usually this means the macro was only invoked conditionally." >&5
20139 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20140 Usually this means the macro was only invoked conditionally." >&2;}
20141 { (exit 1); exit 1; }; }
20143 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
20144 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20145 Usually this means the macro was only invoked conditionally." >&5
20146 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20147 Usually this means the macro was only invoked conditionally." >&2;}
20148 { (exit 1); exit 1; }; }
20151 : ${CONFIG_STATUS=./config.status}
20152 ac_clean_files_save=$ac_clean_files
20153 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20154 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20155 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20156 cat >$CONFIG_STATUS <<_ACEOF
20158 # Generated by $as_me.
20159 # Run this file to recreate the current configuration.
20160 # Compiler output produced by configure, useful for debugging
20161 # configure, is in config.log if it exists.
20164 ac_cs_recheck=false
20166 SHELL=\${CONFIG_SHELL-$SHELL}
20169 cat >>$CONFIG_STATUS <<\_ACEOF
20170 ## --------------------- ##
20171 ## M4sh Initialization. ##
20172 ## --------------------- ##
20174 # Be Bourne compatible
20175 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20178 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20179 # is contrary to our usage. Disable this feature.
20180 alias -g '${1+"$@"}'='"$@"'
20181 setopt NO_GLOB_SUBST
20183 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
20185 BIN_SH=xpg4; export BIN_SH # for Tru64
20186 DUALCASE=1; export DUALCASE # for MKS sh
20190 # Avoid depending upon Character Ranges.
20191 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20192 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20193 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20194 as_cr_digits='0123456789'
20195 as_cr_alnum=$as_cr_Letters$as_cr_digits
20197 # The user is always right.
20198 if test "${PATH_SEPARATOR+set}" != set; then
20199 echo "#! /bin/sh" >conf$$.sh
20200 echo "exit 0" >>conf$$.sh
20202 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20210 # Support unset when possible.
20211 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20219 # We need space, tab and new line, in precisely that order. Quoting is
20220 # there to prevent editors from complaining about space-tab.
20221 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20222 # splitting by setting IFS to empty value.)
20227 # Find who we are. Look in the path if we contain no directory separator.
20229 *[\\/]* ) as_myself=$0 ;;
20230 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20231 for as_dir in $PATH
20234 test -z "$as_dir" && as_dir=.
20235 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20241 # We did not find ourselves, most probably we were run as `sh COMMAND'
20242 # in which case we are not to be found in the path.
20243 if test "x$as_myself" = x; then
20246 if test ! -f "$as_myself"; then
20247 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20248 { (exit 1); exit 1; }
20251 # Work around bugs in pre-3.0 UWIN ksh.
20252 for as_var in ENV MAIL MAILPATH
20253 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20261 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20262 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20263 LC_TELEPHONE LC_TIME
20265 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20266 eval $as_var=C; export $as_var
20268 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20272 # Required to use basename.
20273 if expr a : '\(a\)' >/dev/null 2>&1 &&
20274 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20280 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20281 as_basename=basename
20287 # Name of the executable.
20288 as_me=`$as_basename -- "$0" ||
20289 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20290 X"$0" : 'X\(//\)$' \| \
20291 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20293 sed '/^.*\/\([^/][^/]*\)\/*$/{
20312 as_lineno_1=$LINENO
20313 as_lineno_2=$LINENO
20314 test "x$as_lineno_1" != "x$as_lineno_2" &&
20315 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20317 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20318 # uniformly replaced by the line number. The first 'sed' inserts a
20319 # line-number line after each line using $LINENO; the second 'sed'
20320 # does the real work. The second script uses 'N' to pair each
20321 # line-number line with the line containing $LINENO, and appends
20322 # trailing '-' during substitution so that $LINENO is not a special
20323 # case at line end.
20324 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20325 # scripts with optimization help from Paolo Bonzini. Blame Lee
20326 # E. McMahon (1931-1989) for sed's syntax. :-)
20338 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20341 ' >$as_me.lineno &&
20342 chmod +x "$as_me.lineno" ||
20343 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20344 { (exit 1); exit 1; }; }
20346 # Don't try to exec as it changes $[0], causing all sort of problems
20347 # (the dirname of $[0] is not the place where we might find the
20348 # original and so on. Autoconf is especially sensitive to this).
20349 . "./$as_me.lineno"
20350 # Exit status is that of the last command.
20355 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20361 ECHO_C= ECHO_N= ECHO_T=
20362 case `echo -n x` in
20364 case `echo 'x\c'` in
20365 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20372 if expr a : '\(a\)' >/dev/null 2>&1 &&
20373 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20379 rm -f conf$$ conf$$.exe conf$$.file
20380 if test -d conf$$.dir; then
20381 rm -f conf$$.dir/conf$$.file
20387 if ln -s conf$$.file conf$$ 2>/dev/null; then
20389 # ... but there are two gotchas:
20390 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20391 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20392 # In both cases, we have to default to `cp -p'.
20393 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20395 elif ln conf$$.file conf$$ 2>/dev/null; then
20400 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20401 rmdir conf$$.dir 2>/dev/null
20403 if mkdir -p . 2>/dev/null; then
20406 test -d ./-p && rmdir ./-p
20410 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
20411 # systems may use methods other than mode bits to determine executability.
20412 cat >conf$$.file <<_ASEOF
20416 chmod +x conf$$.file
20417 if test -x conf$$.file >/dev/null 2>&1; then
20418 as_executable_p="test -x"
20424 # Sed expression to map a string onto a valid CPP name.
20425 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20427 # Sed expression to map a string onto a valid variable name.
20428 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20433 # Save the log message, to keep $[0] and so on meaningful, and to
20434 # report actual input values of CONFIG_FILES etc. instead of their
20435 # values after options handling.
20437 This file was extended by llvm $as_me 2.7svn, which was
20438 generated by GNU Autoconf 2.60. Invocation command line was
20440 CONFIG_FILES = $CONFIG_FILES
20441 CONFIG_HEADERS = $CONFIG_HEADERS
20442 CONFIG_LINKS = $CONFIG_LINKS
20443 CONFIG_COMMANDS = $CONFIG_COMMANDS
20446 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20451 cat >>$CONFIG_STATUS <<_ACEOF
20452 # Files that config.status was made for.
20453 config_files="$ac_config_files"
20454 config_headers="$ac_config_headers"
20455 config_commands="$ac_config_commands"
20459 cat >>$CONFIG_STATUS <<\_ACEOF
20461 \`$as_me' instantiates files from templates according to the
20462 current configuration.
20464 Usage: $0 [OPTIONS] [FILE]...
20466 -h, --help print this help, then exit
20467 -V, --version print version number, then exit
20468 -q, --quiet do not print progress messages
20469 -d, --debug don't remove temporary files
20470 --recheck update $as_me by reconfiguring in the same conditions
20471 --file=FILE[:TEMPLATE]
20472 instantiate the configuration file FILE
20473 --header=FILE[:TEMPLATE]
20474 instantiate the configuration header FILE
20476 Configuration files:
20479 Configuration headers:
20482 Configuration commands:
20485 Report bugs to <bug-autoconf@gnu.org>."
20488 cat >>$CONFIG_STATUS <<_ACEOF
20490 llvm config.status 2.7svn
20491 configured by $0, generated by GNU Autoconf 2.60,
20492 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20494 Copyright (C) 2006 Free Software Foundation, Inc.
20495 This config.status script is free software; the Free Software Foundation
20496 gives unlimited permission to copy, distribute and modify it."
20503 cat >>$CONFIG_STATUS <<\_ACEOF
20504 # If no file are specified by the user, then we need to provide default
20505 # value. By we need to know if files were specified by the user.
20511 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20512 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20523 # Handling of the options.
20524 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20526 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20527 echo "$ac_cs_version"; exit ;;
20528 --debug | --debu | --deb | --de | --d | -d )
20530 --file | --fil | --fi | --f )
20532 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20533 ac_need_defaults=false;;
20534 --header | --heade | --head | --hea )
20536 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20537 ac_need_defaults=false;;
20539 # Conflict between --help and --header
20540 { echo "$as_me: error: ambiguous option: $1
20541 Try \`$0 --help' for more information." >&2
20542 { (exit 1); exit 1; }; };;
20543 --help | --hel | -h )
20544 echo "$ac_cs_usage"; exit ;;
20545 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20546 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20549 # This is an error.
20550 -*) { echo "$as_me: error: unrecognized option: $1
20551 Try \`$0 --help' for more information." >&2
20552 { (exit 1); exit 1; }; } ;;
20554 *) ac_config_targets="$ac_config_targets $1"
20555 ac_need_defaults=false ;;
20561 ac_configure_extra_args=
20563 if $ac_cs_silent; then
20565 ac_configure_extra_args="$ac_configure_extra_args --silent"
20569 cat >>$CONFIG_STATUS <<_ACEOF
20570 if \$ac_cs_recheck; then
20571 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20572 CONFIG_SHELL=$SHELL
20573 export CONFIG_SHELL
20574 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20578 cat >>$CONFIG_STATUS <<\_ACEOF
20582 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20583 ## Running $as_me. ##
20589 cat >>$CONFIG_STATUS <<_ACEOF
20593 llvm_src="${srcdir}"
20597 cat >>$CONFIG_STATUS <<\_ACEOF
20599 # Handling of arguments.
20600 for ac_config_target in $ac_config_targets
20602 case $ac_config_target in
20603 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
20604 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
20605 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
20606 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
20607 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
20608 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
20609 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
20610 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
20611 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
20612 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
20613 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
20614 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
20615 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
20616 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
20617 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
20618 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
20619 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
20620 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
20621 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
20622 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
20623 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
20624 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
20625 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
20626 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
20627 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
20629 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20630 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20631 { (exit 1); exit 1; }; };;
20636 # If the user did not use the arguments to specify the items to instantiate,
20637 # then the envvar interface is used. Set only those that are not.
20638 # We use the long form for the default assignment because of an extremely
20639 # bizarre bug on SunOS 4.1.3.
20640 if $ac_need_defaults; then
20641 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20642 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20643 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20646 # Have a temporary directory for convenience. Make it in the build tree
20647 # simply because there is no reason against having it here, and in addition,
20648 # creating and moving files from /tmp can sometimes cause problems.
20649 # Hook for its removal unless debugging.
20650 # Note that there is a small window in which the directory will not be cleaned:
20651 # after its creation but before its name has been assigned to `$tmp'.
20655 trap 'exit_status=$?
20656 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20658 trap '{ (exit 1); exit 1; }' 1 2 13 15
20660 # Create a (secure) tmp directory for tmp files.
20663 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20664 test -n "$tmp" && test -d "$tmp"
20667 tmp=./conf$$-$RANDOM
20668 (umask 077 && mkdir "$tmp")
20671 echo "$me: cannot create a temporary directory in ." >&2
20672 { (exit 1); exit 1; }
20676 # Set up the sed scripts for CONFIG_FILES section.
20679 # No need to generate the scripts if there are no CONFIG_FILES.
20680 # This happens for instance when ./config.status config.h
20681 if test -n "$CONFIG_FILES"; then
20688 for ac_last_try in false false false false false :; do
20689 cat >conf$$subs.sed <<_ACEOF
20690 SHELL!$SHELL$ac_delim
20691 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20692 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20693 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20694 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20695 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20696 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20697 exec_prefix!$exec_prefix$ac_delim
20698 prefix!$prefix$ac_delim
20699 program_transform_name!$program_transform_name$ac_delim
20700 bindir!$bindir$ac_delim
20701 sbindir!$sbindir$ac_delim
20702 libexecdir!$libexecdir$ac_delim
20703 datarootdir!$datarootdir$ac_delim
20704 datadir!$datadir$ac_delim
20705 sysconfdir!$sysconfdir$ac_delim
20706 sharedstatedir!$sharedstatedir$ac_delim
20707 localstatedir!$localstatedir$ac_delim
20708 includedir!$includedir$ac_delim
20709 oldincludedir!$oldincludedir$ac_delim
20710 docdir!$docdir$ac_delim
20711 infodir!$infodir$ac_delim
20712 htmldir!$htmldir$ac_delim
20713 dvidir!$dvidir$ac_delim
20714 pdfdir!$pdfdir$ac_delim
20715 psdir!$psdir$ac_delim
20716 libdir!$libdir$ac_delim
20717 localedir!$localedir$ac_delim
20718 mandir!$mandir$ac_delim
20719 DEFS!$DEFS$ac_delim
20720 ECHO_C!$ECHO_C$ac_delim
20721 ECHO_N!$ECHO_N$ac_delim
20722 ECHO_T!$ECHO_T$ac_delim
20723 LIBS!$LIBS$ac_delim
20724 build_alias!$build_alias$ac_delim
20725 host_alias!$host_alias$ac_delim
20726 target_alias!$target_alias$ac_delim
20727 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
20728 subdirs!$subdirs$ac_delim
20729 build!$build$ac_delim
20730 build_cpu!$build_cpu$ac_delim
20731 build_vendor!$build_vendor$ac_delim
20732 build_os!$build_os$ac_delim
20733 host!$host$ac_delim
20734 host_cpu!$host_cpu$ac_delim
20735 host_vendor!$host_vendor$ac_delim
20736 host_os!$host_os$ac_delim
20737 target!$target$ac_delim
20738 target_cpu!$target_cpu$ac_delim
20739 target_vendor!$target_vendor$ac_delim
20740 target_os!$target_os$ac_delim
20742 HOST_OS!$HOST_OS$ac_delim
20743 TARGET_OS!$TARGET_OS$ac_delim
20744 LINKALL!$LINKALL$ac_delim
20745 NOLINKALL!$NOLINKALL$ac_delim
20746 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
20747 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
20748 ARCH!$ARCH$ac_delim
20749 ENDIAN!$ENDIAN$ac_delim
20751 CFLAGS!$CFLAGS$ac_delim
20752 LDFLAGS!$LDFLAGS$ac_delim
20753 CPPFLAGS!$CPPFLAGS$ac_delim
20754 ac_ct_CC!$ac_ct_CC$ac_delim
20755 EXEEXT!$EXEEXT$ac_delim
20756 OBJEXT!$OBJEXT$ac_delim
20758 GREP!$GREP$ac_delim
20759 EGREP!$EGREP$ac_delim
20760 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
20761 BUILD_CC!$BUILD_CC$ac_delim
20762 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
20763 BUILD_CXX!$BUILD_CXX$ac_delim
20764 CVSBUILD!$CVSBUILD$ac_delim
20765 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
20766 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
20767 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
20768 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
20769 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
20770 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
20771 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
20773 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
20774 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
20775 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
20776 ENABLE_PIC!$ENABLE_PIC$ac_delim
20777 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
20778 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
20779 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
20780 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
20781 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
20782 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
20783 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
20784 CLANGPATH!$CLANGPATH$ac_delim
20785 CLANGXXPATH!$CLANGXXPATH$ac_delim
20786 ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
20789 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20791 elif $ac_last_try; then
20792 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20793 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20794 { (exit 1); exit 1; }; }
20796 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20800 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20801 if test -n "$ac_eof"; then
20802 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20803 ac_eof=`expr $ac_eof + 1`
20806 cat >>$CONFIG_STATUS <<_ACEOF
20807 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20808 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20811 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20812 s/^/s,@/; s/!/@,|#_!!_#|/
20815 s/'"$ac_delim"'$/,g/; t
20817 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20818 ' >>$CONFIG_STATUS <conf$$subs.sed
20819 rm -f conf$$subs.sed
20820 cat >>$CONFIG_STATUS <<_ACEOF
20826 for ac_last_try in false false false false false :; do
20827 cat >conf$$subs.sed <<_ACEOF
20828 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
20829 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
20830 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
20831 ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
20832 ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
20834 CXXFLAGS!$CXXFLAGS$ac_delim
20835 ac_ct_CXX!$ac_ct_CXX$ac_delim
20837 ifGNUmake!$ifGNUmake$ac_delim
20838 LN_S!$LN_S$ac_delim
20841 DATE!$DATE$ac_delim
20842 FIND!$FIND$ac_delim
20843 MKDIR!$MKDIR$ac_delim
20845 RANLIB!$RANLIB$ac_delim
20850 BINPWD!$BINPWD$ac_delim
20851 GRAPHVIZ!$GRAPHVIZ$ac_delim
20854 NEATO!$NEATO$ac_delim
20855 TWOPI!$TWOPI$ac_delim
20856 CIRCO!$CIRCO$ac_delim
20858 DOTTY!$DOTTY$ac_delim
20859 PERL!$PERL$ac_delim
20860 HAVE_PERL!$HAVE_PERL$ac_delim
20861 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20862 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20863 INSTALL_DATA!$INSTALL_DATA$ac_delim
20864 BZIP2!$BZIP2$ac_delim
20865 DOXYGEN!$DOXYGEN$ac_delim
20866 GROFF!$GROFF$ac_delim
20867 GZIP!$GZIP$ac_delim
20868 POD2HTML!$POD2HTML$ac_delim
20869 POD2MAN!$POD2MAN$ac_delim
20870 RUNTEST!$RUNTEST$ac_delim
20871 TCLSH!$TCLSH$ac_delim
20873 OCAMLC!$OCAMLC$ac_delim
20874 OCAMLOPT!$OCAMLOPT$ac_delim
20875 OCAMLDEP!$OCAMLDEP$ac_delim
20876 OCAMLDOC!$OCAMLDOC$ac_delim
20878 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
20879 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
20880 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
20881 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
20882 LIBADD_DL!$LIBADD_DL$ac_delim
20883 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
20884 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
20885 LLVMGCC!$LLVMGCC$ac_delim
20886 LLVMGXX!$LLVMGXX$ac_delim
20887 LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
20888 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
20889 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
20890 USE_UDIS86!$USE_UDIS86$ac_delim
20891 USE_OPROFILE!$USE_OPROFILE$ac_delim
20892 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
20893 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
20894 MMAP_FILE!$MMAP_FILE$ac_delim
20895 LLVMCC1!$LLVMCC1$ac_delim
20896 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
20897 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
20898 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
20899 SHLIBEXT!$SHLIBEXT$ac_delim
20900 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
20901 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
20902 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
20903 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
20904 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
20905 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
20906 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
20907 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
20908 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
20909 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
20910 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
20911 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
20912 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
20913 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
20914 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
20915 RPATH!$RPATH$ac_delim
20916 RDYNAMIC!$RDYNAMIC$ac_delim
20917 LIBOBJS!$LIBOBJS$ac_delim
20918 LTLIBOBJS!$LTLIBOBJS$ac_delim
20921 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
20923 elif $ac_last_try; then
20924 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20925 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20926 { (exit 1); exit 1; }; }
20928 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20932 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20933 if test -n "$ac_eof"; then
20934 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20935 ac_eof=`expr $ac_eof + 1`
20938 cat >>$CONFIG_STATUS <<_ACEOF
20939 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20940 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20943 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20944 s/^/s,@/; s/!/@,|#_!!_#|/
20947 s/'"$ac_delim"'$/,g/; t
20949 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20950 ' >>$CONFIG_STATUS <conf$$subs.sed
20951 rm -f conf$$subs.sed
20952 cat >>$CONFIG_STATUS <<_ACEOF
20959 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20960 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20961 # trailing colons and then remove the whole line if VPATH becomes empty
20962 # (actually we leave an empty line to preserve line numbers).
20963 if test "x$srcdir" = x.; then
20964 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20965 s/:*\$(srcdir):*/:/
20966 s/:*\${srcdir}:*/:/
20968 s/^\([^=]*=[ ]*\):*/\1/
20974 cat >>$CONFIG_STATUS <<\_ACEOF
20975 fi # test -n "$CONFIG_FILES"
20978 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
20981 :[FHLC]) ac_mode=$ac_tag; continue;;
20983 case $ac_mode$ac_tag in
20985 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20986 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20987 { (exit 1); exit 1; }; };;
20988 :[FH]-) ac_tag=-:-;;
20989 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21006 -) ac_f="$tmp/stdin";;
21007 *) # Look for the file first in the build tree, then in the source tree
21008 # (if the path is not absolute). The absolute path cannot be DOS-style,
21009 # because $ac_f cannot contain `:'.
21013 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21015 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21016 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21017 { (exit 1); exit 1; }; };;
21019 ac_file_inputs="$ac_file_inputs $ac_f"
21022 # Let's still pretend it is `configure' which instantiates (i.e., don't
21023 # use $as_me), people would be surprised to read:
21024 # /* config.h. Generated by config.status. */
21025 configure_input="Generated from "`IFS=:
21026 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21027 if test x"$ac_file" != x-; then
21028 configure_input="$ac_file. $configure_input"
21029 { echo "$as_me:$LINENO: creating $ac_file" >&5
21030 echo "$as_me: creating $ac_file" >&6;}
21034 *:-:* | *:-) cat >"$tmp/stdin";;
21039 ac_dir=`$as_dirname -- "$ac_file" ||
21040 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21041 X"$ac_file" : 'X\(//\)[^/]' \| \
21042 X"$ac_file" : 'X\(//\)$' \| \
21043 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21045 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21049 /^X\(\/\/\)[^/].*/{
21064 -*) as_dir=./$as_dir;;
21066 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21070 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21071 *) as_qdir=$as_dir;;
21073 as_dirs="'$as_qdir' $as_dirs"
21074 as_dir=`$as_dirname -- "$as_dir" ||
21075 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21076 X"$as_dir" : 'X\(//\)[^/]' \| \
21077 X"$as_dir" : 'X\(//\)$' \| \
21078 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21080 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21084 /^X\(\/\/\)[^/].*/{
21097 test -d "$as_dir" && break
21099 test -z "$as_dirs" || eval "mkdir $as_dirs"
21100 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21101 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21102 { (exit 1); exit 1; }; }; }
21106 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21108 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21109 # A ".." for each directory in $ac_dir_suffix.
21110 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21111 case $ac_top_builddir_sub in
21112 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21113 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21116 ac_abs_top_builddir=$ac_pwd
21117 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21118 # for backward compatibility:
21119 ac_top_builddir=$ac_top_build_prefix
21122 .) # We are building in place.
21124 ac_top_srcdir=$ac_top_builddir_sub
21125 ac_abs_top_srcdir=$ac_pwd ;;
21126 [\\/]* | ?:[\\/]* ) # Absolute name.
21127 ac_srcdir=$srcdir$ac_dir_suffix;
21128 ac_top_srcdir=$srcdir
21129 ac_abs_top_srcdir=$srcdir ;;
21130 *) # Relative name.
21131 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21132 ac_top_srcdir=$ac_top_build_prefix$srcdir
21133 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21135 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21145 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21146 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21150 cat >>$CONFIG_STATUS <<\_ACEOF
21151 # If the template does not know about datarootdir, expand it.
21152 # FIXME: This hack should be removed a few years after 2.60.
21153 ac_datarootdir_hack=; ac_datarootdir_seen=
21155 case `sed -n '/datarootdir/ {
21164 ' $ac_file_inputs` in
21165 *datarootdir*) ac_datarootdir_seen=yes;;
21166 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21167 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21168 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21170 cat >>$CONFIG_STATUS <<_ACEOF
21171 ac_datarootdir_hack='
21172 s&@datadir@&$datadir&g
21173 s&@docdir@&$docdir&g
21174 s&@infodir@&$infodir&g
21175 s&@localedir@&$localedir&g
21176 s&@mandir@&$mandir&g
21177 s&\\\${datarootdir}&$datarootdir&g' ;;
21181 # Neutralize VPATH when `$srcdir' = `.'.
21182 # Shell code in configure.ac might set extrasub.
21183 # FIXME: do we really want to maintain this feature?
21184 cat >>$CONFIG_STATUS <<_ACEOF
21188 cat >>$CONFIG_STATUS <<\_ACEOF
21190 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21191 s&@configure_input@&$configure_input&;t t
21192 s&@top_builddir@&$ac_top_builddir_sub&;t t
21193 s&@srcdir@&$ac_srcdir&;t t
21194 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21195 s&@top_srcdir@&$ac_top_srcdir&;t t
21196 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21197 s&@builddir@&$ac_builddir&;t t
21198 s&@abs_builddir@&$ac_abs_builddir&;t t
21199 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21200 s&@INSTALL@&$ac_INSTALL&;t t
21201 $ac_datarootdir_hack
21202 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21204 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21205 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21206 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21207 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21208 which seems to be undefined. Please make sure it is defined." >&5
21209 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21210 which seems to be undefined. Please make sure it is defined." >&2;}
21214 -) cat "$tmp/out"; rm -f "$tmp/out";;
21215 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21224 # Transform confdefs.h into a sed script `conftest.defines', that
21225 # substitutes the proper values into config.h.in to produce config.h.
21226 rm -f conftest.defines conftest.tail
21227 # First, append a space to every undef/define line, to ease matching.
21228 echo 's/$/ /' >conftest.defines
21229 # Then, protect against being on the right side of a sed subst, or in
21230 # an unquoted here document, in config.status. If some macros were
21231 # called several times there might be several #defines for the same
21232 # symbol, which is useless. But do not sort them, since the last
21233 # AC_DEFINE must be honored.
21234 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21235 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21236 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21237 # PARAMS is the parameter list in the macro definition--in most cases, it's
21238 # just an empty string.
21239 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21240 ac_dB='\\)[ (].*,\\1define\\2'
21248 s/^[ ]*#[ ]*define[ ][ ]*//
21253 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21254 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21255 ' >>conftest.defines
21257 # Remove the space that was appended to ease matching.
21258 # Then replace #undef with comments. This is necessary, for
21259 # example, in the case of _POSIX_SOURCE, which is predefined and required
21260 # on some systems where configure will not decide to define it.
21261 # (The regexp can be short, since the line contains either #define or #undef.)
21263 s,^[ #]*u.*,/* & */,' >>conftest.defines
21265 # Break up conftest.defines:
21266 ac_max_sed_lines=50
21268 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21269 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21270 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21272 ac_in='$ac_file_inputs'
21273 ac_out='"$tmp/out1"'
21274 ac_nxt='"$tmp/out2"'
21278 # Write a here document:
21279 cat >>$CONFIG_STATUS <<_ACEOF
21280 # First, check the format of the line:
21281 cat >"\$tmp/defines.sed" <<\\CEOF
21282 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21283 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21287 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21289 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21290 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21291 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21292 grep . conftest.tail >/dev/null || break
21293 rm -f conftest.defines
21294 mv conftest.tail conftest.defines
21296 rm -f conftest.defines conftest.tail
21298 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21299 cat >>$CONFIG_STATUS <<\_ACEOF
21300 if test x"$ac_file" != x-; then
21301 echo "/* $configure_input */" >"$tmp/config.h"
21302 cat "$ac_result" >>"$tmp/config.h"
21303 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21304 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21305 echo "$as_me: $ac_file is unchanged" >&6;}
21308 mv "$tmp/config.h" $ac_file
21311 echo "/* $configure_input */"
21317 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21318 echo "$as_me: executing $ac_file commands" >&6;}
21323 case $ac_file$ac_mode in
21324 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
21325 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
21326 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
21327 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
21328 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
21329 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
21330 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
21331 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
21332 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
21333 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
21334 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
21335 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
21336 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
21337 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
21338 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
21339 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
21340 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
21341 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
21342 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
21343 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
21344 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
21345 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
21346 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
21347 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
21348 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
21349 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
21355 { (exit 0); exit 0; }
21357 chmod +x $CONFIG_STATUS
21358 ac_clean_files=$ac_clean_files_save
21361 # configure is writing to config.log, and then calls config.status.
21362 # config.status does its own redirection, appending to config.log.
21363 # Unfortunately, on DOS this fails, as config.log is still kept open
21364 # by configure, so config.status won't be able to write to it; its
21365 # output is simply discarded. So we exec the FD to /dev/null,
21366 # effectively closing config.log, so it can be properly (re)opened and
21367 # appended to by config.status. When coming back to configure, we
21368 # need to make the FD available again.
21369 if test "$no_create" != yes; then
21371 ac_config_status_args=
21372 test "$silent" = yes &&
21373 ac_config_status_args="$ac_config_status_args --quiet"
21375 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21377 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21378 # would make configure fail if this is the last instruction.
21379 $ac_cs_success || { (exit 1); exit 1; }
21383 # CONFIG_SUBDIRS section.
21385 if test "$no_recursion" != yes; then
21387 # Remove --cache-file and --srcdir arguments so they do not pile up.
21388 ac_sub_configure_args=
21390 eval "set x $ac_configure_args"
21394 if test -n "$ac_prev"; then
21399 -cache-file | --cache-file | --cache-fil | --cache-fi \
21400 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21401 ac_prev=cache_file ;;
21402 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
21403 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
21406 --config-cache | -C)
21408 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21410 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21412 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
21414 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
21418 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21420 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
21424 # Always prepend --prefix to ensure using the same prefix
21425 # in subdir configurations.
21426 ac_arg="--prefix=$prefix"
21428 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21430 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
21433 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
21435 # Do not complain, so a configure script can configure whichever
21436 # parts of a large source tree are present.
21437 test -d "$srcdir/$ac_dir" || continue
21439 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
21440 echo "$as_me:$LINENO: $ac_msg" >&5
21444 -*) as_dir=./$as_dir;;
21446 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21450 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21451 *) as_qdir=$as_dir;;
21453 as_dirs="'$as_qdir' $as_dirs"
21454 as_dir=`$as_dirname -- "$as_dir" ||
21455 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21456 X"$as_dir" : 'X\(//\)[^/]' \| \
21457 X"$as_dir" : 'X\(//\)$' \| \
21458 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21460 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21464 /^X\(\/\/\)[^/].*/{
21477 test -d "$as_dir" && break
21479 test -z "$as_dirs" || eval "mkdir $as_dirs"
21480 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21481 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21482 { (exit 1); exit 1; }; }; }
21486 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21488 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21489 # A ".." for each directory in $ac_dir_suffix.
21490 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21491 case $ac_top_builddir_sub in
21492 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21493 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21496 ac_abs_top_builddir=$ac_pwd
21497 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21498 # for backward compatibility:
21499 ac_top_builddir=$ac_top_build_prefix
21502 .) # We are building in place.
21504 ac_top_srcdir=$ac_top_builddir_sub
21505 ac_abs_top_srcdir=$ac_pwd ;;
21506 [\\/]* | ?:[\\/]* ) # Absolute name.
21507 ac_srcdir=$srcdir$ac_dir_suffix;
21508 ac_top_srcdir=$srcdir
21509 ac_abs_top_srcdir=$srcdir ;;
21510 *) # Relative name.
21511 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21512 ac_top_srcdir=$ac_top_build_prefix$srcdir
21513 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21515 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21520 # Check for guested configure; otherwise get Cygnus style configure.
21521 if test -f "$ac_srcdir/configure.gnu"; then
21522 ac_sub_configure=$ac_srcdir/configure.gnu
21523 elif test -f "$ac_srcdir/configure"; then
21524 ac_sub_configure=$ac_srcdir/configure
21525 elif test -f "$ac_srcdir/configure.in"; then
21526 # This should be Cygnus configure.
21527 ac_sub_configure=$ac_aux_dir/configure
21529 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
21530 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
21534 # The recursion is here.
21535 if test -n "$ac_sub_configure"; then
21536 # Make the cache file name correct relative to the subdirectory.
21537 case $cache_file in
21538 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
21539 *) # Relative name.
21540 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
21543 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
21544 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
21545 # The eval makes quoting arguments work.
21546 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21547 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
21548 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
21549 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
21550 { (exit 1); exit 1; }; }