2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for [SAMPLE] [x.xx].
5 # Report bugs to <bugs@yourdomain>.
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.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
24 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
26 BIN_SH=xpg4; export BIN_SH # for Tru64
27 DUALCASE=1; export DUALCASE # for MKS sh
31 # Avoid depending upon Character Ranges.
32 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35 as_cr_digits='0123456789'
36 as_cr_alnum=$as_cr_Letters$as_cr_digits
38 # The user is always right.
39 if test "${PATH_SEPARATOR+set}" != set; then
40 echo "#! /bin/sh" >conf$$.sh
41 echo "exit 0" >>conf$$.sh
43 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
51 # Support unset when possible.
52 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
60 # We need space, tab and new line, in precisely that order. Quoting is
61 # there to prevent editors from complaining about space-tab.
62 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
63 # splitting by setting IFS to empty value.)
68 # Find who we are. Look in the path if we contain no directory separator.
70 *[\\/]* ) as_myself=$0 ;;
71 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
75 test -z "$as_dir" && as_dir=.
76 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82 # We did not find ourselves, most probably we were run as `sh COMMAND'
83 # in which case we are not to be found in the path.
84 if test "x$as_myself" = x; then
87 if test ! -f "$as_myself"; then
88 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
92 # Work around bugs in pre-3.0 UWIN ksh.
93 for as_var in ENV MAIL MAILPATH
94 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
102 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
103 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
107 eval $as_var=C; export $as_var
109 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 # Required to use basename.
114 if expr a : '\(a\)' >/dev/null 2>&1 &&
115 test "X`expr 00001 : '.*\(...\)'`" = X001; then
121 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
128 # Name of the executable.
129 as_me=`$as_basename -- "$0" ||
130 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
131 X"$0" : 'X\(//\)$' \| \
132 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
134 sed '/^.*\/\([^/][^/]*\)\/*$/{
152 if test "x$CONFIG_SHELL" = x; then
153 if (eval ":") 2>/dev/null; then
159 if test $as_have_required = yes && (eval ":
169 as_func_ret_success () {
172 as_func_ret_failure () {
177 if as_func_success; then
181 echo as_func_success failed.
184 if as_func_failure; then
186 echo as_func_failure succeeded.
189 if as_func_ret_success; then
193 echo as_func_ret_success failed.
196 if as_func_ret_failure; then
198 echo as_func_ret_failure succeeded.
201 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 echo positional parameters were not saved.
208 test \$exitcode = 0) || { (exit 1); exit 1; }
213 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
214 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
215 ") 2> /dev/null; then
219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
226 for as_base in sh bash ksh sh5; do
227 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
234 for as_shell in $as_candidate_shells $SHELL; do
235 # Try only shells that exist, to save several forks.
236 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
237 { ("$as_shell") 2> /dev/null <<\_ASEOF
238 # Be Bourne compatible
239 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
243 # is contrary to our usage. Disable this feature.
244 alias -g '${1+"$@"}'='"$@"'
247 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
249 BIN_SH=xpg4; export BIN_SH # for Tru64
250 DUALCASE=1; export DUALCASE # for MKS sh
255 CONFIG_SHELL=$as_shell
257 if { "$as_shell" 2> /dev/null <<\_ASEOF
258 # Be Bourne compatible
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
269 BIN_SH=xpg4; export BIN_SH # for Tru64
270 DUALCASE=1; export DUALCASE # for MKS sh
282 as_func_ret_success () {
285 as_func_ret_failure () {
290 if as_func_success; then
294 echo as_func_success failed.
297 if as_func_failure; then
299 echo as_func_failure succeeded.
302 if as_func_ret_success; then
306 echo as_func_ret_success failed.
309 if as_func_ret_failure; then
311 echo as_func_ret_failure succeeded.
314 if ( set x; as_func_ret_success y && test x = "$1" ); then
318 echo positional parameters were not saved.
321 test $exitcode = 0) || { (exit 1); exit 1; }
326 test "x$as_lineno_1" != "x$as_lineno_2" &&
327 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
338 if test "x$CONFIG_SHELL" != x; then
339 for as_var in BASH_ENV ENV
340 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
347 if test $as_have_required = no; then
348 echo This script requires a shell more modern than all the
349 echo shells that I found on your system. Please install a
350 echo modern shell, or manually run the script under such a
351 echo shell if you do have one.
352 { (exit 1); exit 1; }
362 (eval "as_func_return () {
371 as_func_ret_success () {
374 as_func_ret_failure () {
379 if as_func_success; then
383 echo as_func_success failed.
386 if as_func_failure; then
388 echo as_func_failure succeeded.
391 if as_func_ret_success; then
395 echo as_func_ret_success failed.
398 if as_func_ret_failure; then
400 echo as_func_ret_failure succeeded.
403 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
407 echo positional parameters were not saved.
410 test \$exitcode = 0") || {
411 echo No shell found that supports shell functions.
412 echo Please tell autoconf@gnu.org about your system,
413 echo including any error possibly output before this
421 test "x$as_lineno_1" != "x$as_lineno_2" &&
422 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
424 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
425 # uniformly replaced by the line number. The first 'sed' inserts a
426 # line-number line after each line using $LINENO; the second 'sed'
427 # does the real work. The second script uses 'N' to pair each
428 # line-number line with the line containing $LINENO, and appends
429 # trailing '-' during substitution so that $LINENO is not a special
431 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
432 # scripts with optimization help from Paolo Bonzini. Blame Lee
433 # E. McMahon (1931-1989) for sed's syntax. :-)
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 chmod +x "$as_me.lineno" ||
450 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
451 { (exit 1); exit 1; }; }
453 # Don't try to exec as it changes $[0], causing all sort of problems
454 # (the dirname of $[0] is not the place where we might find the
455 # original and so on. Autoconf is especially sensitive to this).
457 # Exit status is that of the last command.
462 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
468 ECHO_C= ECHO_N= ECHO_T=
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 if expr a : '\(a\)' >/dev/null 2>&1 &&
480 test "X`expr 00001 : '.*\(...\)'`" = X001; then
486 rm -f conf$$ conf$$.exe conf$$.file
487 if test -d conf$$.dir; then
488 rm -f conf$$.dir/conf$$.file
494 if ln -s conf$$.file conf$$ 2>/dev/null; then
496 # ... but there are two gotchas:
497 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
498 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
499 # In both cases, we have to default to `cp -p'.
500 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
502 elif ln conf$$.file conf$$ 2>/dev/null; then
507 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508 rmdir conf$$.dir 2>/dev/null
510 if mkdir -p . 2>/dev/null; then
513 test -d ./-p && rmdir ./-p
517 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
518 # systems may use methods other than mode bits to determine executability.
519 cat >conf$$.file <<_ASEOF
524 if test -x conf$$.file >/dev/null 2>&1; then
525 as_executable_p="test -x"
531 # Sed expression to map a string onto a valid CPP name.
532 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
534 # Sed expression to map a string onto a valid variable name.
535 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539 exec 7<&0 </dev/null 6>&1
542 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
543 # so uname gets run too.
544 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
549 ac_default_prefix=/usr/local
551 ac_config_libobj_dir=.
557 SHELL=${CONFIG_SHELL-/bin/sh}
559 # Identity of this package.
560 PACKAGE_NAME='[SAMPLE]'
561 PACKAGE_TARNAME='--sample--'
562 PACKAGE_VERSION='[x.xx]'
563 PACKAGE_STRING='[SAMPLE] [x.xx]'
564 PACKAGE_BUGREPORT='bugs@yourdomain'
566 ac_unique_file=""Makefile.common.in""
567 # Factoring default headers for most tests.
568 ac_includes_default="\
571 # include <sys/types.h>
574 # include <sys/stat.h>
585 # if !STDC_HEADERS && HAVE_MEMORY_H
591 # include <strings.h>
594 # include <inttypes.h>
612 program_transform_name
691 ENABLE_EXPENSIVE_CHECKS
707 LLVM_ENUM_ASM_PRINTERS
708 LLVM_ENUM_ASM_PARSERS
709 LLVM_ENUM_DISASSEMBLERS
757 HAVE_LINK_VERSION_SCRIPT
760 CONVENIENCE_LTDL_TRUE
761 CONVENIENCE_LTDL_FALSE
764 NO_MISSING_FIELD_INITIALIZERS
765 COVERED_SWITCH_DEFAULT
785 ENABLE_VISIBILITY_INLINES_HIDDEN
791 ac_precious_vars='build_alias
802 ac_subdirs_all='tools/polly'
804 # Initialize some variables set by options.
806 ac_init_version=false
807 # The variables have the same names as the options, with
808 # dashes changed to underlines.
816 program_transform_name=s,x,x,
824 # Installation directory options.
825 # These are left unexpanded so users can "make install exec_prefix=/foo"
826 # and all the variables that are supposed to be based on exec_prefix
827 # by default will actually change.
828 # Use braces instead of parens because sh, perl, etc. also accept them.
829 # (The list follows the same order as the GNU Coding Standards.)
830 bindir='${exec_prefix}/bin'
831 sbindir='${exec_prefix}/sbin'
832 libexecdir='${exec_prefix}/libexec'
833 datarootdir='${prefix}/share'
834 datadir='${datarootdir}'
835 sysconfdir='${prefix}/etc'
836 sharedstatedir='${prefix}/com'
837 localstatedir='${prefix}/var'
838 includedir='${prefix}/include'
839 oldincludedir='/usr/include'
840 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
841 infodir='${datarootdir}/info'
846 libdir='${exec_prefix}/lib'
847 localedir='${datarootdir}/locale'
848 mandir='${datarootdir}/man'
854 # If the previous option needs an argument, assign it.
855 if test -n "$ac_prev"; then
856 eval $ac_prev=\$ac_option
862 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
866 # Accept the important Cygnus configure options, so we can diagnose typos.
868 case $ac_dashdash$ac_option in
872 -bindir | --bindir | --bindi | --bind | --bin | --bi)
874 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
877 -build | --build | --buil | --bui | --bu)
878 ac_prev=build_alias ;;
879 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
880 build_alias=$ac_optarg ;;
882 -cache-file | --cache-file | --cache-fil | --cache-fi \
883 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
884 ac_prev=cache_file ;;
885 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
886 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
887 cache_file=$ac_optarg ;;
890 cache_file=config.cache ;;
892 -datadir | --datadir | --datadi | --datad)
894 -datadir=* | --datadir=* | --datadi=* | --datad=*)
895 datadir=$ac_optarg ;;
897 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
898 | --dataroo | --dataro | --datar)
899 ac_prev=datarootdir ;;
900 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
901 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
902 datarootdir=$ac_optarg ;;
904 -disable-* | --disable-*)
905 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
906 # Reject names that are not valid shell variable names.
907 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
908 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
909 { (exit 1); exit 1; }; }
910 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
911 eval enable_$ac_feature=no ;;
913 -docdir | --docdir | --docdi | --doc | --do)
915 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
918 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
920 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
923 -enable-* | --enable-*)
924 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
925 # Reject names that are not valid shell variable names.
926 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
927 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
928 { (exit 1); exit 1; }; }
929 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
930 eval enable_$ac_feature=\$ac_optarg ;;
932 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
933 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
934 | --exec | --exe | --ex)
935 ac_prev=exec_prefix ;;
936 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
937 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
938 | --exec=* | --exe=* | --ex=*)
939 exec_prefix=$ac_optarg ;;
941 -gas | --gas | --ga | --g)
942 # Obsolete; use --with-gas.
945 -help | --help | --hel | --he | -h)
947 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
948 ac_init_help=recursive ;;
949 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
950 ac_init_help=short ;;
952 -host | --host | --hos | --ho)
953 ac_prev=host_alias ;;
954 -host=* | --host=* | --hos=* | --ho=*)
955 host_alias=$ac_optarg ;;
957 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
959 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
961 htmldir=$ac_optarg ;;
963 -includedir | --includedir | --includedi | --included | --include \
964 | --includ | --inclu | --incl | --inc)
965 ac_prev=includedir ;;
966 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
967 | --includ=* | --inclu=* | --incl=* | --inc=*)
968 includedir=$ac_optarg ;;
970 -infodir | --infodir | --infodi | --infod | --info | --inf)
972 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
973 infodir=$ac_optarg ;;
975 -libdir | --libdir | --libdi | --libd)
977 -libdir=* | --libdir=* | --libdi=* | --libd=*)
980 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
981 | --libexe | --libex | --libe)
982 ac_prev=libexecdir ;;
983 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
984 | --libexe=* | --libex=* | --libe=*)
985 libexecdir=$ac_optarg ;;
987 -localedir | --localedir | --localedi | --localed | --locale)
989 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
990 localedir=$ac_optarg ;;
992 -localstatedir | --localstatedir | --localstatedi | --localstated \
993 | --localstate | --localstat | --localsta | --localst | --locals)
994 ac_prev=localstatedir ;;
995 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
996 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
997 localstatedir=$ac_optarg ;;
999 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1001 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1002 mandir=$ac_optarg ;;
1004 -nfp | --nfp | --nf)
1005 # Obsolete; use --without-fp.
1008 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1009 | --no-cr | --no-c | -n)
1012 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1013 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1016 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1017 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1018 | --oldin | --oldi | --old | --ol | --o)
1019 ac_prev=oldincludedir ;;
1020 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1021 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1022 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1023 oldincludedir=$ac_optarg ;;
1025 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1027 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1028 prefix=$ac_optarg ;;
1030 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1031 | --program-pre | --program-pr | --program-p)
1032 ac_prev=program_prefix ;;
1033 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1034 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1035 program_prefix=$ac_optarg ;;
1037 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1038 | --program-suf | --program-su | --program-s)
1039 ac_prev=program_suffix ;;
1040 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1041 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1042 program_suffix=$ac_optarg ;;
1044 -program-transform-name | --program-transform-name \
1045 | --program-transform-nam | --program-transform-na \
1046 | --program-transform-n | --program-transform- \
1047 | --program-transform | --program-transfor \
1048 | --program-transfo | --program-transf \
1049 | --program-trans | --program-tran \
1050 | --progr-tra | --program-tr | --program-t)
1051 ac_prev=program_transform_name ;;
1052 -program-transform-name=* | --program-transform-name=* \
1053 | --program-transform-nam=* | --program-transform-na=* \
1054 | --program-transform-n=* | --program-transform-=* \
1055 | --program-transform=* | --program-transfor=* \
1056 | --program-transfo=* | --program-transf=* \
1057 | --program-trans=* | --program-tran=* \
1058 | --progr-tra=* | --program-tr=* | --program-t=*)
1059 program_transform_name=$ac_optarg ;;
1061 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1063 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1064 pdfdir=$ac_optarg ;;
1066 -psdir | --psdir | --psdi | --psd | --ps)
1068 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1071 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1072 | -silent | --silent | --silen | --sile | --sil)
1075 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1077 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1079 sbindir=$ac_optarg ;;
1081 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1082 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1083 | --sharedst | --shareds | --shared | --share | --shar \
1085 ac_prev=sharedstatedir ;;
1086 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1087 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1088 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1090 sharedstatedir=$ac_optarg ;;
1092 -site | --site | --sit)
1094 -site=* | --site=* | --sit=*)
1097 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1099 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1100 srcdir=$ac_optarg ;;
1102 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1103 | --syscon | --sysco | --sysc | --sys | --sy)
1104 ac_prev=sysconfdir ;;
1105 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1106 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1107 sysconfdir=$ac_optarg ;;
1109 -target | --target | --targe | --targ | --tar | --ta | --t)
1110 ac_prev=target_alias ;;
1111 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1112 target_alias=$ac_optarg ;;
1114 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1117 -version | --version | --versio | --versi | --vers | -V)
1118 ac_init_version=: ;;
1121 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1122 # Reject names that are not valid shell variable names.
1123 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1124 { echo "$as_me: error: invalid package name: $ac_package" >&2
1125 { (exit 1); exit 1; }; }
1126 ac_package=`echo $ac_package| sed 's/-/_/g'`
1127 eval with_$ac_package=\$ac_optarg ;;
1129 -without-* | --without-*)
1130 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1131 # Reject names that are not valid shell variable names.
1132 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1133 { echo "$as_me: error: invalid package name: $ac_package" >&2
1134 { (exit 1); exit 1; }; }
1135 ac_package=`echo $ac_package | sed 's/-/_/g'`
1136 eval with_$ac_package=no ;;
1139 # Obsolete; use --with-x.
1142 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1143 | --x-incl | --x-inc | --x-in | --x-i)
1144 ac_prev=x_includes ;;
1145 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1146 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1147 x_includes=$ac_optarg ;;
1149 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1150 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1151 ac_prev=x_libraries ;;
1152 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1153 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1154 x_libraries=$ac_optarg ;;
1156 -*) { echo "$as_me: error: unrecognized option: $ac_option
1157 Try \`$0 --help' for more information." >&2
1158 { (exit 1); exit 1; }; }
1162 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1163 # Reject names that are not valid shell variable names.
1164 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1165 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1166 { (exit 1); exit 1; }; }
1167 eval $ac_envvar=\$ac_optarg
1168 export $ac_envvar ;;
1171 # FIXME: should be removed in autoconf 3.0.
1172 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1173 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1174 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1175 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1181 if test -n "$ac_prev"; then
1182 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1183 { echo "$as_me: error: missing argument to $ac_option" >&2
1184 { (exit 1); exit 1; }; }
1187 # Be sure to have absolute directory names.
1188 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1189 datadir sysconfdir sharedstatedir localstatedir includedir \
1190 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1191 libdir localedir mandir
1193 eval ac_val=\$$ac_var
1195 [\\/$]* | ?:[\\/]* ) continue;;
1196 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1198 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1199 { (exit 1); exit 1; }; }
1202 # There might be people who depend on the old broken behavior: `$host'
1203 # used to hold the argument of --host etc.
1204 # FIXME: To remove some day.
1207 target=$target_alias
1209 # FIXME: To remove some day.
1210 if test "x$host_alias" != x; then
1211 if test "x$build_alias" = x; then
1212 cross_compiling=maybe
1213 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1214 If a cross compiler is detected then cross compile mode will be used." >&2
1215 elif test "x$build_alias" != "x$host_alias"; then
1221 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1223 test "$silent" = yes && exec 6>/dev/null
1226 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1227 ac_ls_di=`ls -di .` &&
1228 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1229 { echo "$as_me: error: Working directory cannot be determined" >&2
1230 { (exit 1); exit 1; }; }
1231 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1232 { echo "$as_me: error: pwd does not report name of working directory" >&2
1233 { (exit 1); exit 1; }; }
1236 # Find the source files, if location was not specified.
1237 if test -z "$srcdir"; then
1238 ac_srcdir_defaulted=yes
1239 # Try the directory containing this script, then the parent directory.
1240 ac_confdir=`$as_dirname -- "$0" ||
1241 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1242 X"$0" : 'X\(//\)[^/]' \| \
1243 X"$0" : 'X\(//\)$' \| \
1244 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1246 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1264 if test ! -r "$srcdir/$ac_unique_file"; then
1268 ac_srcdir_defaulted=no
1270 if test ! -r "$srcdir/$ac_unique_file"; then
1271 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1272 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1273 { (exit 1); exit 1; }; }
1275 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1277 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1278 { (exit 1); exit 1; }; }
1280 # When building in place, set srcdir=.
1281 if test "$ac_abs_confdir" = "$ac_pwd"; then
1284 # Remove unnecessary trailing slashes from srcdir.
1285 # Double slashes in file names in object file debugging info
1286 # mess up M-x gdb in Emacs.
1288 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1290 for ac_var in $ac_precious_vars; do
1291 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1292 eval ac_env_${ac_var}_value=\$${ac_var}
1293 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1294 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1298 # Report the --help message.
1300 if test "$ac_init_help" = "long"; then
1301 # Omit some internal or obsolete options to make the list less imposing.
1302 # This message is too long to be a string in the A/UX 3.1 sh.
1304 \`configure' configures [SAMPLE] [x.xx] to adapt to many kinds of systems.
1306 Usage: $0 [OPTION]... [VAR=VALUE]...
1308 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1309 VAR=VALUE. See below for descriptions of some of the useful variables.
1311 Defaults for the options are specified in brackets.
1314 -h, --help display this help and exit
1315 --help=short display options specific to this package
1316 --help=recursive display the short help of all the included packages
1317 -V, --version display version information and exit
1318 -q, --quiet, --silent do not print \`checking...' messages
1319 --cache-file=FILE cache test results in FILE [disabled]
1320 -C, --config-cache alias for \`--cache-file=config.cache'
1321 -n, --no-create do not create output files
1322 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1324 Installation directories:
1325 --prefix=PREFIX install architecture-independent files in PREFIX
1326 [$ac_default_prefix]
1327 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1330 By default, \`make install' will install all the files in
1331 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1332 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1333 for instance \`--prefix=\$HOME'.
1335 For better control, use the options below.
1337 Fine tuning of the installation directories:
1338 --bindir=DIR user executables [EPREFIX/bin]
1339 --sbindir=DIR system admin executables [EPREFIX/sbin]
1340 --libexecdir=DIR program executables [EPREFIX/libexec]
1341 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1342 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1343 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1344 --libdir=DIR object code libraries [EPREFIX/lib]
1345 --includedir=DIR C header files [PREFIX/include]
1346 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1347 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1348 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1349 --infodir=DIR info documentation [DATAROOTDIR/info]
1350 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1351 --mandir=DIR man documentation [DATAROOTDIR/man]
1352 --docdir=DIR documentation root [DATAROOTDIR/doc/--sample--]
1353 --htmldir=DIR html documentation [DOCDIR]
1354 --dvidir=DIR dvi documentation [DOCDIR]
1355 --pdfdir=DIR pdf documentation [DOCDIR]
1356 --psdir=DIR ps documentation [DOCDIR]
1362 --build=BUILD configure for building on BUILD [guessed]
1363 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1364 --target=TARGET configure for building compilers for TARGET [HOST]
1368 if test -n "$ac_init_help"; then
1369 case $ac_init_help in
1370 short | recursive ) echo "Configuration of [SAMPLE] [x.xx]:";;
1375 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1376 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1377 --enable-polly Use polly if available (default is YES)
1378 --enable-libcpp Use libc++ if available (default is NO)
1379 --enable-cxx11 Use c++11 if available (default is NO)
1380 --enable-optimized Compile with optimizations enabled (default is NO)
1381 --enable-profiling Compile with profiling enabled (default is NO)
1382 --enable-assertions Compile with assertion checks enabled (default is
1384 --enable-werror Compile with -Werror enabled (default is NO)
1385 --enable-expensive-checks
1386 Compile with expensive debug checks enabled (default
1388 --enable-debug-runtime Build runtime libs with debug symbols (default is
1390 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1391 optimization is on and YES if it's off)
1392 --enable-jit Enable Just In Time Compiling (default is YES)
1393 --enable-docs Build documents (default is YES)
1394 --enable-doxygen Build doxygen documentation (default is NO)
1395 --enable-threads Use threads if available (default is YES)
1396 --enable-pthreads Use pthreads if available (default is YES)
1397 --enable-pic Build LLVM with Position Independent Code (default
1399 --enable-shared Build a shared library and link tools against it
1401 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1402 Win32 DLL (default is YES)
1403 --enable-timestamps Enable embedding timestamp information in build
1405 --enable-targets Build specific host targets: all or
1406 target1,target2,... Valid targets are: host, x86,
1407 x86_64, sparc, powerpc, arm, aarch64, mips, hexagon,
1408 xcore, msp430, nvptx, systemz, r600, and cpp
1410 --enable-bindings Build specific language bindings:
1411 all,auto,none,{binding-name} (default=auto)
1412 --enable-terminfo Query the terminfo database if available (default is
1414 --enable-libffi Check for the presence of libffi (default is NO)
1415 --enable-ltdl-install install libltdl
1418 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1419 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1420 --with-llvmsrc Location of LLVM Source Code
1421 --with-llvmobj Location of LLVM Object Code
1422 --with-optimize-option Select the compiler options to use for optimized
1424 --with-extra-options Specify additional options to compile LLVM with
1425 --with-extra-ld-options Specify additional options to link LLVM with
1426 --with-ocaml-libdir Specify install location for ocaml bindings (default
1428 --with-clang-resource-dir
1429 Relative directory from the Clang binary for
1431 --with-c-include-dirs Colon separated list of directories clang will
1433 --with-gcc-toolchain Directory where gcc is installed.
1434 --with-binutils-include Specify path to binutils/include/ containing
1435 plugin-api.h file for gold plugin.
1436 --with-bug-report-url Specify the URL where bug reports should be
1437 submitted (default=http://llvm.org/bugs/)
1438 --with-tclinclude directory where tcl headers are
1439 --with-udis86=<path> Use udis86 external x86 disassembler library
1440 --with-oprofile=<prefix>
1441 Tell OProfile >= 0.9.4 how to symbolize JIT output
1443 Some influential environment variables:
1444 CC C compiler command
1445 CFLAGS C compiler flags
1446 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1447 nonstandard directory <lib dir>
1448 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1449 you have headers in a nonstandard directory <include dir>
1450 CXX C++ compiler command
1451 CXXFLAGS C++ compiler flags
1454 Use these variables to override the choices made by `configure' or to help
1455 it to find libraries and programs with nonstandard names/locations.
1457 Report bugs to <bugs@yourdomain>.
1462 if test "$ac_init_help" = "recursive"; then
1463 # If there are subdirs, report their specific --help.
1464 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1465 test -d "$ac_dir" || continue
1469 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1471 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1472 # A ".." for each directory in $ac_dir_suffix.
1473 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1474 case $ac_top_builddir_sub in
1475 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1476 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1479 ac_abs_top_builddir=$ac_pwd
1480 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1481 # for backward compatibility:
1482 ac_top_builddir=$ac_top_build_prefix
1485 .) # We are building in place.
1487 ac_top_srcdir=$ac_top_builddir_sub
1488 ac_abs_top_srcdir=$ac_pwd ;;
1489 [\\/]* | ?:[\\/]* ) # Absolute name.
1490 ac_srcdir=$srcdir$ac_dir_suffix;
1491 ac_top_srcdir=$srcdir
1492 ac_abs_top_srcdir=$srcdir ;;
1494 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1495 ac_top_srcdir=$ac_top_build_prefix$srcdir
1496 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1498 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1500 cd "$ac_dir" || { ac_status=$?; continue; }
1501 # Check for guested configure.
1502 if test -f "$ac_srcdir/configure.gnu"; then
1504 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1505 elif test -f "$ac_srcdir/configure"; then
1507 $SHELL "$ac_srcdir/configure" --help=recursive
1509 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1511 cd "$ac_pwd" || { ac_status=$?; break; }
1515 test -n "$ac_init_help" && exit $ac_status
1516 if $ac_init_version; then
1518 [SAMPLE] configure [x.xx]
1519 generated by GNU Autoconf 2.60
1521 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1522 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1523 This configure script is free software; the Free Software Foundation
1524 gives unlimited permission to copy, distribute and modify it.
1528 cat >config.log <<_ACEOF
1529 This file contains any messages produced by compilers while
1530 running configure, to aid debugging if configure makes a mistake.
1532 It was created by [SAMPLE] $as_me [x.xx], which was
1533 generated by GNU Autoconf 2.60. Invocation command line was
1545 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1546 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1547 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1548 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1549 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1551 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1552 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1554 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1555 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1556 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1557 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1558 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1559 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1560 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1568 test -z "$as_dir" && as_dir=.
1569 echo "PATH: $as_dir"
1585 # Keep a trace of the command line.
1586 # Strip out --no-create and --no-recursion so they do not pile up.
1587 # Strip out --silent because we don't want to record it for future runs.
1588 # Also quote any args containing shell meta-characters.
1589 # Make two passes to allow for proper duplicate-argument suppression.
1593 ac_must_keep_next=false
1599 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1600 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1601 | -silent | --silent | --silen | --sile | --sil)
1604 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1607 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1609 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1610 if test $ac_must_keep_next = true; then
1611 ac_must_keep_next=false # Got value, back to normal.
1614 *=* | --config-cache | -C | -disable-* | --disable-* \
1615 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1616 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1617 | -with-* | --with-* | -without-* | --without-* | --x)
1618 case "$ac_configure_args0 " in
1619 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1622 -* ) ac_must_keep_next=true ;;
1625 ac_configure_args="$ac_configure_args '$ac_arg'"
1630 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1631 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1633 # When interrupted or exit'd, cleanup temporary files, and complete
1634 # config.log. We remove comments because anyway the quotes in there
1635 # would cause problems or look ugly.
1636 # WARNING: Use '\'' to represent an apostrophe within the trap.
1637 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1638 trap 'exit_status=$?
1639 # Save into config.log some information that might help in debugging.
1644 ## ---------------- ##
1645 ## Cache variables. ##
1646 ## ---------------- ##
1649 # The following way of writing the cache mishandles newlines in values,
1651 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1652 eval ac_val=\$$ac_var
1656 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1657 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1660 _ | IFS | as_nl) ;; #(
1661 *) $as_unset $ac_var ;;
1666 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1667 *${as_nl}ac_space=\ *)
1669 "s/'\''/'\''\\\\'\'''\''/g;
1670 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1673 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1681 ## ----------------- ##
1682 ## Output variables. ##
1683 ## ----------------- ##
1686 for ac_var in $ac_subst_vars
1688 eval ac_val=\$$ac_var
1690 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1692 echo "$ac_var='\''$ac_val'\''"
1696 if test -n "$ac_subst_files"; then
1698 ## ------------------- ##
1699 ## File substitutions. ##
1700 ## ------------------- ##
1703 for ac_var in $ac_subst_files
1705 eval ac_val=\$$ac_var
1707 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1709 echo "$ac_var='\''$ac_val'\''"
1714 if test -s confdefs.h; then
1724 test "$ac_signal" != 0 &&
1725 echo "$as_me: caught signal $ac_signal"
1726 echo "$as_me: exit $exit_status"
1728 rm -f core *.core core.conftest.* &&
1729 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1732 for ac_signal in 1 2 13 15; do
1733 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1737 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1738 rm -f -r conftest* confdefs.h
1740 # Predefined preprocessor variables.
1742 cat >>confdefs.h <<_ACEOF
1743 #define PACKAGE_NAME "$PACKAGE_NAME"
1747 cat >>confdefs.h <<_ACEOF
1748 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1752 cat >>confdefs.h <<_ACEOF
1753 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1757 cat >>confdefs.h <<_ACEOF
1758 #define PACKAGE_STRING "$PACKAGE_STRING"
1762 cat >>confdefs.h <<_ACEOF
1763 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1767 # Let the site file select an alternate cache file if it wants to.
1768 # Prefer explicitly selected file to automatically selected ones.
1769 if test -n "$CONFIG_SITE"; then
1770 set x "$CONFIG_SITE"
1771 elif test "x$prefix" != xNONE; then
1772 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1774 set x "$ac_default_prefix/share/config.site" \
1775 "$ac_default_prefix/etc/config.site"
1780 if test -r "$ac_site_file"; then
1781 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1782 echo "$as_me: loading site script $ac_site_file" >&6;}
1783 sed 's/^/| /' "$ac_site_file" >&5
1788 if test -r "$cache_file"; then
1789 # Some versions of bash will fail to source /dev/null (special
1790 # files actually), so we avoid doing that.
1791 if test -f "$cache_file"; then
1792 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1793 echo "$as_me: loading cache $cache_file" >&6;}
1795 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1796 *) . "./$cache_file";;
1800 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1801 echo "$as_me: creating cache $cache_file" >&6;}
1805 # Check that the precious variables saved in the cache have kept the same
1807 ac_cache_corrupted=false
1808 for ac_var in $ac_precious_vars; do
1809 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1810 eval ac_new_set=\$ac_env_${ac_var}_set
1811 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1812 eval ac_new_val=\$ac_env_${ac_var}_value
1813 case $ac_old_set,$ac_new_set in
1815 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1816 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1817 ac_cache_corrupted=: ;;
1819 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1820 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1821 ac_cache_corrupted=: ;;
1824 if test "x$ac_old_val" != "x$ac_new_val"; then
1825 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1826 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1827 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1828 echo "$as_me: former value: $ac_old_val" >&2;}
1829 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1830 echo "$as_me: current value: $ac_new_val" >&2;}
1831 ac_cache_corrupted=:
1834 # Pass precious variables to config.status.
1835 if test "$ac_new_set" = set; then
1837 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1838 *) ac_arg=$ac_var=$ac_new_val ;;
1840 case " $ac_configure_args " in
1841 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1842 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1846 if $ac_cache_corrupted; then
1847 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1848 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1849 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1850 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1851 { (exit 1); exit 1; }; }
1879 ac_cpp='$CPP $CPPFLAGS'
1880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1886 LLVM_SRC_ROOT="../.."
1887 LLVM_OBJ_ROOT="../.."
1889 LLVM_ABS_SRC_ROOT="`cd $srcdir ; cd $LLVM_SRC_ROOT ; pwd`"
1890 LLVM_ABS_OBJ_ROOT="`cd $LLVM_OBJ_ROOT ; pwd`"
1893 # Check whether --with-llvmsrc was given.
1894 if test "${with_llvmsrc+set}" = set; then
1895 withval=$with_llvmsrc; llvm_src="$withval"
1897 llvm_src="$LLVM_ABS_SRC_ROOT"
1903 # Check whether --with-llvmobj was given.
1904 if test "${with_llvmobj+set}" = set; then
1905 withval=$with_llvmobj; llvm_obj="$withval"
1907 llvm_obj="$LLVM_ABS_OBJ_ROOT"
1912 ac_config_commands="$ac_config_commands setup"
1916 { echo "$as_me:$LINENO: checking llvm-config" >&5
1917 echo $ECHO_N "checking llvm-config... $ECHO_C" >&6; }
1918 llvm_config_path="`ls -1 $llvm_obj/*/bin/llvm-config 2> /dev/null | head -1`"
1919 if ! test -f "$llvm_config_path" ; then
1920 llvm_config_path="no"
1922 { echo "$as_me:$LINENO: result: $llvm_config_path" >&5
1923 echo "${ECHO_T}$llvm_config_path" >&6; }
1925 { echo "$as_me:$LINENO: checking LLVM package version" >&5
1926 echo $ECHO_N "checking LLVM package version... $ECHO_C" >&6; }
1927 if test "$llvm_config_path" != no ; then
1928 llvm_package_version=`$llvm_config_path --version`
1930 llvm_package_version="unknown";
1932 { echo "$as_me:$LINENO: result: $llvm_package_version" >&5
1933 echo "${ECHO_T}$llvm_package_version" >&6; }
1934 LLVM_VERSION=$llvm_package_version
1940 for ac_dir in autoconf "$srcdir"/autoconf; do
1941 if test -f "$ac_dir/install-sh"; then
1943 ac_install_sh="$ac_aux_dir/install-sh -c"
1945 elif test -f "$ac_dir/install.sh"; then
1947 ac_install_sh="$ac_aux_dir/install.sh -c"
1949 elif test -f "$ac_dir/shtool"; then
1951 ac_install_sh="$ac_aux_dir/shtool install -c"
1955 if test -z "$ac_aux_dir"; then
1956 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1957 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1958 { (exit 1); exit 1; }; }
1961 # These three variables are undocumented and unsupported,
1962 # and are intended to be withdrawn in a future Autoconf release.
1963 # They can cause serious problems if a builder's source tree is in a directory
1964 # whose full name contains unusual characters.
1965 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1966 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1967 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1973 ac_cpp='$CPP $CPPFLAGS'
1974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1977 if test -n "$ac_tool_prefix"; then
1978 for ac_prog in clang llvm-gcc gcc
1980 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1981 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1982 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1984 if test "${ac_cv_prog_CC+set}" = set; then
1985 echo $ECHO_N "(cached) $ECHO_C" >&6
1987 if test -n "$CC"; then
1988 ac_cv_prog_CC="$CC" # Let the user override the test.
1990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1994 test -z "$as_dir" && as_dir=.
1995 for ac_exec_ext in '' $ac_executable_extensions; do
1996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1997 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2008 if test -n "$CC"; then
2009 { echo "$as_me:$LINENO: result: $CC" >&5
2010 echo "${ECHO_T}$CC" >&6; }
2012 { echo "$as_me:$LINENO: result: no" >&5
2013 echo "${ECHO_T}no" >&6; }
2017 test -n "$CC" && break
2020 if test -z "$CC"; then
2022 for ac_prog in clang llvm-gcc gcc
2024 # Extract the first word of "$ac_prog", so it can be a program name with args.
2025 set dummy $ac_prog; ac_word=$2
2026 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2028 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2029 echo $ECHO_N "(cached) $ECHO_C" >&6
2031 if test -n "$ac_ct_CC"; then
2032 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2038 test -z "$as_dir" && as_dir=.
2039 for ac_exec_ext in '' $ac_executable_extensions; do
2040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2041 ac_cv_prog_ac_ct_CC="$ac_prog"
2042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2051 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2052 if test -n "$ac_ct_CC"; then
2053 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2054 echo "${ECHO_T}$ac_ct_CC" >&6; }
2056 { echo "$as_me:$LINENO: result: no" >&5
2057 echo "${ECHO_T}no" >&6; }
2061 test -n "$ac_ct_CC" && break
2064 if test "x$ac_ct_CC" = x; then
2067 case $cross_compiling:$ac_tool_warned in
2069 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2070 whose name does not start with the host triplet. If you think this
2071 configuration is useful to you, please write to autoconf@gnu.org." >&5
2072 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2073 whose name does not start with the host triplet. If you think this
2074 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2075 ac_tool_warned=yes ;;
2082 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2083 See \`config.log' for more details." >&5
2084 echo "$as_me: error: no acceptable C compiler found in \$PATH
2085 See \`config.log' for more details." >&2;}
2086 { (exit 1); exit 1; }; }
2088 # Provide some information about the compiler.
2089 echo "$as_me:$LINENO: checking for C compiler version" >&5
2090 ac_compiler=`set X $ac_compile; echo $2`
2091 { (ac_try="$ac_compiler --version >&5"
2093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2094 *) ac_try_echo=$ac_try;;
2096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2097 (eval "$ac_compiler --version >&5") 2>&5
2099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2100 (exit $ac_status); }
2101 { (ac_try="$ac_compiler -v >&5"
2103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2104 *) ac_try_echo=$ac_try;;
2106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2107 (eval "$ac_compiler -v >&5") 2>&5
2109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2110 (exit $ac_status); }
2111 { (ac_try="$ac_compiler -V >&5"
2113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2114 *) ac_try_echo=$ac_try;;
2116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2117 (eval "$ac_compiler -V >&5") 2>&5
2119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120 (exit $ac_status); }
2122 cat >conftest.$ac_ext <<_ACEOF
2125 cat confdefs.h >>conftest.$ac_ext
2126 cat >>conftest.$ac_ext <<_ACEOF
2127 /* end confdefs.h. */
2137 ac_clean_files_save=$ac_clean_files
2138 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2139 # Try to create an executable without -o first, disregard a.out.
2140 # It will help us diagnose broken compilers, and finding out an intuition
2142 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2143 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2144 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2146 # List of possible output files, starting from the most likely.
2147 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2148 # only as a last resort. b.out is created by i960 compilers.
2149 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2151 # The IRIX 6 linker writes into existing files which may not be
2152 # executable, retaining their permissions. Remove them first so a
2153 # subsequent execution test works.
2155 for ac_file in $ac_files
2158 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2159 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2164 if { (ac_try="$ac_link_default"
2166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2167 *) ac_try_echo=$ac_try;;
2169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2170 (eval "$ac_link_default") 2>&5
2172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173 (exit $ac_status); }; then
2174 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2175 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2176 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2177 # so that the user can short-circuit this test for compilers unknown to
2179 for ac_file in $ac_files
2181 test -f "$ac_file" || continue
2183 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2186 # We found the default executable, but exeext='' is most
2190 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2192 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2194 # We set ac_cv_exeext here because the later test for it is not
2195 # safe: cross compilers may not add the suffix if given an `-o'
2196 # argument, so we may need to know it at that point already.
2197 # Even if this section looks crufty: it has the advantage of
2204 test "$ac_cv_exeext" = no && ac_cv_exeext=
2207 echo "$as_me: failed program was:" >&5
2208 sed 's/^/| /' conftest.$ac_ext >&5
2210 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2211 See \`config.log' for more details." >&5
2212 echo "$as_me: error: C compiler cannot create executables
2213 See \`config.log' for more details." >&2;}
2214 { (exit 77); exit 77; }; }
2217 ac_exeext=$ac_cv_exeext
2218 { echo "$as_me:$LINENO: result: $ac_file" >&5
2219 echo "${ECHO_T}$ac_file" >&6; }
2221 # Check that the compiler produces executables we can run. If not, either
2222 # the compiler is broken, or we cross compile.
2223 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2224 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2225 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2226 # If not cross compiling, check that we can run a simple program.
2227 if test "$cross_compiling" != yes; then
2228 if { ac_try='./$ac_file'
2229 { (case "(($ac_try" in
2230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2231 *) ac_try_echo=$ac_try;;
2233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2234 (eval "$ac_try") 2>&5
2236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2237 (exit $ac_status); }; }; then
2240 if test "$cross_compiling" = maybe; then
2243 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2244 If you meant to cross compile, use \`--host'.
2245 See \`config.log' for more details." >&5
2246 echo "$as_me: error: cannot run C compiled programs.
2247 If you meant to cross compile, use \`--host'.
2248 See \`config.log' for more details." >&2;}
2249 { (exit 1); exit 1; }; }
2253 { echo "$as_me:$LINENO: result: yes" >&5
2254 echo "${ECHO_T}yes" >&6; }
2256 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2257 ac_clean_files=$ac_clean_files_save
2258 # Check that the compiler produces executables we can run. If not, either
2259 # the compiler is broken, or we cross compile.
2260 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2261 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2262 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2263 echo "${ECHO_T}$cross_compiling" >&6; }
2265 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2266 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2267 if { (ac_try="$ac_link"
2269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2270 *) ac_try_echo=$ac_try;;
2272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2273 (eval "$ac_link") 2>&5
2275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276 (exit $ac_status); }; then
2277 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2278 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2279 # work properly (i.e., refer to `conftest.exe'), while it won't with
2281 for ac_file in conftest.exe conftest conftest.*; do
2282 test -f "$ac_file" || continue
2284 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2285 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2291 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2292 See \`config.log' for more details." >&5
2293 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2294 See \`config.log' for more details." >&2;}
2295 { (exit 1); exit 1; }; }
2298 rm -f conftest$ac_cv_exeext
2299 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2300 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2302 rm -f conftest.$ac_ext
2303 EXEEXT=$ac_cv_exeext
2305 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2306 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2307 if test "${ac_cv_objext+set}" = set; then
2308 echo $ECHO_N "(cached) $ECHO_C" >&6
2310 cat >conftest.$ac_ext <<_ACEOF
2313 cat confdefs.h >>conftest.$ac_ext
2314 cat >>conftest.$ac_ext <<_ACEOF
2315 /* end confdefs.h. */
2325 rm -f conftest.o conftest.obj
2326 if { (ac_try="$ac_compile"
2328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2329 *) ac_try_echo=$ac_try;;
2331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2332 (eval "$ac_compile") 2>&5
2334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335 (exit $ac_status); }; then
2336 for ac_file in conftest.o conftest.obj conftest.*; do
2337 test -f "$ac_file" || continue;
2339 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2340 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2345 echo "$as_me: failed program was:" >&5
2346 sed 's/^/| /' conftest.$ac_ext >&5
2348 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2349 See \`config.log' for more details." >&5
2350 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2351 See \`config.log' for more details." >&2;}
2352 { (exit 1); exit 1; }; }
2355 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2357 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2358 echo "${ECHO_T}$ac_cv_objext" >&6; }
2359 OBJEXT=$ac_cv_objext
2361 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2362 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2363 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2364 echo $ECHO_N "(cached) $ECHO_C" >&6
2366 cat >conftest.$ac_ext <<_ACEOF
2369 cat confdefs.h >>conftest.$ac_ext
2370 cat >>conftest.$ac_ext <<_ACEOF
2371 /* end confdefs.h. */
2384 rm -f conftest.$ac_objext
2385 if { (ac_try="$ac_compile"
2387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2388 *) ac_try_echo=$ac_try;;
2390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2391 (eval "$ac_compile") 2>conftest.er1
2393 grep -v '^ *+' conftest.er1 >conftest.err
2395 cat conftest.err >&5
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); } &&
2398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2399 { (case "(($ac_try" in
2400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2401 *) ac_try_echo=$ac_try;;
2403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2404 (eval "$ac_try") 2>&5
2406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407 (exit $ac_status); }; } &&
2408 { ac_try='test -s conftest.$ac_objext'
2409 { (case "(($ac_try" in
2410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2411 *) ac_try_echo=$ac_try;;
2413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2414 (eval "$ac_try") 2>&5
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); }; }; then
2420 echo "$as_me: failed program was:" >&5
2421 sed 's/^/| /' conftest.$ac_ext >&5
2426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2427 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2430 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2431 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2432 GCC=`test $ac_compiler_gnu = yes && echo yes`
2433 ac_test_CFLAGS=${CFLAGS+set}
2434 ac_save_CFLAGS=$CFLAGS
2435 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2436 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2437 if test "${ac_cv_prog_cc_g+set}" = set; then
2438 echo $ECHO_N "(cached) $ECHO_C" >&6
2440 ac_save_c_werror_flag=$ac_c_werror_flag
2441 ac_c_werror_flag=yes
2444 cat >conftest.$ac_ext <<_ACEOF
2447 cat confdefs.h >>conftest.$ac_ext
2448 cat >>conftest.$ac_ext <<_ACEOF
2449 /* end confdefs.h. */
2459 rm -f conftest.$ac_objext
2460 if { (ac_try="$ac_compile"
2462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2463 *) ac_try_echo=$ac_try;;
2465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2466 (eval "$ac_compile") 2>conftest.er1
2468 grep -v '^ *+' conftest.er1 >conftest.err
2470 cat conftest.err >&5
2471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472 (exit $ac_status); } &&
2473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2474 { (case "(($ac_try" in
2475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2476 *) ac_try_echo=$ac_try;;
2478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2479 (eval "$ac_try") 2>&5
2481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482 (exit $ac_status); }; } &&
2483 { ac_try='test -s conftest.$ac_objext'
2484 { (case "(($ac_try" in
2485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2486 *) ac_try_echo=$ac_try;;
2488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2489 (eval "$ac_try") 2>&5
2491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492 (exit $ac_status); }; }; then
2495 echo "$as_me: failed program was:" >&5
2496 sed 's/^/| /' conftest.$ac_ext >&5
2499 cat >conftest.$ac_ext <<_ACEOF
2502 cat confdefs.h >>conftest.$ac_ext
2503 cat >>conftest.$ac_ext <<_ACEOF
2504 /* end confdefs.h. */
2514 rm -f conftest.$ac_objext
2515 if { (ac_try="$ac_compile"
2517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2518 *) ac_try_echo=$ac_try;;
2520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2521 (eval "$ac_compile") 2>conftest.er1
2523 grep -v '^ *+' conftest.er1 >conftest.err
2525 cat conftest.err >&5
2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527 (exit $ac_status); } &&
2528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2529 { (case "(($ac_try" in
2530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2531 *) ac_try_echo=$ac_try;;
2533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2534 (eval "$ac_try") 2>&5
2536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537 (exit $ac_status); }; } &&
2538 { ac_try='test -s conftest.$ac_objext'
2539 { (case "(($ac_try" in
2540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2541 *) ac_try_echo=$ac_try;;
2543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2544 (eval "$ac_try") 2>&5
2546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547 (exit $ac_status); }; }; then
2550 echo "$as_me: failed program was:" >&5
2551 sed 's/^/| /' conftest.$ac_ext >&5
2553 ac_c_werror_flag=$ac_save_c_werror_flag
2555 cat >conftest.$ac_ext <<_ACEOF
2558 cat confdefs.h >>conftest.$ac_ext
2559 cat >>conftest.$ac_ext <<_ACEOF
2560 /* end confdefs.h. */
2570 rm -f conftest.$ac_objext
2571 if { (ac_try="$ac_compile"
2573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2574 *) ac_try_echo=$ac_try;;
2576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2577 (eval "$ac_compile") 2>conftest.er1
2579 grep -v '^ *+' conftest.er1 >conftest.err
2581 cat conftest.err >&5
2582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583 (exit $ac_status); } &&
2584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2585 { (case "(($ac_try" in
2586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2587 *) ac_try_echo=$ac_try;;
2589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2590 (eval "$ac_try") 2>&5
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); }; } &&
2594 { ac_try='test -s conftest.$ac_objext'
2595 { (case "(($ac_try" in
2596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2597 *) ac_try_echo=$ac_try;;
2599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2600 (eval "$ac_try") 2>&5
2602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603 (exit $ac_status); }; }; then
2606 echo "$as_me: failed program was:" >&5
2607 sed 's/^/| /' conftest.$ac_ext >&5
2612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2619 ac_c_werror_flag=$ac_save_c_werror_flag
2621 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2622 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2623 if test "$ac_test_CFLAGS" = set; then
2624 CFLAGS=$ac_save_CFLAGS
2625 elif test $ac_cv_prog_cc_g = yes; then
2626 if test "$GCC" = yes; then
2632 if test "$GCC" = yes; then
2638 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2639 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2640 if test "${ac_cv_prog_cc_c89+set}" = set; then
2641 echo $ECHO_N "(cached) $ECHO_C" >&6
2643 ac_cv_prog_cc_c89=no
2645 cat >conftest.$ac_ext <<_ACEOF
2648 cat confdefs.h >>conftest.$ac_ext
2649 cat >>conftest.$ac_ext <<_ACEOF
2650 /* end confdefs.h. */
2653 #include <sys/types.h>
2654 #include <sys/stat.h>
2655 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2656 struct buf { int x; };
2657 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2658 static char *e (p, i)
2664 static char *f (char * (*g) (char **, int), char **p, ...)
2669 s = g (p, va_arg (v,int));
2674 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2675 function prototypes and stuff, but not '\xHH' hex character constants.
2676 These don't provoke an error unfortunately, instead are silently treated
2677 as 'x'. The following induces an error, until -std is added to get
2678 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2679 array size at least. It's necessary to write '\x00'==0 to get something
2680 that's true only with -std. */
2681 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2683 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2684 inside strings and character constants. */
2686 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2688 int test (int i, double x);
2689 struct s1 {int (*f) (int a);};
2690 struct s2 {int (*f) (double a);};
2691 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2697 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2702 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2703 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2705 CC="$ac_save_CC $ac_arg"
2706 rm -f conftest.$ac_objext
2707 if { (ac_try="$ac_compile"
2709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2710 *) ac_try_echo=$ac_try;;
2712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2713 (eval "$ac_compile") 2>conftest.er1
2715 grep -v '^ *+' conftest.er1 >conftest.err
2717 cat conftest.err >&5
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); } &&
2720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2721 { (case "(($ac_try" in
2722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2723 *) ac_try_echo=$ac_try;;
2725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2726 (eval "$ac_try") 2>&5
2728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729 (exit $ac_status); }; } &&
2730 { ac_try='test -s conftest.$ac_objext'
2731 { (case "(($ac_try" in
2732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2733 *) ac_try_echo=$ac_try;;
2735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2736 (eval "$ac_try") 2>&5
2738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739 (exit $ac_status); }; }; then
2740 ac_cv_prog_cc_c89=$ac_arg
2742 echo "$as_me: failed program was:" >&5
2743 sed 's/^/| /' conftest.$ac_ext >&5
2748 rm -f core conftest.err conftest.$ac_objext
2749 test "x$ac_cv_prog_cc_c89" != "xno" && break
2751 rm -f conftest.$ac_ext
2756 case "x$ac_cv_prog_cc_c89" in
2758 { echo "$as_me:$LINENO: result: none needed" >&5
2759 echo "${ECHO_T}none needed" >&6; } ;;
2761 { echo "$as_me:$LINENO: result: unsupported" >&5
2762 echo "${ECHO_T}unsupported" >&6; } ;;
2764 CC="$CC $ac_cv_prog_cc_c89"
2765 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2766 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2771 ac_cpp='$CPP $CPPFLAGS'
2772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2777 ac_cpp='$CXXCPP $CPPFLAGS'
2778 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2779 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2780 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2781 if test -z "$CXX"; then
2782 if test -n "$CCC"; then
2785 if test -n "$ac_tool_prefix"; then
2786 for ac_prog in clang++ llvm-g++ g++
2788 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2789 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2790 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2792 if test "${ac_cv_prog_CXX+set}" = set; then
2793 echo $ECHO_N "(cached) $ECHO_C" >&6
2795 if test -n "$CXX"; then
2796 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2802 test -z "$as_dir" && as_dir=.
2803 for ac_exec_ext in '' $ac_executable_extensions; do
2804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2805 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2816 if test -n "$CXX"; then
2817 { echo "$as_me:$LINENO: result: $CXX" >&5
2818 echo "${ECHO_T}$CXX" >&6; }
2820 { echo "$as_me:$LINENO: result: no" >&5
2821 echo "${ECHO_T}no" >&6; }
2825 test -n "$CXX" && break
2828 if test -z "$CXX"; then
2830 for ac_prog in clang++ llvm-g++ g++
2832 # Extract the first word of "$ac_prog", so it can be a program name with args.
2833 set dummy $ac_prog; ac_word=$2
2834 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2836 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2837 echo $ECHO_N "(cached) $ECHO_C" >&6
2839 if test -n "$ac_ct_CXX"; then
2840 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2846 test -z "$as_dir" && as_dir=.
2847 for ac_exec_ext in '' $ac_executable_extensions; do
2848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2849 ac_cv_prog_ac_ct_CXX="$ac_prog"
2850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2859 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2860 if test -n "$ac_ct_CXX"; then
2861 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2862 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2864 { echo "$as_me:$LINENO: result: no" >&5
2865 echo "${ECHO_T}no" >&6; }
2869 test -n "$ac_ct_CXX" && break
2872 if test "x$ac_ct_CXX" = x; then
2875 case $cross_compiling:$ac_tool_warned in
2877 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2878 whose name does not start with the host triplet. If you think this
2879 configuration is useful to you, please write to autoconf@gnu.org." >&5
2880 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2881 whose name does not start with the host triplet. If you think this
2882 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2883 ac_tool_warned=yes ;;
2891 # Provide some information about the compiler.
2892 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2893 ac_compiler=`set X $ac_compile; echo $2`
2894 { (ac_try="$ac_compiler --version >&5"
2896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2897 *) ac_try_echo=$ac_try;;
2899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2900 (eval "$ac_compiler --version >&5") 2>&5
2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903 (exit $ac_status); }
2904 { (ac_try="$ac_compiler -v >&5"
2906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2907 *) ac_try_echo=$ac_try;;
2909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2910 (eval "$ac_compiler -v >&5") 2>&5
2912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913 (exit $ac_status); }
2914 { (ac_try="$ac_compiler -V >&5"
2916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2917 *) ac_try_echo=$ac_try;;
2919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2920 (eval "$ac_compiler -V >&5") 2>&5
2922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923 (exit $ac_status); }
2925 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2926 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2927 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2928 echo $ECHO_N "(cached) $ECHO_C" >&6
2930 cat >conftest.$ac_ext <<_ACEOF
2933 cat confdefs.h >>conftest.$ac_ext
2934 cat >>conftest.$ac_ext <<_ACEOF
2935 /* end confdefs.h. */
2948 rm -f conftest.$ac_objext
2949 if { (ac_try="$ac_compile"
2951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2952 *) ac_try_echo=$ac_try;;
2954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2955 (eval "$ac_compile") 2>conftest.er1
2957 grep -v '^ *+' conftest.er1 >conftest.err
2959 cat conftest.err >&5
2960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961 (exit $ac_status); } &&
2962 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2963 { (case "(($ac_try" in
2964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2965 *) ac_try_echo=$ac_try;;
2967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2968 (eval "$ac_try") 2>&5
2970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971 (exit $ac_status); }; } &&
2972 { ac_try='test -s conftest.$ac_objext'
2973 { (case "(($ac_try" in
2974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2975 *) ac_try_echo=$ac_try;;
2977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2978 (eval "$ac_try") 2>&5
2980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981 (exit $ac_status); }; }; then
2984 echo "$as_me: failed program was:" >&5
2985 sed 's/^/| /' conftest.$ac_ext >&5
2990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2991 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2994 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2995 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2996 GXX=`test $ac_compiler_gnu = yes && echo yes`
2997 ac_test_CXXFLAGS=${CXXFLAGS+set}
2998 ac_save_CXXFLAGS=$CXXFLAGS
2999 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3000 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3001 if test "${ac_cv_prog_cxx_g+set}" = set; then
3002 echo $ECHO_N "(cached) $ECHO_C" >&6
3004 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3005 ac_cxx_werror_flag=yes
3008 cat >conftest.$ac_ext <<_ACEOF
3011 cat confdefs.h >>conftest.$ac_ext
3012 cat >>conftest.$ac_ext <<_ACEOF
3013 /* end confdefs.h. */
3023 rm -f conftest.$ac_objext
3024 if { (ac_try="$ac_compile"
3026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3027 *) ac_try_echo=$ac_try;;
3029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3030 (eval "$ac_compile") 2>conftest.er1
3032 grep -v '^ *+' conftest.er1 >conftest.err
3034 cat conftest.err >&5
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); } &&
3037 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3038 { (case "(($ac_try" in
3039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3040 *) ac_try_echo=$ac_try;;
3042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3043 (eval "$ac_try") 2>&5
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); }; } &&
3047 { ac_try='test -s conftest.$ac_objext'
3048 { (case "(($ac_try" in
3049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3050 *) ac_try_echo=$ac_try;;
3052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3053 (eval "$ac_try") 2>&5
3055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056 (exit $ac_status); }; }; then
3057 ac_cv_prog_cxx_g=yes
3059 echo "$as_me: failed program was:" >&5
3060 sed 's/^/| /' conftest.$ac_ext >&5
3063 cat >conftest.$ac_ext <<_ACEOF
3066 cat confdefs.h >>conftest.$ac_ext
3067 cat >>conftest.$ac_ext <<_ACEOF
3068 /* end confdefs.h. */
3078 rm -f conftest.$ac_objext
3079 if { (ac_try="$ac_compile"
3081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3082 *) ac_try_echo=$ac_try;;
3084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3085 (eval "$ac_compile") 2>conftest.er1
3087 grep -v '^ *+' conftest.er1 >conftest.err
3089 cat conftest.err >&5
3090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091 (exit $ac_status); } &&
3092 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3093 { (case "(($ac_try" in
3094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3095 *) ac_try_echo=$ac_try;;
3097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3098 (eval "$ac_try") 2>&5
3100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101 (exit $ac_status); }; } &&
3102 { ac_try='test -s conftest.$ac_objext'
3103 { (case "(($ac_try" in
3104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3105 *) ac_try_echo=$ac_try;;
3107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3108 (eval "$ac_try") 2>&5
3110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111 (exit $ac_status); }; }; then
3114 echo "$as_me: failed program was:" >&5
3115 sed 's/^/| /' conftest.$ac_ext >&5
3117 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3119 cat >conftest.$ac_ext <<_ACEOF
3122 cat confdefs.h >>conftest.$ac_ext
3123 cat >>conftest.$ac_ext <<_ACEOF
3124 /* end confdefs.h. */
3134 rm -f conftest.$ac_objext
3135 if { (ac_try="$ac_compile"
3137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138 *) ac_try_echo=$ac_try;;
3140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3141 (eval "$ac_compile") 2>conftest.er1
3143 grep -v '^ *+' conftest.er1 >conftest.err
3145 cat conftest.err >&5
3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); } &&
3148 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3149 { (case "(($ac_try" in
3150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151 *) ac_try_echo=$ac_try;;
3153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3154 (eval "$ac_try") 2>&5
3156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157 (exit $ac_status); }; } &&
3158 { ac_try='test -s conftest.$ac_objext'
3159 { (case "(($ac_try" in
3160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3161 *) ac_try_echo=$ac_try;;
3163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3164 (eval "$ac_try") 2>&5
3166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167 (exit $ac_status); }; }; then
3168 ac_cv_prog_cxx_g=yes
3170 echo "$as_me: failed program was:" >&5
3171 sed 's/^/| /' conftest.$ac_ext >&5
3176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3183 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3185 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3186 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3187 if test "$ac_test_CXXFLAGS" = set; then
3188 CXXFLAGS=$ac_save_CXXFLAGS
3189 elif test $ac_cv_prog_cxx_g = yes; then
3190 if test "$GXX" = yes; then
3196 if test "$GXX" = yes; then
3203 ac_cpp='$CPP $CPPFLAGS'
3204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3209 ac_cpp='$CPP $CPPFLAGS'
3210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3213 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3214 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3215 # On Suns, sometimes $CPP names a directory.
3216 if test -n "$CPP" && test -d "$CPP"; then
3219 if test -z "$CPP"; then
3220 if test "${ac_cv_prog_CPP+set}" = set; then
3221 echo $ECHO_N "(cached) $ECHO_C" >&6
3223 # Double quotes because CPP needs to be expanded
3224 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3227 for ac_c_preproc_warn_flag in '' yes
3229 # Use a header file that comes with gcc, so configuring glibc
3230 # with a fresh cross-compiler works.
3231 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3232 # <limits.h> exists even on freestanding compilers.
3233 # On the NeXT, cc -E runs the code through the compiler's parser,
3234 # not just through cpp. "Syntax error" is here to catch this case.
3235 cat >conftest.$ac_ext <<_ACEOF
3238 cat confdefs.h >>conftest.$ac_ext
3239 cat >>conftest.$ac_ext <<_ACEOF
3240 /* end confdefs.h. */
3242 # include <limits.h>
3244 # include <assert.h>
3248 if { (ac_try="$ac_cpp conftest.$ac_ext"
3250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3251 *) ac_try_echo=$ac_try;;
3253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3254 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3256 grep -v '^ *+' conftest.er1 >conftest.err
3258 cat conftest.err >&5
3259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260 (exit $ac_status); } >/dev/null; then
3261 if test -s conftest.err; then
3262 ac_cpp_err=$ac_c_preproc_warn_flag
3263 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3270 if test -z "$ac_cpp_err"; then
3273 echo "$as_me: failed program was:" >&5
3274 sed 's/^/| /' conftest.$ac_ext >&5
3276 # Broken: fails on valid input.
3280 rm -f conftest.err conftest.$ac_ext
3282 # OK, works on sane cases. Now check whether nonexistent headers
3283 # can be detected and how.
3284 cat >conftest.$ac_ext <<_ACEOF
3287 cat confdefs.h >>conftest.$ac_ext
3288 cat >>conftest.$ac_ext <<_ACEOF
3289 /* end confdefs.h. */
3290 #include <ac_nonexistent.h>
3292 if { (ac_try="$ac_cpp conftest.$ac_ext"
3294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3295 *) ac_try_echo=$ac_try;;
3297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3298 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3300 grep -v '^ *+' conftest.er1 >conftest.err
3302 cat conftest.err >&5
3303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304 (exit $ac_status); } >/dev/null; then
3305 if test -s conftest.err; then
3306 ac_cpp_err=$ac_c_preproc_warn_flag
3307 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3314 if test -z "$ac_cpp_err"; then
3315 # Broken: success on invalid input.
3318 echo "$as_me: failed program was:" >&5
3319 sed 's/^/| /' conftest.$ac_ext >&5
3321 # Passes both tests.
3326 rm -f conftest.err conftest.$ac_ext
3329 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3330 rm -f conftest.err conftest.$ac_ext
3331 if $ac_preproc_ok; then
3343 { echo "$as_me:$LINENO: result: $CPP" >&5
3344 echo "${ECHO_T}$CPP" >&6; }
3346 for ac_c_preproc_warn_flag in '' yes
3348 # Use a header file that comes with gcc, so configuring glibc
3349 # with a fresh cross-compiler works.
3350 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3351 # <limits.h> exists even on freestanding compilers.
3352 # On the NeXT, cc -E runs the code through the compiler's parser,
3353 # not just through cpp. "Syntax error" is here to catch this case.
3354 cat >conftest.$ac_ext <<_ACEOF
3357 cat confdefs.h >>conftest.$ac_ext
3358 cat >>conftest.$ac_ext <<_ACEOF
3359 /* end confdefs.h. */
3361 # include <limits.h>
3363 # include <assert.h>
3367 if { (ac_try="$ac_cpp conftest.$ac_ext"
3369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3370 *) ac_try_echo=$ac_try;;
3372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3373 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3375 grep -v '^ *+' conftest.er1 >conftest.err
3377 cat conftest.err >&5
3378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379 (exit $ac_status); } >/dev/null; then
3380 if test -s conftest.err; then
3381 ac_cpp_err=$ac_c_preproc_warn_flag
3382 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3389 if test -z "$ac_cpp_err"; then
3392 echo "$as_me: failed program was:" >&5
3393 sed 's/^/| /' conftest.$ac_ext >&5
3395 # Broken: fails on valid input.
3399 rm -f conftest.err conftest.$ac_ext
3401 # OK, works on sane cases. Now check whether nonexistent headers
3402 # can be detected and how.
3403 cat >conftest.$ac_ext <<_ACEOF
3406 cat confdefs.h >>conftest.$ac_ext
3407 cat >>conftest.$ac_ext <<_ACEOF
3408 /* end confdefs.h. */
3409 #include <ac_nonexistent.h>
3411 if { (ac_try="$ac_cpp conftest.$ac_ext"
3413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3414 *) ac_try_echo=$ac_try;;
3416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3417 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3419 grep -v '^ *+' conftest.er1 >conftest.err
3421 cat conftest.err >&5
3422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423 (exit $ac_status); } >/dev/null; then
3424 if test -s conftest.err; then
3425 ac_cpp_err=$ac_c_preproc_warn_flag
3426 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3433 if test -z "$ac_cpp_err"; then
3434 # Broken: success on invalid input.
3437 echo "$as_me: failed program was:" >&5
3438 sed 's/^/| /' conftest.$ac_ext >&5
3440 # Passes both tests.
3445 rm -f conftest.err conftest.$ac_ext
3448 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3449 rm -f conftest.err conftest.$ac_ext
3450 if $ac_preproc_ok; then
3453 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3454 See \`config.log' for more details." >&5
3455 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3456 See \`config.log' for more details." >&2;}
3457 { (exit 1); exit 1; }; }
3461 ac_cpp='$CPP $CPPFLAGS'
3462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3469 # Check whether --enable-polly was given.
3470 if test "${enable_polly+set}" = set; then
3471 enableval=$enable_polly;
3476 case "$enableval" in
3481 default) ENABLE_POLLY=1
3483 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3484 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3485 { (exit 1); exit 1; }; } ;;
3489 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3492 subdirs="$subdirs tools/polly"
3497 # Make sure we can run config.sub.
3498 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3499 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3500 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3501 { (exit 1); exit 1; }; }
3503 { echo "$as_me:$LINENO: checking build system type" >&5
3504 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3505 if test "${ac_cv_build+set}" = set; then
3506 echo $ECHO_N "(cached) $ECHO_C" >&6
3508 ac_build_alias=$build_alias
3509 test "x$ac_build_alias" = x &&
3510 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3511 test "x$ac_build_alias" = x &&
3512 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3513 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3514 { (exit 1); exit 1; }; }
3515 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3516 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3517 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3518 { (exit 1); exit 1; }; }
3521 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3522 echo "${ECHO_T}$ac_cv_build" >&6; }
3523 case $ac_cv_build in
3525 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3526 echo "$as_me: error: invalid value of canonical build" >&2;}
3527 { (exit 1); exit 1; }; };;
3530 ac_save_IFS=$IFS; IFS='-'
3536 # Remember, the first character of IFS is used to create $*,
3537 # except with old shells:
3540 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3543 { echo "$as_me:$LINENO: checking host system type" >&5
3544 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3545 if test "${ac_cv_host+set}" = set; then
3546 echo $ECHO_N "(cached) $ECHO_C" >&6
3548 if test "x$host_alias" = x; then
3549 ac_cv_host=$ac_cv_build
3551 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3552 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3553 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3554 { (exit 1); exit 1; }; }
3558 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3559 echo "${ECHO_T}$ac_cv_host" >&6; }
3562 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3563 echo "$as_me: error: invalid value of canonical host" >&2;}
3564 { (exit 1); exit 1; }; };;
3567 ac_save_IFS=$IFS; IFS='-'
3573 # Remember, the first character of IFS is used to create $*,
3574 # except with old shells:
3577 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3580 { echo "$as_me:$LINENO: checking target system type" >&5
3581 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3582 if test "${ac_cv_target+set}" = set; then
3583 echo $ECHO_N "(cached) $ECHO_C" >&6
3585 if test "x$target_alias" = x; then
3586 ac_cv_target=$ac_cv_host
3588 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3589 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3590 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3591 { (exit 1); exit 1; }; }
3595 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3596 echo "${ECHO_T}$ac_cv_target" >&6; }
3597 case $ac_cv_target in
3599 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3600 echo "$as_me: error: invalid value of canonical target" >&2;}
3601 { (exit 1); exit 1; }; };;
3603 target=$ac_cv_target
3604 ac_save_IFS=$IFS; IFS='-'
3610 # Remember, the first character of IFS is used to create $*,
3611 # except with old shells:
3614 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3617 # The aliases save the names the user supplied, while $host etc.
3618 # will get canonicalized.
3619 test -n "$target_alias" &&
3620 test "$program_prefix$program_suffix$program_transform_name" = \
3622 program_prefix=${target_alias}-
3624 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3625 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3626 if test "${llvm_cv_os_type+set}" = set; then
3627 echo $ECHO_N "(cached) $ECHO_C" >&6
3631 llvm_cv_link_all_option="-Wl,--whole-archive"
3632 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3633 llvm_cv_os_type="AIX"
3634 llvm_cv_platform_type="Unix" ;;
3636 llvm_cv_link_all_option="-Wl,--whole-archive"
3637 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3638 llvm_cv_os_type="IRIX"
3639 llvm_cv_platform_type="Unix" ;;
3641 llvm_cv_link_all_option="-Wl,--whole-archive"
3642 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3643 llvm_cv_os_type="Cygwin"
3644 llvm_cv_platform_type="Unix" ;;
3646 llvm_cv_link_all_option="-Wl,-all_load"
3647 llvm_cv_no_link_all_option="-Wl,-noall_load"
3648 llvm_cv_os_type="Darwin"
3649 llvm_cv_platform_type="Unix" ;;
3651 llvm_cv_link_all_option="-Wl,-all_load"
3652 llvm_cv_no_link_all_option="-Wl,-noall_load"
3653 llvm_cv_os_type="Minix"
3654 llvm_cv_platform_type="Unix" ;;
3655 *-*-freebsd* | *-*-kfreebsd-gnu)
3656 llvm_cv_link_all_option="-Wl,--whole-archive"
3657 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3658 llvm_cv_os_type="FreeBSD"
3659 llvm_cv_platform_type="Unix" ;;
3661 llvm_cv_link_all_option="-Wl,--whole-archive"
3662 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3663 llvm_cv_os_type="OpenBSD"
3664 llvm_cv_platform_type="Unix" ;;
3666 llvm_cv_link_all_option="-Wl,--whole-archive"
3667 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3668 llvm_cv_os_type="NetBSD"
3669 llvm_cv_platform_type="Unix" ;;
3671 llvm_cv_link_all_option="-Wl,--whole-archive"
3672 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3673 llvm_cv_os_type="DragonFly"
3674 llvm_cv_platform_type="Unix" ;;
3676 llvm_cv_link_all_option="-Wl,--whole-archive"
3677 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3678 llvm_cv_os_type="HP-UX"
3679 llvm_cv_platform_type="Unix" ;;
3681 llvm_cv_link_all_option="-Wl,--whole-archive"
3682 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3683 llvm_cv_os_type="Interix"
3684 llvm_cv_platform_type="Unix" ;;
3686 llvm_cv_link_all_option="-Wl,--whole-archive"
3687 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3688 llvm_cv_os_type="Linux"
3689 llvm_cv_platform_type="Unix" ;;
3691 llvm_cv_link_all_option="-Wl,--whole-archive"
3692 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3693 llvm_cv_os_type="GNU"
3694 llvm_cv_platform_type="Unix" ;;
3696 llvm_cv_link_all_option="-Wl,-z,allextract"
3697 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3698 llvm_cv_os_type="SunOS"
3699 llvm_cv_platform_type="Unix" ;;
3701 llvm_cv_link_all_option="-Wl,-z,allextract"
3702 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3703 llvm_cv_os_type="AuroraUX"
3704 llvm_cv_platform_type="Unix" ;;
3706 llvm_cv_link_all_option="-Wl,--whole-archive"
3707 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3708 llvm_cv_os_type="Win32"
3709 llvm_cv_platform_type="Win32" ;;
3711 llvm_cv_link_all_option="-Wl,--whole-archive"
3712 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3713 llvm_cv_os_type="MingW"
3714 llvm_cv_platform_type="Win32" ;;
3716 llvm_cv_link_all_option="-Wl,--whole-archive"
3717 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3718 llvm_cv_os_type="Haiku"
3719 llvm_cv_platform_type="Unix" ;;
3721 llvm_cv_link_all_option="-Wl,--whole-archive"
3722 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3723 llvm_cv_os_type="Freestanding"
3724 llvm_cv_platform_type="Unix" ;;
3726 llvm_cv_link_all_option="-Wl,--whole-archive"
3727 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3728 llvm_cv_os_type="Freestanding"
3729 llvm_cv_platform_type="Unix" ;;
3731 llvm_cv_link_all_option=""
3732 llvm_cv_no_link_all_option=""
3733 llvm_cv_os_type="Unknown"
3734 llvm_cv_platform_type="Unknown" ;;
3737 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3738 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3740 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3741 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3742 if test "${llvm_cv_target_os_type+set}" = set; then
3743 echo $ECHO_N "(cached) $ECHO_C" >&6
3747 llvm_cv_target_os_type="AIX" ;;
3749 llvm_cv_target_os_type="IRIX" ;;
3751 llvm_cv_target_os_type="Cygwin" ;;
3753 llvm_cv_target_os_type="Darwin" ;;
3755 llvm_cv_target_os_type="Minix" ;;
3756 *-*-freebsd* | *-*-kfreebsd-gnu)
3757 llvm_cv_target_os_type="FreeBSD" ;;
3759 llvm_cv_target_os_type="OpenBSD" ;;
3761 llvm_cv_target_os_type="NetBSD" ;;
3763 llvm_cv_target_os_type="DragonFly" ;;
3765 llvm_cv_target_os_type="HP-UX" ;;
3767 llvm_cv_target_os_type="Interix" ;;
3769 llvm_cv_target_os_type="Linux" ;;
3771 llvm_cv_target_os_type="GNU" ;;
3773 llvm_cv_target_os_type="SunOS" ;;
3775 llvm_cv_target_os_type="AuroraUX" ;;
3777 llvm_cv_target_os_type="Win32" ;;
3779 llvm_cv_target_os_type="MingW" ;;
3781 llvm_cv_target_os_type="Haiku" ;;
3783 llvm_cv_target_os_type="RTEMS" ;;
3785 llvm_cv_target_os_type="NativeClient" ;;
3787 llvm_cv_target_os_type="Freestanding" ;;
3789 llvm_cv_target_os_type="Unknown" ;;
3792 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3793 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3795 if test "$llvm_cv_os_type" = "Unknown" ; then
3796 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3797 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3798 { (exit 1); exit 1; }; }
3803 HOST_OS=$llvm_cv_os_type
3805 TARGET_OS=$llvm_cv_target_os_type
3808 LINKALL=$llvm_cv_link_all_option
3810 NOLINKALL=$llvm_cv_no_link_all_option
3813 case $llvm_cv_platform_type in
3816 cat >>confdefs.h <<\_ACEOF
3817 #define LLVM_ON_UNIX 1
3827 cat >>confdefs.h <<\_ACEOF
3828 #define LLVM_ON_WIN32 1
3838 { echo "$as_me:$LINENO: checking target architecture" >&5
3839 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3840 if test "${llvm_cv_target_arch+set}" = set; then
3841 echo $ECHO_N "(cached) $ECHO_C" >&6
3844 i?86-*) llvm_cv_target_arch="x86" ;;
3845 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3846 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3847 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
3848 arm*-*) llvm_cv_target_arch="ARM" ;;
3849 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
3850 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
3851 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
3852 xcore-*) llvm_cv_target_arch="XCore" ;;
3853 msp430-*) llvm_cv_target_arch="MSP430" ;;
3854 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
3855 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
3856 s390x-*) llvm_cv_target_arch="SystemZ" ;;
3857 *) llvm_cv_target_arch="Unknown" ;;
3860 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3861 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3863 if test "$llvm_cv_target_arch" = "Unknown" ; then
3864 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3865 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3868 # Determine the LLVM native architecture for the target
3869 case "$llvm_cv_target_arch" in
3870 x86) LLVM_NATIVE_ARCH="X86" ;;
3871 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3872 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3875 ARCH=$llvm_cv_target_arch
3880 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3881 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3882 if test "${ac_cv_path_GREP+set}" = set; then
3883 echo $ECHO_N "(cached) $ECHO_C" >&6
3885 # Extract the first word of "grep ggrep" to use in msg output
3886 if test -z "$GREP"; then
3887 set dummy grep ggrep; ac_prog_name=$2
3888 if test "${ac_cv_path_GREP+set}" = set; then
3889 echo $ECHO_N "(cached) $ECHO_C" >&6
3891 ac_path_GREP_found=false
3892 # Loop through the user's path and test for each of PROGNAME-LIST
3893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3894 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3897 test -z "$as_dir" && as_dir=.
3898 for ac_prog in grep ggrep; do
3899 for ac_exec_ext in '' $ac_executable_extensions; do
3900 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3901 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3902 # Check for GNU ac_path_GREP and select it if it is found.
3903 # Check for GNU $ac_path_GREP
3904 case `"$ac_path_GREP" --version 2>&1` in
3906 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3909 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3912 cat "conftest.in" "conftest.in" >"conftest.tmp"
3913 mv "conftest.tmp" "conftest.in"
3914 cp "conftest.in" "conftest.nl"
3915 echo 'GREP' >> "conftest.nl"
3916 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3917 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3918 ac_count=`expr $ac_count + 1`
3919 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3920 # Best one so far, save it but keep looking for a better one
3921 ac_cv_path_GREP="$ac_path_GREP"
3922 ac_path_GREP_max=$ac_count
3924 # 10*(2^10) chars as input seems more than enough
3925 test $ac_count -gt 10 && break
3927 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3931 $ac_path_GREP_found && break 3
3941 GREP="$ac_cv_path_GREP"
3942 if test -z "$GREP"; then
3943 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3944 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3945 { (exit 1); exit 1; }; }
3949 ac_cv_path_GREP=$GREP
3954 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3955 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3956 GREP="$ac_cv_path_GREP"
3959 { echo "$as_me:$LINENO: checking for egrep" >&5
3960 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3961 if test "${ac_cv_path_EGREP+set}" = set; then
3962 echo $ECHO_N "(cached) $ECHO_C" >&6
3964 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3965 then ac_cv_path_EGREP="$GREP -E"
3967 # Extract the first word of "egrep" to use in msg output
3968 if test -z "$EGREP"; then
3969 set dummy egrep; ac_prog_name=$2
3970 if test "${ac_cv_path_EGREP+set}" = set; then
3971 echo $ECHO_N "(cached) $ECHO_C" >&6
3973 ac_path_EGREP_found=false
3974 # Loop through the user's path and test for each of PROGNAME-LIST
3975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3976 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3979 test -z "$as_dir" && as_dir=.
3980 for ac_prog in egrep; do
3981 for ac_exec_ext in '' $ac_executable_extensions; do
3982 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3983 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3984 # Check for GNU ac_path_EGREP and select it if it is found.
3985 # Check for GNU $ac_path_EGREP
3986 case `"$ac_path_EGREP" --version 2>&1` in
3988 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3991 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3994 cat "conftest.in" "conftest.in" >"conftest.tmp"
3995 mv "conftest.tmp" "conftest.in"
3996 cp "conftest.in" "conftest.nl"
3997 echo 'EGREP' >> "conftest.nl"
3998 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3999 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4000 ac_count=`expr $ac_count + 1`
4001 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4002 # Best one so far, save it but keep looking for a better one
4003 ac_cv_path_EGREP="$ac_path_EGREP"
4004 ac_path_EGREP_max=$ac_count
4006 # 10*(2^10) chars as input seems more than enough
4007 test $ac_count -gt 10 && break
4009 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4013 $ac_path_EGREP_found && break 3
4023 EGREP="$ac_cv_path_EGREP"
4024 if test -z "$EGREP"; then
4025 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4026 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4027 { (exit 1); exit 1; }; }
4031 ac_cv_path_EGREP=$EGREP
4037 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4038 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4039 EGREP="$ac_cv_path_EGREP"
4042 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4043 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4044 if test "${ac_cv_header_stdc+set}" = set; then
4045 echo $ECHO_N "(cached) $ECHO_C" >&6
4047 cat >conftest.$ac_ext <<_ACEOF
4050 cat confdefs.h >>conftest.$ac_ext
4051 cat >>conftest.$ac_ext <<_ACEOF
4052 /* end confdefs.h. */
4066 rm -f conftest.$ac_objext
4067 if { (ac_try="$ac_compile"
4069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4070 *) ac_try_echo=$ac_try;;
4072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4073 (eval "$ac_compile") 2>conftest.er1
4075 grep -v '^ *+' conftest.er1 >conftest.err
4077 cat conftest.err >&5
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); } &&
4080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4081 { (case "(($ac_try" in
4082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4083 *) ac_try_echo=$ac_try;;
4085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4086 (eval "$ac_try") 2>&5
4088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089 (exit $ac_status); }; } &&
4090 { ac_try='test -s conftest.$ac_objext'
4091 { (case "(($ac_try" in
4092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4093 *) ac_try_echo=$ac_try;;
4095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4096 (eval "$ac_try") 2>&5
4098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099 (exit $ac_status); }; }; then
4100 ac_cv_header_stdc=yes
4102 echo "$as_me: failed program was:" >&5
4103 sed 's/^/| /' conftest.$ac_ext >&5
4105 ac_cv_header_stdc=no
4108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4110 if test $ac_cv_header_stdc = yes; then
4111 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4112 cat >conftest.$ac_ext <<_ACEOF
4115 cat confdefs.h >>conftest.$ac_ext
4116 cat >>conftest.$ac_ext <<_ACEOF
4117 /* end confdefs.h. */
4121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4122 $EGREP "memchr" >/dev/null 2>&1; then
4125 ac_cv_header_stdc=no
4131 if test $ac_cv_header_stdc = yes; then
4132 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4133 cat >conftest.$ac_ext <<_ACEOF
4136 cat confdefs.h >>conftest.$ac_ext
4137 cat >>conftest.$ac_ext <<_ACEOF
4138 /* end confdefs.h. */
4142 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4143 $EGREP "free" >/dev/null 2>&1; then
4146 ac_cv_header_stdc=no
4152 if test $ac_cv_header_stdc = yes; then
4153 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4154 if test "$cross_compiling" = yes; then
4157 cat >conftest.$ac_ext <<_ACEOF
4160 cat confdefs.h >>conftest.$ac_ext
4161 cat >>conftest.$ac_ext <<_ACEOF
4162 /* end confdefs.h. */
4165 #if ((' ' & 0x0FF) == 0x020)
4166 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4167 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4169 # define ISLOWER(c) \
4170 (('a' <= (c) && (c) <= 'i') \
4171 || ('j' <= (c) && (c) <= 'r') \
4172 || ('s' <= (c) && (c) <= 'z'))
4173 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4176 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4181 for (i = 0; i < 256; i++)
4182 if (XOR (islower (i), ISLOWER (i))
4183 || toupper (i) != TOUPPER (i))
4188 rm -f conftest$ac_exeext
4189 if { (ac_try="$ac_link"
4191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4192 *) ac_try_echo=$ac_try;;
4194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4195 (eval "$ac_link") 2>&5
4197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4199 { (case "(($ac_try" in
4200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4201 *) ac_try_echo=$ac_try;;
4203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4204 (eval "$ac_try") 2>&5
4206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207 (exit $ac_status); }; }; then
4210 echo "$as_me: program exited with status $ac_status" >&5
4211 echo "$as_me: failed program was:" >&5
4212 sed 's/^/| /' conftest.$ac_ext >&5
4215 ac_cv_header_stdc=no
4217 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4223 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4224 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4225 if test $ac_cv_header_stdc = yes; then
4227 cat >>confdefs.h <<\_ACEOF
4228 #define STDC_HEADERS 1
4233 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4243 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4244 inttypes.h stdint.h unistd.h
4246 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4247 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4248 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4249 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4250 echo $ECHO_N "(cached) $ECHO_C" >&6
4252 cat >conftest.$ac_ext <<_ACEOF
4255 cat confdefs.h >>conftest.$ac_ext
4256 cat >>conftest.$ac_ext <<_ACEOF
4257 /* end confdefs.h. */
4258 $ac_includes_default
4260 #include <$ac_header>
4262 rm -f conftest.$ac_objext
4263 if { (ac_try="$ac_compile"
4265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4266 *) ac_try_echo=$ac_try;;
4268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4269 (eval "$ac_compile") 2>conftest.er1
4271 grep -v '^ *+' conftest.er1 >conftest.err
4273 cat conftest.err >&5
4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); } &&
4276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4277 { (case "(($ac_try" in
4278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4279 *) ac_try_echo=$ac_try;;
4281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4282 (eval "$ac_try") 2>&5
4284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285 (exit $ac_status); }; } &&
4286 { ac_try='test -s conftest.$ac_objext'
4287 { (case "(($ac_try" in
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_try") 2>&5
4294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295 (exit $ac_status); }; }; then
4296 eval "$as_ac_Header=yes"
4298 echo "$as_me: failed program was:" >&5
4299 sed 's/^/| /' conftest.$ac_ext >&5
4301 eval "$as_ac_Header=no"
4304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4306 ac_res=`eval echo '${'$as_ac_Header'}'`
4307 { echo "$as_me:$LINENO: result: $ac_res" >&5
4308 echo "${ECHO_T}$ac_res" >&6; }
4309 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4310 cat >>confdefs.h <<_ACEOF
4311 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4319 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4320 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4321 if test "${ac_cv_c_bigendian+set}" = set; then
4322 echo $ECHO_N "(cached) $ECHO_C" >&6
4324 # See if sys/param.h defines the BYTE_ORDER macro.
4325 cat >conftest.$ac_ext <<_ACEOF
4328 cat confdefs.h >>conftest.$ac_ext
4329 cat >>conftest.$ac_ext <<_ACEOF
4330 /* end confdefs.h. */
4331 #include <sys/types.h>
4332 #include <sys/param.h>
4337 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4345 rm -f conftest.$ac_objext
4346 if { (ac_try="$ac_compile"
4348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4349 *) ac_try_echo=$ac_try;;
4351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4352 (eval "$ac_compile") 2>conftest.er1
4354 grep -v '^ *+' conftest.er1 >conftest.err
4356 cat conftest.err >&5
4357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358 (exit $ac_status); } &&
4359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4360 { (case "(($ac_try" in
4361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4362 *) ac_try_echo=$ac_try;;
4364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4365 (eval "$ac_try") 2>&5
4367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368 (exit $ac_status); }; } &&
4369 { ac_try='test -s conftest.$ac_objext'
4370 { (case "(($ac_try" in
4371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4372 *) ac_try_echo=$ac_try;;
4374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4375 (eval "$ac_try") 2>&5
4377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378 (exit $ac_status); }; }; then
4379 # It does; now see whether it defined to BIG_ENDIAN or not.
4380 cat >conftest.$ac_ext <<_ACEOF
4383 cat confdefs.h >>conftest.$ac_ext
4384 cat >>conftest.$ac_ext <<_ACEOF
4385 /* end confdefs.h. */
4386 #include <sys/types.h>
4387 #include <sys/param.h>
4392 #if BYTE_ORDER != BIG_ENDIAN
4400 rm -f conftest.$ac_objext
4401 if { (ac_try="$ac_compile"
4403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4404 *) ac_try_echo=$ac_try;;
4406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4407 (eval "$ac_compile") 2>conftest.er1
4409 grep -v '^ *+' conftest.er1 >conftest.err
4411 cat conftest.err >&5
4412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413 (exit $ac_status); } &&
4414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4415 { (case "(($ac_try" in
4416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4417 *) ac_try_echo=$ac_try;;
4419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4420 (eval "$ac_try") 2>&5
4422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423 (exit $ac_status); }; } &&
4424 { ac_try='test -s conftest.$ac_objext'
4425 { (case "(($ac_try" in
4426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4427 *) ac_try_echo=$ac_try;;
4429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4430 (eval "$ac_try") 2>&5
4432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433 (exit $ac_status); }; }; then
4434 ac_cv_c_bigendian=yes
4436 echo "$as_me: failed program was:" >&5
4437 sed 's/^/| /' conftest.$ac_ext >&5
4439 ac_cv_c_bigendian=no
4442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4444 echo "$as_me: failed program was:" >&5
4445 sed 's/^/| /' conftest.$ac_ext >&5
4447 # It does not; compile a test program.
4448 if test "$cross_compiling" = yes; then
4449 # try to guess the endianness by grepping values into an object file
4450 ac_cv_c_bigendian=unknown
4451 cat >conftest.$ac_ext <<_ACEOF
4454 cat confdefs.h >>conftest.$ac_ext
4455 cat >>conftest.$ac_ext <<_ACEOF
4456 /* end confdefs.h. */
4457 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4458 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4459 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4460 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4461 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4462 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4466 _ascii (); _ebcdic ();
4471 rm -f conftest.$ac_objext
4472 if { (ac_try="$ac_compile"
4474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4475 *) ac_try_echo=$ac_try;;
4477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4478 (eval "$ac_compile") 2>conftest.er1
4480 grep -v '^ *+' conftest.er1 >conftest.err
4482 cat conftest.err >&5
4483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484 (exit $ac_status); } &&
4485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4486 { (case "(($ac_try" in
4487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4488 *) ac_try_echo=$ac_try;;
4490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4491 (eval "$ac_try") 2>&5
4493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494 (exit $ac_status); }; } &&
4495 { ac_try='test -s conftest.$ac_objext'
4496 { (case "(($ac_try" in
4497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4498 *) ac_try_echo=$ac_try;;
4500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4501 (eval "$ac_try") 2>&5
4503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504 (exit $ac_status); }; }; then
4505 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4506 ac_cv_c_bigendian=yes
4508 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4509 if test "$ac_cv_c_bigendian" = unknown; then
4510 ac_cv_c_bigendian=no
4512 # finding both strings is unlikely to happen, but who knows?
4513 ac_cv_c_bigendian=unknown
4517 echo "$as_me: failed program was:" >&5
4518 sed 's/^/| /' conftest.$ac_ext >&5
4523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4525 cat >conftest.$ac_ext <<_ACEOF
4528 cat confdefs.h >>conftest.$ac_ext
4529 cat >>conftest.$ac_ext <<_ACEOF
4530 /* end confdefs.h. */
4531 $ac_includes_default
4536 /* Are we little or big endian? From Harbison&Steele. */
4540 char c[sizeof (long int)];
4543 return u.c[sizeof (long int) - 1] == 1;
4549 rm -f conftest$ac_exeext
4550 if { (ac_try="$ac_link"
4552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4553 *) ac_try_echo=$ac_try;;
4555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4556 (eval "$ac_link") 2>&5
4558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4560 { (case "(($ac_try" in
4561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4562 *) ac_try_echo=$ac_try;;
4564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4565 (eval "$ac_try") 2>&5
4567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 (exit $ac_status); }; }; then
4569 ac_cv_c_bigendian=no
4571 echo "$as_me: program exited with status $ac_status" >&5
4572 echo "$as_me: failed program was:" >&5
4573 sed 's/^/| /' conftest.$ac_ext >&5
4576 ac_cv_c_bigendian=yes
4578 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4586 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4587 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4588 case $ac_cv_c_bigendian in
4596 { { echo "$as_me:$LINENO: error: unknown endianness
4597 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4598 echo "$as_me: error: unknown endianness
4599 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4600 { (exit 1); exit 1; }; } ;;
4604 if test "$cross_compiling" = yes; then
4605 LLVM_CROSS_COMPILING=1
4608 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4609 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4610 if test "${ac_cv_build_exeext+set}" = set; then
4611 echo $ECHO_N "(cached) $ECHO_C" >&6
4613 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4614 ac_cv_build_exeext=.exe
4616 ac_build_prefix=${build_alias}-
4618 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4619 set dummy ${ac_build_prefix}gcc; ac_word=$2
4620 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4622 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4623 echo $ECHO_N "(cached) $ECHO_C" >&6
4625 if test -n "$BUILD_CC"; then
4626 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4632 test -z "$as_dir" && as_dir=.
4633 for ac_exec_ext in '' $ac_executable_extensions; do
4634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4635 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4645 BUILD_CC=$ac_cv_prog_BUILD_CC
4646 if test -n "$BUILD_CC"; then
4647 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4648 echo "${ECHO_T}$BUILD_CC" >&6; }
4650 { echo "$as_me:$LINENO: result: no" >&5
4651 echo "${ECHO_T}no" >&6; }
4655 if test -z "$BUILD_CC"; then
4656 # Extract the first word of "gcc", so it can be a program name with args.
4657 set dummy gcc; ac_word=$2
4658 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4660 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4661 echo $ECHO_N "(cached) $ECHO_C" >&6
4663 if test -n "$BUILD_CC"; then
4664 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4670 test -z "$as_dir" && as_dir=.
4671 for ac_exec_ext in '' $ac_executable_extensions; do
4672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4673 ac_cv_prog_BUILD_CC="gcc"
4674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4683 BUILD_CC=$ac_cv_prog_BUILD_CC
4684 if test -n "$BUILD_CC"; then
4685 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4686 echo "${ECHO_T}$BUILD_CC" >&6; }
4688 { echo "$as_me:$LINENO: result: no" >&5
4689 echo "${ECHO_T}no" >&6; }
4693 if test -z "$BUILD_CC"; then
4694 # Extract the first word of "cc", so it can be a program name with args.
4695 set dummy cc; ac_word=$2
4696 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4698 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4699 echo $ECHO_N "(cached) $ECHO_C" >&6
4701 if test -n "$BUILD_CC"; then
4702 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4709 test -z "$as_dir" && as_dir=.
4710 for ac_exec_ext in '' $ac_executable_extensions; do
4711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4712 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4713 ac_prog_rejected=yes
4716 ac_cv_prog_BUILD_CC="cc"
4717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4724 if test $ac_prog_rejected = yes; then
4725 # We found a bogon in the path, so make sure we never use it.
4726 set dummy $ac_cv_prog_BUILD_CC
4728 if test $# != 0; then
4729 # We chose a different compiler from the bogus one.
4730 # However, it has the same basename, so the bogon will be chosen
4731 # first if we set BUILD_CC to just the basename; use the full file name.
4733 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4738 BUILD_CC=$ac_cv_prog_BUILD_CC
4739 if test -n "$BUILD_CC"; then
4740 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4741 echo "${ECHO_T}$BUILD_CC" >&6; }
4743 { echo "$as_me:$LINENO: result: no" >&5
4744 echo "${ECHO_T}no" >&6; }
4750 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4751 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4752 { (exit 1); exit 1; }; }
4753 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4755 echo 'int main () { return 0; }' > conftest.$ac_ext
4757 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4758 (eval $ac_build_link) 2>&5
4760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761 (exit $ac_status); }; then
4762 for file in conftest.*; do
4764 *.c | *.o | *.obj | *.dSYM) ;;
4765 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4769 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4770 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4771 { (exit 1); exit 1; }; }
4774 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4779 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4780 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4781 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4782 ac_build_exeext=$BUILD_EXEEXT
4784 ac_build_prefix=${build_alias}-
4785 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4786 set dummy ${ac_build_prefix}g++; ac_word=$2
4787 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4789 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4790 echo $ECHO_N "(cached) $ECHO_C" >&6
4792 if test -n "$BUILD_CXX"; then
4793 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4799 test -z "$as_dir" && as_dir=.
4800 for ac_exec_ext in '' $ac_executable_extensions; do
4801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4802 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4812 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4813 if test -n "$BUILD_CXX"; then
4814 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4815 echo "${ECHO_T}$BUILD_CXX" >&6; }
4817 { echo "$as_me:$LINENO: result: no" >&5
4818 echo "${ECHO_T}no" >&6; }
4822 if test -z "$BUILD_CXX"; then
4823 # Extract the first word of "g++", so it can be a program name with args.
4824 set dummy g++; ac_word=$2
4825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4827 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4828 echo $ECHO_N "(cached) $ECHO_C" >&6
4830 if test -n "$BUILD_CXX"; then
4831 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4837 test -z "$as_dir" && as_dir=.
4838 for ac_exec_ext in '' $ac_executable_extensions; do
4839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4840 ac_cv_prog_BUILD_CXX="g++"
4841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4850 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4851 if test -n "$BUILD_CXX"; then
4852 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4853 echo "${ECHO_T}$BUILD_CXX" >&6; }
4855 { echo "$as_me:$LINENO: result: no" >&5
4856 echo "${ECHO_T}no" >&6; }
4860 if test -z "$BUILD_CXX"; then
4861 # Extract the first word of "c++", so it can be a program name with args.
4862 set dummy c++; ac_word=$2
4863 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4865 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4866 echo $ECHO_N "(cached) $ECHO_C" >&6
4868 if test -n "$BUILD_CXX"; then
4869 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4876 test -z "$as_dir" && as_dir=.
4877 for ac_exec_ext in '' $ac_executable_extensions; do
4878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4879 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4880 ac_prog_rejected=yes
4883 ac_cv_prog_BUILD_CXX="c++"
4884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4891 if test $ac_prog_rejected = yes; then
4892 # We found a bogon in the path, so make sure we never use it.
4893 set dummy $ac_cv_prog_BUILD_CXX
4895 if test $# != 0; then
4896 # We chose a different compiler from the bogus one.
4897 # However, it has the same basename, so the bogon will be chosen
4898 # first if we set BUILD_CXX to just the basename; use the full file name.
4900 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4905 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4906 if test -n "$BUILD_CXX"; then
4907 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4908 echo "${ECHO_T}$BUILD_CXX" >&6; }
4910 { echo "$as_me:$LINENO: result: no" >&5
4911 echo "${ECHO_T}no" >&6; }
4918 LLVM_CROSS_COMPILING=0
4922 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4933 # Check whether --enable-libcpp was given.
4934 if test "${enable_libcpp+set}" = set; then
4935 enableval=$enable_libcpp;
4940 case "$enableval" in
4941 yes) ENABLE_LIBCPP=1
4945 default) ENABLE_LIBCPP=0
4947 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4948 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4949 { (exit 1); exit 1; }; } ;;
4952 # Check whether --enable-cxx11 was given.
4953 if test "${enable_cxx11+set}" = set; then
4954 enableval=$enable_cxx11;
4959 case "$enableval" in
4964 default) ENABLE_CXX11=0
4966 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
4967 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
4968 { (exit 1); exit 1; }; } ;;
4971 # Check whether --enable-optimized was given.
4972 if test "${enable_optimized+set}" = set; then
4973 enableval=$enable_optimized;
4978 if test ${enableval} = "no" ; then
4982 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4986 # Check whether --enable-profiling was given.
4987 if test "${enable_profiling+set}" = set; then
4988 enableval=$enable_profiling;
4993 if test ${enableval} = "no" ; then
4997 ENABLE_PROFILING=ENABLE_PROFILING=1
5001 # Check whether --enable-assertions was given.
5002 if test "${enable_assertions+set}" = set; then
5003 enableval=$enable_assertions;
5008 if test ${enableval} = "yes" ; then
5012 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5016 # Check whether --enable-werror was given.
5017 if test "${enable_werror+set}" = set; then
5018 enableval=$enable_werror;
5023 case "$enableval" in
5024 yes) ENABLE_WERROR=1
5028 default) ENABLE_WERROR=0
5030 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5031 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5032 { (exit 1); exit 1; }; } ;;
5035 # Check whether --enable-expensive-checks was given.
5036 if test "${enable_expensive_checks+set}" = set; then
5037 enableval=$enable_expensive_checks;
5042 if test ${enableval} = "yes" ; then
5043 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5045 EXPENSIVE_CHECKS=yes
5048 ENABLE_EXPENSIVE_CHECKS=
5054 # Check whether --enable-debug-runtime was given.
5055 if test "${enable_debug_runtime+set}" = set; then
5056 enableval=$enable_debug_runtime;
5061 if test ${enableval} = "no" ; then
5065 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5069 # Check whether --enable-debug-symbols was given.
5070 if test "${enable_debug_symbols+set}" = set; then
5071 enableval=$enable_debug_symbols;
5076 if test ${enableval} = "no" ; then
5080 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5084 # Check whether --enable-jit was given.
5085 if test "${enable_jit+set}" = set; then
5086 enableval=$enable_jit;
5091 if test ${enableval} = "no"
5096 case "$llvm_cv_target_arch" in
5097 x86) TARGET_HAS_JIT=1
5099 Sparc) TARGET_HAS_JIT=0
5101 PowerPC) TARGET_HAS_JIT=1
5103 x86_64) TARGET_HAS_JIT=1
5105 ARM) TARGET_HAS_JIT=1
5107 AArch64) TARGET_HAS_JIT=0
5109 Mips) TARGET_HAS_JIT=1
5111 XCore) TARGET_HAS_JIT=0
5113 MSP430) TARGET_HAS_JIT=0
5115 Hexagon) TARGET_HAS_JIT=0
5117 NVPTX) TARGET_HAS_JIT=0
5119 SystemZ) TARGET_HAS_JIT=1
5126 # Check whether --enable-docs was given.
5127 if test "${enable_docs+set}" = set; then
5128 enableval=$enable_docs;
5133 case "$enableval" in
5138 default) ENABLE_DOCS=1
5140 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5141 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5142 { (exit 1); exit 1; }; } ;;
5145 # Check whether --enable-doxygen was given.
5146 if test "${enable_doxygen+set}" = set; then
5147 enableval=$enable_doxygen;
5152 case "$enableval" in
5153 yes) ENABLE_DOXYGEN=1
5155 no) ENABLE_DOXYGEN=0
5157 default) ENABLE_DOXYGEN=0
5159 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5160 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5161 { (exit 1); exit 1; }; } ;;
5164 # Check whether --enable-threads was given.
5165 if test "${enable_threads+set}" = set; then
5166 enableval=$enable_threads;
5171 case "$enableval" in
5172 yes) ENABLE_THREADS=1
5174 no) ENABLE_THREADS=0
5176 default) ENABLE_THREADS=1
5178 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5179 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5180 { (exit 1); exit 1; }; } ;;
5183 cat >>confdefs.h <<_ACEOF
5184 #define ENABLE_THREADS $ENABLE_THREADS
5188 # Check whether --enable-pthreads was given.
5189 if test "${enable_pthreads+set}" = set; then
5190 enableval=$enable_pthreads;
5195 case "$enableval" in
5196 yes) ENABLE_PTHREADS=1
5198 no) ENABLE_PTHREADS=0
5200 default) ENABLE_PTHREADS=1
5202 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5203 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5204 { (exit 1); exit 1; }; } ;;
5207 # Check whether --enable-pic was given.
5208 if test "${enable_pic+set}" = set; then
5209 enableval=$enable_pic;
5214 case "$enableval" in
5219 default) ENABLE_PIC=1
5221 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5222 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5223 { (exit 1); exit 1; }; } ;;
5226 cat >>confdefs.h <<_ACEOF
5227 #define ENABLE_PIC $ENABLE_PIC
5231 # Check whether --enable-shared was given.
5232 if test "${enable_shared+set}" = set; then
5233 enableval=$enable_shared;
5238 case "$enableval" in
5239 yes) ENABLE_SHARED=1
5243 default) ENABLE_SHARED=0
5245 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5246 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5247 { (exit 1); exit 1; }; } ;;
5250 # Check whether --enable-embed-stdcxx was given.
5251 if test "${enable_embed_stdcxx+set}" = set; then
5252 enableval=$enable_embed_stdcxx;
5257 case "$enableval" in
5258 yes) ENABLE_EMBED_STDCXX=1
5260 no) ENABLE_EMBED_STDCXX=0
5262 default) ENABLE_EMBED_STDCXX=1
5264 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5265 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5266 { (exit 1); exit 1; }; } ;;
5269 # Check whether --enable-timestamps was given.
5270 if test "${enable_timestamps+set}" = set; then
5271 enableval=$enable_timestamps;
5276 case "$enableval" in
5277 yes) ENABLE_TIMESTAMPS=1
5279 no) ENABLE_TIMESTAMPS=0
5281 default) ENABLE_TIMESTAMPS=1
5283 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5284 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5285 { (exit 1); exit 1; }; } ;;
5288 cat >>confdefs.h <<_ACEOF
5289 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5294 # Check whether --enable-targets was given.
5295 if test "${enable_targets+set}" = set; then
5296 enableval=$enable_targets;
5301 if test "$enableval" = host-only ; then
5304 case "$enableval" in
5305 all) TARGETS_TO_BUILD="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600" ;;
5306 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5308 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5309 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5310 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5311 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5312 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5313 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5314 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5315 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5316 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5317 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5318 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5319 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5320 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5321 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5322 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5323 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5324 r600) TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5325 host) case "$llvm_cv_target_arch" in
5326 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5327 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5328 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5329 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5330 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5331 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5332 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5333 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5334 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5335 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5336 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5337 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5338 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5339 echo "$as_me: error: Can not set target to build" >&2;}
5340 { (exit 1); exit 1; }; } ;;
5342 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5343 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5344 { (exit 1); exit 1; }; } ;;
5349 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5352 # Determine whether we are building LLVM support for the native architecture.
5353 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5354 for a_target in $TARGETS_TO_BUILD; do
5355 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5357 cat >>confdefs.h <<_ACEOF
5358 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5361 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5362 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5363 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5364 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5365 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5366 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5368 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5369 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5372 cat >>confdefs.h <<_ACEOF
5373 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5377 cat >>confdefs.h <<_ACEOF
5378 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5382 cat >>confdefs.h <<_ACEOF
5383 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5387 cat >>confdefs.h <<_ACEOF
5388 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5391 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5393 cat >>confdefs.h <<_ACEOF
5394 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5398 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5400 cat >>confdefs.h <<_ACEOF
5401 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5408 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5409 # target feature def files.
5410 LLVM_ENUM_TARGETS=""
5411 LLVM_ENUM_ASM_PRINTERS=""
5412 LLVM_ENUM_ASM_PARSERS=""
5413 LLVM_ENUM_DISASSEMBLERS=""
5414 for target_to_build in $TARGETS_TO_BUILD; do
5415 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5416 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5417 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5419 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5420 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5422 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5423 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5432 # Check whether --with-optimize-option was given.
5433 if test "${with_optimize_option+set}" = set; then
5434 withval=$with_optimize_option;
5439 { echo "$as_me:$LINENO: checking optimization flags" >&5
5440 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5443 case "$llvm_cv_os_type" in
5444 FreeBSD) optimize_option=-O2 ;;
5445 MingW) optimize_option=-O2 ;;
5446 *) optimize_option=-O3 ;;
5448 *) optimize_option="$withval" ;;
5450 OPTIMIZE_OPTION=$optimize_option
5452 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5453 echo "${ECHO_T}$optimize_option" >&6; }
5456 # Check whether --with-extra-options was given.
5457 if test "${with_extra_options+set}" = set; then
5458 withval=$with_extra_options;
5464 default) EXTRA_OPTIONS= ;;
5465 *) EXTRA_OPTIONS=$withval ;;
5467 EXTRA_OPTIONS=$EXTRA_OPTIONS
5471 # Check whether --with-extra-ld-options was given.
5472 if test "${with_extra_ld_options+set}" = set; then
5473 withval=$with_extra_ld_options;
5479 default) EXTRA_LD_OPTIONS= ;;
5480 *) EXTRA_LD_OPTIONS=$withval ;;
5482 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5485 # Check whether --enable-bindings was given.
5486 if test "${enable_bindings+set}" = set; then
5487 enableval=$enable_bindings;
5492 BINDINGS_TO_BUILD=""
5493 case "$enableval" in
5494 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5495 all ) BINDINGS_TO_BUILD="ocaml" ;;
5496 none | no) BINDINGS_TO_BUILD="" ;;
5497 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5498 case "$a_binding" in
5499 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5500 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5501 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5502 { (exit 1); exit 1; }; } ;;
5509 # Check whether --with-ocaml-libdir was given.
5510 if test "${with_ocaml_libdir+set}" = set; then
5511 withval=$with_ocaml_libdir;
5517 auto) with_ocaml_libdir="$withval" ;;
5518 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5519 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5520 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5521 { (exit 1); exit 1; }; } ;;
5525 # Check whether --with-clang-resource-dir was given.
5526 if test "${with_clang_resource_dir+set}" = set; then
5527 withval=$with_clang_resource_dir;
5533 cat >>confdefs.h <<_ACEOF
5534 #define CLANG_RESOURCE_DIR "$withval"
5539 # Check whether --with-c-include-dirs was given.
5540 if test "${with_c_include_dirs+set}" = set; then
5541 withval=$with_c_include_dirs;
5547 cat >>confdefs.h <<_ACEOF
5548 #define C_INCLUDE_DIRS "$withval"
5552 # Clang normally uses the system c++ headers and libraries. With this option,
5553 # clang will use the ones provided by a gcc installation instead. This option should
5554 # be passed the same value that was used with --prefix when configuring gcc.
5556 # Check whether --with-gcc-toolchain was given.
5557 if test "${with_gcc_toolchain+set}" = set; then
5558 withval=$with_gcc_toolchain;
5564 cat >>confdefs.h <<_ACEOF
5565 #define GCC_INSTALL_PREFIX "$withval"
5570 # Check whether --with-binutils-include was given.
5571 if test "${with_binutils_include+set}" = set; then
5572 withval=$with_binutils_include;
5578 default) WITH_BINUTILS_INCDIR=default ;;
5579 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5580 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5581 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5582 { (exit 1); exit 1; }; } ;;
5584 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5585 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5587 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5588 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5589 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5590 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5591 { (exit 1); exit 1; }; };
5596 # Check whether --with-bug-report-url was given.
5597 if test "${with_bug_report_url+set}" = set; then
5598 withval=$with_bug_report_url;
5600 withval="http://llvm.org/bugs/"
5604 cat >>confdefs.h <<_ACEOF
5605 #define BUG_REPORT_URL "$withval"
5609 # Check whether --enable-terminfo was given.
5610 if test "${enable_terminfo+set}" = set; then
5611 enableval=$enable_terminfo; case "$enableval" in
5612 yes) llvm_cv_enable_terminfo="yes" ;;
5613 no) llvm_cv_enable_terminfo="no" ;;
5614 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
5615 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
5616 { (exit 1); exit 1; }; } ;;
5619 llvm_cv_enable_terminfo="yes"
5623 # Check whether --enable-libffi was given.
5624 if test "${enable_libffi+set}" = set; then
5625 enableval=$enable_libffi; case "$enableval" in
5626 yes) llvm_cv_enable_libffi="yes" ;;
5627 no) llvm_cv_enable_libffi="no" ;;
5628 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5629 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5630 { (exit 1); exit 1; }; } ;;
5633 llvm_cv_enable_libffi=no
5638 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5639 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5640 if test "${lt_cv_path_NM+set}" = set; then
5641 echo $ECHO_N "(cached) $ECHO_C" >&6
5643 if test -n "$NM"; then
5644 # Let the user override the test.
5647 lt_nm_to_check="${ac_tool_prefix}nm"
5648 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5649 lt_nm_to_check="$lt_nm_to_check nm"
5651 for lt_tmp_nm in $lt_nm_to_check; do
5652 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5653 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5655 test -z "$ac_dir" && ac_dir=.
5656 tmp_nm="$ac_dir/$lt_tmp_nm"
5657 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5658 # Check to see if the nm accepts a BSD-compat flag.
5659 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5660 # nm: unknown option "B" ignored
5661 # Tru64's nm complains that /dev/null is an invalid object file
5662 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5663 */dev/null* | *'Invalid file or object type'*)
5664 lt_cv_path_NM="$tmp_nm -B"
5668 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5670 lt_cv_path_NM="$tmp_nm -p"
5674 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5675 continue # so that we can try to find one that supports BSD flags
5684 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5687 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5688 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5693 { echo "$as_me:$LINENO: checking for GNU make" >&5
5694 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5695 if test "${llvm_cv_gnu_make_command+set}" = set; then
5696 echo $ECHO_N "(cached) $ECHO_C" >&6
5698 llvm_cv_gnu_make_command=''
5699 for a in "$MAKE" make gmake gnumake ; do
5700 if test -z "$a" ; then continue ; fi ;
5701 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5703 llvm_cv_gnu_make_command=$a ;
5708 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5709 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5710 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5714 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5715 echo "${ECHO_T}\"Not found\"" >&6; };
5719 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5720 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5722 if test "$LN_S" = "ln -s"; then
5723 { echo "$as_me:$LINENO: result: yes" >&5
5724 echo "${ECHO_T}yes" >&6; }
5726 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5727 echo "${ECHO_T}no, using $LN_S" >&6; }
5730 # Extract the first word of "cmp", so it can be a program name with args.
5731 set dummy cmp; ac_word=$2
5732 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5734 if test "${ac_cv_path_CMP+set}" = set; then
5735 echo $ECHO_N "(cached) $ECHO_C" >&6
5739 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5746 test -z "$as_dir" && as_dir=.
5747 for ac_exec_ext in '' $ac_executable_extensions; do
5748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5749 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5757 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5762 if test -n "$CMP"; then
5763 { echo "$as_me:$LINENO: result: $CMP" >&5
5764 echo "${ECHO_T}$CMP" >&6; }
5766 { echo "$as_me:$LINENO: result: no" >&5
5767 echo "${ECHO_T}no" >&6; }
5771 # Extract the first word of "cp", so it can be a program name with args.
5772 set dummy cp; ac_word=$2
5773 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5775 if test "${ac_cv_path_CP+set}" = set; then
5776 echo $ECHO_N "(cached) $ECHO_C" >&6
5780 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5787 test -z "$as_dir" && as_dir=.
5788 for ac_exec_ext in '' $ac_executable_extensions; do
5789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5790 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5798 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5803 if test -n "$CP"; then
5804 { echo "$as_me:$LINENO: result: $CP" >&5
5805 echo "${ECHO_T}$CP" >&6; }
5807 { echo "$as_me:$LINENO: result: no" >&5
5808 echo "${ECHO_T}no" >&6; }
5812 # Extract the first word of "date", so it can be a program name with args.
5813 set dummy date; ac_word=$2
5814 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5816 if test "${ac_cv_path_DATE+set}" = set; then
5817 echo $ECHO_N "(cached) $ECHO_C" >&6
5821 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5828 test -z "$as_dir" && as_dir=.
5829 for ac_exec_ext in '' $ac_executable_extensions; do
5830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5831 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5839 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5843 DATE=$ac_cv_path_DATE
5844 if test -n "$DATE"; then
5845 { echo "$as_me:$LINENO: result: $DATE" >&5
5846 echo "${ECHO_T}$DATE" >&6; }
5848 { echo "$as_me:$LINENO: result: no" >&5
5849 echo "${ECHO_T}no" >&6; }
5853 # Extract the first word of "find", so it can be a program name with args.
5854 set dummy find; ac_word=$2
5855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5857 if test "${ac_cv_path_FIND+set}" = set; then
5858 echo $ECHO_N "(cached) $ECHO_C" >&6
5862 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5869 test -z "$as_dir" && as_dir=.
5870 for ac_exec_ext in '' $ac_executable_extensions; do
5871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5872 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5880 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5884 FIND=$ac_cv_path_FIND
5885 if test -n "$FIND"; then
5886 { echo "$as_me:$LINENO: result: $FIND" >&5
5887 echo "${ECHO_T}$FIND" >&6; }
5889 { echo "$as_me:$LINENO: result: no" >&5
5890 echo "${ECHO_T}no" >&6; }
5894 # Extract the first word of "grep", so it can be a program name with args.
5895 set dummy grep; ac_word=$2
5896 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5898 if test "${ac_cv_path_GREP+set}" = set; then
5899 echo $ECHO_N "(cached) $ECHO_C" >&6
5903 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5910 test -z "$as_dir" && as_dir=.
5911 for ac_exec_ext in '' $ac_executable_extensions; do
5912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5913 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5921 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5925 GREP=$ac_cv_path_GREP
5926 if test -n "$GREP"; then
5927 { echo "$as_me:$LINENO: result: $GREP" >&5
5928 echo "${ECHO_T}$GREP" >&6; }
5930 { echo "$as_me:$LINENO: result: no" >&5
5931 echo "${ECHO_T}no" >&6; }
5935 # Extract the first word of "mkdir", so it can be a program name with args.
5936 set dummy mkdir; ac_word=$2
5937 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5939 if test "${ac_cv_path_MKDIR+set}" = set; then
5940 echo $ECHO_N "(cached) $ECHO_C" >&6
5944 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5951 test -z "$as_dir" && as_dir=.
5952 for ac_exec_ext in '' $ac_executable_extensions; do
5953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5954 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5962 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5966 MKDIR=$ac_cv_path_MKDIR
5967 if test -n "$MKDIR"; then
5968 { echo "$as_me:$LINENO: result: $MKDIR" >&5
5969 echo "${ECHO_T}$MKDIR" >&6; }
5971 { echo "$as_me:$LINENO: result: no" >&5
5972 echo "${ECHO_T}no" >&6; }
5976 # Extract the first word of "mv", so it can be a program name with args.
5977 set dummy mv; ac_word=$2
5978 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5980 if test "${ac_cv_path_MV+set}" = set; then
5981 echo $ECHO_N "(cached) $ECHO_C" >&6
5985 ac_cv_path_MV="$MV" # Let the user override the test with a path.
5988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5992 test -z "$as_dir" && as_dir=.
5993 for ac_exec_ext in '' $ac_executable_extensions; do
5994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5995 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6003 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6008 if test -n "$MV"; then
6009 { echo "$as_me:$LINENO: result: $MV" >&5
6010 echo "${ECHO_T}$MV" >&6; }
6012 { echo "$as_me:$LINENO: result: no" >&5
6013 echo "${ECHO_T}no" >&6; }
6017 if test -n "$ac_tool_prefix"; then
6018 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6019 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6020 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6022 if test "${ac_cv_prog_RANLIB+set}" = set; then
6023 echo $ECHO_N "(cached) $ECHO_C" >&6
6025 if test -n "$RANLIB"; then
6026 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6032 test -z "$as_dir" && as_dir=.
6033 for ac_exec_ext in '' $ac_executable_extensions; do
6034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6035 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6045 RANLIB=$ac_cv_prog_RANLIB
6046 if test -n "$RANLIB"; then
6047 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6048 echo "${ECHO_T}$RANLIB" >&6; }
6050 { echo "$as_me:$LINENO: result: no" >&5
6051 echo "${ECHO_T}no" >&6; }
6056 if test -z "$ac_cv_prog_RANLIB"; then
6057 ac_ct_RANLIB=$RANLIB
6058 # Extract the first word of "ranlib", so it can be a program name with args.
6059 set dummy ranlib; ac_word=$2
6060 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6062 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6063 echo $ECHO_N "(cached) $ECHO_C" >&6
6065 if test -n "$ac_ct_RANLIB"; then
6066 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6072 test -z "$as_dir" && as_dir=.
6073 for ac_exec_ext in '' $ac_executable_extensions; do
6074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6075 ac_cv_prog_ac_ct_RANLIB="ranlib"
6076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6085 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6086 if test -n "$ac_ct_RANLIB"; then
6087 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6088 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6090 { echo "$as_me:$LINENO: result: no" >&5
6091 echo "${ECHO_T}no" >&6; }
6094 if test "x$ac_ct_RANLIB" = x; then
6097 case $cross_compiling:$ac_tool_warned in
6099 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6100 whose name does not start with the host triplet. If you think this
6101 configuration is useful to you, please write to autoconf@gnu.org." >&5
6102 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6103 whose name does not start with the host triplet. If you think this
6104 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6105 ac_tool_warned=yes ;;
6107 RANLIB=$ac_ct_RANLIB
6110 RANLIB="$ac_cv_prog_RANLIB"
6113 if test -n "$ac_tool_prefix"; then
6114 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6115 set dummy ${ac_tool_prefix}ar; ac_word=$2
6116 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6118 if test "${ac_cv_prog_AR+set}" = set; then
6119 echo $ECHO_N "(cached) $ECHO_C" >&6
6121 if test -n "$AR"; then
6122 ac_cv_prog_AR="$AR" # Let the user override the test.
6124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6128 test -z "$as_dir" && as_dir=.
6129 for ac_exec_ext in '' $ac_executable_extensions; do
6130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6131 ac_cv_prog_AR="${ac_tool_prefix}ar"
6132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6142 if test -n "$AR"; then
6143 { echo "$as_me:$LINENO: result: $AR" >&5
6144 echo "${ECHO_T}$AR" >&6; }
6146 { echo "$as_me:$LINENO: result: no" >&5
6147 echo "${ECHO_T}no" >&6; }
6152 if test -z "$ac_cv_prog_AR"; then
6154 # Extract the first word of "ar", so it can be a program name with args.
6155 set dummy ar; ac_word=$2
6156 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6158 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6159 echo $ECHO_N "(cached) $ECHO_C" >&6
6161 if test -n "$ac_ct_AR"; then
6162 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6168 test -z "$as_dir" && as_dir=.
6169 for ac_exec_ext in '' $ac_executable_extensions; do
6170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6171 ac_cv_prog_ac_ct_AR="ar"
6172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6181 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6182 if test -n "$ac_ct_AR"; then
6183 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6184 echo "${ECHO_T}$ac_ct_AR" >&6; }
6186 { echo "$as_me:$LINENO: result: no" >&5
6187 echo "${ECHO_T}no" >&6; }
6190 if test "x$ac_ct_AR" = x; then
6193 case $cross_compiling:$ac_tool_warned in
6195 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6196 whose name does not start with the host triplet. If you think this
6197 configuration is useful to you, please write to autoconf@gnu.org." >&5
6198 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6199 whose name does not start with the host triplet. If you think this
6200 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6201 ac_tool_warned=yes ;;
6209 # Extract the first word of "rm", so it can be a program name with args.
6210 set dummy rm; ac_word=$2
6211 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6213 if test "${ac_cv_path_RM+set}" = set; then
6214 echo $ECHO_N "(cached) $ECHO_C" >&6
6218 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6225 test -z "$as_dir" && as_dir=.
6226 for ac_exec_ext in '' $ac_executable_extensions; do
6227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6228 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6236 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6241 if test -n "$RM"; then
6242 { echo "$as_me:$LINENO: result: $RM" >&5
6243 echo "${ECHO_T}$RM" >&6; }
6245 { echo "$as_me:$LINENO: result: no" >&5
6246 echo "${ECHO_T}no" >&6; }
6250 # Extract the first word of "sed", so it can be a program name with args.
6251 set dummy sed; ac_word=$2
6252 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6254 if test "${ac_cv_path_SED+set}" = set; then
6255 echo $ECHO_N "(cached) $ECHO_C" >&6
6259 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6266 test -z "$as_dir" && as_dir=.
6267 for ac_exec_ext in '' $ac_executable_extensions; do
6268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6269 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6277 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6282 if test -n "$SED"; then
6283 { echo "$as_me:$LINENO: result: $SED" >&5
6284 echo "${ECHO_T}$SED" >&6; }
6286 { echo "$as_me:$LINENO: result: no" >&5
6287 echo "${ECHO_T}no" >&6; }
6291 # Extract the first word of "tar", so it can be a program name with args.
6292 set dummy tar; ac_word=$2
6293 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6295 if test "${ac_cv_path_TAR+set}" = set; then
6296 echo $ECHO_N "(cached) $ECHO_C" >&6
6300 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6307 test -z "$as_dir" && as_dir=.
6308 for ac_exec_ext in '' $ac_executable_extensions; do
6309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6310 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6318 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6323 if test -n "$TAR"; then
6324 { echo "$as_me:$LINENO: result: $TAR" >&5
6325 echo "${ECHO_T}$TAR" >&6; }
6327 { echo "$as_me:$LINENO: result: no" >&5
6328 echo "${ECHO_T}no" >&6; }
6332 # Extract the first word of "pwd", so it can be a program name with args.
6333 set dummy pwd; ac_word=$2
6334 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6336 if test "${ac_cv_path_BINPWD+set}" = set; then
6337 echo $ECHO_N "(cached) $ECHO_C" >&6
6341 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6348 test -z "$as_dir" && as_dir=.
6349 for ac_exec_ext in '' $ac_executable_extensions; do
6350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6351 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6359 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6363 BINPWD=$ac_cv_path_BINPWD
6364 if test -n "$BINPWD"; then
6365 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6366 echo "${ECHO_T}$BINPWD" >&6; }
6368 { echo "$as_me:$LINENO: result: no" >&5
6369 echo "${ECHO_T}no" >&6; }
6374 # Extract the first word of "Graphviz", so it can be a program name with args.
6375 set dummy Graphviz; ac_word=$2
6376 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6378 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6379 echo $ECHO_N "(cached) $ECHO_C" >&6
6383 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6390 test -z "$as_dir" && as_dir=.
6391 for ac_exec_ext in '' $ac_executable_extensions; do
6392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6393 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6401 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6405 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6406 if test -n "$GRAPHVIZ"; then
6407 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6408 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6410 { echo "$as_me:$LINENO: result: no" >&5
6411 echo "${ECHO_T}no" >&6; }
6415 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6417 cat >>confdefs.h <<\_ACEOF
6418 #define HAVE_GRAPHVIZ 1
6421 if test "$llvm_cv_os_type" = "MingW" ; then
6422 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6425 cat >>confdefs.h <<_ACEOF
6426 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6430 # Extract the first word of "dot", so it can be a program name with args.
6431 set dummy dot; ac_word=$2
6432 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6434 if test "${ac_cv_path_DOT+set}" = set; then
6435 echo $ECHO_N "(cached) $ECHO_C" >&6
6439 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6446 test -z "$as_dir" && as_dir=.
6447 for ac_exec_ext in '' $ac_executable_extensions; do
6448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6449 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6457 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6462 if test -n "$DOT"; then
6463 { echo "$as_me:$LINENO: result: $DOT" >&5
6464 echo "${ECHO_T}$DOT" >&6; }
6466 { echo "$as_me:$LINENO: result: no" >&5
6467 echo "${ECHO_T}no" >&6; }
6471 if test "$DOT" != "echo dot" ; then
6473 cat >>confdefs.h <<\_ACEOF
6477 if test "$llvm_cv_os_type" = "MingW" ; then
6478 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6481 cat >>confdefs.h <<_ACEOF
6482 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6486 # Extract the first word of "fdp", so it can be a program name with args.
6487 set dummy fdp; ac_word=$2
6488 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6490 if test "${ac_cv_path_FDP+set}" = set; then
6491 echo $ECHO_N "(cached) $ECHO_C" >&6
6495 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6502 test -z "$as_dir" && as_dir=.
6503 for ac_exec_ext in '' $ac_executable_extensions; do
6504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6505 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6513 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6518 if test -n "$FDP"; then
6519 { echo "$as_me:$LINENO: result: $FDP" >&5
6520 echo "${ECHO_T}$FDP" >&6; }
6522 { echo "$as_me:$LINENO: result: no" >&5
6523 echo "${ECHO_T}no" >&6; }
6527 if test "$FDP" != "echo fdp" ; then
6529 cat >>confdefs.h <<\_ACEOF
6533 if test "$llvm_cv_os_type" = "MingW" ; then
6534 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6537 cat >>confdefs.h <<_ACEOF
6538 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6542 # Extract the first word of "neato", so it can be a program name with args.
6543 set dummy neato; ac_word=$2
6544 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6546 if test "${ac_cv_path_NEATO+set}" = set; then
6547 echo $ECHO_N "(cached) $ECHO_C" >&6
6551 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6558 test -z "$as_dir" && as_dir=.
6559 for ac_exec_ext in '' $ac_executable_extensions; do
6560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6561 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6569 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6573 NEATO=$ac_cv_path_NEATO
6574 if test -n "$NEATO"; then
6575 { echo "$as_me:$LINENO: result: $NEATO" >&5
6576 echo "${ECHO_T}$NEATO" >&6; }
6578 { echo "$as_me:$LINENO: result: no" >&5
6579 echo "${ECHO_T}no" >&6; }
6583 if test "$NEATO" != "echo neato" ; then
6585 cat >>confdefs.h <<\_ACEOF
6586 #define HAVE_NEATO 1
6589 if test "$llvm_cv_os_type" = "MingW" ; then
6590 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6593 cat >>confdefs.h <<_ACEOF
6594 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6598 # Extract the first word of "twopi", so it can be a program name with args.
6599 set dummy twopi; ac_word=$2
6600 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6602 if test "${ac_cv_path_TWOPI+set}" = set; then
6603 echo $ECHO_N "(cached) $ECHO_C" >&6
6607 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6614 test -z "$as_dir" && as_dir=.
6615 for ac_exec_ext in '' $ac_executable_extensions; do
6616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6617 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6625 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6629 TWOPI=$ac_cv_path_TWOPI
6630 if test -n "$TWOPI"; then
6631 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6632 echo "${ECHO_T}$TWOPI" >&6; }
6634 { echo "$as_me:$LINENO: result: no" >&5
6635 echo "${ECHO_T}no" >&6; }
6639 if test "$TWOPI" != "echo twopi" ; then
6641 cat >>confdefs.h <<\_ACEOF
6642 #define HAVE_TWOPI 1
6645 if test "$llvm_cv_os_type" = "MingW" ; then
6646 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6649 cat >>confdefs.h <<_ACEOF
6650 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6654 # Extract the first word of "circo", so it can be a program name with args.
6655 set dummy circo; ac_word=$2
6656 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6658 if test "${ac_cv_path_CIRCO+set}" = set; then
6659 echo $ECHO_N "(cached) $ECHO_C" >&6
6663 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6670 test -z "$as_dir" && as_dir=.
6671 for ac_exec_ext in '' $ac_executable_extensions; do
6672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6673 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6681 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6685 CIRCO=$ac_cv_path_CIRCO
6686 if test -n "$CIRCO"; then
6687 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6688 echo "${ECHO_T}$CIRCO" >&6; }
6690 { echo "$as_me:$LINENO: result: no" >&5
6691 echo "${ECHO_T}no" >&6; }
6695 if test "$CIRCO" != "echo circo" ; then
6697 cat >>confdefs.h <<\_ACEOF
6698 #define HAVE_CIRCO 1
6701 if test "$llvm_cv_os_type" = "MingW" ; then
6702 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6705 cat >>confdefs.h <<_ACEOF
6706 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6710 for ac_prog in gv gsview32
6712 # Extract the first word of "$ac_prog", so it can be a program name with args.
6713 set dummy $ac_prog; ac_word=$2
6714 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6716 if test "${ac_cv_path_GV+set}" = set; then
6717 echo $ECHO_N "(cached) $ECHO_C" >&6
6721 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6728 test -z "$as_dir" && as_dir=.
6729 for ac_exec_ext in '' $ac_executable_extensions; do
6730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6731 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6743 if test -n "$GV"; then
6744 { echo "$as_me:$LINENO: result: $GV" >&5
6745 echo "${ECHO_T}$GV" >&6; }
6747 { echo "$as_me:$LINENO: result: no" >&5
6748 echo "${ECHO_T}no" >&6; }
6752 test -n "$GV" && break
6754 test -n "$GV" || GV="echo gv"
6756 if test "$GV" != "echo gv" ; then
6758 cat >>confdefs.h <<\_ACEOF
6762 if test "$llvm_cv_os_type" = "MingW" ; then
6763 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6766 cat >>confdefs.h <<_ACEOF
6767 #define LLVM_PATH_GV "$GV${EXEEXT}"
6771 # Extract the first word of "dotty", so it can be a program name with args.
6772 set dummy dotty; ac_word=$2
6773 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6775 if test "${ac_cv_path_DOTTY+set}" = set; then
6776 echo $ECHO_N "(cached) $ECHO_C" >&6
6780 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6787 test -z "$as_dir" && as_dir=.
6788 for ac_exec_ext in '' $ac_executable_extensions; do
6789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6790 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6798 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6802 DOTTY=$ac_cv_path_DOTTY
6803 if test -n "$DOTTY"; then
6804 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6805 echo "${ECHO_T}$DOTTY" >&6; }
6807 { echo "$as_me:$LINENO: result: no" >&5
6808 echo "${ECHO_T}no" >&6; }
6812 if test "$DOTTY" != "echo dotty" ; then
6814 cat >>confdefs.h <<\_ACEOF
6815 #define HAVE_DOTTY 1
6818 if test "$llvm_cv_os_type" = "MingW" ; then
6819 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6822 cat >>confdefs.h <<_ACEOF
6823 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6827 # Extract the first word of "xdot.py", so it can be a program name with args.
6828 set dummy xdot.py; ac_word=$2
6829 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6831 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6832 echo $ECHO_N "(cached) $ECHO_C" >&6
6836 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6843 test -z "$as_dir" && as_dir=.
6844 for ac_exec_ext in '' $ac_executable_extensions; do
6845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6846 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6854 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6858 XDOT_PY=$ac_cv_path_XDOT_PY
6859 if test -n "$XDOT_PY"; then
6860 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6861 echo "${ECHO_T}$XDOT_PY" >&6; }
6863 { echo "$as_me:$LINENO: result: no" >&5
6864 echo "${ECHO_T}no" >&6; }
6868 if test "$XDOT_PY" != "echo xdot.py" ; then
6870 cat >>confdefs.h <<\_ACEOF
6871 #define HAVE_XDOT_PY 1
6874 if test "$llvm_cv_os_type" = "MingW" ; then
6875 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6878 cat >>confdefs.h <<_ACEOF
6879 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6884 # Find a good install program. We prefer a C program (faster),
6885 # so one script is as good as another. But avoid the broken or
6886 # incompatible versions:
6887 # SysV /etc/install, /usr/sbin/install
6888 # SunOS /usr/etc/install
6889 # IRIX /sbin/install
6891 # AmigaOS /C/install, which installs bootblocks on floppy discs
6892 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6893 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6894 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6895 # OS/2's system install, which has a completely different semantic
6896 # ./install, which can be erroneously created by make from ./install.sh.
6897 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6898 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6899 if test -z "$INSTALL"; then
6900 if test "${ac_cv_path_install+set}" = set; then
6901 echo $ECHO_N "(cached) $ECHO_C" >&6
6903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6907 test -z "$as_dir" && as_dir=.
6908 # Account for people who put trailing slashes in PATH elements.
6910 ./ | .// | /cC/* | \
6911 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6912 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6915 # OSF1 and SCO ODT 3.0 have their own names for install.
6916 # Don't use installbsd from OSF since it installs stuff as root
6918 for ac_prog in ginstall scoinst install; do
6919 for ac_exec_ext in '' $ac_executable_extensions; do
6920 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6921 if test $ac_prog = install &&
6922 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6923 # AIX install. It has an incompatible calling convention.
6925 elif test $ac_prog = install &&
6926 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6927 # program-specific install script used by HP pwplus--don't use.
6930 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6943 if test "${ac_cv_path_install+set}" = set; then
6944 INSTALL=$ac_cv_path_install
6946 # As a last resort, use the slow shell script. Don't cache a
6947 # value for INSTALL within a source directory, because that will
6948 # break other packages using the cache if that directory is
6949 # removed, or if the value is a relative name.
6950 INSTALL=$ac_install_sh
6953 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6954 echo "${ECHO_T}$INSTALL" >&6; }
6956 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6957 # It thinks the first close brace ends the variable substitution.
6958 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6960 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6962 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6965 [\\/$]* | ?:[\\/]* ) ;;
6966 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6969 # Extract the first word of "bzip2", so it can be a program name with args.
6970 set dummy bzip2; ac_word=$2
6971 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6973 if test "${ac_cv_path_BZIP2+set}" = set; then
6974 echo $ECHO_N "(cached) $ECHO_C" >&6
6978 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6985 test -z "$as_dir" && as_dir=.
6986 for ac_exec_ext in '' $ac_executable_extensions; do
6987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6988 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6999 BZIP2=$ac_cv_path_BZIP2
7000 if test -n "$BZIP2"; then
7001 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7002 echo "${ECHO_T}$BZIP2" >&6; }
7004 { echo "$as_me:$LINENO: result: no" >&5
7005 echo "${ECHO_T}no" >&6; }
7009 # Extract the first word of "cat", so it can be a program name with args.
7010 set dummy cat; ac_word=$2
7011 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7013 if test "${ac_cv_path_CAT+set}" = set; then
7014 echo $ECHO_N "(cached) $ECHO_C" >&6
7018 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7025 test -z "$as_dir" && as_dir=.
7026 for ac_exec_ext in '' $ac_executable_extensions; do
7027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7028 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7040 if test -n "$CAT"; then
7041 { echo "$as_me:$LINENO: result: $CAT" >&5
7042 echo "${ECHO_T}$CAT" >&6; }
7044 { echo "$as_me:$LINENO: result: no" >&5
7045 echo "${ECHO_T}no" >&6; }
7049 # Extract the first word of "doxygen", so it can be a program name with args.
7050 set dummy doxygen; ac_word=$2
7051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7053 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7054 echo $ECHO_N "(cached) $ECHO_C" >&6
7058 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7065 test -z "$as_dir" && as_dir=.
7066 for ac_exec_ext in '' $ac_executable_extensions; do
7067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7068 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7079 DOXYGEN=$ac_cv_path_DOXYGEN
7080 if test -n "$DOXYGEN"; then
7081 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7082 echo "${ECHO_T}$DOXYGEN" >&6; }
7084 { echo "$as_me:$LINENO: result: no" >&5
7085 echo "${ECHO_T}no" >&6; }
7089 # Extract the first word of "groff", so it can be a program name with args.
7090 set dummy groff; ac_word=$2
7091 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7093 if test "${ac_cv_path_GROFF+set}" = set; then
7094 echo $ECHO_N "(cached) $ECHO_C" >&6
7098 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7105 test -z "$as_dir" && as_dir=.
7106 for ac_exec_ext in '' $ac_executable_extensions; do
7107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7108 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7119 GROFF=$ac_cv_path_GROFF
7120 if test -n "$GROFF"; then
7121 { echo "$as_me:$LINENO: result: $GROFF" >&5
7122 echo "${ECHO_T}$GROFF" >&6; }
7124 { echo "$as_me:$LINENO: result: no" >&5
7125 echo "${ECHO_T}no" >&6; }
7129 # Extract the first word of "gzip", so it can be a program name with args.
7130 set dummy gzip; ac_word=$2
7131 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7133 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7134 echo $ECHO_N "(cached) $ECHO_C" >&6
7138 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7145 test -z "$as_dir" && as_dir=.
7146 for ac_exec_ext in '' $ac_executable_extensions; do
7147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7148 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7159 GZIPBIN=$ac_cv_path_GZIPBIN
7160 if test -n "$GZIPBIN"; then
7161 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7162 echo "${ECHO_T}$GZIPBIN" >&6; }
7164 { echo "$as_me:$LINENO: result: no" >&5
7165 echo "${ECHO_T}no" >&6; }
7169 # Extract the first word of "pod2html", so it can be a program name with args.
7170 set dummy pod2html; ac_word=$2
7171 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7173 if test "${ac_cv_path_POD2HTML+set}" = set; then
7174 echo $ECHO_N "(cached) $ECHO_C" >&6
7178 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7185 test -z "$as_dir" && as_dir=.
7186 for ac_exec_ext in '' $ac_executable_extensions; do
7187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7188 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7199 POD2HTML=$ac_cv_path_POD2HTML
7200 if test -n "$POD2HTML"; then
7201 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7202 echo "${ECHO_T}$POD2HTML" >&6; }
7204 { echo "$as_me:$LINENO: result: no" >&5
7205 echo "${ECHO_T}no" >&6; }
7209 # Extract the first word of "pod2man", so it can be a program name with args.
7210 set dummy pod2man; ac_word=$2
7211 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7213 if test "${ac_cv_path_POD2MAN+set}" = set; then
7214 echo $ECHO_N "(cached) $ECHO_C" >&6
7218 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7225 test -z "$as_dir" && as_dir=.
7226 for ac_exec_ext in '' $ac_executable_extensions; do
7227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7228 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7239 POD2MAN=$ac_cv_path_POD2MAN
7240 if test -n "$POD2MAN"; then
7241 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7242 echo "${ECHO_T}$POD2MAN" >&6; }
7244 { echo "$as_me:$LINENO: result: no" >&5
7245 echo "${ECHO_T}no" >&6; }
7249 # Extract the first word of "pdfroff", so it can be a program name with args.
7250 set dummy pdfroff; ac_word=$2
7251 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7253 if test "${ac_cv_path_PDFROFF+set}" = set; then
7254 echo $ECHO_N "(cached) $ECHO_C" >&6
7258 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7265 test -z "$as_dir" && as_dir=.
7266 for ac_exec_ext in '' $ac_executable_extensions; do
7267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7268 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7279 PDFROFF=$ac_cv_path_PDFROFF
7280 if test -n "$PDFROFF"; then
7281 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7282 echo "${ECHO_T}$PDFROFF" >&6; }
7284 { echo "$as_me:$LINENO: result: no" >&5
7285 echo "${ECHO_T}no" >&6; }
7289 # Extract the first word of "runtest", so it can be a program name with args.
7290 set dummy runtest; ac_word=$2
7291 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7293 if test "${ac_cv_path_RUNTEST+set}" = set; then
7294 echo $ECHO_N "(cached) $ECHO_C" >&6
7298 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7305 test -z "$as_dir" && as_dir=.
7306 for ac_exec_ext in '' $ac_executable_extensions; do
7307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7308 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7319 RUNTEST=$ac_cv_path_RUNTEST
7320 if test -n "$RUNTEST"; then
7321 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7322 echo "${ECHO_T}$RUNTEST" >&6; }
7324 { echo "$as_me:$LINENO: result: no" >&5
7325 echo "${ECHO_T}no" >&6; }
7331 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7332 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7334 # Check whether --with-tclinclude was given.
7335 if test "${with_tclinclude+set}" = set; then
7336 withval=$with_tclinclude; with_tclinclude=${withval}
7341 if test "${ac_cv_path_tclsh+set}" = set; then
7342 echo $ECHO_N "(cached) $ECHO_C" >&6
7345 if test x"${with_tclinclude}" != x ; then
7346 if test -f ${with_tclinclude}/tclsh ; then
7347 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7348 elif test -f ${with_tclinclude}/src/tclsh ; then
7349 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7351 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7352 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7353 { (exit 1); exit 1; }; }
7359 if test x"${ac_cv_path_tclsh}" = x ; then
7360 { echo "$as_me:$LINENO: result: none" >&5
7361 echo "${ECHO_T}none" >&6; }
7362 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
7364 # Extract the first word of "$ac_prog", so it can be a program name with args.
7365 set dummy $ac_prog; ac_word=$2
7366 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7368 if test "${ac_cv_path_TCLSH+set}" = set; then
7369 echo $ECHO_N "(cached) $ECHO_C" >&6
7373 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7380 test -z "$as_dir" && as_dir=.
7381 for ac_exec_ext in '' $ac_executable_extensions; do
7382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7383 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7394 TCLSH=$ac_cv_path_TCLSH
7395 if test -n "$TCLSH"; then
7396 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7397 echo "${ECHO_T}$TCLSH" >&6; }
7399 { echo "$as_me:$LINENO: result: no" >&5
7400 echo "${ECHO_T}no" >&6; }
7404 test -n "$TCLSH" && break
7407 if test x"${TCLSH}" = x ; then
7408 ac_cv_path_tclsh='';
7410 ac_cv_path_tclsh="${TCLSH}";
7413 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7414 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7415 TCLSH="${ac_cv_path_tclsh}"
7419 # Extract the first word of "zip", so it can be a program name with args.
7420 set dummy zip; ac_word=$2
7421 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7423 if test "${ac_cv_path_ZIP+set}" = set; then
7424 echo $ECHO_N "(cached) $ECHO_C" >&6
7428 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7435 test -z "$as_dir" && as_dir=.
7436 for ac_exec_ext in '' $ac_executable_extensions; do
7437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7438 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7450 if test -n "$ZIP"; then
7451 { echo "$as_me:$LINENO: result: $ZIP" >&5
7452 echo "${ECHO_T}$ZIP" >&6; }
7454 { echo "$as_me:$LINENO: result: no" >&5
7455 echo "${ECHO_T}no" >&6; }
7459 for ac_prog in ocamlc
7461 # Extract the first word of "$ac_prog", so it can be a program name with args.
7462 set dummy $ac_prog; ac_word=$2
7463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7465 if test "${ac_cv_path_OCAMLC+set}" = set; then
7466 echo $ECHO_N "(cached) $ECHO_C" >&6
7470 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7477 test -z "$as_dir" && as_dir=.
7478 for ac_exec_ext in '' $ac_executable_extensions; do
7479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7480 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7491 OCAMLC=$ac_cv_path_OCAMLC
7492 if test -n "$OCAMLC"; then
7493 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7494 echo "${ECHO_T}$OCAMLC" >&6; }
7496 { echo "$as_me:$LINENO: result: no" >&5
7497 echo "${ECHO_T}no" >&6; }
7501 test -n "$OCAMLC" && break
7504 for ac_prog in ocamlopt
7506 # Extract the first word of "$ac_prog", so it can be a program name with args.
7507 set dummy $ac_prog; ac_word=$2
7508 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7510 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7511 echo $ECHO_N "(cached) $ECHO_C" >&6
7515 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7522 test -z "$as_dir" && as_dir=.
7523 for ac_exec_ext in '' $ac_executable_extensions; do
7524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7525 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7536 OCAMLOPT=$ac_cv_path_OCAMLOPT
7537 if test -n "$OCAMLOPT"; then
7538 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7539 echo "${ECHO_T}$OCAMLOPT" >&6; }
7541 { echo "$as_me:$LINENO: result: no" >&5
7542 echo "${ECHO_T}no" >&6; }
7546 test -n "$OCAMLOPT" && break
7549 for ac_prog in ocamldep
7551 # Extract the first word of "$ac_prog", so it can be a program name with args.
7552 set dummy $ac_prog; ac_word=$2
7553 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7555 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7556 echo $ECHO_N "(cached) $ECHO_C" >&6
7560 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7567 test -z "$as_dir" && as_dir=.
7568 for ac_exec_ext in '' $ac_executable_extensions; do
7569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7570 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7581 OCAMLDEP=$ac_cv_path_OCAMLDEP
7582 if test -n "$OCAMLDEP"; then
7583 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7584 echo "${ECHO_T}$OCAMLDEP" >&6; }
7586 { echo "$as_me:$LINENO: result: no" >&5
7587 echo "${ECHO_T}no" >&6; }
7591 test -n "$OCAMLDEP" && break
7594 for ac_prog in ocamldoc
7596 # Extract the first word of "$ac_prog", so it can be a program name with args.
7597 set dummy $ac_prog; ac_word=$2
7598 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7600 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7601 echo $ECHO_N "(cached) $ECHO_C" >&6
7605 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7612 test -z "$as_dir" && as_dir=.
7613 for ac_exec_ext in '' $ac_executable_extensions; do
7614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7615 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7626 OCAMLDOC=$ac_cv_path_OCAMLDOC
7627 if test -n "$OCAMLDOC"; then
7628 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7629 echo "${ECHO_T}$OCAMLDOC" >&6; }
7631 { echo "$as_me:$LINENO: result: no" >&5
7632 echo "${ECHO_T}no" >&6; }
7636 test -n "$OCAMLDOC" && break
7639 for ac_prog in gas as
7641 # Extract the first word of "$ac_prog", so it can be a program name with args.
7642 set dummy $ac_prog; ac_word=$2
7643 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7645 if test "${ac_cv_path_GAS+set}" = set; then
7646 echo $ECHO_N "(cached) $ECHO_C" >&6
7650 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7657 test -z "$as_dir" && as_dir=.
7658 for ac_exec_ext in '' $ac_executable_extensions; do
7659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7660 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7672 if test -n "$GAS"; then
7673 { echo "$as_me:$LINENO: result: $GAS" >&5
7674 echo "${ECHO_T}$GAS" >&6; }
7676 { echo "$as_me:$LINENO: result: no" >&5
7677 echo "${ECHO_T}no" >&6; }
7681 test -n "$GAS" && break
7685 { echo "$as_me:$LINENO: checking for linker version" >&5
7686 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7687 if test "${llvm_cv_link_version+set}" = set; then
7688 echo $ECHO_N "(cached) $ECHO_C" >&6
7691 version_string="$(ld -v 2>&1 | head -1)"
7694 if (echo "$version_string" | grep -q "ld64"); then
7695 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7697 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7701 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7702 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7704 cat >>confdefs.h <<_ACEOF
7705 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7710 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7711 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7712 if test "${llvm_cv_link_use_r+set}" = set; then
7713 echo $ECHO_N "(cached) $ECHO_C" >&6
7716 ac_cpp='$CPP $CPPFLAGS'
7717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7722 CFLAGS="$CFLAGS -Wl,-R."
7723 cat >conftest.$ac_ext <<_ACEOF
7726 cat confdefs.h >>conftest.$ac_ext
7727 cat >>conftest.$ac_ext <<_ACEOF
7728 /* end confdefs.h. */
7738 rm -f conftest.$ac_objext conftest$ac_exeext
7739 if { (ac_try="$ac_link"
7741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7742 *) ac_try_echo=$ac_try;;
7744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7745 (eval "$ac_link") 2>conftest.er1
7747 grep -v '^ *+' conftest.er1 >conftest.err
7749 cat conftest.err >&5
7750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751 (exit $ac_status); } &&
7752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7753 { (case "(($ac_try" in
7754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7755 *) ac_try_echo=$ac_try;;
7757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7758 (eval "$ac_try") 2>&5
7760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761 (exit $ac_status); }; } &&
7762 { ac_try='test -s conftest$ac_exeext'
7763 { (case "(($ac_try" in
7764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7765 *) ac_try_echo=$ac_try;;
7767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7768 (eval "$ac_try") 2>&5
7770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7771 (exit $ac_status); }; }; then
7772 llvm_cv_link_use_r=yes
7774 echo "$as_me: failed program was:" >&5
7775 sed 's/^/| /' conftest.$ac_ext >&5
7777 llvm_cv_link_use_r=no
7780 rm -f core conftest.err conftest.$ac_objext \
7781 conftest$ac_exeext conftest.$ac_ext
7784 ac_cpp='$CPP $CPPFLAGS'
7785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7791 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7792 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7793 if test "$llvm_cv_link_use_r" = yes ; then
7795 cat >>confdefs.h <<\_ACEOF
7796 #define HAVE_LINK_R 1
7802 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7803 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7804 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7805 echo $ECHO_N "(cached) $ECHO_C" >&6
7808 ac_cpp='$CPP $CPPFLAGS'
7809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7814 CFLAGS="$CFLAGS -rdynamic"
7815 cat >conftest.$ac_ext <<_ACEOF
7818 cat confdefs.h >>conftest.$ac_ext
7819 cat >>conftest.$ac_ext <<_ACEOF
7820 /* end confdefs.h. */
7830 rm -f conftest.$ac_objext conftest$ac_exeext
7831 if { (ac_try="$ac_link"
7833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7834 *) ac_try_echo=$ac_try;;
7836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7837 (eval "$ac_link") 2>conftest.er1
7839 grep -v '^ *+' conftest.er1 >conftest.err
7841 cat conftest.err >&5
7842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843 (exit $ac_status); } &&
7844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7845 { (case "(($ac_try" in
7846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7847 *) ac_try_echo=$ac_try;;
7849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7850 (eval "$ac_try") 2>&5
7852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7853 (exit $ac_status); }; } &&
7854 { ac_try='test -s conftest$ac_exeext'
7855 { (case "(($ac_try" in
7856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7857 *) ac_try_echo=$ac_try;;
7859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7860 (eval "$ac_try") 2>&5
7862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7863 (exit $ac_status); }; }; then
7864 llvm_cv_link_use_export_dynamic=yes
7866 echo "$as_me: failed program was:" >&5
7867 sed 's/^/| /' conftest.$ac_ext >&5
7869 llvm_cv_link_use_export_dynamic=no
7872 rm -f core conftest.err conftest.$ac_objext \
7873 conftest$ac_exeext conftest.$ac_ext
7876 ac_cpp='$CPP $CPPFLAGS'
7877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7883 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7884 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7885 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7887 cat >>confdefs.h <<\_ACEOF
7888 #define HAVE_LINK_EXPORT_DYNAMIC 1
7894 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7895 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7896 if test "${llvm_cv_link_use_version_script+set}" = set; then
7897 echo $ECHO_N "(cached) $ECHO_C" >&6
7900 ac_cpp='$CPP $CPPFLAGS'
7901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7907 # The following code is from the autoconf manual,
7908 # "11.13: Limitations of Usual Tools".
7909 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7910 # Use mktemp if possible; otherwise fall back on mkdir,
7911 # with $RANDOM to make collisions less likely.
7915 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7917 test -n "$tmp" && test -d "$tmp"
7919 tmp=$TMPDIR/foo$$-$RANDOM
7920 (umask 077 && mkdir "$tmp")
7923 echo "{" > "$tmp/export.map"
7924 echo " global: main;" >> "$tmp/export.map"
7925 echo " local: *;" >> "$tmp/export.map"
7926 echo "};" >> "$tmp/export.map"
7928 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7929 cat >conftest.$ac_ext <<_ACEOF
7932 cat confdefs.h >>conftest.$ac_ext
7933 cat >>conftest.$ac_ext <<_ACEOF
7934 /* end confdefs.h. */
7944 rm -f conftest.$ac_objext conftest$ac_exeext
7945 if { (ac_try="$ac_link"
7947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7948 *) ac_try_echo=$ac_try;;
7950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7951 (eval "$ac_link") 2>conftest.er1
7953 grep -v '^ *+' conftest.er1 >conftest.err
7955 cat conftest.err >&5
7956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957 (exit $ac_status); } &&
7958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7959 { (case "(($ac_try" in
7960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7961 *) ac_try_echo=$ac_try;;
7963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7964 (eval "$ac_try") 2>&5
7966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967 (exit $ac_status); }; } &&
7968 { ac_try='test -s conftest$ac_exeext'
7969 { (case "(($ac_try" in
7970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7971 *) ac_try_echo=$ac_try;;
7973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7974 (eval "$ac_try") 2>&5
7976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977 (exit $ac_status); }; }; then
7978 llvm_cv_link_use_version_script=yes
7980 echo "$as_me: failed program was:" >&5
7981 sed 's/^/| /' conftest.$ac_ext >&5
7983 llvm_cv_link_use_version_script=no
7986 rm -f core conftest.err conftest.$ac_objext \
7987 conftest$ac_exeext conftest.$ac_ext
7988 rm "$tmp/export.map"
7992 ac_cpp='$CPP $CPPFLAGS'
7993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7999 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8000 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8001 if test "$llvm_cv_link_use_version_script" = yes ; then
8002 HAVE_LINK_VERSION_SCRIPT=1
8009 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8010 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8011 if test "${ac_cv_c_const+set}" = set; then
8012 echo $ECHO_N "(cached) $ECHO_C" >&6
8014 cat >conftest.$ac_ext <<_ACEOF
8017 cat confdefs.h >>conftest.$ac_ext
8018 cat >>conftest.$ac_ext <<_ACEOF
8019 /* end confdefs.h. */
8024 /* FIXME: Include the comments suggested by Paul. */
8026 /* Ultrix mips cc rejects this. */
8027 typedef int charset[2];
8029 /* SunOS 4.1.1 cc rejects this. */
8030 char const *const *ccp;
8032 /* NEC SVR4.0.2 mips cc rejects this. */
8033 struct point {int x, y;};
8034 static struct point const zero = {0,0};
8035 /* AIX XL C 1.02.0.0 rejects this.
8036 It does not let you subtract one const X* pointer from another in
8037 an arm of an if-expression whose if-part is not a constant
8039 const char *g = "string";
8040 ccp = &g + (g ? g-g : 0);
8041 /* HPUX 7.0 cc rejects these. */
8044 ccp = (char const *const *) p;
8045 { /* SCO 3.2v4 cc rejects this. */
8047 char const *s = 0 ? (char *) 0 : (char const *) 0;
8052 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8054 const int *foo = &x[0];
8057 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8058 typedef const int *iptr;
8062 { /* AIX XL C 1.02.0.0 rejects this saying
8063 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8064 struct s { int j; const int *ap[3]; };
8065 struct s *b; b->j = 5;
8067 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8071 return !x[0] && !zero.x;
8078 rm -f conftest.$ac_objext
8079 if { (ac_try="$ac_compile"
8081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8082 *) ac_try_echo=$ac_try;;
8084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8085 (eval "$ac_compile") 2>conftest.er1
8087 grep -v '^ *+' conftest.er1 >conftest.err
8089 cat conftest.err >&5
8090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8091 (exit $ac_status); } &&
8092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8093 { (case "(($ac_try" in
8094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8095 *) ac_try_echo=$ac_try;;
8097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8098 (eval "$ac_try") 2>&5
8100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8101 (exit $ac_status); }; } &&
8102 { ac_try='test -s conftest.$ac_objext'
8103 { (case "(($ac_try" in
8104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8105 *) ac_try_echo=$ac_try;;
8107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8108 (eval "$ac_try") 2>&5
8110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8111 (exit $ac_status); }; }; then
8114 echo "$as_me: failed program was:" >&5
8115 sed 's/^/| /' conftest.$ac_ext >&5
8120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8122 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8123 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8124 if test $ac_cv_c_const = no; then
8126 cat >>confdefs.h <<\_ACEOF
8138 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8139 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8140 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8141 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8142 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8143 echo $ECHO_N "(cached) $ECHO_C" >&6
8145 cat >conftest.$ac_ext <<_ACEOF
8148 cat confdefs.h >>conftest.$ac_ext
8149 cat >>conftest.$ac_ext <<_ACEOF
8150 /* end confdefs.h. */
8151 #include <sys/types.h>
8163 rm -f conftest.$ac_objext
8164 if { (ac_try="$ac_compile"
8166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8167 *) ac_try_echo=$ac_try;;
8169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8170 (eval "$ac_compile") 2>conftest.er1
8172 grep -v '^ *+' conftest.er1 >conftest.err
8174 cat conftest.err >&5
8175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176 (exit $ac_status); } &&
8177 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8178 { (case "(($ac_try" in
8179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8180 *) ac_try_echo=$ac_try;;
8182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8183 (eval "$ac_try") 2>&5
8185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186 (exit $ac_status); }; } &&
8187 { ac_try='test -s conftest.$ac_objext'
8188 { (case "(($ac_try" in
8189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8190 *) ac_try_echo=$ac_try;;
8192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8193 (eval "$ac_try") 2>&5
8195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196 (exit $ac_status); }; }; then
8197 eval "$as_ac_Header=yes"
8199 echo "$as_me: failed program was:" >&5
8200 sed 's/^/| /' conftest.$ac_ext >&5
8202 eval "$as_ac_Header=no"
8205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8207 ac_res=`eval echo '${'$as_ac_Header'}'`
8208 { echo "$as_me:$LINENO: result: $ac_res" >&5
8209 echo "${ECHO_T}$ac_res" >&6; }
8210 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8211 cat >>confdefs.h <<_ACEOF
8212 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8215 ac_header_dirent=$ac_hdr; break
8219 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8220 if test $ac_header_dirent = dirent.h; then
8221 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8222 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8223 if test "${ac_cv_search_opendir+set}" = set; then
8224 echo $ECHO_N "(cached) $ECHO_C" >&6
8226 ac_func_search_save_LIBS=$LIBS
8227 cat >conftest.$ac_ext <<_ACEOF
8230 cat confdefs.h >>conftest.$ac_ext
8231 cat >>conftest.$ac_ext <<_ACEOF
8232 /* end confdefs.h. */
8234 /* Override any GCC internal prototype to avoid an error.
8235 Use char because int might match the return type of a GCC
8236 builtin and then its argument prototype would still apply. */
8249 for ac_lib in '' dir; do
8250 if test -z "$ac_lib"; then
8251 ac_res="none required"
8254 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8256 rm -f conftest.$ac_objext conftest$ac_exeext
8257 if { (ac_try="$ac_link"
8259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8260 *) ac_try_echo=$ac_try;;
8262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8263 (eval "$ac_link") 2>conftest.er1
8265 grep -v '^ *+' conftest.er1 >conftest.err
8267 cat conftest.err >&5
8268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8269 (exit $ac_status); } &&
8270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8271 { (case "(($ac_try" in
8272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8273 *) ac_try_echo=$ac_try;;
8275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8276 (eval "$ac_try") 2>&5
8278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279 (exit $ac_status); }; } &&
8280 { ac_try='test -s conftest$ac_exeext'
8281 { (case "(($ac_try" in
8282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8283 *) ac_try_echo=$ac_try;;
8285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8286 (eval "$ac_try") 2>&5
8288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289 (exit $ac_status); }; }; then
8290 ac_cv_search_opendir=$ac_res
8292 echo "$as_me: failed program was:" >&5
8293 sed 's/^/| /' conftest.$ac_ext >&5
8298 rm -f core conftest.err conftest.$ac_objext \
8300 if test "${ac_cv_search_opendir+set}" = set; then
8304 if test "${ac_cv_search_opendir+set}" = set; then
8307 ac_cv_search_opendir=no
8310 LIBS=$ac_func_search_save_LIBS
8312 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8313 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8314 ac_res=$ac_cv_search_opendir
8315 if test "$ac_res" != no; then
8316 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8321 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8322 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8323 if test "${ac_cv_search_opendir+set}" = set; then
8324 echo $ECHO_N "(cached) $ECHO_C" >&6
8326 ac_func_search_save_LIBS=$LIBS
8327 cat >conftest.$ac_ext <<_ACEOF
8330 cat confdefs.h >>conftest.$ac_ext
8331 cat >>conftest.$ac_ext <<_ACEOF
8332 /* end confdefs.h. */
8334 /* Override any GCC internal prototype to avoid an error.
8335 Use char because int might match the return type of a GCC
8336 builtin and then its argument prototype would still apply. */
8349 for ac_lib in '' x; do
8350 if test -z "$ac_lib"; then
8351 ac_res="none required"
8354 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8356 rm -f conftest.$ac_objext conftest$ac_exeext
8357 if { (ac_try="$ac_link"
8359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8360 *) ac_try_echo=$ac_try;;
8362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8363 (eval "$ac_link") 2>conftest.er1
8365 grep -v '^ *+' conftest.er1 >conftest.err
8367 cat conftest.err >&5
8368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369 (exit $ac_status); } &&
8370 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8371 { (case "(($ac_try" in
8372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8373 *) ac_try_echo=$ac_try;;
8375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8376 (eval "$ac_try") 2>&5
8378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379 (exit $ac_status); }; } &&
8380 { ac_try='test -s conftest$ac_exeext'
8381 { (case "(($ac_try" in
8382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8383 *) ac_try_echo=$ac_try;;
8385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8386 (eval "$ac_try") 2>&5
8388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389 (exit $ac_status); }; }; then
8390 ac_cv_search_opendir=$ac_res
8392 echo "$as_me: failed program was:" >&5
8393 sed 's/^/| /' conftest.$ac_ext >&5
8398 rm -f core conftest.err conftest.$ac_objext \
8400 if test "${ac_cv_search_opendir+set}" = set; then
8404 if test "${ac_cv_search_opendir+set}" = set; then
8407 ac_cv_search_opendir=no
8410 LIBS=$ac_func_search_save_LIBS
8412 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8413 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8414 ac_res=$ac_cv_search_opendir
8415 if test "$ac_res" != no; then
8416 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8423 for ac_header in dlfcn.h
8425 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8426 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8427 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8429 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8430 echo $ECHO_N "(cached) $ECHO_C" >&6
8432 ac_res=`eval echo '${'$as_ac_Header'}'`
8433 { echo "$as_me:$LINENO: result: $ac_res" >&5
8434 echo "${ECHO_T}$ac_res" >&6; }
8436 # Is the header compilable?
8437 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8438 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8439 cat >conftest.$ac_ext <<_ACEOF
8442 cat confdefs.h >>conftest.$ac_ext
8443 cat >>conftest.$ac_ext <<_ACEOF
8444 /* end confdefs.h. */
8445 $ac_includes_default
8446 #include <$ac_header>
8448 rm -f conftest.$ac_objext
8449 if { (ac_try="$ac_compile"
8451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8452 *) ac_try_echo=$ac_try;;
8454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8455 (eval "$ac_compile") 2>conftest.er1
8457 grep -v '^ *+' conftest.er1 >conftest.err
8459 cat conftest.err >&5
8460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461 (exit $ac_status); } &&
8462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8463 { (case "(($ac_try" in
8464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8465 *) ac_try_echo=$ac_try;;
8467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8468 (eval "$ac_try") 2>&5
8470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471 (exit $ac_status); }; } &&
8472 { ac_try='test -s conftest.$ac_objext'
8473 { (case "(($ac_try" in
8474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8475 *) ac_try_echo=$ac_try;;
8477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8478 (eval "$ac_try") 2>&5
8480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481 (exit $ac_status); }; }; then
8482 ac_header_compiler=yes
8484 echo "$as_me: failed program was:" >&5
8485 sed 's/^/| /' conftest.$ac_ext >&5
8487 ac_header_compiler=no
8490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8491 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8492 echo "${ECHO_T}$ac_header_compiler" >&6; }
8494 # Is the header present?
8495 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8496 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8497 cat >conftest.$ac_ext <<_ACEOF
8500 cat confdefs.h >>conftest.$ac_ext
8501 cat >>conftest.$ac_ext <<_ACEOF
8502 /* end confdefs.h. */
8503 #include <$ac_header>
8505 if { (ac_try="$ac_cpp conftest.$ac_ext"
8507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8508 *) ac_try_echo=$ac_try;;
8510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8511 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8513 grep -v '^ *+' conftest.er1 >conftest.err
8515 cat conftest.err >&5
8516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8517 (exit $ac_status); } >/dev/null; then
8518 if test -s conftest.err; then
8519 ac_cpp_err=$ac_c_preproc_warn_flag
8520 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8527 if test -z "$ac_cpp_err"; then
8528 ac_header_preproc=yes
8530 echo "$as_me: failed program was:" >&5
8531 sed 's/^/| /' conftest.$ac_ext >&5
8533 ac_header_preproc=no
8536 rm -f conftest.err conftest.$ac_ext
8537 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8538 echo "${ECHO_T}$ac_header_preproc" >&6; }
8540 # So? What about this header?
8541 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8543 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8544 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8545 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8546 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8547 ac_header_preproc=yes
8550 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8551 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8552 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8553 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8554 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8555 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8556 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8557 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8558 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8559 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8560 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8561 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8563 ## ------------------------------ ##
8564 ## Report this to bugs@yourdomain ##
8565 ## ------------------------------ ##
8567 ) | sed "s/^/$as_me: WARNING: /" >&2
8570 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8572 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8573 echo $ECHO_N "(cached) $ECHO_C" >&6
8575 eval "$as_ac_Header=\$ac_header_preproc"
8577 ac_res=`eval echo '${'$as_ac_Header'}'`
8578 { echo "$as_me:$LINENO: result: $ac_res" >&5
8579 echo "${ECHO_T}$ac_res" >&6; }
8582 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8583 cat >>confdefs.h <<_ACEOF
8584 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8591 # Check whether --enable-ltdl-install was given.
8592 if test "${enable_ltdl_install+set}" = set; then
8593 enableval=$enable_ltdl_install;
8599 if test x"${enable_ltdl_install-no}" != xno; then
8601 INSTALL_LTDL_FALSE='#'
8603 INSTALL_LTDL_TRUE='#'
8609 if test x"${enable_ltdl_convenience-no}" != xno; then
8610 CONVENIENCE_LTDL_TRUE=
8611 CONVENIENCE_LTDL_FALSE='#'
8613 CONVENIENCE_LTDL_TRUE='#'
8614 CONVENIENCE_LTDL_FALSE=
8618 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8619 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8621 libname_spec='lib$name'
8629 shlibpath_overrides_runpath=unknown
8631 dynamic_linker="$host_os ld.so"
8632 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8633 if test "$GCC" = yes; then
8634 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8635 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8636 # if the path contains ";" then we assume it to be the separator
8637 # otherwise default to the standard path separator (i.e. ":") - it is
8638 # assumed that no part of a normal pathname contains ";" but that should
8639 # okay in the real world where ";" in dirpaths is itself problematic.
8640 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8642 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8645 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8647 need_lib_prefix=unknown
8648 hardcode_into_libs=no
8650 # when you set need_version to no, make sure it does not cause -set_version
8651 # flags to be left without arguments
8652 need_version=unknown
8657 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8658 shlibpath_var=LIBPATH
8660 # AIX 3 has no versioning support, so we append a major version to the name.
8661 soname_spec='${libname}${release}${shared_ext}$major'
8668 hardcode_into_libs=yes
8669 if test "$host_cpu" = ia64; then
8670 # AIX 5 supports IA64
8671 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8672 shlibpath_var=LD_LIBRARY_PATH
8674 # With GCC up to 2.95.x, collect2 would create an import file
8675 # for dependence libraries. The import file would start with
8676 # the line `#! .'. This would cause the generated library to
8677 # depend on `.', always an invalid library. This was fixed in
8678 # development snapshots of GCC prior to 3.0.
8680 aix4 | aix4.[01] | aix4.[01].*)
8681 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8683 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8690 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8691 # soname into executable. Probably we can add versioning support to
8692 # collect2, so additional links can be useful in future.
8693 if test "$aix_use_runtimelinking" = yes; then
8694 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8695 # instead of lib<name>.a to let people know that these are not
8696 # typical AIX shared libraries.
8697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8699 # We preserve .a as extension for shared libraries through AIX4.2
8700 # and later when we are not doing run time linking.
8701 library_names_spec='${libname}${release}.a $libname.a'
8702 soname_spec='${libname}${release}${shared_ext}$major'
8704 shlibpath_var=LIBPATH
8709 library_names_spec='$libname.ixlibrary $libname.a'
8710 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8711 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'
8715 library_names_spec='${libname}${shared_ext}'
8716 dynamic_linker="$host_os ld.so"
8717 shlibpath_var=LIBRARY_PATH
8723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8724 soname_spec='${libname}${release}${shared_ext}$major'
8725 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8726 shlibpath_var=LD_LIBRARY_PATH
8727 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8728 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8729 # the default ld.so.conf also contains /usr/contrib/lib and
8730 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8731 # libtool to hard-code these into programs
8734 cygwin* | mingw* | pw32*)
8735 version_type=windows
8740 case $GCC,$host_os in
8741 yes,cygwin* | yes,mingw* | yes,pw32*)
8742 library_names_spec='$libname.dll.a'
8743 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8744 postinstall_cmds='base_file=`basename \${file}`~
8745 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8746 dldir=$destdir/`dirname \$dlpath`~
8747 test -d \$dldir || mkdir -p \$dldir~
8748 $install_prog $dir/$dlname \$dldir/$dlname~
8749 chmod a+x \$dldir/$dlname'
8750 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8751 dlpath=$dir/\$dldll~
8753 shlibpath_overrides_runpath=yes
8757 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8758 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8759 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8762 # MinGW DLLs use traditional 'lib' prefix
8763 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8764 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8765 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8766 # It is most probably a Windows format PATH printed by
8767 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8768 # path with ; separators, and with drive letters. We can handle the
8769 # drive letters (cygwin fileutils understands them), so leave them,
8770 # especially as we might pass files found there to a mingw objdump,
8771 # which wouldn't understand a cygwinified path. Ahh.
8772 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8774 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8778 # pw32 DLLs use 'pw' prefix rather than 'lib'
8779 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8785 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8788 dynamic_linker='Win32 ld.exe'
8789 # FIXME: first we should search . and the directory the executable is in
8793 darwin* | rhapsody*)
8794 dynamic_linker="$host_os dyld"
8798 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8799 soname_spec='${libname}${release}${major}$shared_ext'
8800 shlibpath_overrides_runpath=yes
8801 shlibpath_var=DYLD_LIBRARY_PATH
8802 shrext_cmds='.dylib'
8803 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8804 if test "$GCC" = yes; then
8805 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"`
8807 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8809 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8817 soname_spec='${libname}${release}${shared_ext}$major'
8818 shlibpath_var=LD_LIBRARY_PATH
8829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8830 soname_spec='${libname}${release}${shared_ext}$major'
8831 shlibpath_var=LD_LIBRARY_PATH
8832 shlibpath_overrides_runpath=no
8833 hardcode_into_libs=yes
8834 dynamic_linker='GNU ld.so'
8837 freebsd* | dragonfly*)
8838 # DragonFly does not have aout. When/if they implement a new
8839 # versioning mechanism, adjust this.
8840 if test -x /usr/bin/objformat; then
8841 objformat=`/usr/bin/objformat`
8844 freebsd[123].*) objformat=aout ;;
8848 version_type=freebsd-$objformat
8849 case $version_type in
8851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8856 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8860 shlibpath_var=LD_LIBRARY_PATH
8863 shlibpath_overrides_runpath=yes
8865 freebsd3.[01]* | freebsdelf3.[01]*)
8866 shlibpath_overrides_runpath=yes
8867 hardcode_into_libs=yes
8869 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8870 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8871 shlibpath_overrides_runpath=no
8872 hardcode_into_libs=yes
8874 freebsd*) # from 4.6 on
8875 shlibpath_overrides_runpath=yes
8876 hardcode_into_libs=yes
8885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8886 soname_spec='${libname}${release}${shared_ext}$major'
8887 shlibpath_var=LD_LIBRARY_PATH
8888 hardcode_into_libs=yes
8891 hpux9* | hpux10* | hpux11*)
8892 # Give a soname corresponding to the major version so that dld.sl refuses to
8893 # link against other versions.
8900 hardcode_into_libs=yes
8901 dynamic_linker="$host_os dld.so"
8902 shlibpath_var=LD_LIBRARY_PATH
8903 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8905 soname_spec='${libname}${release}${shared_ext}$major'
8906 if test "X$HPUX_IA64_MODE" = X32; then
8907 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8909 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8911 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8915 hardcode_into_libs=yes
8916 dynamic_linker="$host_os dld.sl"
8917 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8918 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8920 soname_spec='${libname}${release}${shared_ext}$major'
8921 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8922 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8926 dynamic_linker="$host_os dld.sl"
8927 shlibpath_var=SHLIB_PATH
8928 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8930 soname_spec='${libname}${release}${shared_ext}$major'
8933 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8934 postinstall_cmds='chmod 555 $lib'
8941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8942 soname_spec='${libname}${release}${shared_ext}$major'
8943 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8944 shlibpath_var=LD_LIBRARY_PATH
8945 shlibpath_overrides_runpath=no
8946 hardcode_into_libs=yes
8949 irix5* | irix6* | nonstopux*)
8951 nonstopux*) version_type=nonstopux ;;
8953 if test "$lt_cv_prog_gnu_ld" = yes; then
8961 soname_spec='${libname}${release}${shared_ext}$major'
8962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8964 irix5* | nonstopux*)
8968 case $LD in # libtool.m4 will add one of these switches to LD
8969 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8970 libsuff= shlibsuff= libmagic=32-bit;;
8971 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8972 libsuff=32 shlibsuff=N32 libmagic=N32;;
8973 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8974 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8975 *) libsuff= shlibsuff= libmagic=never-match;;
8979 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8980 shlibpath_overrides_runpath=no
8981 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8982 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8983 hardcode_into_libs=yes
8986 # No shared lib support for Linux oldld, aout, or coff.
8987 linux*oldld* | linux*aout* | linux*coff*)
8991 # This must be Linux ELF.
8996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8997 soname_spec='${libname}${release}${shared_ext}$major'
8998 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8999 shlibpath_var=LD_LIBRARY_PATH
9000 shlibpath_overrides_runpath=no
9001 # This implies no fast_install, which is unacceptable.
9002 # Some rework will be needed to allow for fast_install
9003 # before this can be enabled.
9004 hardcode_into_libs=yes
9006 # Append ld.so.conf contents to the search path
9007 if test -f /etc/ld.so.conf; then
9008 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' ' '`
9009 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9012 # We used to test for /lib/ld.so.1 and disable shared libraries on
9013 # powerpc, because MkLinux only supported shared libraries with the
9014 # GNU dynamic linker. Since this was broken with cross compilers,
9015 # most powerpc-linux boxes support dynamic linking these days and
9016 # people can always --disable-shared, the test was removed, and we
9017 # assume the GNU/Linux dynamic linker is in use.
9018 dynamic_linker='GNU/Linux ld.so'
9025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9026 soname_spec='${libname}${release}${shared_ext}$major'
9027 shlibpath_var=LD_LIBRARY_PATH
9028 shlibpath_overrides_runpath=no
9029 hardcode_into_libs=yes
9030 dynamic_linker='GNU ld.so'
9037 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9039 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9040 dynamic_linker='NetBSD (a.out) ld.so'
9042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9043 soname_spec='${libname}${release}${shared_ext}$major'
9044 dynamic_linker='NetBSD ld.elf_so'
9046 shlibpath_var=LD_LIBRARY_PATH
9047 shlibpath_overrides_runpath=yes
9048 hardcode_into_libs=yes
9053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9054 shlibpath_var=LD_LIBRARY_PATH
9055 shlibpath_overrides_runpath=yes
9062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9063 soname_spec='${libname}${release}${shared_ext}$major'
9064 shlibpath_var=LD_LIBRARY_PATH
9065 shlibpath_overrides_runpath=yes
9070 sys_lib_dlsearch_path_spec="/usr/lib"
9072 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9074 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9075 *) need_version=no ;;
9077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9078 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9079 shlibpath_var=LD_LIBRARY_PATH
9080 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9082 openbsd2.[89] | openbsd2.[89].*)
9083 shlibpath_overrides_runpath=no
9086 shlibpath_overrides_runpath=yes
9090 shlibpath_overrides_runpath=yes
9095 libname_spec='$name'
9098 library_names_spec='$libname${shared_ext} $libname.a'
9099 dynamic_linker='OS/2 ld.exe'
9100 shlibpath_var=LIBPATH
9103 osf3* | osf4* | osf5*)
9107 soname_spec='${libname}${release}${shared_ext}$major'
9108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9109 shlibpath_var=LD_LIBRARY_PATH
9110 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9111 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9119 soname_spec='${libname}${release}${shared_ext}$major'
9120 shlibpath_var=LD_LIBRARY_PATH
9121 shlibpath_overrides_runpath=yes
9122 hardcode_into_libs=yes
9123 # ldd complains unless libraries are executable
9124 postinstall_cmds='chmod +x $lib'
9129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9130 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9131 shlibpath_var=LD_LIBRARY_PATH
9132 shlibpath_overrides_runpath=yes
9133 if test "$with_gnu_ld" = yes; then
9141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9142 soname_spec='${libname}${release}${shared_ext}$major'
9143 shlibpath_var=LD_LIBRARY_PATH
9144 case $host_vendor in
9146 shlibpath_overrides_runpath=no
9148 export_dynamic_flag_spec='${wl}-Blargedynsym'
9149 runpath_var=LD_RUN_PATH
9157 shlibpath_overrides_runpath=no
9158 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9164 if test -d /usr/nec ;then
9166 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9167 soname_spec='$libname${shared_ext}.$major'
9168 shlibpath_var=LD_LIBRARY_PATH
9172 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9173 version_type=freebsd-elf
9176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9177 soname_spec='${libname}${release}${shared_ext}$major'
9178 shlibpath_var=LD_LIBRARY_PATH
9179 hardcode_into_libs=yes
9180 if test "$with_gnu_ld" = yes; then
9181 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9182 shlibpath_overrides_runpath=no
9184 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9185 shlibpath_overrides_runpath=yes
9188 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9192 sys_lib_dlsearch_path_spec='/usr/lib'
9197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9198 soname_spec='${libname}${release}${shared_ext}$major'
9199 shlibpath_var=LD_LIBRARY_PATH
9206 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9207 echo "${ECHO_T}$dynamic_linker" >&6; }
9208 test "$dynamic_linker" = no && can_build_shared=no
9210 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9211 if test "$GCC" = yes; then
9212 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9216 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9217 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9218 if test "${libltdl_cv_shlibext+set}" = set; then
9219 echo $ECHO_N "(cached) $ECHO_C" >&6
9223 eval libltdl_cv_shlibext=$shrext_cmds
9226 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9227 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9228 if test -n "$libltdl_cv_shlibext"; then
9230 cat >>confdefs.h <<_ACEOF
9231 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9237 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9238 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9239 if test "${libltdl_cv_sys_search_path+set}" = set; then
9240 echo $ECHO_N "(cached) $ECHO_C" >&6
9242 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9244 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9245 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9246 if test -n "$libltdl_cv_sys_search_path"; then
9248 for dir in $libltdl_cv_sys_search_path; do
9249 if test -z "$sys_search_path"; then
9250 sys_search_path="$dir"
9252 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9256 cat >>confdefs.h <<_ACEOF
9257 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9262 { echo "$as_me:$LINENO: checking for objdir" >&5
9263 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9264 if test "${libltdl_cv_objdir+set}" = set; then
9265 echo $ECHO_N "(cached) $ECHO_C" >&6
9267 libltdl_cv_objdir="$objdir"
9268 if test -n "$objdir"; then
9271 rm -f .libs 2>/dev/null
9272 mkdir .libs 2>/dev/null
9273 if test -d .libs; then
9274 libltdl_cv_objdir=.libs
9276 # MS-DOS does not allow filenames that begin with a dot.
9277 libltdl_cv_objdir=_libs
9279 rmdir .libs 2>/dev/null
9283 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9284 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9286 cat >>confdefs.h <<_ACEOF
9287 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9295 # Check for command to grab the raw symbol name followed by C symbol from nm.
9296 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9297 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9298 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9299 echo $ECHO_N "(cached) $ECHO_C" >&6
9302 # These are sane defaults that work on at least a few old systems.
9303 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9305 # Character class describing NM global symbol codes.
9306 symcode='[BCDEGRST]'
9308 # Regexp to match symbols that can be accessed directly from C.
9309 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9311 # Transform an extracted symbol line into a proper C declaration
9312 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9314 # Transform an extracted symbol line into symbol name and symbol address
9315 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'"
9317 # Define system-specific variables.
9322 cygwin* | mingw* | pw32*)
9323 symcode='[ABCDGISTW]'
9325 hpux*) # Its linker distinguishes data from code symbols
9326 if test "$host_cpu" = ia64; then
9327 symcode='[ABCDEGRST]'
9329 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9330 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'"
9333 if test "$host_cpu" = ia64; then
9334 symcode='[ABCDGIRSTW]'
9335 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9336 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'"
9340 symcode='[BCDEGRST]'
9343 symcode='[BCDEGQRST]'
9354 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9362 # Handle CRLF in mingw tool chain
9366 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9370 # If we're using GNU nm, then use its standard symbol codes.
9371 case `$NM -V 2>&1` in
9372 *GNU* | *'with BFD'*)
9373 symcode='[ABCDGIRSTW]' ;;
9376 # Try without a prefix undercore, then with it.
9377 for ac_symprfx in "" "_"; do
9379 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9380 symxfrm="\\1 $ac_symprfx\\2 \\2"
9382 # Write the raw and C identifiers.
9383 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9385 # Check to see that the pipe works correctly.
9389 cat > conftest.$ac_ext <<EOF
9394 void nm_test_func(){}
9398 int main(){nm_test_var='a';nm_test_func();return(0);}
9401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9402 (eval $ac_compile) 2>&5
9404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405 (exit $ac_status); }; then
9406 # Now try to grab the symbols.
9408 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9409 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412 (exit $ac_status); } && test -s "$nlist"; then
9413 # Try sorting and uniquifying the output.
9414 if sort "$nlist" | uniq > "$nlist"T; then
9415 mv -f "$nlist"T "$nlist"
9420 # Make sure that we snagged all the symbols we need.
9421 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9422 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9423 cat <<EOF > conftest.$ac_ext
9429 # Now generate the symbol file.
9430 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9432 cat <<EOF >> conftest.$ac_ext
9433 #if defined (__STDC__) && __STDC__
9434 # define lt_ptr_t void *
9436 # define lt_ptr_t char *
9440 /* The mapping between symbol names and symbols. */
9445 lt_preloaded_symbols[] =
9448 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9449 cat <<\EOF >> conftest.$ac_ext
9457 # Now try linking the two files.
9458 mv conftest.$ac_objext conftstm.$ac_objext
9459 lt_save_LIBS="$LIBS"
9460 lt_save_CFLAGS="$CFLAGS"
9461 LIBS="conftstm.$ac_objext"
9462 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9464 (eval $ac_link) 2>&5
9466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9467 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9470 LIBS="$lt_save_LIBS"
9471 CFLAGS="$lt_save_CFLAGS"
9473 echo "cannot find nm_test_func in $nlist" >&5
9476 echo "cannot find nm_test_var in $nlist" >&5
9479 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9482 echo "$progname: failed program was:" >&5
9483 cat conftest.$ac_ext >&5
9485 rm -f conftest* conftst*
9487 # Do not use the global_symbol_pipe unless it works.
9488 if test "$pipe_works" = yes; then
9491 lt_cv_sys_global_symbol_pipe=
9497 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9498 lt_cv_sys_global_symbol_to_cdecl=
9500 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9501 { echo "$as_me:$LINENO: result: failed" >&5
9502 echo "${ECHO_T}failed" >&6; }
9504 { echo "$as_me:$LINENO: result: ok" >&5
9505 echo "${ECHO_T}ok" >&6; }
9509 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9510 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9511 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9512 echo $ECHO_N "(cached) $ECHO_C" >&6
9514 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9515 libltdl_cv_preloaded_symbols=yes
9517 libltdl_cv_preloaded_symbols=no
9521 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9522 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9523 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9525 cat >>confdefs.h <<\_ACEOF
9526 #define HAVE_PRELOADED_SYMBOLS 1
9534 ac_cpp='$CPP $CPPFLAGS'
9535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9540 { echo "$as_me:$LINENO: checking for shl_load" >&5
9541 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9542 if test "${ac_cv_func_shl_load+set}" = set; then
9543 echo $ECHO_N "(cached) $ECHO_C" >&6
9545 cat >conftest.$ac_ext <<_ACEOF
9548 cat confdefs.h >>conftest.$ac_ext
9549 cat >>conftest.$ac_ext <<_ACEOF
9550 /* end confdefs.h. */
9551 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9552 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9553 #define shl_load innocuous_shl_load
9555 /* System header to define __stub macros and hopefully few prototypes,
9556 which can conflict with char shl_load (); below.
9557 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9558 <limits.h> exists even on freestanding compilers. */
9561 # include <limits.h>
9563 # include <assert.h>
9568 /* Override any GCC internal prototype to avoid an error.
9569 Use char because int might match the return type of a GCC
9570 builtin and then its argument prototype would still apply. */
9575 /* The GNU C library defines this for functions which it implements
9576 to always fail with ENOSYS. Some functions are actually named
9577 something starting with __ and the normal name is an alias. */
9578 #if defined __stub_shl_load || defined __stub___shl_load
9590 rm -f conftest.$ac_objext conftest$ac_exeext
9591 if { (ac_try="$ac_link"
9593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9594 *) ac_try_echo=$ac_try;;
9596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9597 (eval "$ac_link") 2>conftest.er1
9599 grep -v '^ *+' conftest.er1 >conftest.err
9601 cat conftest.err >&5
9602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603 (exit $ac_status); } &&
9604 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9605 { (case "(($ac_try" in
9606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9607 *) ac_try_echo=$ac_try;;
9609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9610 (eval "$ac_try") 2>&5
9612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9613 (exit $ac_status); }; } &&
9614 { ac_try='test -s conftest$ac_exeext'
9615 { (case "(($ac_try" in
9616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9617 *) ac_try_echo=$ac_try;;
9619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9620 (eval "$ac_try") 2>&5
9622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623 (exit $ac_status); }; }; then
9624 ac_cv_func_shl_load=yes
9626 echo "$as_me: failed program was:" >&5
9627 sed 's/^/| /' conftest.$ac_ext >&5
9629 ac_cv_func_shl_load=no
9632 rm -f core conftest.err conftest.$ac_objext \
9633 conftest$ac_exeext conftest.$ac_ext
9635 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9636 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9637 if test $ac_cv_func_shl_load = yes; then
9639 cat >>confdefs.h <<\_ACEOF
9640 #define HAVE_SHL_LOAD 1
9644 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9645 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9646 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9647 echo $ECHO_N "(cached) $ECHO_C" >&6
9649 ac_check_lib_save_LIBS=$LIBS
9651 cat >conftest.$ac_ext <<_ACEOF
9654 cat confdefs.h >>conftest.$ac_ext
9655 cat >>conftest.$ac_ext <<_ACEOF
9656 /* end confdefs.h. */
9658 /* Override any GCC internal prototype to avoid an error.
9659 Use char because int might match the return type of a GCC
9660 builtin and then its argument prototype would still apply. */
9673 rm -f conftest.$ac_objext conftest$ac_exeext
9674 if { (ac_try="$ac_link"
9676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9677 *) ac_try_echo=$ac_try;;
9679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9680 (eval "$ac_link") 2>conftest.er1
9682 grep -v '^ *+' conftest.er1 >conftest.err
9684 cat conftest.err >&5
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 (exit $ac_status); } &&
9687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9688 { (case "(($ac_try" in
9689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9690 *) ac_try_echo=$ac_try;;
9692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9693 (eval "$ac_try") 2>&5
9695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696 (exit $ac_status); }; } &&
9697 { ac_try='test -s conftest$ac_exeext'
9698 { (case "(($ac_try" in
9699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9700 *) ac_try_echo=$ac_try;;
9702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9703 (eval "$ac_try") 2>&5
9705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706 (exit $ac_status); }; }; then
9707 ac_cv_lib_dld_shl_load=yes
9709 echo "$as_me: failed program was:" >&5
9710 sed 's/^/| /' conftest.$ac_ext >&5
9712 ac_cv_lib_dld_shl_load=no
9715 rm -f core conftest.err conftest.$ac_objext \
9716 conftest$ac_exeext conftest.$ac_ext
9717 LIBS=$ac_check_lib_save_LIBS
9719 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9720 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9721 if test $ac_cv_lib_dld_shl_load = yes; then
9723 cat >>confdefs.h <<\_ACEOF
9724 #define HAVE_SHL_LOAD 1
9727 LIBADD_DL="$LIBADD_DL -ldld"
9729 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9730 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9731 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9732 echo $ECHO_N "(cached) $ECHO_C" >&6
9734 ac_check_lib_save_LIBS=$LIBS
9736 cat >conftest.$ac_ext <<_ACEOF
9739 cat confdefs.h >>conftest.$ac_ext
9740 cat >>conftest.$ac_ext <<_ACEOF
9741 /* end confdefs.h. */
9743 /* Override any GCC internal prototype to avoid an error.
9744 Use char because int might match the return type of a GCC
9745 builtin and then its argument prototype would still apply. */
9758 rm -f conftest.$ac_objext conftest$ac_exeext
9759 if { (ac_try="$ac_link"
9761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9762 *) ac_try_echo=$ac_try;;
9764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9765 (eval "$ac_link") 2>conftest.er1
9767 grep -v '^ *+' conftest.er1 >conftest.err
9769 cat conftest.err >&5
9770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771 (exit $ac_status); } &&
9772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9773 { (case "(($ac_try" in
9774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9775 *) ac_try_echo=$ac_try;;
9777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9778 (eval "$ac_try") 2>&5
9780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781 (exit $ac_status); }; } &&
9782 { ac_try='test -s conftest$ac_exeext'
9783 { (case "(($ac_try" in
9784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9785 *) ac_try_echo=$ac_try;;
9787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9788 (eval "$ac_try") 2>&5
9790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791 (exit $ac_status); }; }; then
9792 ac_cv_lib_dl_dlopen=yes
9794 echo "$as_me: failed program was:" >&5
9795 sed 's/^/| /' conftest.$ac_ext >&5
9797 ac_cv_lib_dl_dlopen=no
9800 rm -f core conftest.err conftest.$ac_objext \
9801 conftest$ac_exeext conftest.$ac_ext
9802 LIBS=$ac_check_lib_save_LIBS
9804 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9805 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9806 if test $ac_cv_lib_dl_dlopen = yes; then
9808 cat >>confdefs.h <<\_ACEOF
9809 #define HAVE_LIBDL 1
9812 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9814 cat >conftest.$ac_ext <<_ACEOF
9817 cat confdefs.h >>conftest.$ac_ext
9818 cat >>conftest.$ac_ext <<_ACEOF
9819 /* end confdefs.h. */
9832 rm -f conftest.$ac_objext conftest$ac_exeext
9833 if { (ac_try="$ac_link"
9835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9836 *) ac_try_echo=$ac_try;;
9838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9839 (eval "$ac_link") 2>conftest.er1
9841 grep -v '^ *+' conftest.er1 >conftest.err
9843 cat conftest.err >&5
9844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845 (exit $ac_status); } &&
9846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9847 { (case "(($ac_try" in
9848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9849 *) ac_try_echo=$ac_try;;
9851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9852 (eval "$ac_try") 2>&5
9854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855 (exit $ac_status); }; } &&
9856 { ac_try='test -s conftest$ac_exeext'
9857 { (case "(($ac_try" in
9858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9859 *) ac_try_echo=$ac_try;;
9861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9862 (eval "$ac_try") 2>&5
9864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865 (exit $ac_status); }; }; then
9867 cat >>confdefs.h <<\_ACEOF
9868 #define HAVE_LIBDL 1
9870 libltdl_cv_func_dlopen="yes"
9872 echo "$as_me: failed program was:" >&5
9873 sed 's/^/| /' conftest.$ac_ext >&5
9875 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9876 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9877 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9878 echo $ECHO_N "(cached) $ECHO_C" >&6
9880 ac_check_lib_save_LIBS=$LIBS
9882 cat >conftest.$ac_ext <<_ACEOF
9885 cat confdefs.h >>conftest.$ac_ext
9886 cat >>conftest.$ac_ext <<_ACEOF
9887 /* end confdefs.h. */
9889 /* Override any GCC internal prototype to avoid an error.
9890 Use char because int might match the return type of a GCC
9891 builtin and then its argument prototype would still apply. */
9904 rm -f conftest.$ac_objext conftest$ac_exeext
9905 if { (ac_try="$ac_link"
9907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9908 *) ac_try_echo=$ac_try;;
9910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9911 (eval "$ac_link") 2>conftest.er1
9913 grep -v '^ *+' conftest.er1 >conftest.err
9915 cat conftest.err >&5
9916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9917 (exit $ac_status); } &&
9918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9919 { (case "(($ac_try" in
9920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9921 *) ac_try_echo=$ac_try;;
9923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9924 (eval "$ac_try") 2>&5
9926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927 (exit $ac_status); }; } &&
9928 { ac_try='test -s conftest$ac_exeext'
9929 { (case "(($ac_try" in
9930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9931 *) ac_try_echo=$ac_try;;
9933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9934 (eval "$ac_try") 2>&5
9936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937 (exit $ac_status); }; }; then
9938 ac_cv_lib_svld_dlopen=yes
9940 echo "$as_me: failed program was:" >&5
9941 sed 's/^/| /' conftest.$ac_ext >&5
9943 ac_cv_lib_svld_dlopen=no
9946 rm -f core conftest.err conftest.$ac_objext \
9947 conftest$ac_exeext conftest.$ac_ext
9948 LIBS=$ac_check_lib_save_LIBS
9950 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9951 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9952 if test $ac_cv_lib_svld_dlopen = yes; then
9954 cat >>confdefs.h <<\_ACEOF
9955 #define HAVE_LIBDL 1
9958 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9960 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9961 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9962 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9963 echo $ECHO_N "(cached) $ECHO_C" >&6
9965 ac_check_lib_save_LIBS=$LIBS
9967 cat >conftest.$ac_ext <<_ACEOF
9970 cat confdefs.h >>conftest.$ac_ext
9971 cat >>conftest.$ac_ext <<_ACEOF
9972 /* end confdefs.h. */
9974 /* Override any GCC internal prototype to avoid an error.
9975 Use char because int might match the return type of a GCC
9976 builtin and then its argument prototype would still apply. */
9989 rm -f conftest.$ac_objext conftest$ac_exeext
9990 if { (ac_try="$ac_link"
9992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9993 *) ac_try_echo=$ac_try;;
9995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9996 (eval "$ac_link") 2>conftest.er1
9998 grep -v '^ *+' conftest.er1 >conftest.err
10000 cat conftest.err >&5
10001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002 (exit $ac_status); } &&
10003 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10004 { (case "(($ac_try" in
10005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10006 *) ac_try_echo=$ac_try;;
10008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10009 (eval "$ac_try") 2>&5
10011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012 (exit $ac_status); }; } &&
10013 { ac_try='test -s conftest$ac_exeext'
10014 { (case "(($ac_try" in
10015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10016 *) ac_try_echo=$ac_try;;
10018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10019 (eval "$ac_try") 2>&5
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); }; }; then
10023 ac_cv_lib_dld_dld_link=yes
10025 echo "$as_me: failed program was:" >&5
10026 sed 's/^/| /' conftest.$ac_ext >&5
10028 ac_cv_lib_dld_dld_link=no
10031 rm -f core conftest.err conftest.$ac_objext \
10032 conftest$ac_exeext conftest.$ac_ext
10033 LIBS=$ac_check_lib_save_LIBS
10035 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10036 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10037 if test $ac_cv_lib_dld_dld_link = yes; then
10039 cat >>confdefs.h <<\_ACEOF
10043 LIBADD_DL="$LIBADD_DL -ldld"
10045 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10046 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10047 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10048 echo $ECHO_N "(cached) $ECHO_C" >&6
10050 cat >conftest.$ac_ext <<_ACEOF
10053 cat confdefs.h >>conftest.$ac_ext
10054 cat >>conftest.$ac_ext <<_ACEOF
10055 /* end confdefs.h. */
10056 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10057 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10058 #define _dyld_func_lookup innocuous__dyld_func_lookup
10060 /* System header to define __stub macros and hopefully few prototypes,
10061 which can conflict with char _dyld_func_lookup (); below.
10062 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10063 <limits.h> exists even on freestanding compilers. */
10066 # include <limits.h>
10068 # include <assert.h>
10071 #undef _dyld_func_lookup
10073 /* Override any GCC internal prototype to avoid an error.
10074 Use char because int might match the return type of a GCC
10075 builtin and then its argument prototype would still apply. */
10079 char _dyld_func_lookup ();
10080 /* The GNU C library defines this for functions which it implements
10081 to always fail with ENOSYS. Some functions are actually named
10082 something starting with __ and the normal name is an alias. */
10083 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10090 return _dyld_func_lookup ();
10095 rm -f conftest.$ac_objext conftest$ac_exeext
10096 if { (ac_try="$ac_link"
10097 case "(($ac_try" in
10098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10099 *) ac_try_echo=$ac_try;;
10101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10102 (eval "$ac_link") 2>conftest.er1
10104 grep -v '^ *+' conftest.er1 >conftest.err
10106 cat conftest.err >&5
10107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108 (exit $ac_status); } &&
10109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10110 { (case "(($ac_try" in
10111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10112 *) ac_try_echo=$ac_try;;
10114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10115 (eval "$ac_try") 2>&5
10117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118 (exit $ac_status); }; } &&
10119 { ac_try='test -s conftest$ac_exeext'
10120 { (case "(($ac_try" in
10121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10122 *) ac_try_echo=$ac_try;;
10124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10125 (eval "$ac_try") 2>&5
10127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128 (exit $ac_status); }; }; then
10129 ac_cv_func__dyld_func_lookup=yes
10131 echo "$as_me: failed program was:" >&5
10132 sed 's/^/| /' conftest.$ac_ext >&5
10134 ac_cv_func__dyld_func_lookup=no
10137 rm -f core conftest.err conftest.$ac_objext \
10138 conftest$ac_exeext conftest.$ac_ext
10140 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10141 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10142 if test $ac_cv_func__dyld_func_lookup = yes; then
10144 cat >>confdefs.h <<\_ACEOF
10145 #define HAVE_DYLD 1
10159 rm -f core conftest.err conftest.$ac_objext \
10160 conftest$ac_exeext conftest.$ac_ext
10171 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10173 lt_save_LIBS="$LIBS"
10174 LIBS="$LIBS $LIBADD_DL"
10176 for ac_func in dlerror
10178 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10179 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10181 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10182 echo $ECHO_N "(cached) $ECHO_C" >&6
10184 cat >conftest.$ac_ext <<_ACEOF
10187 cat confdefs.h >>conftest.$ac_ext
10188 cat >>conftest.$ac_ext <<_ACEOF
10189 /* end confdefs.h. */
10190 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10192 #define $ac_func innocuous_$ac_func
10194 /* System header to define __stub macros and hopefully few prototypes,
10195 which can conflict with char $ac_func (); below.
10196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10197 <limits.h> exists even on freestanding compilers. */
10200 # include <limits.h>
10202 # include <assert.h>
10207 /* Override any GCC internal prototype to avoid an error.
10208 Use char because int might match the return type of a GCC
10209 builtin and then its argument prototype would still apply. */
10214 /* The GNU C library defines this for functions which it implements
10215 to always fail with ENOSYS. Some functions are actually named
10216 something starting with __ and the normal name is an alias. */
10217 #if defined __stub_$ac_func || defined __stub___$ac_func
10224 return $ac_func ();
10229 rm -f conftest.$ac_objext conftest$ac_exeext
10230 if { (ac_try="$ac_link"
10231 case "(($ac_try" in
10232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10233 *) ac_try_echo=$ac_try;;
10235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10236 (eval "$ac_link") 2>conftest.er1
10238 grep -v '^ *+' conftest.er1 >conftest.err
10240 cat conftest.err >&5
10241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242 (exit $ac_status); } &&
10243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10244 { (case "(($ac_try" in
10245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10246 *) ac_try_echo=$ac_try;;
10248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10249 (eval "$ac_try") 2>&5
10251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10252 (exit $ac_status); }; } &&
10253 { ac_try='test -s conftest$ac_exeext'
10254 { (case "(($ac_try" in
10255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10256 *) ac_try_echo=$ac_try;;
10258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10259 (eval "$ac_try") 2>&5
10261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10262 (exit $ac_status); }; }; then
10263 eval "$as_ac_var=yes"
10265 echo "$as_me: failed program was:" >&5
10266 sed 's/^/| /' conftest.$ac_ext >&5
10268 eval "$as_ac_var=no"
10271 rm -f core conftest.err conftest.$ac_objext \
10272 conftest$ac_exeext conftest.$ac_ext
10274 ac_res=`eval echo '${'$as_ac_var'}'`
10275 { echo "$as_me:$LINENO: result: $ac_res" >&5
10276 echo "${ECHO_T}$ac_res" >&6; }
10277 if test `eval echo '${'$as_ac_var'}'` = yes; then
10278 cat >>confdefs.h <<_ACEOF
10279 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10285 LIBS="$lt_save_LIBS"
10288 ac_cpp='$CPP $CPPFLAGS'
10289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10295 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10296 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10297 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10298 echo $ECHO_N "(cached) $ECHO_C" >&6
10300 ac_cv_sys_symbol_underscore=no
10301 cat > conftest.$ac_ext <<EOF
10302 void nm_test_func(){}
10303 int main(){nm_test_func;return 0;}
10305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10306 (eval $ac_compile) 2>&5
10308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10309 (exit $ac_status); }; then
10310 # Now try to grab the symbols.
10311 ac_nlist=conftest.nm
10312 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10313 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316 (exit $ac_status); } && test -s "$ac_nlist"; then
10317 # See whether the symbols have a leading underscore.
10318 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10319 ac_cv_sys_symbol_underscore=yes
10321 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10324 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10328 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10331 echo "configure: failed program was:" >&5
10337 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10338 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10341 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10342 if test x"$libltdl_cv_func_dlopen" = xyes ||
10343 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10344 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10345 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10346 if test "${libltdl_cv_need_uscore+set}" = set; then
10347 echo $ECHO_N "(cached) $ECHO_C" >&6
10349 libltdl_cv_need_uscore=unknown
10351 LIBS="$LIBS $LIBADD_DL"
10352 if test "$cross_compiling" = yes; then :
10353 libltdl_cv_need_uscore=cross
10355 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10356 lt_status=$lt_dlunknown
10357 cat > conftest.$ac_ext <<EOF
10358 #line 10358 "configure"
10359 #include "confdefs.h"
10368 # define LT_DLGLOBAL RTLD_GLOBAL
10371 # define LT_DLGLOBAL DL_GLOBAL
10373 # define LT_DLGLOBAL 0
10377 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10378 find out it does not work in some platform. */
10379 #ifndef LT_DLLAZY_OR_NOW
10381 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10384 # define LT_DLLAZY_OR_NOW DL_LAZY
10387 # define LT_DLLAZY_OR_NOW RTLD_NOW
10390 # define LT_DLLAZY_OR_NOW DL_NOW
10392 # define LT_DLLAZY_OR_NOW 0
10400 extern "C" void exit (int);
10403 void fnord() { int i=42;}
10406 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10407 int status = $lt_dlunknown;
10411 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10412 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10413 /* dlclose (self); */
10421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10422 (eval $ac_link) 2>&5
10424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10425 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10426 (./conftest; exit; ) >&5 2>/dev/null
10428 case x$lt_status in
10429 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10430 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10431 x$lt_dlunknown|x*) ;;
10434 # compilation failed
10443 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10444 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10448 if test x"$libltdl_cv_need_uscore" = xyes; then
10450 cat >>confdefs.h <<\_ACEOF
10451 #define NEED_USCORE 1
10457 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10458 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10459 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10460 echo $ECHO_N "(cached) $ECHO_C" >&6
10462 # PORTME does your system automatically load deplibs for dlopen?
10463 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10464 # For now, we just catch OSes we know something about -- in the
10465 # future, we'll try test this programmatically.
10466 libltdl_cv_sys_dlopen_deplibs=unknown
10468 aix3*|aix4.1.*|aix4.2.*)
10469 # Unknown whether this is true for these versions of AIX, but
10470 # we want this `case' here to explicitly catch those versions.
10471 libltdl_cv_sys_dlopen_deplibs=unknown
10474 libltdl_cv_sys_dlopen_deplibs=yes
10477 # Assuming the user has installed a libdl from somewhere, this is true
10478 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10479 libltdl_cv_sys_dlopen_deplibs=yes
10481 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10482 # GNU and its variants, using gnu ld.so (Glibc)
10483 libltdl_cv_sys_dlopen_deplibs=yes
10486 libltdl_cv_sys_dlopen_deplibs=yes
10489 libltdl_cv_sys_dlopen_deplibs=yes
10491 irix[12345]*|irix6.[01]*)
10492 # Catch all versions of IRIX before 6.2, and indicate that we don't
10493 # know how it worked for any of those versions.
10494 libltdl_cv_sys_dlopen_deplibs=unknown
10497 # The case above catches anything before 6.2, and it's known that
10498 # at 6.2 and later dlopen does load deplibs.
10499 libltdl_cv_sys_dlopen_deplibs=yes
10502 libltdl_cv_sys_dlopen_deplibs=yes
10505 libltdl_cv_sys_dlopen_deplibs=yes
10508 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10509 # it did *not* use an RPATH in a shared library to find objects the
10510 # library depends on, so we explicitly say `no'.
10511 libltdl_cv_sys_dlopen_deplibs=no
10513 osf5.0|osf5.0a|osf5.1)
10514 # dlopen *does* load deplibs and with the right loader patch applied
10515 # it even uses RPATH in a shared library to search for shared objects
10516 # that the library depends on, but there's no easy way to know if that
10517 # patch is installed. Since this is the case, all we can really
10518 # say is unknown -- it depends on the patch being installed. If
10519 # it is, this changes to `yes'. Without it, it would be `no'.
10520 libltdl_cv_sys_dlopen_deplibs=unknown
10523 # the two cases above should catch all versions of osf <= 5.1. Read
10524 # the comments above for what we know about them.
10525 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10526 # is used to find them so we can finally say `yes'.
10527 libltdl_cv_sys_dlopen_deplibs=yes
10530 libltdl_cv_sys_dlopen_deplibs=yes
10532 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10533 libltdl_cv_sys_dlopen_deplibs=yes
10538 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10539 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10540 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10542 cat >>confdefs.h <<\_ACEOF
10543 #define LTDL_DLOPEN_DEPLIBS 1
10549 for ac_header in argz.h
10551 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10552 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10553 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10554 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10555 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10556 echo $ECHO_N "(cached) $ECHO_C" >&6
10558 ac_res=`eval echo '${'$as_ac_Header'}'`
10559 { echo "$as_me:$LINENO: result: $ac_res" >&5
10560 echo "${ECHO_T}$ac_res" >&6; }
10562 # Is the header compilable?
10563 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10564 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10565 cat >conftest.$ac_ext <<_ACEOF
10568 cat confdefs.h >>conftest.$ac_ext
10569 cat >>conftest.$ac_ext <<_ACEOF
10570 /* end confdefs.h. */
10571 $ac_includes_default
10572 #include <$ac_header>
10574 rm -f conftest.$ac_objext
10575 if { (ac_try="$ac_compile"
10576 case "(($ac_try" in
10577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10578 *) ac_try_echo=$ac_try;;
10580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10581 (eval "$ac_compile") 2>conftest.er1
10583 grep -v '^ *+' conftest.er1 >conftest.err
10585 cat conftest.err >&5
10586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587 (exit $ac_status); } &&
10588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10589 { (case "(($ac_try" in
10590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10591 *) ac_try_echo=$ac_try;;
10593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10594 (eval "$ac_try") 2>&5
10596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597 (exit $ac_status); }; } &&
10598 { ac_try='test -s conftest.$ac_objext'
10599 { (case "(($ac_try" in
10600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10601 *) ac_try_echo=$ac_try;;
10603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10604 (eval "$ac_try") 2>&5
10606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607 (exit $ac_status); }; }; then
10608 ac_header_compiler=yes
10610 echo "$as_me: failed program was:" >&5
10611 sed 's/^/| /' conftest.$ac_ext >&5
10613 ac_header_compiler=no
10616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10617 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10618 echo "${ECHO_T}$ac_header_compiler" >&6; }
10620 # Is the header present?
10621 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10622 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10623 cat >conftest.$ac_ext <<_ACEOF
10626 cat confdefs.h >>conftest.$ac_ext
10627 cat >>conftest.$ac_ext <<_ACEOF
10628 /* end confdefs.h. */
10629 #include <$ac_header>
10631 if { (ac_try="$ac_cpp conftest.$ac_ext"
10632 case "(($ac_try" in
10633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10634 *) ac_try_echo=$ac_try;;
10636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10637 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10639 grep -v '^ *+' conftest.er1 >conftest.err
10641 cat conftest.err >&5
10642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643 (exit $ac_status); } >/dev/null; then
10644 if test -s conftest.err; then
10645 ac_cpp_err=$ac_c_preproc_warn_flag
10646 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10653 if test -z "$ac_cpp_err"; then
10654 ac_header_preproc=yes
10656 echo "$as_me: failed program was:" >&5
10657 sed 's/^/| /' conftest.$ac_ext >&5
10659 ac_header_preproc=no
10662 rm -f conftest.err conftest.$ac_ext
10663 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10664 echo "${ECHO_T}$ac_header_preproc" >&6; }
10666 # So? What about this header?
10667 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10669 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10670 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10671 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10672 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10673 ac_header_preproc=yes
10676 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10677 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10678 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10679 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10680 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10681 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10682 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10683 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10684 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10685 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10686 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10687 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10689 ## ------------------------------ ##
10690 ## Report this to bugs@yourdomain ##
10691 ## ------------------------------ ##
10693 ) | sed "s/^/$as_me: WARNING: /" >&2
10696 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10698 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10699 echo $ECHO_N "(cached) $ECHO_C" >&6
10701 eval "$as_ac_Header=\$ac_header_preproc"
10703 ac_res=`eval echo '${'$as_ac_Header'}'`
10704 { echo "$as_me:$LINENO: result: $ac_res" >&5
10705 echo "${ECHO_T}$ac_res" >&6; }
10708 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10709 cat >>confdefs.h <<_ACEOF
10710 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10718 { echo "$as_me:$LINENO: checking for error_t" >&5
10719 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10720 if test "${ac_cv_type_error_t+set}" = set; then
10721 echo $ECHO_N "(cached) $ECHO_C" >&6
10723 cat >conftest.$ac_ext <<_ACEOF
10726 cat confdefs.h >>conftest.$ac_ext
10727 cat >>conftest.$ac_ext <<_ACEOF
10728 /* end confdefs.h. */
10733 typedef error_t ac__type_new_;
10737 if ((ac__type_new_ *) 0)
10739 if (sizeof (ac__type_new_))
10745 rm -f conftest.$ac_objext
10746 if { (ac_try="$ac_compile"
10747 case "(($ac_try" in
10748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10749 *) ac_try_echo=$ac_try;;
10751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10752 (eval "$ac_compile") 2>conftest.er1
10754 grep -v '^ *+' conftest.er1 >conftest.err
10756 cat conftest.err >&5
10757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758 (exit $ac_status); } &&
10759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10760 { (case "(($ac_try" in
10761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10762 *) ac_try_echo=$ac_try;;
10764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10765 (eval "$ac_try") 2>&5
10767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768 (exit $ac_status); }; } &&
10769 { ac_try='test -s conftest.$ac_objext'
10770 { (case "(($ac_try" in
10771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10772 *) ac_try_echo=$ac_try;;
10774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10775 (eval "$ac_try") 2>&5
10777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778 (exit $ac_status); }; }; then
10779 ac_cv_type_error_t=yes
10781 echo "$as_me: failed program was:" >&5
10782 sed 's/^/| /' conftest.$ac_ext >&5
10784 ac_cv_type_error_t=no
10787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10789 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10790 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10791 if test $ac_cv_type_error_t = yes; then
10793 cat >>confdefs.h <<_ACEOF
10794 #define HAVE_ERROR_T 1
10800 cat >>confdefs.h <<\_ACEOF
10801 #define error_t int
10812 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10814 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10815 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10816 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10817 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10818 echo $ECHO_N "(cached) $ECHO_C" >&6
10820 cat >conftest.$ac_ext <<_ACEOF
10823 cat confdefs.h >>conftest.$ac_ext
10824 cat >>conftest.$ac_ext <<_ACEOF
10825 /* end confdefs.h. */
10826 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10827 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10828 #define $ac_func innocuous_$ac_func
10830 /* System header to define __stub macros and hopefully few prototypes,
10831 which can conflict with char $ac_func (); below.
10832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10833 <limits.h> exists even on freestanding compilers. */
10836 # include <limits.h>
10838 # include <assert.h>
10843 /* Override any GCC internal prototype to avoid an error.
10844 Use char because int might match the return type of a GCC
10845 builtin and then its argument prototype would still apply. */
10850 /* The GNU C library defines this for functions which it implements
10851 to always fail with ENOSYS. Some functions are actually named
10852 something starting with __ and the normal name is an alias. */
10853 #if defined __stub_$ac_func || defined __stub___$ac_func
10860 return $ac_func ();
10865 rm -f conftest.$ac_objext conftest$ac_exeext
10866 if { (ac_try="$ac_link"
10867 case "(($ac_try" in
10868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10869 *) ac_try_echo=$ac_try;;
10871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10872 (eval "$ac_link") 2>conftest.er1
10874 grep -v '^ *+' conftest.er1 >conftest.err
10876 cat conftest.err >&5
10877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10878 (exit $ac_status); } &&
10879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10880 { (case "(($ac_try" in
10881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10882 *) ac_try_echo=$ac_try;;
10884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10885 (eval "$ac_try") 2>&5
10887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10888 (exit $ac_status); }; } &&
10889 { ac_try='test -s conftest$ac_exeext'
10890 { (case "(($ac_try" in
10891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10892 *) ac_try_echo=$ac_try;;
10894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10895 (eval "$ac_try") 2>&5
10897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10898 (exit $ac_status); }; }; then
10899 eval "$as_ac_var=yes"
10901 echo "$as_me: failed program was:" >&5
10902 sed 's/^/| /' conftest.$ac_ext >&5
10904 eval "$as_ac_var=no"
10907 rm -f core conftest.err conftest.$ac_objext \
10908 conftest$ac_exeext conftest.$ac_ext
10910 ac_res=`eval echo '${'$as_ac_var'}'`
10911 { echo "$as_me:$LINENO: result: $ac_res" >&5
10912 echo "${ECHO_T}$ac_res" >&6; }
10913 if test `eval echo '${'$as_ac_var'}'` = yes; then
10914 cat >>confdefs.h <<_ACEOF
10915 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10947 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10950 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10951 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10952 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10953 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10954 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10955 echo $ECHO_N "(cached) $ECHO_C" >&6
10957 ac_res=`eval echo '${'$as_ac_Header'}'`
10958 { echo "$as_me:$LINENO: result: $ac_res" >&5
10959 echo "${ECHO_T}$ac_res" >&6; }
10961 # Is the header compilable?
10962 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10963 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10964 cat >conftest.$ac_ext <<_ACEOF
10967 cat confdefs.h >>conftest.$ac_ext
10968 cat >>conftest.$ac_ext <<_ACEOF
10969 /* end confdefs.h. */
10970 $ac_includes_default
10971 #include <$ac_header>
10973 rm -f conftest.$ac_objext
10974 if { (ac_try="$ac_compile"
10975 case "(($ac_try" in
10976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10977 *) ac_try_echo=$ac_try;;
10979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10980 (eval "$ac_compile") 2>conftest.er1
10982 grep -v '^ *+' conftest.er1 >conftest.err
10984 cat conftest.err >&5
10985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986 (exit $ac_status); } &&
10987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10988 { (case "(($ac_try" in
10989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10990 *) ac_try_echo=$ac_try;;
10992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10993 (eval "$ac_try") 2>&5
10995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10996 (exit $ac_status); }; } &&
10997 { ac_try='test -s conftest.$ac_objext'
10998 { (case "(($ac_try" in
10999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11000 *) ac_try_echo=$ac_try;;
11002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11003 (eval "$ac_try") 2>&5
11005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006 (exit $ac_status); }; }; then
11007 ac_header_compiler=yes
11009 echo "$as_me: failed program was:" >&5
11010 sed 's/^/| /' conftest.$ac_ext >&5
11012 ac_header_compiler=no
11015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11016 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11017 echo "${ECHO_T}$ac_header_compiler" >&6; }
11019 # Is the header present?
11020 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11021 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11022 cat >conftest.$ac_ext <<_ACEOF
11025 cat confdefs.h >>conftest.$ac_ext
11026 cat >>conftest.$ac_ext <<_ACEOF
11027 /* end confdefs.h. */
11028 #include <$ac_header>
11030 if { (ac_try="$ac_cpp conftest.$ac_ext"
11031 case "(($ac_try" in
11032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11033 *) ac_try_echo=$ac_try;;
11035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11036 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11038 grep -v '^ *+' conftest.er1 >conftest.err
11040 cat conftest.err >&5
11041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042 (exit $ac_status); } >/dev/null; then
11043 if test -s conftest.err; then
11044 ac_cpp_err=$ac_c_preproc_warn_flag
11045 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11052 if test -z "$ac_cpp_err"; then
11053 ac_header_preproc=yes
11055 echo "$as_me: failed program was:" >&5
11056 sed 's/^/| /' conftest.$ac_ext >&5
11058 ac_header_preproc=no
11061 rm -f conftest.err conftest.$ac_ext
11062 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11063 echo "${ECHO_T}$ac_header_preproc" >&6; }
11065 # So? What about this header?
11066 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11068 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11069 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11070 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11071 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11072 ac_header_preproc=yes
11075 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11076 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11077 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11078 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11079 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11080 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11081 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11082 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11083 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11084 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11085 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11086 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11088 ## ------------------------------ ##
11089 ## Report this to bugs@yourdomain ##
11090 ## ------------------------------ ##
11092 ) | sed "s/^/$as_me: WARNING: /" >&2
11095 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11097 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11098 echo $ECHO_N "(cached) $ECHO_C" >&6
11100 eval "$as_ac_Header=\$ac_header_preproc"
11102 ac_res=`eval echo '${'$as_ac_Header'}'`
11103 { echo "$as_me:$LINENO: result: $ac_res" >&5
11104 echo "${ECHO_T}$ac_res" >&6; }
11107 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11108 cat >>confdefs.h <<_ACEOF
11109 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11120 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11122 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11123 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11124 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11126 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11127 echo $ECHO_N "(cached) $ECHO_C" >&6
11129 ac_res=`eval echo '${'$as_ac_Header'}'`
11130 { echo "$as_me:$LINENO: result: $ac_res" >&5
11131 echo "${ECHO_T}$ac_res" >&6; }
11133 # Is the header compilable?
11134 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11135 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11136 cat >conftest.$ac_ext <<_ACEOF
11139 cat confdefs.h >>conftest.$ac_ext
11140 cat >>conftest.$ac_ext <<_ACEOF
11141 /* end confdefs.h. */
11142 $ac_includes_default
11143 #include <$ac_header>
11145 rm -f conftest.$ac_objext
11146 if { (ac_try="$ac_compile"
11147 case "(($ac_try" in
11148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11149 *) ac_try_echo=$ac_try;;
11151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11152 (eval "$ac_compile") 2>conftest.er1
11154 grep -v '^ *+' conftest.er1 >conftest.err
11156 cat conftest.err >&5
11157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158 (exit $ac_status); } &&
11159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11160 { (case "(($ac_try" in
11161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11162 *) ac_try_echo=$ac_try;;
11164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11165 (eval "$ac_try") 2>&5
11167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168 (exit $ac_status); }; } &&
11169 { ac_try='test -s conftest.$ac_objext'
11170 { (case "(($ac_try" in
11171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11172 *) ac_try_echo=$ac_try;;
11174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11175 (eval "$ac_try") 2>&5
11177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178 (exit $ac_status); }; }; then
11179 ac_header_compiler=yes
11181 echo "$as_me: failed program was:" >&5
11182 sed 's/^/| /' conftest.$ac_ext >&5
11184 ac_header_compiler=no
11187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11188 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11189 echo "${ECHO_T}$ac_header_compiler" >&6; }
11191 # Is the header present?
11192 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11193 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11194 cat >conftest.$ac_ext <<_ACEOF
11197 cat confdefs.h >>conftest.$ac_ext
11198 cat >>conftest.$ac_ext <<_ACEOF
11199 /* end confdefs.h. */
11200 #include <$ac_header>
11202 if { (ac_try="$ac_cpp conftest.$ac_ext"
11203 case "(($ac_try" in
11204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11205 *) ac_try_echo=$ac_try;;
11207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11208 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11210 grep -v '^ *+' conftest.er1 >conftest.err
11212 cat conftest.err >&5
11213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214 (exit $ac_status); } >/dev/null; then
11215 if test -s conftest.err; then
11216 ac_cpp_err=$ac_c_preproc_warn_flag
11217 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11224 if test -z "$ac_cpp_err"; then
11225 ac_header_preproc=yes
11227 echo "$as_me: failed program was:" >&5
11228 sed 's/^/| /' conftest.$ac_ext >&5
11230 ac_header_preproc=no
11233 rm -f conftest.err conftest.$ac_ext
11234 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11235 echo "${ECHO_T}$ac_header_preproc" >&6; }
11237 # So? What about this header?
11238 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11240 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11241 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11242 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11243 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11244 ac_header_preproc=yes
11247 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11248 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11249 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11250 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11251 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11252 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11253 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11254 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11255 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11256 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11257 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11258 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11260 ## ------------------------------ ##
11261 ## Report this to bugs@yourdomain ##
11262 ## ------------------------------ ##
11264 ) | sed "s/^/$as_me: WARNING: /" >&2
11267 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11270 echo $ECHO_N "(cached) $ECHO_C" >&6
11272 eval "$as_ac_Header=\$ac_header_preproc"
11274 ac_res=`eval echo '${'$as_ac_Header'}'`
11275 { echo "$as_me:$LINENO: result: $ac_res" >&5
11276 echo "${ECHO_T}$ac_res" >&6; }
11279 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11280 cat >>confdefs.h <<_ACEOF
11281 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11290 for ac_header in string.h strings.h
11292 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11293 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11294 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11295 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11296 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11297 echo $ECHO_N "(cached) $ECHO_C" >&6
11299 ac_res=`eval echo '${'$as_ac_Header'}'`
11300 { echo "$as_me:$LINENO: result: $ac_res" >&5
11301 echo "${ECHO_T}$ac_res" >&6; }
11303 # Is the header compilable?
11304 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11305 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11306 cat >conftest.$ac_ext <<_ACEOF
11309 cat confdefs.h >>conftest.$ac_ext
11310 cat >>conftest.$ac_ext <<_ACEOF
11311 /* end confdefs.h. */
11312 $ac_includes_default
11313 #include <$ac_header>
11315 rm -f conftest.$ac_objext
11316 if { (ac_try="$ac_compile"
11317 case "(($ac_try" in
11318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11319 *) ac_try_echo=$ac_try;;
11321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11322 (eval "$ac_compile") 2>conftest.er1
11324 grep -v '^ *+' conftest.er1 >conftest.err
11326 cat conftest.err >&5
11327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11328 (exit $ac_status); } &&
11329 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11330 { (case "(($ac_try" in
11331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11332 *) ac_try_echo=$ac_try;;
11334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11335 (eval "$ac_try") 2>&5
11337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338 (exit $ac_status); }; } &&
11339 { ac_try='test -s conftest.$ac_objext'
11340 { (case "(($ac_try" in
11341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11342 *) ac_try_echo=$ac_try;;
11344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11345 (eval "$ac_try") 2>&5
11347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348 (exit $ac_status); }; }; then
11349 ac_header_compiler=yes
11351 echo "$as_me: failed program was:" >&5
11352 sed 's/^/| /' conftest.$ac_ext >&5
11354 ac_header_compiler=no
11357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11358 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11359 echo "${ECHO_T}$ac_header_compiler" >&6; }
11361 # Is the header present?
11362 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11363 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11364 cat >conftest.$ac_ext <<_ACEOF
11367 cat confdefs.h >>conftest.$ac_ext
11368 cat >>conftest.$ac_ext <<_ACEOF
11369 /* end confdefs.h. */
11370 #include <$ac_header>
11372 if { (ac_try="$ac_cpp conftest.$ac_ext"
11373 case "(($ac_try" in
11374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11375 *) ac_try_echo=$ac_try;;
11377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11378 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11380 grep -v '^ *+' conftest.er1 >conftest.err
11382 cat conftest.err >&5
11383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11384 (exit $ac_status); } >/dev/null; then
11385 if test -s conftest.err; then
11386 ac_cpp_err=$ac_c_preproc_warn_flag
11387 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11394 if test -z "$ac_cpp_err"; then
11395 ac_header_preproc=yes
11397 echo "$as_me: failed program was:" >&5
11398 sed 's/^/| /' conftest.$ac_ext >&5
11400 ac_header_preproc=no
11403 rm -f conftest.err conftest.$ac_ext
11404 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11405 echo "${ECHO_T}$ac_header_preproc" >&6; }
11407 # So? What about this header?
11408 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11410 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11411 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11412 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11413 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11414 ac_header_preproc=yes
11417 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11418 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11419 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11420 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11421 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11422 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11423 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11424 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11425 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11426 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11427 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11428 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11430 ## ------------------------------ ##
11431 ## Report this to bugs@yourdomain ##
11432 ## ------------------------------ ##
11434 ) | sed "s/^/$as_me: WARNING: /" >&2
11437 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11438 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11439 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11440 echo $ECHO_N "(cached) $ECHO_C" >&6
11442 eval "$as_ac_Header=\$ac_header_preproc"
11444 ac_res=`eval echo '${'$as_ac_Header'}'`
11445 { echo "$as_me:$LINENO: result: $ac_res" >&5
11446 echo "${ECHO_T}$ac_res" >&6; }
11449 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11450 cat >>confdefs.h <<_ACEOF
11451 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11461 for ac_func in strchr index
11463 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11464 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11465 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11466 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11467 echo $ECHO_N "(cached) $ECHO_C" >&6
11469 cat >conftest.$ac_ext <<_ACEOF
11472 cat confdefs.h >>conftest.$ac_ext
11473 cat >>conftest.$ac_ext <<_ACEOF
11474 /* end confdefs.h. */
11475 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11476 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11477 #define $ac_func innocuous_$ac_func
11479 /* System header to define __stub macros and hopefully few prototypes,
11480 which can conflict with char $ac_func (); below.
11481 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11482 <limits.h> exists even on freestanding compilers. */
11485 # include <limits.h>
11487 # include <assert.h>
11492 /* Override any GCC internal prototype to avoid an error.
11493 Use char because int might match the return type of a GCC
11494 builtin and then its argument prototype would still apply. */
11499 /* The GNU C library defines this for functions which it implements
11500 to always fail with ENOSYS. Some functions are actually named
11501 something starting with __ and the normal name is an alias. */
11502 #if defined __stub_$ac_func || defined __stub___$ac_func
11509 return $ac_func ();
11514 rm -f conftest.$ac_objext conftest$ac_exeext
11515 if { (ac_try="$ac_link"
11516 case "(($ac_try" in
11517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11518 *) ac_try_echo=$ac_try;;
11520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11521 (eval "$ac_link") 2>conftest.er1
11523 grep -v '^ *+' conftest.er1 >conftest.err
11525 cat conftest.err >&5
11526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527 (exit $ac_status); } &&
11528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11529 { (case "(($ac_try" in
11530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11531 *) ac_try_echo=$ac_try;;
11533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11534 (eval "$ac_try") 2>&5
11536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11537 (exit $ac_status); }; } &&
11538 { ac_try='test -s conftest$ac_exeext'
11539 { (case "(($ac_try" in
11540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11541 *) ac_try_echo=$ac_try;;
11543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11544 (eval "$ac_try") 2>&5
11546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11547 (exit $ac_status); }; }; then
11548 eval "$as_ac_var=yes"
11550 echo "$as_me: failed program was:" >&5
11551 sed 's/^/| /' conftest.$ac_ext >&5
11553 eval "$as_ac_var=no"
11556 rm -f core conftest.err conftest.$ac_objext \
11557 conftest$ac_exeext conftest.$ac_ext
11559 ac_res=`eval echo '${'$as_ac_var'}'`
11560 { echo "$as_me:$LINENO: result: $ac_res" >&5
11561 echo "${ECHO_T}$ac_res" >&6; }
11562 if test `eval echo '${'$as_ac_var'}'` = yes; then
11563 cat >>confdefs.h <<_ACEOF
11564 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11572 for ac_func in strrchr rindex
11574 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11575 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11576 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11577 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11578 echo $ECHO_N "(cached) $ECHO_C" >&6
11580 cat >conftest.$ac_ext <<_ACEOF
11583 cat confdefs.h >>conftest.$ac_ext
11584 cat >>conftest.$ac_ext <<_ACEOF
11585 /* end confdefs.h. */
11586 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11587 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11588 #define $ac_func innocuous_$ac_func
11590 /* System header to define __stub macros and hopefully few prototypes,
11591 which can conflict with char $ac_func (); below.
11592 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11593 <limits.h> exists even on freestanding compilers. */
11596 # include <limits.h>
11598 # include <assert.h>
11603 /* Override any GCC internal prototype to avoid an error.
11604 Use char because int might match the return type of a GCC
11605 builtin and then its argument prototype would still apply. */
11610 /* The GNU C library defines this for functions which it implements
11611 to always fail with ENOSYS. Some functions are actually named
11612 something starting with __ and the normal name is an alias. */
11613 #if defined __stub_$ac_func || defined __stub___$ac_func
11620 return $ac_func ();
11625 rm -f conftest.$ac_objext conftest$ac_exeext
11626 if { (ac_try="$ac_link"
11627 case "(($ac_try" in
11628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11629 *) ac_try_echo=$ac_try;;
11631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11632 (eval "$ac_link") 2>conftest.er1
11634 grep -v '^ *+' conftest.er1 >conftest.err
11636 cat conftest.err >&5
11637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638 (exit $ac_status); } &&
11639 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11640 { (case "(($ac_try" in
11641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11642 *) ac_try_echo=$ac_try;;
11644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11645 (eval "$ac_try") 2>&5
11647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11648 (exit $ac_status); }; } &&
11649 { ac_try='test -s conftest$ac_exeext'
11650 { (case "(($ac_try" in
11651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11652 *) ac_try_echo=$ac_try;;
11654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11655 (eval "$ac_try") 2>&5
11657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658 (exit $ac_status); }; }; then
11659 eval "$as_ac_var=yes"
11661 echo "$as_me: failed program was:" >&5
11662 sed 's/^/| /' conftest.$ac_ext >&5
11664 eval "$as_ac_var=no"
11667 rm -f core conftest.err conftest.$ac_objext \
11668 conftest$ac_exeext conftest.$ac_ext
11670 ac_res=`eval echo '${'$as_ac_var'}'`
11671 { echo "$as_me:$LINENO: result: $ac_res" >&5
11672 echo "${ECHO_T}$ac_res" >&6; }
11673 if test `eval echo '${'$as_ac_var'}'` = yes; then
11674 cat >>confdefs.h <<_ACEOF
11675 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11683 for ac_func in memcpy bcopy
11685 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11686 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11687 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11688 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11689 echo $ECHO_N "(cached) $ECHO_C" >&6
11691 cat >conftest.$ac_ext <<_ACEOF
11694 cat confdefs.h >>conftest.$ac_ext
11695 cat >>conftest.$ac_ext <<_ACEOF
11696 /* end confdefs.h. */
11697 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11698 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11699 #define $ac_func innocuous_$ac_func
11701 /* System header to define __stub macros and hopefully few prototypes,
11702 which can conflict with char $ac_func (); below.
11703 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11704 <limits.h> exists even on freestanding compilers. */
11707 # include <limits.h>
11709 # include <assert.h>
11714 /* Override any GCC internal prototype to avoid an error.
11715 Use char because int might match the return type of a GCC
11716 builtin and then its argument prototype would still apply. */
11721 /* The GNU C library defines this for functions which it implements
11722 to always fail with ENOSYS. Some functions are actually named
11723 something starting with __ and the normal name is an alias. */
11724 #if defined __stub_$ac_func || defined __stub___$ac_func
11731 return $ac_func ();
11736 rm -f conftest.$ac_objext conftest$ac_exeext
11737 if { (ac_try="$ac_link"
11738 case "(($ac_try" in
11739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11740 *) ac_try_echo=$ac_try;;
11742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11743 (eval "$ac_link") 2>conftest.er1
11745 grep -v '^ *+' conftest.er1 >conftest.err
11747 cat conftest.err >&5
11748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11749 (exit $ac_status); } &&
11750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11751 { (case "(($ac_try" in
11752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11753 *) ac_try_echo=$ac_try;;
11755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11756 (eval "$ac_try") 2>&5
11758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11759 (exit $ac_status); }; } &&
11760 { ac_try='test -s conftest$ac_exeext'
11761 { (case "(($ac_try" in
11762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11763 *) ac_try_echo=$ac_try;;
11765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11766 (eval "$ac_try") 2>&5
11768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769 (exit $ac_status); }; }; then
11770 eval "$as_ac_var=yes"
11772 echo "$as_me: failed program was:" >&5
11773 sed 's/^/| /' conftest.$ac_ext >&5
11775 eval "$as_ac_var=no"
11778 rm -f core conftest.err conftest.$ac_objext \
11779 conftest$ac_exeext conftest.$ac_ext
11781 ac_res=`eval echo '${'$as_ac_var'}'`
11782 { echo "$as_me:$LINENO: result: $ac_res" >&5
11783 echo "${ECHO_T}$ac_res" >&6; }
11784 if test `eval echo '${'$as_ac_var'}'` = yes; then
11785 cat >>confdefs.h <<_ACEOF
11786 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11794 for ac_func in memmove strcmp
11796 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11797 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11798 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11799 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11800 echo $ECHO_N "(cached) $ECHO_C" >&6
11802 cat >conftest.$ac_ext <<_ACEOF
11805 cat confdefs.h >>conftest.$ac_ext
11806 cat >>conftest.$ac_ext <<_ACEOF
11807 /* end confdefs.h. */
11808 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11809 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11810 #define $ac_func innocuous_$ac_func
11812 /* System header to define __stub macros and hopefully few prototypes,
11813 which can conflict with char $ac_func (); below.
11814 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11815 <limits.h> exists even on freestanding compilers. */
11818 # include <limits.h>
11820 # include <assert.h>
11825 /* Override any GCC internal prototype to avoid an error.
11826 Use char because int might match the return type of a GCC
11827 builtin and then its argument prototype would still apply. */
11832 /* The GNU C library defines this for functions which it implements
11833 to always fail with ENOSYS. Some functions are actually named
11834 something starting with __ and the normal name is an alias. */
11835 #if defined __stub_$ac_func || defined __stub___$ac_func
11842 return $ac_func ();
11847 rm -f conftest.$ac_objext conftest$ac_exeext
11848 if { (ac_try="$ac_link"
11849 case "(($ac_try" in
11850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11851 *) ac_try_echo=$ac_try;;
11853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11854 (eval "$ac_link") 2>conftest.er1
11856 grep -v '^ *+' conftest.er1 >conftest.err
11858 cat conftest.err >&5
11859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11860 (exit $ac_status); } &&
11861 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11862 { (case "(($ac_try" in
11863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11864 *) ac_try_echo=$ac_try;;
11866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11867 (eval "$ac_try") 2>&5
11869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11870 (exit $ac_status); }; } &&
11871 { ac_try='test -s conftest$ac_exeext'
11872 { (case "(($ac_try" in
11873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11874 *) ac_try_echo=$ac_try;;
11876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11877 (eval "$ac_try") 2>&5
11879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880 (exit $ac_status); }; }; then
11881 eval "$as_ac_var=yes"
11883 echo "$as_me: failed program was:" >&5
11884 sed 's/^/| /' conftest.$ac_ext >&5
11886 eval "$as_ac_var=no"
11889 rm -f core conftest.err conftest.$ac_objext \
11890 conftest$ac_exeext conftest.$ac_ext
11892 ac_res=`eval echo '${'$as_ac_var'}'`
11893 { echo "$as_me:$LINENO: result: $ac_res" >&5
11894 echo "${ECHO_T}$ac_res" >&6; }
11895 if test `eval echo '${'$as_ac_var'}'` = yes; then
11896 cat >>confdefs.h <<_ACEOF
11897 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11906 for ac_func in closedir opendir readdir
11908 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11909 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11910 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11911 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11912 echo $ECHO_N "(cached) $ECHO_C" >&6
11914 cat >conftest.$ac_ext <<_ACEOF
11917 cat confdefs.h >>conftest.$ac_ext
11918 cat >>conftest.$ac_ext <<_ACEOF
11919 /* end confdefs.h. */
11920 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11921 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11922 #define $ac_func innocuous_$ac_func
11924 /* System header to define __stub macros and hopefully few prototypes,
11925 which can conflict with char $ac_func (); below.
11926 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11927 <limits.h> exists even on freestanding compilers. */
11930 # include <limits.h>
11932 # include <assert.h>
11937 /* Override any GCC internal prototype to avoid an error.
11938 Use char because int might match the return type of a GCC
11939 builtin and then its argument prototype would still apply. */
11944 /* The GNU C library defines this for functions which it implements
11945 to always fail with ENOSYS. Some functions are actually named
11946 something starting with __ and the normal name is an alias. */
11947 #if defined __stub_$ac_func || defined __stub___$ac_func
11954 return $ac_func ();
11959 rm -f conftest.$ac_objext conftest$ac_exeext
11960 if { (ac_try="$ac_link"
11961 case "(($ac_try" in
11962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11963 *) ac_try_echo=$ac_try;;
11965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11966 (eval "$ac_link") 2>conftest.er1
11968 grep -v '^ *+' conftest.er1 >conftest.err
11970 cat conftest.err >&5
11971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972 (exit $ac_status); } &&
11973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11974 { (case "(($ac_try" in
11975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11976 *) ac_try_echo=$ac_try;;
11978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11979 (eval "$ac_try") 2>&5
11981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982 (exit $ac_status); }; } &&
11983 { ac_try='test -s conftest$ac_exeext'
11984 { (case "(($ac_try" in
11985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11986 *) ac_try_echo=$ac_try;;
11988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11989 (eval "$ac_try") 2>&5
11991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11992 (exit $ac_status); }; }; then
11993 eval "$as_ac_var=yes"
11995 echo "$as_me: failed program was:" >&5
11996 sed 's/^/| /' conftest.$ac_ext >&5
11998 eval "$as_ac_var=no"
12001 rm -f core conftest.err conftest.$ac_objext \
12002 conftest$ac_exeext conftest.$ac_ext
12004 ac_res=`eval echo '${'$as_ac_var'}'`
12005 { echo "$as_me:$LINENO: result: $ac_res" >&5
12006 echo "${ECHO_T}$ac_res" >&6; }
12007 if test `eval echo '${'$as_ac_var'}'` = yes; then
12008 cat >>confdefs.h <<_ACEOF
12009 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12017 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12018 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12031 if test "$GCC" != "yes" && test "$ICC" != "yes"
12033 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12034 echo "$as_me: error: gcc|icc required but not found" >&2;}
12035 { (exit 1); exit 1; }; }
12038 if test "$GXX" != "yes" && test "$IXX" != "yes"
12040 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12041 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12042 { (exit 1); exit 1; }; }
12045 if test "$GCC" = "yes"
12047 cat >conftest.$ac_ext <<_ACEOF
12048 #if !defined(__GNUC__) || __GNUC__ < 3
12049 #error Unsupported GCC version
12053 rm -f conftest.$ac_objext
12054 if { (ac_try="$ac_compile"
12055 case "(($ac_try" in
12056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12057 *) ac_try_echo=$ac_try;;
12059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12060 (eval "$ac_compile") 2>conftest.er1
12062 grep -v '^ *+' conftest.er1 >conftest.err
12064 cat conftest.err >&5
12065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066 (exit $ac_status); } &&
12067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12068 { (case "(($ac_try" in
12069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12070 *) ac_try_echo=$ac_try;;
12072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12073 (eval "$ac_try") 2>&5
12075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076 (exit $ac_status); }; } &&
12077 { ac_try='test -s conftest.$ac_objext'
12078 { (case "(($ac_try" in
12079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12080 *) ac_try_echo=$ac_try;;
12082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12083 (eval "$ac_try") 2>&5
12085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12086 (exit $ac_status); }; }; then
12089 echo "$as_me: failed program was:" >&5
12090 sed 's/^/| /' conftest.$ac_ext >&5
12092 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12093 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12094 { (exit 1); exit 1; }; }
12097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12100 if test -z "$llvm_cv_gnu_make_command"
12102 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12103 echo "$as_me: error: GNU Make required but not found" >&2;}
12104 { (exit 1); exit 1; }; }
12107 { echo "$as_me:$LINENO: result: ok" >&5
12108 echo "${ECHO_T}ok" >&6; }
12110 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12111 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12112 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12114 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12116 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12118 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12119 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
12123 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12124 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12125 if test "${ac_cv_lib_m_sin+set}" = set; then
12126 echo $ECHO_N "(cached) $ECHO_C" >&6
12128 ac_check_lib_save_LIBS=$LIBS
12130 cat >conftest.$ac_ext <<_ACEOF
12133 cat confdefs.h >>conftest.$ac_ext
12134 cat >>conftest.$ac_ext <<_ACEOF
12135 /* end confdefs.h. */
12137 /* Override any GCC internal prototype to avoid an error.
12138 Use char because int might match the return type of a GCC
12139 builtin and then its argument prototype would still apply. */
12152 rm -f conftest.$ac_objext conftest$ac_exeext
12153 if { (ac_try="$ac_link"
12154 case "(($ac_try" in
12155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12156 *) ac_try_echo=$ac_try;;
12158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12159 (eval "$ac_link") 2>conftest.er1
12161 grep -v '^ *+' conftest.er1 >conftest.err
12163 cat conftest.err >&5
12164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165 (exit $ac_status); } &&
12166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12167 { (case "(($ac_try" in
12168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12169 *) ac_try_echo=$ac_try;;
12171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12172 (eval "$ac_try") 2>&5
12174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12175 (exit $ac_status); }; } &&
12176 { ac_try='test -s conftest$ac_exeext'
12177 { (case "(($ac_try" in
12178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12179 *) ac_try_echo=$ac_try;;
12181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12182 (eval "$ac_try") 2>&5
12184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185 (exit $ac_status); }; }; then
12186 ac_cv_lib_m_sin=yes
12188 echo "$as_me: failed program was:" >&5
12189 sed 's/^/| /' conftest.$ac_ext >&5
12194 rm -f core conftest.err conftest.$ac_objext \
12195 conftest$ac_exeext conftest.$ac_ext
12196 LIBS=$ac_check_lib_save_LIBS
12198 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12199 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12200 if test $ac_cv_lib_m_sin = yes; then
12201 cat >>confdefs.h <<_ACEOF
12202 #define HAVE_LIBM 1
12209 if test "$llvm_cv_os_type" = "MingW" ; then
12211 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12212 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12213 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12214 echo $ECHO_N "(cached) $ECHO_C" >&6
12216 ac_check_lib_save_LIBS=$LIBS
12217 LIBS="-limagehlp $LIBS"
12218 cat >conftest.$ac_ext <<_ACEOF
12221 cat confdefs.h >>conftest.$ac_ext
12222 cat >>conftest.$ac_ext <<_ACEOF
12223 /* end confdefs.h. */
12234 rm -f conftest.$ac_objext conftest$ac_exeext
12235 if { (ac_try="$ac_link"
12236 case "(($ac_try" in
12237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12238 *) ac_try_echo=$ac_try;;
12240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12241 (eval "$ac_link") 2>conftest.er1
12243 grep -v '^ *+' conftest.er1 >conftest.err
12245 cat conftest.err >&5
12246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247 (exit $ac_status); } &&
12248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12249 { (case "(($ac_try" in
12250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12251 *) ac_try_echo=$ac_try;;
12253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12254 (eval "$ac_try") 2>&5
12256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12257 (exit $ac_status); }; } &&
12258 { ac_try='test -s conftest$ac_exeext'
12259 { (case "(($ac_try" in
12260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12261 *) ac_try_echo=$ac_try;;
12263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12264 (eval "$ac_try") 2>&5
12266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267 (exit $ac_status); }; }; then
12268 ac_cv_lib_imagehlp_main=yes
12270 echo "$as_me: failed program was:" >&5
12271 sed 's/^/| /' conftest.$ac_ext >&5
12273 ac_cv_lib_imagehlp_main=no
12276 rm -f core conftest.err conftest.$ac_objext \
12277 conftest$ac_exeext conftest.$ac_ext
12278 LIBS=$ac_check_lib_save_LIBS
12280 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12281 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12282 if test $ac_cv_lib_imagehlp_main = yes; then
12283 cat >>confdefs.h <<_ACEOF
12284 #define HAVE_LIBIMAGEHLP 1
12287 LIBS="-limagehlp $LIBS"
12292 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12293 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12294 if test "${ac_cv_lib_psapi_main+set}" = set; then
12295 echo $ECHO_N "(cached) $ECHO_C" >&6
12297 ac_check_lib_save_LIBS=$LIBS
12298 LIBS="-lpsapi $LIBS"
12299 cat >conftest.$ac_ext <<_ACEOF
12302 cat confdefs.h >>conftest.$ac_ext
12303 cat >>conftest.$ac_ext <<_ACEOF
12304 /* end confdefs.h. */
12315 rm -f conftest.$ac_objext conftest$ac_exeext
12316 if { (ac_try="$ac_link"
12317 case "(($ac_try" in
12318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12319 *) ac_try_echo=$ac_try;;
12321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12322 (eval "$ac_link") 2>conftest.er1
12324 grep -v '^ *+' conftest.er1 >conftest.err
12326 cat conftest.err >&5
12327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12328 (exit $ac_status); } &&
12329 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12330 { (case "(($ac_try" in
12331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12332 *) ac_try_echo=$ac_try;;
12334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12335 (eval "$ac_try") 2>&5
12337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338 (exit $ac_status); }; } &&
12339 { ac_try='test -s conftest$ac_exeext'
12340 { (case "(($ac_try" in
12341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12342 *) ac_try_echo=$ac_try;;
12344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12345 (eval "$ac_try") 2>&5
12347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12348 (exit $ac_status); }; }; then
12349 ac_cv_lib_psapi_main=yes
12351 echo "$as_me: failed program was:" >&5
12352 sed 's/^/| /' conftest.$ac_ext >&5
12354 ac_cv_lib_psapi_main=no
12357 rm -f core conftest.err conftest.$ac_objext \
12358 conftest$ac_exeext conftest.$ac_ext
12359 LIBS=$ac_check_lib_save_LIBS
12361 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12362 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12363 if test $ac_cv_lib_psapi_main = yes; then
12364 cat >>confdefs.h <<_ACEOF
12365 #define HAVE_LIBPSAPI 1
12368 LIBS="-lpsapi $LIBS"
12374 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12375 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12376 if test "${ac_cv_search_dlopen+set}" = set; then
12377 echo $ECHO_N "(cached) $ECHO_C" >&6
12379 ac_func_search_save_LIBS=$LIBS
12380 cat >conftest.$ac_ext <<_ACEOF
12383 cat confdefs.h >>conftest.$ac_ext
12384 cat >>conftest.$ac_ext <<_ACEOF
12385 /* end confdefs.h. */
12387 /* Override any GCC internal prototype to avoid an error.
12388 Use char because int might match the return type of a GCC
12389 builtin and then its argument prototype would still apply. */
12402 for ac_lib in '' dl; do
12403 if test -z "$ac_lib"; then
12404 ac_res="none required"
12407 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12409 rm -f conftest.$ac_objext conftest$ac_exeext
12410 if { (ac_try="$ac_link"
12411 case "(($ac_try" in
12412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12413 *) ac_try_echo=$ac_try;;
12415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12416 (eval "$ac_link") 2>conftest.er1
12418 grep -v '^ *+' conftest.er1 >conftest.err
12420 cat conftest.err >&5
12421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12422 (exit $ac_status); } &&
12423 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12424 { (case "(($ac_try" in
12425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12426 *) ac_try_echo=$ac_try;;
12428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12429 (eval "$ac_try") 2>&5
12431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432 (exit $ac_status); }; } &&
12433 { ac_try='test -s conftest$ac_exeext'
12434 { (case "(($ac_try" in
12435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12436 *) ac_try_echo=$ac_try;;
12438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12439 (eval "$ac_try") 2>&5
12441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442 (exit $ac_status); }; }; then
12443 ac_cv_search_dlopen=$ac_res
12445 echo "$as_me: failed program was:" >&5
12446 sed 's/^/| /' conftest.$ac_ext >&5
12451 rm -f core conftest.err conftest.$ac_objext \
12453 if test "${ac_cv_search_dlopen+set}" = set; then
12457 if test "${ac_cv_search_dlopen+set}" = set; then
12460 ac_cv_search_dlopen=no
12462 rm conftest.$ac_ext
12463 LIBS=$ac_func_search_save_LIBS
12465 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12466 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12467 ac_res=$ac_cv_search_dlopen
12468 if test "$ac_res" != no; then
12469 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12471 cat >>confdefs.h <<\_ACEOF
12472 #define HAVE_DLOPEN 1
12476 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12477 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12481 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
12482 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
12483 if test "${ac_cv_search_clock_gettime+set}" = set; then
12484 echo $ECHO_N "(cached) $ECHO_C" >&6
12486 ac_func_search_save_LIBS=$LIBS
12487 cat >conftest.$ac_ext <<_ACEOF
12490 cat confdefs.h >>conftest.$ac_ext
12491 cat >>conftest.$ac_ext <<_ACEOF
12492 /* end confdefs.h. */
12494 /* Override any GCC internal prototype to avoid an error.
12495 Use char because int might match the return type of a GCC
12496 builtin and then its argument prototype would still apply. */
12500 char clock_gettime ();
12504 return clock_gettime ();
12509 for ac_lib in '' rt; do
12510 if test -z "$ac_lib"; then
12511 ac_res="none required"
12514 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12516 rm -f conftest.$ac_objext conftest$ac_exeext
12517 if { (ac_try="$ac_link"
12518 case "(($ac_try" in
12519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12520 *) ac_try_echo=$ac_try;;
12522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12523 (eval "$ac_link") 2>conftest.er1
12525 grep -v '^ *+' conftest.er1 >conftest.err
12527 cat conftest.err >&5
12528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529 (exit $ac_status); } &&
12530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12531 { (case "(($ac_try" in
12532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12533 *) ac_try_echo=$ac_try;;
12535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12536 (eval "$ac_try") 2>&5
12538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 (exit $ac_status); }; } &&
12540 { ac_try='test -s conftest$ac_exeext'
12541 { (case "(($ac_try" in
12542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12543 *) ac_try_echo=$ac_try;;
12545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12546 (eval "$ac_try") 2>&5
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); }; }; then
12550 ac_cv_search_clock_gettime=$ac_res
12552 echo "$as_me: failed program was:" >&5
12553 sed 's/^/| /' conftest.$ac_ext >&5
12558 rm -f core conftest.err conftest.$ac_objext \
12560 if test "${ac_cv_search_clock_gettime+set}" = set; then
12564 if test "${ac_cv_search_clock_gettime+set}" = set; then
12567 ac_cv_search_clock_gettime=no
12569 rm conftest.$ac_ext
12570 LIBS=$ac_func_search_save_LIBS
12572 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12573 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12574 ac_res=$ac_cv_search_clock_gettime
12575 if test "$ac_res" != no; then
12576 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12581 if test "$llvm_cv_enable_terminfo" = "yes" ; then
12582 { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
12583 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
12584 if test "${ac_cv_search_setupterm+set}" = set; then
12585 echo $ECHO_N "(cached) $ECHO_C" >&6
12587 ac_func_search_save_LIBS=$LIBS
12588 cat >conftest.$ac_ext <<_ACEOF
12591 cat confdefs.h >>conftest.$ac_ext
12592 cat >>conftest.$ac_ext <<_ACEOF
12593 /* end confdefs.h. */
12595 /* Override any GCC internal prototype to avoid an error.
12596 Use char because int might match the return type of a GCC
12597 builtin and then its argument prototype would still apply. */
12605 return setupterm ();
12610 for ac_lib in '' tinfo curses ncurses ncursesw; do
12611 if test -z "$ac_lib"; then
12612 ac_res="none required"
12615 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12617 rm -f conftest.$ac_objext conftest$ac_exeext
12618 if { (ac_try="$ac_link"
12619 case "(($ac_try" in
12620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12621 *) ac_try_echo=$ac_try;;
12623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12624 (eval "$ac_link") 2>conftest.er1
12626 grep -v '^ *+' conftest.er1 >conftest.err
12628 cat conftest.err >&5
12629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12630 (exit $ac_status); } &&
12631 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12632 { (case "(($ac_try" in
12633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12634 *) ac_try_echo=$ac_try;;
12636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12637 (eval "$ac_try") 2>&5
12639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640 (exit $ac_status); }; } &&
12641 { ac_try='test -s conftest$ac_exeext'
12642 { (case "(($ac_try" in
12643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12644 *) ac_try_echo=$ac_try;;
12646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12647 (eval "$ac_try") 2>&5
12649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650 (exit $ac_status); }; }; then
12651 ac_cv_search_setupterm=$ac_res
12653 echo "$as_me: failed program was:" >&5
12654 sed 's/^/| /' conftest.$ac_ext >&5
12659 rm -f core conftest.err conftest.$ac_objext \
12661 if test "${ac_cv_search_setupterm+set}" = set; then
12665 if test "${ac_cv_search_setupterm+set}" = set; then
12668 ac_cv_search_setupterm=no
12670 rm conftest.$ac_ext
12671 LIBS=$ac_func_search_save_LIBS
12673 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
12674 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
12675 ac_res=$ac_cv_search_setupterm
12676 if test "$ac_res" != no; then
12677 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12679 cat >>confdefs.h <<\_ACEOF
12680 #define HAVE_TERMINFO 1
12687 if test "$llvm_cv_enable_libffi" = "yes" ; then
12688 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12689 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12690 if test "${ac_cv_search_ffi_call+set}" = set; then
12691 echo $ECHO_N "(cached) $ECHO_C" >&6
12693 ac_func_search_save_LIBS=$LIBS
12694 cat >conftest.$ac_ext <<_ACEOF
12697 cat confdefs.h >>conftest.$ac_ext
12698 cat >>conftest.$ac_ext <<_ACEOF
12699 /* end confdefs.h. */
12701 /* Override any GCC internal prototype to avoid an error.
12702 Use char because int might match the return type of a GCC
12703 builtin and then its argument prototype would still apply. */
12711 return ffi_call ();
12716 for ac_lib in '' ffi; do
12717 if test -z "$ac_lib"; then
12718 ac_res="none required"
12721 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12723 rm -f conftest.$ac_objext conftest$ac_exeext
12724 if { (ac_try="$ac_link"
12725 case "(($ac_try" in
12726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12727 *) ac_try_echo=$ac_try;;
12729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12730 (eval "$ac_link") 2>conftest.er1
12732 grep -v '^ *+' conftest.er1 >conftest.err
12734 cat conftest.err >&5
12735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12736 (exit $ac_status); } &&
12737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12738 { (case "(($ac_try" in
12739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12740 *) ac_try_echo=$ac_try;;
12742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12743 (eval "$ac_try") 2>&5
12745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12746 (exit $ac_status); }; } &&
12747 { ac_try='test -s conftest$ac_exeext'
12748 { (case "(($ac_try" in
12749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12750 *) ac_try_echo=$ac_try;;
12752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12753 (eval "$ac_try") 2>&5
12755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12756 (exit $ac_status); }; }; then
12757 ac_cv_search_ffi_call=$ac_res
12759 echo "$as_me: failed program was:" >&5
12760 sed 's/^/| /' conftest.$ac_ext >&5
12765 rm -f core conftest.err conftest.$ac_objext \
12767 if test "${ac_cv_search_ffi_call+set}" = set; then
12771 if test "${ac_cv_search_ffi_call+set}" = set; then
12774 ac_cv_search_ffi_call=no
12776 rm conftest.$ac_ext
12777 LIBS=$ac_func_search_save_LIBS
12779 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12780 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12781 ac_res=$ac_cv_search_ffi_call
12782 if test "$ac_res" != no; then
12783 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12785 cat >>confdefs.h <<\_ACEOF
12786 #define HAVE_FFI_CALL 1
12790 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12791 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12792 { (exit 1); exit 1; }; }
12797 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12798 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12799 if test "${ac_cv_search_mallinfo+set}" = set; then
12800 echo $ECHO_N "(cached) $ECHO_C" >&6
12802 ac_func_search_save_LIBS=$LIBS
12803 cat >conftest.$ac_ext <<_ACEOF
12806 cat confdefs.h >>conftest.$ac_ext
12807 cat >>conftest.$ac_ext <<_ACEOF
12808 /* end confdefs.h. */
12810 /* Override any GCC internal prototype to avoid an error.
12811 Use char because int might match the return type of a GCC
12812 builtin and then its argument prototype would still apply. */
12820 return mallinfo ();
12825 for ac_lib in '' malloc; do
12826 if test -z "$ac_lib"; then
12827 ac_res="none required"
12830 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12832 rm -f conftest.$ac_objext conftest$ac_exeext
12833 if { (ac_try="$ac_link"
12834 case "(($ac_try" in
12835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12836 *) ac_try_echo=$ac_try;;
12838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12839 (eval "$ac_link") 2>conftest.er1
12841 grep -v '^ *+' conftest.er1 >conftest.err
12843 cat conftest.err >&5
12844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12845 (exit $ac_status); } &&
12846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12847 { (case "(($ac_try" in
12848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12849 *) ac_try_echo=$ac_try;;
12851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12852 (eval "$ac_try") 2>&5
12854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855 (exit $ac_status); }; } &&
12856 { ac_try='test -s conftest$ac_exeext'
12857 { (case "(($ac_try" in
12858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12859 *) ac_try_echo=$ac_try;;
12861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12862 (eval "$ac_try") 2>&5
12864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865 (exit $ac_status); }; }; then
12866 ac_cv_search_mallinfo=$ac_res
12868 echo "$as_me: failed program was:" >&5
12869 sed 's/^/| /' conftest.$ac_ext >&5
12874 rm -f core conftest.err conftest.$ac_objext \
12876 if test "${ac_cv_search_mallinfo+set}" = set; then
12880 if test "${ac_cv_search_mallinfo+set}" = set; then
12883 ac_cv_search_mallinfo=no
12885 rm conftest.$ac_ext
12886 LIBS=$ac_func_search_save_LIBS
12888 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12889 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12890 ac_res=$ac_cv_search_mallinfo
12891 if test "$ac_res" != no; then
12892 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12894 cat >>confdefs.h <<\_ACEOF
12895 #define HAVE_MALLINFO 1
12901 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12903 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12904 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12905 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12906 echo $ECHO_N "(cached) $ECHO_C" >&6
12908 ac_check_lib_save_LIBS=$LIBS
12909 LIBS="-lpthread $LIBS"
12910 cat >conftest.$ac_ext <<_ACEOF
12913 cat confdefs.h >>conftest.$ac_ext
12914 cat >>conftest.$ac_ext <<_ACEOF
12915 /* end confdefs.h. */
12917 /* Override any GCC internal prototype to avoid an error.
12918 Use char because int might match the return type of a GCC
12919 builtin and then its argument prototype would still apply. */
12923 char pthread_mutex_init ();
12927 return pthread_mutex_init ();
12932 rm -f conftest.$ac_objext conftest$ac_exeext
12933 if { (ac_try="$ac_link"
12934 case "(($ac_try" in
12935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12936 *) ac_try_echo=$ac_try;;
12938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12939 (eval "$ac_link") 2>conftest.er1
12941 grep -v '^ *+' conftest.er1 >conftest.err
12943 cat conftest.err >&5
12944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12945 (exit $ac_status); } &&
12946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12947 { (case "(($ac_try" in
12948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12949 *) ac_try_echo=$ac_try;;
12951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12952 (eval "$ac_try") 2>&5
12954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12955 (exit $ac_status); }; } &&
12956 { ac_try='test -s conftest$ac_exeext'
12957 { (case "(($ac_try" in
12958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12959 *) ac_try_echo=$ac_try;;
12961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12962 (eval "$ac_try") 2>&5
12964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12965 (exit $ac_status); }; }; then
12966 ac_cv_lib_pthread_pthread_mutex_init=yes
12968 echo "$as_me: failed program was:" >&5
12969 sed 's/^/| /' conftest.$ac_ext >&5
12971 ac_cv_lib_pthread_pthread_mutex_init=no
12974 rm -f core conftest.err conftest.$ac_objext \
12975 conftest$ac_exeext conftest.$ac_ext
12976 LIBS=$ac_check_lib_save_LIBS
12978 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12979 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12980 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12981 cat >>confdefs.h <<_ACEOF
12982 #define HAVE_LIBPTHREAD 1
12985 LIBS="-lpthread $LIBS"
12989 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12990 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12991 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12992 echo $ECHO_N "(cached) $ECHO_C" >&6
12994 ac_func_search_save_LIBS=$LIBS
12995 cat >conftest.$ac_ext <<_ACEOF
12998 cat confdefs.h >>conftest.$ac_ext
12999 cat >>conftest.$ac_ext <<_ACEOF
13000 /* end confdefs.h. */
13002 /* Override any GCC internal prototype to avoid an error.
13003 Use char because int might match the return type of a GCC
13004 builtin and then its argument prototype would still apply. */
13008 char pthread_mutex_lock ();
13012 return pthread_mutex_lock ();
13017 for ac_lib in '' pthread; do
13018 if test -z "$ac_lib"; then
13019 ac_res="none required"
13022 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13024 rm -f conftest.$ac_objext conftest$ac_exeext
13025 if { (ac_try="$ac_link"
13026 case "(($ac_try" in
13027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13028 *) ac_try_echo=$ac_try;;
13030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13031 (eval "$ac_link") 2>conftest.er1
13033 grep -v '^ *+' conftest.er1 >conftest.err
13035 cat conftest.err >&5
13036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13037 (exit $ac_status); } &&
13038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13039 { (case "(($ac_try" in
13040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13041 *) ac_try_echo=$ac_try;;
13043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13044 (eval "$ac_try") 2>&5
13046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13047 (exit $ac_status); }; } &&
13048 { ac_try='test -s conftest$ac_exeext'
13049 { (case "(($ac_try" in
13050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13051 *) ac_try_echo=$ac_try;;
13053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13054 (eval "$ac_try") 2>&5
13056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057 (exit $ac_status); }; }; then
13058 ac_cv_search_pthread_mutex_lock=$ac_res
13060 echo "$as_me: failed program was:" >&5
13061 sed 's/^/| /' conftest.$ac_ext >&5
13066 rm -f core conftest.err conftest.$ac_objext \
13068 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13072 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13075 ac_cv_search_pthread_mutex_lock=no
13077 rm conftest.$ac_ext
13078 LIBS=$ac_func_search_save_LIBS
13080 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13081 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13082 ac_res=$ac_cv_search_pthread_mutex_lock
13083 if test "$ac_res" != no; then
13084 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13086 cat >>confdefs.h <<\_ACEOF
13087 #define HAVE_PTHREAD_MUTEX_LOCK 1
13092 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13093 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13094 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13095 echo $ECHO_N "(cached) $ECHO_C" >&6
13097 ac_func_search_save_LIBS=$LIBS
13098 cat >conftest.$ac_ext <<_ACEOF
13101 cat confdefs.h >>conftest.$ac_ext
13102 cat >>conftest.$ac_ext <<_ACEOF
13103 /* end confdefs.h. */
13105 /* Override any GCC internal prototype to avoid an error.
13106 Use char because int might match the return type of a GCC
13107 builtin and then its argument prototype would still apply. */
13111 char pthread_rwlock_init ();
13115 return pthread_rwlock_init ();
13120 for ac_lib in '' pthread; do
13121 if test -z "$ac_lib"; then
13122 ac_res="none required"
13125 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13127 rm -f conftest.$ac_objext conftest$ac_exeext
13128 if { (ac_try="$ac_link"
13129 case "(($ac_try" in
13130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13131 *) ac_try_echo=$ac_try;;
13133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13134 (eval "$ac_link") 2>conftest.er1
13136 grep -v '^ *+' conftest.er1 >conftest.err
13138 cat conftest.err >&5
13139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140 (exit $ac_status); } &&
13141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13142 { (case "(($ac_try" in
13143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13144 *) ac_try_echo=$ac_try;;
13146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13147 (eval "$ac_try") 2>&5
13149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150 (exit $ac_status); }; } &&
13151 { ac_try='test -s conftest$ac_exeext'
13152 { (case "(($ac_try" in
13153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13154 *) ac_try_echo=$ac_try;;
13156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13157 (eval "$ac_try") 2>&5
13159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13160 (exit $ac_status); }; }; then
13161 ac_cv_search_pthread_rwlock_init=$ac_res
13163 echo "$as_me: failed program was:" >&5
13164 sed 's/^/| /' conftest.$ac_ext >&5
13169 rm -f core conftest.err conftest.$ac_objext \
13171 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13175 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13178 ac_cv_search_pthread_rwlock_init=no
13180 rm conftest.$ac_ext
13181 LIBS=$ac_func_search_save_LIBS
13183 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13184 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13185 ac_res=$ac_cv_search_pthread_rwlock_init
13186 if test "$ac_res" != no; then
13187 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13189 cat >>confdefs.h <<\_ACEOF
13190 #define HAVE_PTHREAD_RWLOCK_INIT 1
13195 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13196 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13197 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13198 echo $ECHO_N "(cached) $ECHO_C" >&6
13200 ac_func_search_save_LIBS=$LIBS
13201 cat >conftest.$ac_ext <<_ACEOF
13204 cat confdefs.h >>conftest.$ac_ext
13205 cat >>conftest.$ac_ext <<_ACEOF
13206 /* end confdefs.h. */
13208 /* Override any GCC internal prototype to avoid an error.
13209 Use char because int might match the return type of a GCC
13210 builtin and then its argument prototype would still apply. */
13214 char pthread_getspecific ();
13218 return pthread_getspecific ();
13223 for ac_lib in '' pthread; do
13224 if test -z "$ac_lib"; then
13225 ac_res="none required"
13228 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13230 rm -f conftest.$ac_objext conftest$ac_exeext
13231 if { (ac_try="$ac_link"
13232 case "(($ac_try" in
13233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13234 *) ac_try_echo=$ac_try;;
13236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13237 (eval "$ac_link") 2>conftest.er1
13239 grep -v '^ *+' conftest.er1 >conftest.err
13241 cat conftest.err >&5
13242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13243 (exit $ac_status); } &&
13244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13245 { (case "(($ac_try" in
13246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13247 *) ac_try_echo=$ac_try;;
13249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13250 (eval "$ac_try") 2>&5
13252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253 (exit $ac_status); }; } &&
13254 { ac_try='test -s conftest$ac_exeext'
13255 { (case "(($ac_try" in
13256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13257 *) ac_try_echo=$ac_try;;
13259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13260 (eval "$ac_try") 2>&5
13262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13263 (exit $ac_status); }; }; then
13264 ac_cv_search_pthread_getspecific=$ac_res
13266 echo "$as_me: failed program was:" >&5
13267 sed 's/^/| /' conftest.$ac_ext >&5
13272 rm -f core conftest.err conftest.$ac_objext \
13274 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13278 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13281 ac_cv_search_pthread_getspecific=no
13283 rm conftest.$ac_ext
13284 LIBS=$ac_func_search_save_LIBS
13286 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13287 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13288 ac_res=$ac_cv_search_pthread_getspecific
13289 if test "$ac_res" != no; then
13290 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13292 cat >>confdefs.h <<\_ACEOF
13293 #define HAVE_PTHREAD_GETSPECIFIC 1
13301 # Check whether --with-udis86 was given.
13302 if test "${with_udis86+set}" = set; then
13303 withval=$with_udis86;
13308 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13311 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13312 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13313 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13314 echo $ECHO_N "(cached) $ECHO_C" >&6
13316 ac_check_lib_save_LIBS=$LIBS
13317 LIBS="-ludis86 $LIBS"
13318 cat >conftest.$ac_ext <<_ACEOF
13321 cat confdefs.h >>conftest.$ac_ext
13322 cat >>conftest.$ac_ext <<_ACEOF
13323 /* end confdefs.h. */
13325 /* Override any GCC internal prototype to avoid an error.
13326 Use char because int might match the return type of a GCC
13327 builtin and then its argument prototype would still apply. */
13340 rm -f conftest.$ac_objext conftest$ac_exeext
13341 if { (ac_try="$ac_link"
13342 case "(($ac_try" in
13343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13344 *) ac_try_echo=$ac_try;;
13346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13347 (eval "$ac_link") 2>conftest.er1
13349 grep -v '^ *+' conftest.er1 >conftest.err
13351 cat conftest.err >&5
13352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13353 (exit $ac_status); } &&
13354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13355 { (case "(($ac_try" in
13356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13357 *) ac_try_echo=$ac_try;;
13359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13360 (eval "$ac_try") 2>&5
13362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13363 (exit $ac_status); }; } &&
13364 { ac_try='test -s conftest$ac_exeext'
13365 { (case "(($ac_try" in
13366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13367 *) ac_try_echo=$ac_try;;
13369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13370 (eval "$ac_try") 2>&5
13372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13373 (exit $ac_status); }; }; then
13374 ac_cv_lib_udis86_ud_init=yes
13376 echo "$as_me: failed program was:" >&5
13377 sed 's/^/| /' conftest.$ac_ext >&5
13379 ac_cv_lib_udis86_ud_init=no
13382 rm -f core conftest.err conftest.$ac_objext \
13383 conftest$ac_exeext conftest.$ac_ext
13384 LIBS=$ac_check_lib_save_LIBS
13386 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13387 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13388 if test $ac_cv_lib_udis86_ud_init = yes; then
13389 cat >>confdefs.h <<_ACEOF
13390 #define HAVE_LIBUDIS86 1
13393 LIBS="-ludis86 $LIBS"
13397 echo "Error! You need to have libudis86 around."
13409 cat >>confdefs.h <<_ACEOF
13410 #define USE_UDIS86 $USE_UDIS86
13415 # Check whether --with-oprofile was given.
13416 if test "${with_oprofile+set}" = set; then
13417 withval=$with_oprofile;
13421 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13422 no) llvm_cv_oppath=
13425 *) llvm_cv_oppath="${withval}/lib/oprofile"
13426 CPPFLAGS="-I${withval}/include";;
13428 if test -n "$llvm_cv_oppath" ; then
13429 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13430 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13431 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13432 if test "${ac_cv_search_bfd_init+set}" = set; then
13433 echo $ECHO_N "(cached) $ECHO_C" >&6
13435 ac_func_search_save_LIBS=$LIBS
13436 cat >conftest.$ac_ext <<_ACEOF
13439 cat confdefs.h >>conftest.$ac_ext
13440 cat >>conftest.$ac_ext <<_ACEOF
13441 /* end confdefs.h. */
13443 /* Override any GCC internal prototype to avoid an error.
13444 Use char because int might match the return type of a GCC
13445 builtin and then its argument prototype would still apply. */
13453 return bfd_init ();
13458 for ac_lib in '' bfd; do
13459 if test -z "$ac_lib"; then
13460 ac_res="none required"
13463 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13465 rm -f conftest.$ac_objext conftest$ac_exeext
13466 if { (ac_try="$ac_link"
13467 case "(($ac_try" in
13468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13469 *) ac_try_echo=$ac_try;;
13471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13472 (eval "$ac_link") 2>conftest.er1
13474 grep -v '^ *+' conftest.er1 >conftest.err
13476 cat conftest.err >&5
13477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478 (exit $ac_status); } &&
13479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13480 { (case "(($ac_try" in
13481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13482 *) ac_try_echo=$ac_try;;
13484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13485 (eval "$ac_try") 2>&5
13487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13488 (exit $ac_status); }; } &&
13489 { ac_try='test -s conftest$ac_exeext'
13490 { (case "(($ac_try" in
13491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13492 *) ac_try_echo=$ac_try;;
13494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13495 (eval "$ac_try") 2>&5
13497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498 (exit $ac_status); }; }; then
13499 ac_cv_search_bfd_init=$ac_res
13501 echo "$as_me: failed program was:" >&5
13502 sed 's/^/| /' conftest.$ac_ext >&5
13507 rm -f core conftest.err conftest.$ac_objext \
13509 if test "${ac_cv_search_bfd_init+set}" = set; then
13513 if test "${ac_cv_search_bfd_init+set}" = set; then
13516 ac_cv_search_bfd_init=no
13518 rm conftest.$ac_ext
13519 LIBS=$ac_func_search_save_LIBS
13521 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13522 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13523 ac_res=$ac_cv_search_bfd_init
13524 if test "$ac_res" != no; then
13525 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13529 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13530 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13531 if test "${ac_cv_search_op_open_agent+set}" = set; then
13532 echo $ECHO_N "(cached) $ECHO_C" >&6
13534 ac_func_search_save_LIBS=$LIBS
13535 cat >conftest.$ac_ext <<_ACEOF
13538 cat confdefs.h >>conftest.$ac_ext
13539 cat >>conftest.$ac_ext <<_ACEOF
13540 /* end confdefs.h. */
13542 /* Override any GCC internal prototype to avoid an error.
13543 Use char because int might match the return type of a GCC
13544 builtin and then its argument prototype would still apply. */
13548 char op_open_agent ();
13552 return op_open_agent ();
13557 for ac_lib in '' opagent; do
13558 if test -z "$ac_lib"; then
13559 ac_res="none required"
13562 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13564 rm -f conftest.$ac_objext conftest$ac_exeext
13565 if { (ac_try="$ac_link"
13566 case "(($ac_try" in
13567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13568 *) ac_try_echo=$ac_try;;
13570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13571 (eval "$ac_link") 2>conftest.er1
13573 grep -v '^ *+' conftest.er1 >conftest.err
13575 cat conftest.err >&5
13576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13577 (exit $ac_status); } &&
13578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13579 { (case "(($ac_try" in
13580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13581 *) ac_try_echo=$ac_try;;
13583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13584 (eval "$ac_try") 2>&5
13586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13587 (exit $ac_status); }; } &&
13588 { ac_try='test -s conftest$ac_exeext'
13589 { (case "(($ac_try" in
13590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13591 *) ac_try_echo=$ac_try;;
13593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13594 (eval "$ac_try") 2>&5
13596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13597 (exit $ac_status); }; }; then
13598 ac_cv_search_op_open_agent=$ac_res
13600 echo "$as_me: failed program was:" >&5
13601 sed 's/^/| /' conftest.$ac_ext >&5
13606 rm -f core conftest.err conftest.$ac_objext \
13608 if test "${ac_cv_search_op_open_agent+set}" = set; then
13612 if test "${ac_cv_search_op_open_agent+set}" = set; then
13615 ac_cv_search_op_open_agent=no
13617 rm conftest.$ac_ext
13618 LIBS=$ac_func_search_save_LIBS
13620 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13621 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13622 ac_res=$ac_cv_search_op_open_agent
13623 if test "$ac_res" != no; then
13624 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13628 echo "Error! You need to have libopagent around."
13633 if test "${ac_cv_header_opagent_h+set}" = set; then
13634 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13635 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13636 if test "${ac_cv_header_opagent_h+set}" = set; then
13637 echo $ECHO_N "(cached) $ECHO_C" >&6
13639 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13640 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13642 # Is the header compilable?
13643 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13644 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13645 cat >conftest.$ac_ext <<_ACEOF
13648 cat confdefs.h >>conftest.$ac_ext
13649 cat >>conftest.$ac_ext <<_ACEOF
13650 /* end confdefs.h. */
13651 $ac_includes_default
13652 #include <opagent.h>
13654 rm -f conftest.$ac_objext
13655 if { (ac_try="$ac_compile"
13656 case "(($ac_try" in
13657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13658 *) ac_try_echo=$ac_try;;
13660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13661 (eval "$ac_compile") 2>conftest.er1
13663 grep -v '^ *+' conftest.er1 >conftest.err
13665 cat conftest.err >&5
13666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13667 (exit $ac_status); } &&
13668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13669 { (case "(($ac_try" in
13670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13671 *) ac_try_echo=$ac_try;;
13673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13674 (eval "$ac_try") 2>&5
13676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13677 (exit $ac_status); }; } &&
13678 { ac_try='test -s conftest.$ac_objext'
13679 { (case "(($ac_try" in
13680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13681 *) ac_try_echo=$ac_try;;
13683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13684 (eval "$ac_try") 2>&5
13686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687 (exit $ac_status); }; }; then
13688 ac_header_compiler=yes
13690 echo "$as_me: failed program was:" >&5
13691 sed 's/^/| /' conftest.$ac_ext >&5
13693 ac_header_compiler=no
13696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13697 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13698 echo "${ECHO_T}$ac_header_compiler" >&6; }
13700 # Is the header present?
13701 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13702 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13703 cat >conftest.$ac_ext <<_ACEOF
13706 cat confdefs.h >>conftest.$ac_ext
13707 cat >>conftest.$ac_ext <<_ACEOF
13708 /* end confdefs.h. */
13709 #include <opagent.h>
13711 if { (ac_try="$ac_cpp conftest.$ac_ext"
13712 case "(($ac_try" in
13713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13714 *) ac_try_echo=$ac_try;;
13716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13717 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13719 grep -v '^ *+' conftest.er1 >conftest.err
13721 cat conftest.err >&5
13722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723 (exit $ac_status); } >/dev/null; then
13724 if test -s conftest.err; then
13725 ac_cpp_err=$ac_c_preproc_warn_flag
13726 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13733 if test -z "$ac_cpp_err"; then
13734 ac_header_preproc=yes
13736 echo "$as_me: failed program was:" >&5
13737 sed 's/^/| /' conftest.$ac_ext >&5
13739 ac_header_preproc=no
13742 rm -f conftest.err conftest.$ac_ext
13743 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13744 echo "${ECHO_T}$ac_header_preproc" >&6; }
13746 # So? What about this header?
13747 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13749 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13750 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13751 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13752 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13753 ac_header_preproc=yes
13756 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13757 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13758 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13759 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13760 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13761 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13762 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13763 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13764 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13765 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13766 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13767 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13769 ## ------------------------------ ##
13770 ## Report this to bugs@yourdomain ##
13771 ## ------------------------------ ##
13773 ) | sed "s/^/$as_me: WARNING: /" >&2
13776 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13777 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13778 if test "${ac_cv_header_opagent_h+set}" = set; then
13779 echo $ECHO_N "(cached) $ECHO_C" >&6
13781 ac_cv_header_opagent_h=$ac_header_preproc
13783 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13784 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13787 if test $ac_cv_header_opagent_h = yes; then
13791 echo "Error! You need to have opagent.h around."
13807 cat >>confdefs.h <<_ACEOF
13808 #define USE_OPROFILE $USE_OPROFILE
13818 ac_header_dirent=no
13819 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13820 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13821 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13822 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13823 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13824 echo $ECHO_N "(cached) $ECHO_C" >&6
13826 cat >conftest.$ac_ext <<_ACEOF
13829 cat confdefs.h >>conftest.$ac_ext
13830 cat >>conftest.$ac_ext <<_ACEOF
13831 /* end confdefs.h. */
13832 #include <sys/types.h>
13844 rm -f conftest.$ac_objext
13845 if { (ac_try="$ac_compile"
13846 case "(($ac_try" in
13847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13848 *) ac_try_echo=$ac_try;;
13850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13851 (eval "$ac_compile") 2>conftest.er1
13853 grep -v '^ *+' conftest.er1 >conftest.err
13855 cat conftest.err >&5
13856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13857 (exit $ac_status); } &&
13858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13859 { (case "(($ac_try" in
13860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13861 *) ac_try_echo=$ac_try;;
13863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13864 (eval "$ac_try") 2>&5
13866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13867 (exit $ac_status); }; } &&
13868 { ac_try='test -s conftest.$ac_objext'
13869 { (case "(($ac_try" in
13870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13871 *) ac_try_echo=$ac_try;;
13873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13874 (eval "$ac_try") 2>&5
13876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13877 (exit $ac_status); }; }; then
13878 eval "$as_ac_Header=yes"
13880 echo "$as_me: failed program was:" >&5
13881 sed 's/^/| /' conftest.$ac_ext >&5
13883 eval "$as_ac_Header=no"
13886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13888 ac_res=`eval echo '${'$as_ac_Header'}'`
13889 { echo "$as_me:$LINENO: result: $ac_res" >&5
13890 echo "${ECHO_T}$ac_res" >&6; }
13891 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13892 cat >>confdefs.h <<_ACEOF
13893 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13896 ac_header_dirent=$ac_hdr; break
13900 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13901 if test $ac_header_dirent = dirent.h; then
13902 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13903 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13904 if test "${ac_cv_search_opendir+set}" = set; then
13905 echo $ECHO_N "(cached) $ECHO_C" >&6
13907 ac_func_search_save_LIBS=$LIBS
13908 cat >conftest.$ac_ext <<_ACEOF
13911 cat confdefs.h >>conftest.$ac_ext
13912 cat >>conftest.$ac_ext <<_ACEOF
13913 /* end confdefs.h. */
13915 /* Override any GCC internal prototype to avoid an error.
13916 Use char because int might match the return type of a GCC
13917 builtin and then its argument prototype would still apply. */
13930 for ac_lib in '' dir; do
13931 if test -z "$ac_lib"; then
13932 ac_res="none required"
13935 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13937 rm -f conftest.$ac_objext conftest$ac_exeext
13938 if { (ac_try="$ac_link"
13939 case "(($ac_try" in
13940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13941 *) ac_try_echo=$ac_try;;
13943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13944 (eval "$ac_link") 2>conftest.er1
13946 grep -v '^ *+' conftest.er1 >conftest.err
13948 cat conftest.err >&5
13949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13950 (exit $ac_status); } &&
13951 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13952 { (case "(($ac_try" in
13953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13954 *) ac_try_echo=$ac_try;;
13956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13957 (eval "$ac_try") 2>&5
13959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13960 (exit $ac_status); }; } &&
13961 { ac_try='test -s conftest$ac_exeext'
13962 { (case "(($ac_try" in
13963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13964 *) ac_try_echo=$ac_try;;
13966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13967 (eval "$ac_try") 2>&5
13969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970 (exit $ac_status); }; }; then
13971 ac_cv_search_opendir=$ac_res
13973 echo "$as_me: failed program was:" >&5
13974 sed 's/^/| /' conftest.$ac_ext >&5
13979 rm -f core conftest.err conftest.$ac_objext \
13981 if test "${ac_cv_search_opendir+set}" = set; then
13985 if test "${ac_cv_search_opendir+set}" = set; then
13988 ac_cv_search_opendir=no
13990 rm conftest.$ac_ext
13991 LIBS=$ac_func_search_save_LIBS
13993 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13994 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13995 ac_res=$ac_cv_search_opendir
13996 if test "$ac_res" != no; then
13997 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14002 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14003 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14004 if test "${ac_cv_search_opendir+set}" = set; then
14005 echo $ECHO_N "(cached) $ECHO_C" >&6
14007 ac_func_search_save_LIBS=$LIBS
14008 cat >conftest.$ac_ext <<_ACEOF
14011 cat confdefs.h >>conftest.$ac_ext
14012 cat >>conftest.$ac_ext <<_ACEOF
14013 /* end confdefs.h. */
14015 /* Override any GCC internal prototype to avoid an error.
14016 Use char because int might match the return type of a GCC
14017 builtin and then its argument prototype would still apply. */
14030 for ac_lib in '' x; do
14031 if test -z "$ac_lib"; then
14032 ac_res="none required"
14035 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14037 rm -f conftest.$ac_objext conftest$ac_exeext
14038 if { (ac_try="$ac_link"
14039 case "(($ac_try" in
14040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14041 *) ac_try_echo=$ac_try;;
14043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14044 (eval "$ac_link") 2>conftest.er1
14046 grep -v '^ *+' conftest.er1 >conftest.err
14048 cat conftest.err >&5
14049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050 (exit $ac_status); } &&
14051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14052 { (case "(($ac_try" in
14053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14054 *) ac_try_echo=$ac_try;;
14056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14057 (eval "$ac_try") 2>&5
14059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14060 (exit $ac_status); }; } &&
14061 { ac_try='test -s conftest$ac_exeext'
14062 { (case "(($ac_try" in
14063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14064 *) ac_try_echo=$ac_try;;
14066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14067 (eval "$ac_try") 2>&5
14069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14070 (exit $ac_status); }; }; then
14071 ac_cv_search_opendir=$ac_res
14073 echo "$as_me: failed program was:" >&5
14074 sed 's/^/| /' conftest.$ac_ext >&5
14079 rm -f core conftest.err conftest.$ac_objext \
14081 if test "${ac_cv_search_opendir+set}" = set; then
14085 if test "${ac_cv_search_opendir+set}" = set; then
14088 ac_cv_search_opendir=no
14090 rm conftest.$ac_ext
14091 LIBS=$ac_func_search_save_LIBS
14093 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14094 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14095 ac_res=$ac_cv_search_opendir
14096 if test "$ac_res" != no; then
14097 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14103 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14104 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14105 if test "${ac_cv_header_mmap_anon+set}" = set; then
14106 echo $ECHO_N "(cached) $ECHO_C" >&6
14109 ac_cpp='$CPP $CPPFLAGS'
14110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14114 cat >conftest.$ac_ext <<_ACEOF
14117 cat confdefs.h >>conftest.$ac_ext
14118 cat >>conftest.$ac_ext <<_ACEOF
14119 /* end confdefs.h. */
14120 #include <sys/mman.h>
14121 #include <unistd.h>
14126 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14131 rm -f conftest.$ac_objext
14132 if { (ac_try="$ac_compile"
14133 case "(($ac_try" in
14134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14135 *) ac_try_echo=$ac_try;;
14137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14138 (eval "$ac_compile") 2>conftest.er1
14140 grep -v '^ *+' conftest.er1 >conftest.err
14142 cat conftest.err >&5
14143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14144 (exit $ac_status); } &&
14145 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14146 { (case "(($ac_try" in
14147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14148 *) ac_try_echo=$ac_try;;
14150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14151 (eval "$ac_try") 2>&5
14153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14154 (exit $ac_status); }; } &&
14155 { ac_try='test -s conftest.$ac_objext'
14156 { (case "(($ac_try" in
14157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14158 *) ac_try_echo=$ac_try;;
14160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14161 (eval "$ac_try") 2>&5
14163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14164 (exit $ac_status); }; }; then
14165 ac_cv_header_mmap_anon=yes
14167 echo "$as_me: failed program was:" >&5
14168 sed 's/^/| /' conftest.$ac_ext >&5
14170 ac_cv_header_mmap_anon=no
14173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14175 ac_cpp='$CPP $CPPFLAGS'
14176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14182 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14183 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14184 if test "$ac_cv_header_mmap_anon" = yes; then
14186 cat >>confdefs.h <<\_ACEOF
14187 #define HAVE_MMAP_ANONYMOUS 1
14192 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14193 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14194 if test "${ac_cv_header_stat_broken+set}" = set; then
14195 echo $ECHO_N "(cached) $ECHO_C" >&6
14197 cat >conftest.$ac_ext <<_ACEOF
14200 cat confdefs.h >>conftest.$ac_ext
14201 cat >>conftest.$ac_ext <<_ACEOF
14202 /* end confdefs.h. */
14203 #include <sys/types.h>
14204 #include <sys/stat.h>
14206 #if defined S_ISBLK && defined S_IFDIR
14207 # if S_ISBLK (S_IFDIR)
14212 #if defined S_ISBLK && defined S_IFCHR
14213 # if S_ISBLK (S_IFCHR)
14218 #if defined S_ISLNK && defined S_IFREG
14219 # if S_ISLNK (S_IFREG)
14224 #if defined S_ISSOCK && defined S_IFREG
14225 # if S_ISSOCK (S_IFREG)
14231 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14232 $EGREP "You lose" >/dev/null 2>&1; then
14233 ac_cv_header_stat_broken=yes
14235 ac_cv_header_stat_broken=no
14240 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14241 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14242 if test $ac_cv_header_stat_broken = yes; then
14244 cat >>confdefs.h <<\_ACEOF
14245 #define STAT_MACROS_BROKEN 1
14250 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14251 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14252 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14253 echo $ECHO_N "(cached) $ECHO_C" >&6
14255 cat >conftest.$ac_ext <<_ACEOF
14258 cat confdefs.h >>conftest.$ac_ext
14259 cat >>conftest.$ac_ext <<_ACEOF
14260 /* end confdefs.h. */
14261 #include <sys/types.h>
14262 #include <sys/wait.h>
14263 #ifndef WEXITSTATUS
14264 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14267 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14275 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14280 rm -f conftest.$ac_objext
14281 if { (ac_try="$ac_compile"
14282 case "(($ac_try" in
14283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14284 *) ac_try_echo=$ac_try;;
14286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14287 (eval "$ac_compile") 2>conftest.er1
14289 grep -v '^ *+' conftest.er1 >conftest.err
14291 cat conftest.err >&5
14292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14293 (exit $ac_status); } &&
14294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14295 { (case "(($ac_try" in
14296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14297 *) ac_try_echo=$ac_try;;
14299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14300 (eval "$ac_try") 2>&5
14302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14303 (exit $ac_status); }; } &&
14304 { ac_try='test -s conftest.$ac_objext'
14305 { (case "(($ac_try" in
14306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14307 *) ac_try_echo=$ac_try;;
14309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14310 (eval "$ac_try") 2>&5
14312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313 (exit $ac_status); }; }; then
14314 ac_cv_header_sys_wait_h=yes
14316 echo "$as_me: failed program was:" >&5
14317 sed 's/^/| /' conftest.$ac_ext >&5
14319 ac_cv_header_sys_wait_h=no
14322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14324 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14325 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14326 if test $ac_cv_header_sys_wait_h = yes; then
14328 cat >>confdefs.h <<\_ACEOF
14329 #define HAVE_SYS_WAIT_H 1
14334 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14335 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14336 if test "${ac_cv_header_time+set}" = set; then
14337 echo $ECHO_N "(cached) $ECHO_C" >&6
14339 cat >conftest.$ac_ext <<_ACEOF
14342 cat confdefs.h >>conftest.$ac_ext
14343 cat >>conftest.$ac_ext <<_ACEOF
14344 /* end confdefs.h. */
14345 #include <sys/types.h>
14346 #include <sys/time.h>
14352 if ((struct tm *) 0)
14358 rm -f conftest.$ac_objext
14359 if { (ac_try="$ac_compile"
14360 case "(($ac_try" in
14361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14362 *) ac_try_echo=$ac_try;;
14364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14365 (eval "$ac_compile") 2>conftest.er1
14367 grep -v '^ *+' conftest.er1 >conftest.err
14369 cat conftest.err >&5
14370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14371 (exit $ac_status); } &&
14372 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14373 { (case "(($ac_try" in
14374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14375 *) ac_try_echo=$ac_try;;
14377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14378 (eval "$ac_try") 2>&5
14380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14381 (exit $ac_status); }; } &&
14382 { ac_try='test -s conftest.$ac_objext'
14383 { (case "(($ac_try" in
14384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14385 *) ac_try_echo=$ac_try;;
14387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14388 (eval "$ac_try") 2>&5
14390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391 (exit $ac_status); }; }; then
14392 ac_cv_header_time=yes
14394 echo "$as_me: failed program was:" >&5
14395 sed 's/^/| /' conftest.$ac_ext >&5
14397 ac_cv_header_time=no
14400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14402 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14403 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14404 if test $ac_cv_header_time = yes; then
14406 cat >>confdefs.h <<\_ACEOF
14407 #define TIME_WITH_SYS_TIME 1
14419 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14421 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14422 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14423 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14425 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14426 echo $ECHO_N "(cached) $ECHO_C" >&6
14428 ac_res=`eval echo '${'$as_ac_Header'}'`
14429 { echo "$as_me:$LINENO: result: $ac_res" >&5
14430 echo "${ECHO_T}$ac_res" >&6; }
14432 # Is the header compilable?
14433 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14434 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14435 cat >conftest.$ac_ext <<_ACEOF
14438 cat confdefs.h >>conftest.$ac_ext
14439 cat >>conftest.$ac_ext <<_ACEOF
14440 /* end confdefs.h. */
14441 $ac_includes_default
14442 #include <$ac_header>
14444 rm -f conftest.$ac_objext
14445 if { (ac_try="$ac_compile"
14446 case "(($ac_try" in
14447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14448 *) ac_try_echo=$ac_try;;
14450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14451 (eval "$ac_compile") 2>conftest.er1
14453 grep -v '^ *+' conftest.er1 >conftest.err
14455 cat conftest.err >&5
14456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457 (exit $ac_status); } &&
14458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14459 { (case "(($ac_try" in
14460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14461 *) ac_try_echo=$ac_try;;
14463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14464 (eval "$ac_try") 2>&5
14466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14467 (exit $ac_status); }; } &&
14468 { ac_try='test -s conftest.$ac_objext'
14469 { (case "(($ac_try" in
14470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14471 *) ac_try_echo=$ac_try;;
14473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14474 (eval "$ac_try") 2>&5
14476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14477 (exit $ac_status); }; }; then
14478 ac_header_compiler=yes
14480 echo "$as_me: failed program was:" >&5
14481 sed 's/^/| /' conftest.$ac_ext >&5
14483 ac_header_compiler=no
14486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14487 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14488 echo "${ECHO_T}$ac_header_compiler" >&6; }
14490 # Is the header present?
14491 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14492 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14493 cat >conftest.$ac_ext <<_ACEOF
14496 cat confdefs.h >>conftest.$ac_ext
14497 cat >>conftest.$ac_ext <<_ACEOF
14498 /* end confdefs.h. */
14499 #include <$ac_header>
14501 if { (ac_try="$ac_cpp conftest.$ac_ext"
14502 case "(($ac_try" in
14503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14504 *) ac_try_echo=$ac_try;;
14506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14507 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14509 grep -v '^ *+' conftest.er1 >conftest.err
14511 cat conftest.err >&5
14512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14513 (exit $ac_status); } >/dev/null; then
14514 if test -s conftest.err; then
14515 ac_cpp_err=$ac_c_preproc_warn_flag
14516 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14523 if test -z "$ac_cpp_err"; then
14524 ac_header_preproc=yes
14526 echo "$as_me: failed program was:" >&5
14527 sed 's/^/| /' conftest.$ac_ext >&5
14529 ac_header_preproc=no
14532 rm -f conftest.err conftest.$ac_ext
14533 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14534 echo "${ECHO_T}$ac_header_preproc" >&6; }
14536 # So? What about this header?
14537 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14539 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14540 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14542 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14543 ac_header_preproc=yes
14546 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14547 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14548 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14549 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14550 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14551 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14552 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14553 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14555 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14556 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14557 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14559 ## ------------------------------ ##
14560 ## Report this to bugs@yourdomain ##
14561 ## ------------------------------ ##
14563 ) | sed "s/^/$as_me: WARNING: /" >&2
14566 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14567 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14568 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14569 echo $ECHO_N "(cached) $ECHO_C" >&6
14571 eval "$as_ac_Header=\$ac_header_preproc"
14573 ac_res=`eval echo '${'$as_ac_Header'}'`
14574 { echo "$as_me:$LINENO: result: $ac_res" >&5
14575 echo "${ECHO_T}$ac_res" >&6; }
14578 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14579 cat >>confdefs.h <<_ACEOF
14580 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14593 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14595 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14596 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14597 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14600 echo $ECHO_N "(cached) $ECHO_C" >&6
14602 ac_res=`eval echo '${'$as_ac_Header'}'`
14603 { echo "$as_me:$LINENO: result: $ac_res" >&5
14604 echo "${ECHO_T}$ac_res" >&6; }
14606 # Is the header compilable?
14607 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14608 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14609 cat >conftest.$ac_ext <<_ACEOF
14612 cat confdefs.h >>conftest.$ac_ext
14613 cat >>conftest.$ac_ext <<_ACEOF
14614 /* end confdefs.h. */
14615 $ac_includes_default
14616 #include <$ac_header>
14618 rm -f conftest.$ac_objext
14619 if { (ac_try="$ac_compile"
14620 case "(($ac_try" in
14621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14622 *) ac_try_echo=$ac_try;;
14624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14625 (eval "$ac_compile") 2>conftest.er1
14627 grep -v '^ *+' conftest.er1 >conftest.err
14629 cat conftest.err >&5
14630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631 (exit $ac_status); } &&
14632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14633 { (case "(($ac_try" in
14634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14635 *) ac_try_echo=$ac_try;;
14637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14638 (eval "$ac_try") 2>&5
14640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14641 (exit $ac_status); }; } &&
14642 { ac_try='test -s conftest.$ac_objext'
14643 { (case "(($ac_try" in
14644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14645 *) ac_try_echo=$ac_try;;
14647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14648 (eval "$ac_try") 2>&5
14650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14651 (exit $ac_status); }; }; then
14652 ac_header_compiler=yes
14654 echo "$as_me: failed program was:" >&5
14655 sed 's/^/| /' conftest.$ac_ext >&5
14657 ac_header_compiler=no
14660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14661 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14662 echo "${ECHO_T}$ac_header_compiler" >&6; }
14664 # Is the header present?
14665 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14666 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14667 cat >conftest.$ac_ext <<_ACEOF
14670 cat confdefs.h >>conftest.$ac_ext
14671 cat >>conftest.$ac_ext <<_ACEOF
14672 /* end confdefs.h. */
14673 #include <$ac_header>
14675 if { (ac_try="$ac_cpp conftest.$ac_ext"
14676 case "(($ac_try" in
14677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14678 *) ac_try_echo=$ac_try;;
14680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14681 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14683 grep -v '^ *+' conftest.er1 >conftest.err
14685 cat conftest.err >&5
14686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14687 (exit $ac_status); } >/dev/null; then
14688 if test -s conftest.err; then
14689 ac_cpp_err=$ac_c_preproc_warn_flag
14690 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14697 if test -z "$ac_cpp_err"; then
14698 ac_header_preproc=yes
14700 echo "$as_me: failed program was:" >&5
14701 sed 's/^/| /' conftest.$ac_ext >&5
14703 ac_header_preproc=no
14706 rm -f conftest.err conftest.$ac_ext
14707 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14708 echo "${ECHO_T}$ac_header_preproc" >&6; }
14710 # So? What about this header?
14711 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14713 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14714 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14715 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14716 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14717 ac_header_preproc=yes
14720 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14721 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14722 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14723 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14724 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14725 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14726 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14727 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14728 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14729 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14730 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14731 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14733 ## ------------------------------ ##
14734 ## Report this to bugs@yourdomain ##
14735 ## ------------------------------ ##
14737 ) | sed "s/^/$as_me: WARNING: /" >&2
14740 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14742 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14743 echo $ECHO_N "(cached) $ECHO_C" >&6
14745 eval "$as_ac_Header=\$ac_header_preproc"
14747 ac_res=`eval echo '${'$as_ac_Header'}'`
14748 { echo "$as_me:$LINENO: result: $ac_res" >&5
14749 echo "${ECHO_T}$ac_res" >&6; }
14752 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14753 cat >>confdefs.h <<_ACEOF
14754 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14763 for ac_header in utime.h windows.h
14765 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14766 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14767 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14769 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14770 echo $ECHO_N "(cached) $ECHO_C" >&6
14772 ac_res=`eval echo '${'$as_ac_Header'}'`
14773 { echo "$as_me:$LINENO: result: $ac_res" >&5
14774 echo "${ECHO_T}$ac_res" >&6; }
14776 # Is the header compilable?
14777 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14778 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14779 cat >conftest.$ac_ext <<_ACEOF
14782 cat confdefs.h >>conftest.$ac_ext
14783 cat >>conftest.$ac_ext <<_ACEOF
14784 /* end confdefs.h. */
14785 $ac_includes_default
14786 #include <$ac_header>
14788 rm -f conftest.$ac_objext
14789 if { (ac_try="$ac_compile"
14790 case "(($ac_try" in
14791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14792 *) ac_try_echo=$ac_try;;
14794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14795 (eval "$ac_compile") 2>conftest.er1
14797 grep -v '^ *+' conftest.er1 >conftest.err
14799 cat conftest.err >&5
14800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14801 (exit $ac_status); } &&
14802 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14803 { (case "(($ac_try" in
14804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14805 *) ac_try_echo=$ac_try;;
14807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14808 (eval "$ac_try") 2>&5
14810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14811 (exit $ac_status); }; } &&
14812 { ac_try='test -s conftest.$ac_objext'
14813 { (case "(($ac_try" in
14814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14815 *) ac_try_echo=$ac_try;;
14817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14818 (eval "$ac_try") 2>&5
14820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14821 (exit $ac_status); }; }; then
14822 ac_header_compiler=yes
14824 echo "$as_me: failed program was:" >&5
14825 sed 's/^/| /' conftest.$ac_ext >&5
14827 ac_header_compiler=no
14830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14831 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14832 echo "${ECHO_T}$ac_header_compiler" >&6; }
14834 # Is the header present?
14835 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14836 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14837 cat >conftest.$ac_ext <<_ACEOF
14840 cat confdefs.h >>conftest.$ac_ext
14841 cat >>conftest.$ac_ext <<_ACEOF
14842 /* end confdefs.h. */
14843 #include <$ac_header>
14845 if { (ac_try="$ac_cpp conftest.$ac_ext"
14846 case "(($ac_try" in
14847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14848 *) ac_try_echo=$ac_try;;
14850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14851 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14853 grep -v '^ *+' conftest.er1 >conftest.err
14855 cat conftest.err >&5
14856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14857 (exit $ac_status); } >/dev/null; then
14858 if test -s conftest.err; then
14859 ac_cpp_err=$ac_c_preproc_warn_flag
14860 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14867 if test -z "$ac_cpp_err"; then
14868 ac_header_preproc=yes
14870 echo "$as_me: failed program was:" >&5
14871 sed 's/^/| /' conftest.$ac_ext >&5
14873 ac_header_preproc=no
14876 rm -f conftest.err conftest.$ac_ext
14877 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14878 echo "${ECHO_T}$ac_header_preproc" >&6; }
14880 # So? What about this header?
14881 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14883 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14884 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14885 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14886 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14887 ac_header_preproc=yes
14890 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14891 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14892 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14893 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14894 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14895 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14896 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14897 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14899 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14900 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14901 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14903 ## ------------------------------ ##
14904 ## Report this to bugs@yourdomain ##
14905 ## ------------------------------ ##
14907 ) | sed "s/^/$as_me: WARNING: /" >&2
14910 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14912 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14913 echo $ECHO_N "(cached) $ECHO_C" >&6
14915 eval "$as_ac_Header=\$ac_header_preproc"
14917 ac_res=`eval echo '${'$as_ac_Header'}'`
14918 { echo "$as_me:$LINENO: result: $ac_res" >&5
14919 echo "${ECHO_T}$ac_res" >&6; }
14922 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14923 cat >>confdefs.h <<_ACEOF
14924 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14936 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14938 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14940 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14943 echo $ECHO_N "(cached) $ECHO_C" >&6
14945 ac_res=`eval echo '${'$as_ac_Header'}'`
14946 { echo "$as_me:$LINENO: result: $ac_res" >&5
14947 echo "${ECHO_T}$ac_res" >&6; }
14949 # Is the header compilable?
14950 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14951 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14952 cat >conftest.$ac_ext <<_ACEOF
14955 cat confdefs.h >>conftest.$ac_ext
14956 cat >>conftest.$ac_ext <<_ACEOF
14957 /* end confdefs.h. */
14958 $ac_includes_default
14959 #include <$ac_header>
14961 rm -f conftest.$ac_objext
14962 if { (ac_try="$ac_compile"
14963 case "(($ac_try" in
14964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14965 *) ac_try_echo=$ac_try;;
14967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14968 (eval "$ac_compile") 2>conftest.er1
14970 grep -v '^ *+' conftest.er1 >conftest.err
14972 cat conftest.err >&5
14973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14974 (exit $ac_status); } &&
14975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14976 { (case "(($ac_try" in
14977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14978 *) ac_try_echo=$ac_try;;
14980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14981 (eval "$ac_try") 2>&5
14983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14984 (exit $ac_status); }; } &&
14985 { ac_try='test -s conftest.$ac_objext'
14986 { (case "(($ac_try" in
14987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14988 *) ac_try_echo=$ac_try;;
14990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14991 (eval "$ac_try") 2>&5
14993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14994 (exit $ac_status); }; }; then
14995 ac_header_compiler=yes
14997 echo "$as_me: failed program was:" >&5
14998 sed 's/^/| /' conftest.$ac_ext >&5
15000 ac_header_compiler=no
15003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15004 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15005 echo "${ECHO_T}$ac_header_compiler" >&6; }
15007 # Is the header present?
15008 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15009 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15010 cat >conftest.$ac_ext <<_ACEOF
15013 cat confdefs.h >>conftest.$ac_ext
15014 cat >>conftest.$ac_ext <<_ACEOF
15015 /* end confdefs.h. */
15016 #include <$ac_header>
15018 if { (ac_try="$ac_cpp conftest.$ac_ext"
15019 case "(($ac_try" in
15020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15021 *) ac_try_echo=$ac_try;;
15023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15024 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15026 grep -v '^ *+' conftest.er1 >conftest.err
15028 cat conftest.err >&5
15029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15030 (exit $ac_status); } >/dev/null; then
15031 if test -s conftest.err; then
15032 ac_cpp_err=$ac_c_preproc_warn_flag
15033 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15040 if test -z "$ac_cpp_err"; then
15041 ac_header_preproc=yes
15043 echo "$as_me: failed program was:" >&5
15044 sed 's/^/| /' conftest.$ac_ext >&5
15046 ac_header_preproc=no
15049 rm -f conftest.err conftest.$ac_ext
15050 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15051 echo "${ECHO_T}$ac_header_preproc" >&6; }
15053 # So? What about this header?
15054 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15056 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15057 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15058 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15059 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15060 ac_header_preproc=yes
15063 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15064 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15065 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15066 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15067 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15068 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15069 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15070 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15071 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15072 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15073 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15074 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15076 ## ------------------------------ ##
15077 ## Report this to bugs@yourdomain ##
15078 ## ------------------------------ ##
15080 ) | sed "s/^/$as_me: WARNING: /" >&2
15083 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15085 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15086 echo $ECHO_N "(cached) $ECHO_C" >&6
15088 eval "$as_ac_Header=\$ac_header_preproc"
15090 ac_res=`eval echo '${'$as_ac_Header'}'`
15091 { echo "$as_me:$LINENO: result: $ac_res" >&5
15092 echo "${ECHO_T}$ac_res" >&6; }
15095 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15096 cat >>confdefs.h <<_ACEOF
15097 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15108 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15110 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15111 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15112 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15113 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15114 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15115 echo $ECHO_N "(cached) $ECHO_C" >&6
15117 ac_res=`eval echo '${'$as_ac_Header'}'`
15118 { echo "$as_me:$LINENO: result: $ac_res" >&5
15119 echo "${ECHO_T}$ac_res" >&6; }
15121 # Is the header compilable?
15122 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15123 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15124 cat >conftest.$ac_ext <<_ACEOF
15127 cat confdefs.h >>conftest.$ac_ext
15128 cat >>conftest.$ac_ext <<_ACEOF
15129 /* end confdefs.h. */
15130 $ac_includes_default
15131 #include <$ac_header>
15133 rm -f conftest.$ac_objext
15134 if { (ac_try="$ac_compile"
15135 case "(($ac_try" in
15136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15137 *) ac_try_echo=$ac_try;;
15139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15140 (eval "$ac_compile") 2>conftest.er1
15142 grep -v '^ *+' conftest.er1 >conftest.err
15144 cat conftest.err >&5
15145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146 (exit $ac_status); } &&
15147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15148 { (case "(($ac_try" in
15149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15150 *) ac_try_echo=$ac_try;;
15152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15153 (eval "$ac_try") 2>&5
15155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15156 (exit $ac_status); }; } &&
15157 { ac_try='test -s conftest.$ac_objext'
15158 { (case "(($ac_try" in
15159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15160 *) ac_try_echo=$ac_try;;
15162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15163 (eval "$ac_try") 2>&5
15165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15166 (exit $ac_status); }; }; then
15167 ac_header_compiler=yes
15169 echo "$as_me: failed program was:" >&5
15170 sed 's/^/| /' conftest.$ac_ext >&5
15172 ac_header_compiler=no
15175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15176 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15177 echo "${ECHO_T}$ac_header_compiler" >&6; }
15179 # Is the header present?
15180 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15181 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15182 cat >conftest.$ac_ext <<_ACEOF
15185 cat confdefs.h >>conftest.$ac_ext
15186 cat >>conftest.$ac_ext <<_ACEOF
15187 /* end confdefs.h. */
15188 #include <$ac_header>
15190 if { (ac_try="$ac_cpp conftest.$ac_ext"
15191 case "(($ac_try" in
15192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15193 *) ac_try_echo=$ac_try;;
15195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15196 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15198 grep -v '^ *+' conftest.er1 >conftest.err
15200 cat conftest.err >&5
15201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15202 (exit $ac_status); } >/dev/null; then
15203 if test -s conftest.err; then
15204 ac_cpp_err=$ac_c_preproc_warn_flag
15205 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15212 if test -z "$ac_cpp_err"; then
15213 ac_header_preproc=yes
15215 echo "$as_me: failed program was:" >&5
15216 sed 's/^/| /' conftest.$ac_ext >&5
15218 ac_header_preproc=no
15221 rm -f conftest.err conftest.$ac_ext
15222 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15223 echo "${ECHO_T}$ac_header_preproc" >&6; }
15225 # So? What about this header?
15226 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15228 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15229 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15230 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15231 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15232 ac_header_preproc=yes
15235 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15236 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15237 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15238 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15239 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15240 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15241 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15242 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15243 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15244 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15245 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15246 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15248 ## ------------------------------ ##
15249 ## Report this to bugs@yourdomain ##
15250 ## ------------------------------ ##
15252 ) | sed "s/^/$as_me: WARNING: /" >&2
15255 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15256 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15258 echo $ECHO_N "(cached) $ECHO_C" >&6
15260 eval "$as_ac_Header=\$ac_header_preproc"
15262 ac_res=`eval echo '${'$as_ac_Header'}'`
15263 { echo "$as_me:$LINENO: result: $ac_res" >&5
15264 echo "${ECHO_T}$ac_res" >&6; }
15267 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15268 cat >>confdefs.h <<_ACEOF
15269 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15277 for ac_header in valgrind/valgrind.h
15279 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15280 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15281 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15282 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15283 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15284 echo $ECHO_N "(cached) $ECHO_C" >&6
15286 ac_res=`eval echo '${'$as_ac_Header'}'`
15287 { echo "$as_me:$LINENO: result: $ac_res" >&5
15288 echo "${ECHO_T}$ac_res" >&6; }
15290 # Is the header compilable?
15291 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15292 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15293 cat >conftest.$ac_ext <<_ACEOF
15296 cat confdefs.h >>conftest.$ac_ext
15297 cat >>conftest.$ac_ext <<_ACEOF
15298 /* end confdefs.h. */
15299 $ac_includes_default
15300 #include <$ac_header>
15302 rm -f conftest.$ac_objext
15303 if { (ac_try="$ac_compile"
15304 case "(($ac_try" in
15305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15306 *) ac_try_echo=$ac_try;;
15308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15309 (eval "$ac_compile") 2>conftest.er1
15311 grep -v '^ *+' conftest.er1 >conftest.err
15313 cat conftest.err >&5
15314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15315 (exit $ac_status); } &&
15316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15317 { (case "(($ac_try" in
15318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15319 *) ac_try_echo=$ac_try;;
15321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15322 (eval "$ac_try") 2>&5
15324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15325 (exit $ac_status); }; } &&
15326 { ac_try='test -s conftest.$ac_objext'
15327 { (case "(($ac_try" in
15328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15329 *) ac_try_echo=$ac_try;;
15331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15332 (eval "$ac_try") 2>&5
15334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335 (exit $ac_status); }; }; then
15336 ac_header_compiler=yes
15338 echo "$as_me: failed program was:" >&5
15339 sed 's/^/| /' conftest.$ac_ext >&5
15341 ac_header_compiler=no
15344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15345 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15346 echo "${ECHO_T}$ac_header_compiler" >&6; }
15348 # Is the header present?
15349 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15350 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15351 cat >conftest.$ac_ext <<_ACEOF
15354 cat confdefs.h >>conftest.$ac_ext
15355 cat >>conftest.$ac_ext <<_ACEOF
15356 /* end confdefs.h. */
15357 #include <$ac_header>
15359 if { (ac_try="$ac_cpp conftest.$ac_ext"
15360 case "(($ac_try" in
15361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15362 *) ac_try_echo=$ac_try;;
15364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15365 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15367 grep -v '^ *+' conftest.er1 >conftest.err
15369 cat conftest.err >&5
15370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371 (exit $ac_status); } >/dev/null; then
15372 if test -s conftest.err; then
15373 ac_cpp_err=$ac_c_preproc_warn_flag
15374 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15381 if test -z "$ac_cpp_err"; then
15382 ac_header_preproc=yes
15384 echo "$as_me: failed program was:" >&5
15385 sed 's/^/| /' conftest.$ac_ext >&5
15387 ac_header_preproc=no
15390 rm -f conftest.err conftest.$ac_ext
15391 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15392 echo "${ECHO_T}$ac_header_preproc" >&6; }
15394 # So? What about this header?
15395 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15397 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15398 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15399 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15400 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15401 ac_header_preproc=yes
15404 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15405 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15406 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15407 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15408 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15409 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15410 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15411 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15412 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15413 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15414 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15415 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15417 ## ------------------------------ ##
15418 ## Report this to bugs@yourdomain ##
15419 ## ------------------------------ ##
15421 ) | sed "s/^/$as_me: WARNING: /" >&2
15424 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15426 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15427 echo $ECHO_N "(cached) $ECHO_C" >&6
15429 eval "$as_ac_Header=\$ac_header_preproc"
15431 ac_res=`eval echo '${'$as_ac_Header'}'`
15432 { echo "$as_me:$LINENO: result: $ac_res" >&5
15433 echo "${ECHO_T}$ac_res" >&6; }
15436 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15437 cat >>confdefs.h <<_ACEOF
15438 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15446 for ac_header in fenv.h
15448 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15449 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15450 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15452 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15453 echo $ECHO_N "(cached) $ECHO_C" >&6
15455 ac_res=`eval echo '${'$as_ac_Header'}'`
15456 { echo "$as_me:$LINENO: result: $ac_res" >&5
15457 echo "${ECHO_T}$ac_res" >&6; }
15459 # Is the header compilable?
15460 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15461 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15462 cat >conftest.$ac_ext <<_ACEOF
15465 cat confdefs.h >>conftest.$ac_ext
15466 cat >>conftest.$ac_ext <<_ACEOF
15467 /* end confdefs.h. */
15468 $ac_includes_default
15469 #include <$ac_header>
15471 rm -f conftest.$ac_objext
15472 if { (ac_try="$ac_compile"
15473 case "(($ac_try" in
15474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15475 *) ac_try_echo=$ac_try;;
15477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15478 (eval "$ac_compile") 2>conftest.er1
15480 grep -v '^ *+' conftest.er1 >conftest.err
15482 cat conftest.err >&5
15483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15484 (exit $ac_status); } &&
15485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15486 { (case "(($ac_try" in
15487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15488 *) ac_try_echo=$ac_try;;
15490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15491 (eval "$ac_try") 2>&5
15493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15494 (exit $ac_status); }; } &&
15495 { ac_try='test -s conftest.$ac_objext'
15496 { (case "(($ac_try" in
15497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15498 *) ac_try_echo=$ac_try;;
15500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15501 (eval "$ac_try") 2>&5
15503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15504 (exit $ac_status); }; }; then
15505 ac_header_compiler=yes
15507 echo "$as_me: failed program was:" >&5
15508 sed 's/^/| /' conftest.$ac_ext >&5
15510 ac_header_compiler=no
15513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15514 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15515 echo "${ECHO_T}$ac_header_compiler" >&6; }
15517 # Is the header present?
15518 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15519 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15520 cat >conftest.$ac_ext <<_ACEOF
15523 cat confdefs.h >>conftest.$ac_ext
15524 cat >>conftest.$ac_ext <<_ACEOF
15525 /* end confdefs.h. */
15526 #include <$ac_header>
15528 if { (ac_try="$ac_cpp conftest.$ac_ext"
15529 case "(($ac_try" in
15530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15531 *) ac_try_echo=$ac_try;;
15533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15534 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15536 grep -v '^ *+' conftest.er1 >conftest.err
15538 cat conftest.err >&5
15539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15540 (exit $ac_status); } >/dev/null; then
15541 if test -s conftest.err; then
15542 ac_cpp_err=$ac_c_preproc_warn_flag
15543 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15550 if test -z "$ac_cpp_err"; then
15551 ac_header_preproc=yes
15553 echo "$as_me: failed program was:" >&5
15554 sed 's/^/| /' conftest.$ac_ext >&5
15556 ac_header_preproc=no
15559 rm -f conftest.err conftest.$ac_ext
15560 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15561 echo "${ECHO_T}$ac_header_preproc" >&6; }
15563 # So? What about this header?
15564 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15566 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15567 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15568 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15569 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15570 ac_header_preproc=yes
15573 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15574 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15575 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15576 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15577 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15578 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15579 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15580 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15582 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15583 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15584 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15586 ## ------------------------------ ##
15587 ## Report this to bugs@yourdomain ##
15588 ## ------------------------------ ##
15590 ) | sed "s/^/$as_me: WARNING: /" >&2
15593 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15595 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15596 echo $ECHO_N "(cached) $ECHO_C" >&6
15598 eval "$as_ac_Header=\$ac_header_preproc"
15600 ac_res=`eval echo '${'$as_ac_Header'}'`
15601 { echo "$as_me:$LINENO: result: $ac_res" >&5
15602 echo "${ECHO_T}$ac_res" >&6; }
15605 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15606 cat >>confdefs.h <<_ACEOF
15607 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15614 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15616 for ac_header in pthread.h
15618 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15619 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15620 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15621 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15622 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15623 echo $ECHO_N "(cached) $ECHO_C" >&6
15625 ac_res=`eval echo '${'$as_ac_Header'}'`
15626 { echo "$as_me:$LINENO: result: $ac_res" >&5
15627 echo "${ECHO_T}$ac_res" >&6; }
15629 # Is the header compilable?
15630 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15631 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15632 cat >conftest.$ac_ext <<_ACEOF
15635 cat confdefs.h >>conftest.$ac_ext
15636 cat >>conftest.$ac_ext <<_ACEOF
15637 /* end confdefs.h. */
15638 $ac_includes_default
15639 #include <$ac_header>
15641 rm -f conftest.$ac_objext
15642 if { (ac_try="$ac_compile"
15643 case "(($ac_try" in
15644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15645 *) ac_try_echo=$ac_try;;
15647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15648 (eval "$ac_compile") 2>conftest.er1
15650 grep -v '^ *+' conftest.er1 >conftest.err
15652 cat conftest.err >&5
15653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15654 (exit $ac_status); } &&
15655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15656 { (case "(($ac_try" in
15657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15658 *) ac_try_echo=$ac_try;;
15660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15661 (eval "$ac_try") 2>&5
15663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664 (exit $ac_status); }; } &&
15665 { ac_try='test -s conftest.$ac_objext'
15666 { (case "(($ac_try" in
15667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15668 *) ac_try_echo=$ac_try;;
15670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15671 (eval "$ac_try") 2>&5
15673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674 (exit $ac_status); }; }; then
15675 ac_header_compiler=yes
15677 echo "$as_me: failed program was:" >&5
15678 sed 's/^/| /' conftest.$ac_ext >&5
15680 ac_header_compiler=no
15683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15684 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15685 echo "${ECHO_T}$ac_header_compiler" >&6; }
15687 # Is the header present?
15688 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15689 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15690 cat >conftest.$ac_ext <<_ACEOF
15693 cat confdefs.h >>conftest.$ac_ext
15694 cat >>conftest.$ac_ext <<_ACEOF
15695 /* end confdefs.h. */
15696 #include <$ac_header>
15698 if { (ac_try="$ac_cpp conftest.$ac_ext"
15699 case "(($ac_try" in
15700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15701 *) ac_try_echo=$ac_try;;
15703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15704 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15706 grep -v '^ *+' conftest.er1 >conftest.err
15708 cat conftest.err >&5
15709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15710 (exit $ac_status); } >/dev/null; then
15711 if test -s conftest.err; then
15712 ac_cpp_err=$ac_c_preproc_warn_flag
15713 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15720 if test -z "$ac_cpp_err"; then
15721 ac_header_preproc=yes
15723 echo "$as_me: failed program was:" >&5
15724 sed 's/^/| /' conftest.$ac_ext >&5
15726 ac_header_preproc=no
15729 rm -f conftest.err conftest.$ac_ext
15730 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15731 echo "${ECHO_T}$ac_header_preproc" >&6; }
15733 # So? What about this header?
15734 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15736 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15737 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15738 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15739 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15740 ac_header_preproc=yes
15743 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15744 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15745 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15746 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15747 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15748 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15749 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15750 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15751 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15752 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15753 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15754 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15756 ## ------------------------------ ##
15757 ## Report this to bugs@yourdomain ##
15758 ## ------------------------------ ##
15760 ) | sed "s/^/$as_me: WARNING: /" >&2
15763 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15764 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15765 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15766 echo $ECHO_N "(cached) $ECHO_C" >&6
15768 eval "$as_ac_Header=\$ac_header_preproc"
15770 ac_res=`eval echo '${'$as_ac_Header'}'`
15771 { echo "$as_me:$LINENO: result: $ac_res" >&5
15772 echo "${ECHO_T}$ac_res" >&6; }
15775 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15776 cat >>confdefs.h <<_ACEOF
15777 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15793 if test "$llvm_cv_enable_libffi" = "yes" ; then
15796 for ac_header in ffi.h ffi/ffi.h
15798 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15799 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15800 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15801 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15802 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15803 echo $ECHO_N "(cached) $ECHO_C" >&6
15805 ac_res=`eval echo '${'$as_ac_Header'}'`
15806 { echo "$as_me:$LINENO: result: $ac_res" >&5
15807 echo "${ECHO_T}$ac_res" >&6; }
15809 # Is the header compilable?
15810 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15811 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15812 cat >conftest.$ac_ext <<_ACEOF
15815 cat confdefs.h >>conftest.$ac_ext
15816 cat >>conftest.$ac_ext <<_ACEOF
15817 /* end confdefs.h. */
15818 $ac_includes_default
15819 #include <$ac_header>
15821 rm -f conftest.$ac_objext
15822 if { (ac_try="$ac_compile"
15823 case "(($ac_try" in
15824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15825 *) ac_try_echo=$ac_try;;
15827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15828 (eval "$ac_compile") 2>conftest.er1
15830 grep -v '^ *+' conftest.er1 >conftest.err
15832 cat conftest.err >&5
15833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15834 (exit $ac_status); } &&
15835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15836 { (case "(($ac_try" in
15837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15838 *) ac_try_echo=$ac_try;;
15840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15841 (eval "$ac_try") 2>&5
15843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844 (exit $ac_status); }; } &&
15845 { ac_try='test -s conftest.$ac_objext'
15846 { (case "(($ac_try" in
15847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15848 *) ac_try_echo=$ac_try;;
15850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15851 (eval "$ac_try") 2>&5
15853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854 (exit $ac_status); }; }; then
15855 ac_header_compiler=yes
15857 echo "$as_me: failed program was:" >&5
15858 sed 's/^/| /' conftest.$ac_ext >&5
15860 ac_header_compiler=no
15863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15864 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15865 echo "${ECHO_T}$ac_header_compiler" >&6; }
15867 # Is the header present?
15868 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15869 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15870 cat >conftest.$ac_ext <<_ACEOF
15873 cat confdefs.h >>conftest.$ac_ext
15874 cat >>conftest.$ac_ext <<_ACEOF
15875 /* end confdefs.h. */
15876 #include <$ac_header>
15878 if { (ac_try="$ac_cpp conftest.$ac_ext"
15879 case "(($ac_try" in
15880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15881 *) ac_try_echo=$ac_try;;
15883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15884 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15886 grep -v '^ *+' conftest.er1 >conftest.err
15888 cat conftest.err >&5
15889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15890 (exit $ac_status); } >/dev/null; then
15891 if test -s conftest.err; then
15892 ac_cpp_err=$ac_c_preproc_warn_flag
15893 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15900 if test -z "$ac_cpp_err"; then
15901 ac_header_preproc=yes
15903 echo "$as_me: failed program was:" >&5
15904 sed 's/^/| /' conftest.$ac_ext >&5
15906 ac_header_preproc=no
15909 rm -f conftest.err conftest.$ac_ext
15910 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15911 echo "${ECHO_T}$ac_header_preproc" >&6; }
15913 # So? What about this header?
15914 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15916 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15917 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15918 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15919 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15920 ac_header_preproc=yes
15923 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15924 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15925 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15926 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15927 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15928 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15929 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15930 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15931 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15932 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15933 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15934 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15936 ## ------------------------------ ##
15937 ## Report this to bugs@yourdomain ##
15938 ## ------------------------------ ##
15940 ) | sed "s/^/$as_me: WARNING: /" >&2
15943 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15944 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15945 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15946 echo $ECHO_N "(cached) $ECHO_C" >&6
15948 eval "$as_ac_Header=\$ac_header_preproc"
15950 ac_res=`eval echo '${'$as_ac_Header'}'`
15951 { echo "$as_me:$LINENO: result: $ac_res" >&5
15952 echo "${ECHO_T}$ac_res" >&6; }
15955 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15956 cat >>confdefs.h <<_ACEOF
15957 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15967 for ac_header in CrashReporterClient.h
15969 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15970 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15971 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15972 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15973 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15974 echo $ECHO_N "(cached) $ECHO_C" >&6
15976 ac_res=`eval echo '${'$as_ac_Header'}'`
15977 { echo "$as_me:$LINENO: result: $ac_res" >&5
15978 echo "${ECHO_T}$ac_res" >&6; }
15980 # Is the header compilable?
15981 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15982 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15983 cat >conftest.$ac_ext <<_ACEOF
15986 cat confdefs.h >>conftest.$ac_ext
15987 cat >>conftest.$ac_ext <<_ACEOF
15988 /* end confdefs.h. */
15989 $ac_includes_default
15990 #include <$ac_header>
15992 rm -f conftest.$ac_objext
15993 if { (ac_try="$ac_compile"
15994 case "(($ac_try" in
15995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15996 *) ac_try_echo=$ac_try;;
15998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15999 (eval "$ac_compile") 2>conftest.er1
16001 grep -v '^ *+' conftest.er1 >conftest.err
16003 cat conftest.err >&5
16004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16005 (exit $ac_status); } &&
16006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16007 { (case "(($ac_try" in
16008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16009 *) ac_try_echo=$ac_try;;
16011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16012 (eval "$ac_try") 2>&5
16014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16015 (exit $ac_status); }; } &&
16016 { ac_try='test -s conftest.$ac_objext'
16017 { (case "(($ac_try" in
16018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16019 *) ac_try_echo=$ac_try;;
16021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16022 (eval "$ac_try") 2>&5
16024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16025 (exit $ac_status); }; }; then
16026 ac_header_compiler=yes
16028 echo "$as_me: failed program was:" >&5
16029 sed 's/^/| /' conftest.$ac_ext >&5
16031 ac_header_compiler=no
16034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16035 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16036 echo "${ECHO_T}$ac_header_compiler" >&6; }
16038 # Is the header present?
16039 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16040 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16041 cat >conftest.$ac_ext <<_ACEOF
16044 cat confdefs.h >>conftest.$ac_ext
16045 cat >>conftest.$ac_ext <<_ACEOF
16046 /* end confdefs.h. */
16047 #include <$ac_header>
16049 if { (ac_try="$ac_cpp conftest.$ac_ext"
16050 case "(($ac_try" in
16051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16052 *) ac_try_echo=$ac_try;;
16054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16055 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16057 grep -v '^ *+' conftest.er1 >conftest.err
16059 cat conftest.err >&5
16060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16061 (exit $ac_status); } >/dev/null; then
16062 if test -s conftest.err; then
16063 ac_cpp_err=$ac_c_preproc_warn_flag
16064 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16071 if test -z "$ac_cpp_err"; then
16072 ac_header_preproc=yes
16074 echo "$as_me: failed program was:" >&5
16075 sed 's/^/| /' conftest.$ac_ext >&5
16077 ac_header_preproc=no
16080 rm -f conftest.err conftest.$ac_ext
16081 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16082 echo "${ECHO_T}$ac_header_preproc" >&6; }
16084 # So? What about this header?
16085 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16087 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16088 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16089 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16090 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16091 ac_header_preproc=yes
16094 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16095 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16096 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16097 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16098 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16099 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16100 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16101 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16102 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16103 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16104 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16105 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16107 ## ------------------------------ ##
16108 ## Report this to bugs@yourdomain ##
16109 ## ------------------------------ ##
16111 ) | sed "s/^/$as_me: WARNING: /" >&2
16114 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16115 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16116 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16117 echo $ECHO_N "(cached) $ECHO_C" >&6
16119 eval "$as_ac_Header=\$ac_header_preproc"
16121 ac_res=`eval echo '${'$as_ac_Header'}'`
16122 { echo "$as_me:$LINENO: result: $ac_res" >&5
16123 echo "${ECHO_T}$ac_res" >&6; }
16126 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16127 cat >>confdefs.h <<_ACEOF
16128 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16136 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16137 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16138 cat >conftest.$ac_ext <<_ACEOF
16141 cat confdefs.h >>conftest.$ac_ext
16142 cat >>conftest.$ac_ext <<_ACEOF
16143 /* end confdefs.h. */
16144 extern const char *__crashreporter_info__;
16146 __crashreporter_info__ = "test";
16151 rm -f conftest.$ac_objext conftest$ac_exeext
16152 if { (ac_try="$ac_link"
16153 case "(($ac_try" in
16154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16155 *) ac_try_echo=$ac_try;;
16157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16158 (eval "$ac_link") 2>conftest.er1
16160 grep -v '^ *+' conftest.er1 >conftest.err
16162 cat conftest.err >&5
16163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16164 (exit $ac_status); } &&
16165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16166 { (case "(($ac_try" in
16167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16168 *) ac_try_echo=$ac_try;;
16170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16171 (eval "$ac_try") 2>&5
16173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16174 (exit $ac_status); }; } &&
16175 { ac_try='test -s conftest$ac_exeext'
16176 { (case "(($ac_try" in
16177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16178 *) ac_try_echo=$ac_try;;
16180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16181 (eval "$ac_try") 2>&5
16183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16184 (exit $ac_status); }; }; then
16185 { echo "$as_me:$LINENO: result: yes" >&5
16186 echo "${ECHO_T}yes" >&6; }
16188 cat >>confdefs.h <<\_ACEOF
16189 #define HAVE_CRASHREPORTER_INFO 1
16193 echo "$as_me: failed program was:" >&5
16194 sed 's/^/| /' conftest.$ac_ext >&5
16196 { echo "$as_me:$LINENO: result: no" >&5
16197 echo "${ECHO_T}no" >&6; }
16199 cat >>confdefs.h <<\_ACEOF
16200 #define HAVE_CRASHREPORTER_INFO 0
16205 rm -f core conftest.err conftest.$ac_objext \
16206 conftest$ac_exeext conftest.$ac_ext
16211 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16212 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16213 if test "${ac_cv_huge_val_sanity+set}" = set; then
16214 echo $ECHO_N "(cached) $ECHO_C" >&6
16218 ac_cpp='$CXXCPP $CPPFLAGS'
16219 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16220 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16221 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16223 ac_save_CXXFLAGS=$CXXFLAGS
16224 CXXFLAGS="$CXXFLAGS -pedantic"
16225 if test "$cross_compiling" = yes; then
16226 ac_cv_huge_val_sanity=yes
16228 cat >conftest.$ac_ext <<_ACEOF
16231 cat confdefs.h >>conftest.$ac_ext
16232 cat >>conftest.$ac_ext <<_ACEOF
16233 /* end confdefs.h. */
16238 double x = HUGE_VAL; return x != x;
16243 rm -f conftest$ac_exeext
16244 if { (ac_try="$ac_link"
16245 case "(($ac_try" in
16246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16247 *) ac_try_echo=$ac_try;;
16249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16250 (eval "$ac_link") 2>&5
16252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16253 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16254 { (case "(($ac_try" in
16255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16256 *) ac_try_echo=$ac_try;;
16258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16259 (eval "$ac_try") 2>&5
16261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16262 (exit $ac_status); }; }; then
16263 ac_cv_huge_val_sanity=yes
16265 echo "$as_me: program exited with status $ac_status" >&5
16266 echo "$as_me: failed program was:" >&5
16267 sed 's/^/| /' conftest.$ac_ext >&5
16269 ( exit $ac_status )
16270 ac_cv_huge_val_sanity=no
16272 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16276 CXXFLAGS=$ac_save_CXXFLAGS
16278 ac_cpp='$CPP $CPPFLAGS'
16279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16285 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16286 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16287 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16290 { echo "$as_me:$LINENO: checking for pid_t" >&5
16291 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16292 if test "${ac_cv_type_pid_t+set}" = set; then
16293 echo $ECHO_N "(cached) $ECHO_C" >&6
16295 cat >conftest.$ac_ext <<_ACEOF
16298 cat confdefs.h >>conftest.$ac_ext
16299 cat >>conftest.$ac_ext <<_ACEOF
16300 /* end confdefs.h. */
16301 $ac_includes_default
16302 typedef pid_t ac__type_new_;
16306 if ((ac__type_new_ *) 0)
16308 if (sizeof (ac__type_new_))
16314 rm -f conftest.$ac_objext
16315 if { (ac_try="$ac_compile"
16316 case "(($ac_try" in
16317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16318 *) ac_try_echo=$ac_try;;
16320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16321 (eval "$ac_compile") 2>conftest.er1
16323 grep -v '^ *+' conftest.er1 >conftest.err
16325 cat conftest.err >&5
16326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16327 (exit $ac_status); } &&
16328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16329 { (case "(($ac_try" in
16330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16331 *) ac_try_echo=$ac_try;;
16333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16334 (eval "$ac_try") 2>&5
16336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16337 (exit $ac_status); }; } &&
16338 { ac_try='test -s conftest.$ac_objext'
16339 { (case "(($ac_try" in
16340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16341 *) ac_try_echo=$ac_try;;
16343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16344 (eval "$ac_try") 2>&5
16346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16347 (exit $ac_status); }; }; then
16348 ac_cv_type_pid_t=yes
16350 echo "$as_me: failed program was:" >&5
16351 sed 's/^/| /' conftest.$ac_ext >&5
16353 ac_cv_type_pid_t=no
16356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16358 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16359 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16360 if test $ac_cv_type_pid_t = yes; then
16364 cat >>confdefs.h <<_ACEOF
16370 { echo "$as_me:$LINENO: checking for size_t" >&5
16371 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16372 if test "${ac_cv_type_size_t+set}" = set; then
16373 echo $ECHO_N "(cached) $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 typedef size_t ac__type_new_;
16386 if ((ac__type_new_ *) 0)
16388 if (sizeof (ac__type_new_))
16394 rm -f conftest.$ac_objext
16395 if { (ac_try="$ac_compile"
16396 case "(($ac_try" in
16397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16398 *) ac_try_echo=$ac_try;;
16400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16401 (eval "$ac_compile") 2>conftest.er1
16403 grep -v '^ *+' conftest.er1 >conftest.err
16405 cat conftest.err >&5
16406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16407 (exit $ac_status); } &&
16408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
16418 { ac_try='test -s conftest.$ac_objext'
16419 { (case "(($ac_try" in
16420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16421 *) ac_try_echo=$ac_try;;
16423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16424 (eval "$ac_try") 2>&5
16426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16427 (exit $ac_status); }; }; then
16428 ac_cv_type_size_t=yes
16430 echo "$as_me: failed program was:" >&5
16431 sed 's/^/| /' conftest.$ac_ext >&5
16433 ac_cv_type_size_t=no
16436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16438 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16439 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16440 if test $ac_cv_type_size_t = yes; then
16444 cat >>confdefs.h <<_ACEOF
16445 #define size_t unsigned int
16451 cat >>confdefs.h <<_ACEOF
16452 #define RETSIGTYPE void
16455 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16456 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16457 if test "${ac_cv_struct_tm+set}" = set; then
16458 echo $ECHO_N "(cached) $ECHO_C" >&6
16460 cat >conftest.$ac_ext <<_ACEOF
16463 cat confdefs.h >>conftest.$ac_ext
16464 cat >>conftest.$ac_ext <<_ACEOF
16465 /* end confdefs.h. */
16466 #include <sys/types.h>
16472 struct tm *tp; tp->tm_sec;
16477 rm -f conftest.$ac_objext
16478 if { (ac_try="$ac_compile"
16479 case "(($ac_try" in
16480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16481 *) ac_try_echo=$ac_try;;
16483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16484 (eval "$ac_compile") 2>conftest.er1
16486 grep -v '^ *+' conftest.er1 >conftest.err
16488 cat conftest.err >&5
16489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16490 (exit $ac_status); } &&
16491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16492 { (case "(($ac_try" in
16493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16494 *) ac_try_echo=$ac_try;;
16496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16497 (eval "$ac_try") 2>&5
16499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16500 (exit $ac_status); }; } &&
16501 { ac_try='test -s conftest.$ac_objext'
16502 { (case "(($ac_try" in
16503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16504 *) ac_try_echo=$ac_try;;
16506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16507 (eval "$ac_try") 2>&5
16509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16510 (exit $ac_status); }; }; then
16511 ac_cv_struct_tm=time.h
16513 echo "$as_me: failed program was:" >&5
16514 sed 's/^/| /' conftest.$ac_ext >&5
16516 ac_cv_struct_tm=sys/time.h
16519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16521 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16522 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16523 if test $ac_cv_struct_tm = sys/time.h; then
16525 cat >>confdefs.h <<\_ACEOF
16526 #define TM_IN_SYS_TIME 1
16531 { echo "$as_me:$LINENO: checking for int64_t" >&5
16532 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16533 if test "${ac_cv_type_int64_t+set}" = set; then
16534 echo $ECHO_N "(cached) $ECHO_C" >&6
16536 cat >conftest.$ac_ext <<_ACEOF
16539 cat confdefs.h >>conftest.$ac_ext
16540 cat >>conftest.$ac_ext <<_ACEOF
16541 /* end confdefs.h. */
16542 $ac_includes_default
16543 typedef int64_t ac__type_new_;
16547 if ((ac__type_new_ *) 0)
16549 if (sizeof (ac__type_new_))
16555 rm -f conftest.$ac_objext
16556 if { (ac_try="$ac_compile"
16557 case "(($ac_try" in
16558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16559 *) ac_try_echo=$ac_try;;
16561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16562 (eval "$ac_compile") 2>conftest.er1
16564 grep -v '^ *+' conftest.er1 >conftest.err
16566 cat conftest.err >&5
16567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16568 (exit $ac_status); } &&
16569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16570 { (case "(($ac_try" in
16571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16572 *) ac_try_echo=$ac_try;;
16574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16575 (eval "$ac_try") 2>&5
16577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16578 (exit $ac_status); }; } &&
16579 { ac_try='test -s conftest.$ac_objext'
16580 { (case "(($ac_try" in
16581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16582 *) ac_try_echo=$ac_try;;
16584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16585 (eval "$ac_try") 2>&5
16587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16588 (exit $ac_status); }; }; then
16589 ac_cv_type_int64_t=yes
16591 echo "$as_me: failed program was:" >&5
16592 sed 's/^/| /' conftest.$ac_ext >&5
16594 ac_cv_type_int64_t=no
16597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16599 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16600 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16601 if test $ac_cv_type_int64_t = yes; then
16603 cat >>confdefs.h <<_ACEOF
16604 #define HAVE_INT64_T 1
16609 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16610 echo "$as_me: error: Type int64_t required but not found" >&2;}
16611 { (exit 1); exit 1; }; }
16614 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16615 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16616 if test "${ac_cv_type_uint64_t+set}" = set; then
16617 echo $ECHO_N "(cached) $ECHO_C" >&6
16619 cat >conftest.$ac_ext <<_ACEOF
16622 cat confdefs.h >>conftest.$ac_ext
16623 cat >>conftest.$ac_ext <<_ACEOF
16624 /* end confdefs.h. */
16625 $ac_includes_default
16626 typedef uint64_t ac__type_new_;
16630 if ((ac__type_new_ *) 0)
16632 if (sizeof (ac__type_new_))
16638 rm -f conftest.$ac_objext
16639 if { (ac_try="$ac_compile"
16640 case "(($ac_try" in
16641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16642 *) ac_try_echo=$ac_try;;
16644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16645 (eval "$ac_compile") 2>conftest.er1
16647 grep -v '^ *+' conftest.er1 >conftest.err
16649 cat conftest.err >&5
16650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16651 (exit $ac_status); } &&
16652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16653 { (case "(($ac_try" in
16654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16655 *) ac_try_echo=$ac_try;;
16657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16658 (eval "$ac_try") 2>&5
16660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16661 (exit $ac_status); }; } &&
16662 { ac_try='test -s conftest.$ac_objext'
16663 { (case "(($ac_try" in
16664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16665 *) ac_try_echo=$ac_try;;
16667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16668 (eval "$ac_try") 2>&5
16670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16671 (exit $ac_status); }; }; then
16672 ac_cv_type_uint64_t=yes
16674 echo "$as_me: failed program was:" >&5
16675 sed 's/^/| /' conftest.$ac_ext >&5
16677 ac_cv_type_uint64_t=no
16680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16682 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16683 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16684 if test $ac_cv_type_uint64_t = yes; then
16686 cat >>confdefs.h <<_ACEOF
16687 #define HAVE_UINT64_T 1
16692 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16693 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16694 if test "${ac_cv_type_u_int64_t+set}" = set; then
16695 echo $ECHO_N "(cached) $ECHO_C" >&6
16697 cat >conftest.$ac_ext <<_ACEOF
16700 cat confdefs.h >>conftest.$ac_ext
16701 cat >>conftest.$ac_ext <<_ACEOF
16702 /* end confdefs.h. */
16703 $ac_includes_default
16704 typedef u_int64_t ac__type_new_;
16708 if ((ac__type_new_ *) 0)
16710 if (sizeof (ac__type_new_))
16716 rm -f conftest.$ac_objext
16717 if { (ac_try="$ac_compile"
16718 case "(($ac_try" in
16719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16720 *) ac_try_echo=$ac_try;;
16722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16723 (eval "$ac_compile") 2>conftest.er1
16725 grep -v '^ *+' conftest.er1 >conftest.err
16727 cat conftest.err >&5
16728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16729 (exit $ac_status); } &&
16730 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16731 { (case "(($ac_try" in
16732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16733 *) ac_try_echo=$ac_try;;
16735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16736 (eval "$ac_try") 2>&5
16738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16739 (exit $ac_status); }; } &&
16740 { ac_try='test -s conftest.$ac_objext'
16741 { (case "(($ac_try" in
16742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16743 *) ac_try_echo=$ac_try;;
16745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16746 (eval "$ac_try") 2>&5
16748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16749 (exit $ac_status); }; }; then
16750 ac_cv_type_u_int64_t=yes
16752 echo "$as_me: failed program was:" >&5
16753 sed 's/^/| /' conftest.$ac_ext >&5
16755 ac_cv_type_u_int64_t=no
16758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16760 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16761 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16762 if test $ac_cv_type_u_int64_t = yes; then
16764 cat >>confdefs.h <<_ACEOF
16765 #define HAVE_U_INT64_T 1
16770 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16771 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16772 { (exit 1); exit 1; }; }
16786 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16788 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16789 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16790 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16791 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16792 echo $ECHO_N "(cached) $ECHO_C" >&6
16794 cat >conftest.$ac_ext <<_ACEOF
16797 cat confdefs.h >>conftest.$ac_ext
16798 cat >>conftest.$ac_ext <<_ACEOF
16799 /* end confdefs.h. */
16800 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16801 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16802 #define $ac_func innocuous_$ac_func
16804 /* System header to define __stub macros and hopefully few prototypes,
16805 which can conflict with char $ac_func (); below.
16806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16807 <limits.h> exists even on freestanding compilers. */
16810 # include <limits.h>
16812 # include <assert.h>
16817 /* Override any GCC internal prototype to avoid an error.
16818 Use char because int might match the return type of a GCC
16819 builtin and then its argument prototype would still apply. */
16824 /* The GNU C library defines this for functions which it implements
16825 to always fail with ENOSYS. Some functions are actually named
16826 something starting with __ and the normal name is an alias. */
16827 #if defined __stub_$ac_func || defined __stub___$ac_func
16834 return $ac_func ();
16839 rm -f conftest.$ac_objext conftest$ac_exeext
16840 if { (ac_try="$ac_link"
16841 case "(($ac_try" in
16842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16843 *) ac_try_echo=$ac_try;;
16845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16846 (eval "$ac_link") 2>conftest.er1
16848 grep -v '^ *+' conftest.er1 >conftest.err
16850 cat conftest.err >&5
16851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16852 (exit $ac_status); } &&
16853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16854 { (case "(($ac_try" in
16855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16856 *) ac_try_echo=$ac_try;;
16858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16859 (eval "$ac_try") 2>&5
16861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16862 (exit $ac_status); }; } &&
16863 { ac_try='test -s conftest$ac_exeext'
16864 { (case "(($ac_try" in
16865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16866 *) ac_try_echo=$ac_try;;
16868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16869 (eval "$ac_try") 2>&5
16871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16872 (exit $ac_status); }; }; then
16873 eval "$as_ac_var=yes"
16875 echo "$as_me: failed program was:" >&5
16876 sed 's/^/| /' conftest.$ac_ext >&5
16878 eval "$as_ac_var=no"
16881 rm -f core conftest.err conftest.$ac_objext \
16882 conftest$ac_exeext conftest.$ac_ext
16884 ac_res=`eval echo '${'$as_ac_var'}'`
16885 { echo "$as_me:$LINENO: result: $ac_res" >&5
16886 echo "${ECHO_T}$ac_res" >&6; }
16887 if test `eval echo '${'$as_ac_var'}'` = yes; then
16888 cat >>confdefs.h <<_ACEOF
16889 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16899 for ac_func in powf fmodf strtof round
16901 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16902 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16903 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16904 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16905 echo $ECHO_N "(cached) $ECHO_C" >&6
16907 cat >conftest.$ac_ext <<_ACEOF
16910 cat confdefs.h >>conftest.$ac_ext
16911 cat >>conftest.$ac_ext <<_ACEOF
16912 /* end confdefs.h. */
16913 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16914 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16915 #define $ac_func innocuous_$ac_func
16917 /* System header to define __stub macros and hopefully few prototypes,
16918 which can conflict with char $ac_func (); below.
16919 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16920 <limits.h> exists even on freestanding compilers. */
16923 # include <limits.h>
16925 # include <assert.h>
16930 /* Override any GCC internal prototype to avoid an error.
16931 Use char because int might match the return type of a GCC
16932 builtin and then its argument prototype would still apply. */
16937 /* The GNU C library defines this for functions which it implements
16938 to always fail with ENOSYS. Some functions are actually named
16939 something starting with __ and the normal name is an alias. */
16940 #if defined __stub_$ac_func || defined __stub___$ac_func
16947 return $ac_func ();
16952 rm -f conftest.$ac_objext conftest$ac_exeext
16953 if { (ac_try="$ac_link"
16954 case "(($ac_try" in
16955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16956 *) ac_try_echo=$ac_try;;
16958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16959 (eval "$ac_link") 2>conftest.er1
16961 grep -v '^ *+' conftest.er1 >conftest.err
16963 cat conftest.err >&5
16964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16965 (exit $ac_status); } &&
16966 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16967 { (case "(($ac_try" in
16968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16969 *) ac_try_echo=$ac_try;;
16971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16972 (eval "$ac_try") 2>&5
16974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16975 (exit $ac_status); }; } &&
16976 { ac_try='test -s conftest$ac_exeext'
16977 { (case "(($ac_try" in
16978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16979 *) ac_try_echo=$ac_try;;
16981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16982 (eval "$ac_try") 2>&5
16984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16985 (exit $ac_status); }; }; then
16986 eval "$as_ac_var=yes"
16988 echo "$as_me: failed program was:" >&5
16989 sed 's/^/| /' conftest.$ac_ext >&5
16991 eval "$as_ac_var=no"
16994 rm -f core conftest.err conftest.$ac_objext \
16995 conftest$ac_exeext conftest.$ac_ext
16997 ac_res=`eval echo '${'$as_ac_var'}'`
16998 { echo "$as_me:$LINENO: result: $ac_res" >&5
16999 echo "${ECHO_T}$ac_res" >&6; }
17000 if test `eval echo '${'$as_ac_var'}'` = yes; then
17001 cat >>confdefs.h <<_ACEOF
17002 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17013 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17015 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17016 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17017 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17018 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17019 echo $ECHO_N "(cached) $ECHO_C" >&6
17021 cat >conftest.$ac_ext <<_ACEOF
17024 cat confdefs.h >>conftest.$ac_ext
17025 cat >>conftest.$ac_ext <<_ACEOF
17026 /* end confdefs.h. */
17027 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17028 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17029 #define $ac_func innocuous_$ac_func
17031 /* System header to define __stub macros and hopefully few prototypes,
17032 which can conflict with char $ac_func (); below.
17033 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17034 <limits.h> exists even on freestanding compilers. */
17037 # include <limits.h>
17039 # include <assert.h>
17044 /* Override any GCC internal prototype to avoid an error.
17045 Use char because int might match the return type of a GCC
17046 builtin and then its argument prototype would still apply. */
17051 /* The GNU C library defines this for functions which it implements
17052 to always fail with ENOSYS. Some functions are actually named
17053 something starting with __ and the normal name is an alias. */
17054 #if defined __stub_$ac_func || defined __stub___$ac_func
17061 return $ac_func ();
17066 rm -f conftest.$ac_objext conftest$ac_exeext
17067 if { (ac_try="$ac_link"
17068 case "(($ac_try" in
17069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17070 *) ac_try_echo=$ac_try;;
17072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17073 (eval "$ac_link") 2>conftest.er1
17075 grep -v '^ *+' conftest.er1 >conftest.err
17077 cat conftest.err >&5
17078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17079 (exit $ac_status); } &&
17080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17081 { (case "(($ac_try" in
17082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17083 *) ac_try_echo=$ac_try;;
17085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17086 (eval "$ac_try") 2>&5
17088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17089 (exit $ac_status); }; } &&
17090 { ac_try='test -s conftest$ac_exeext'
17091 { (case "(($ac_try" in
17092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17093 *) ac_try_echo=$ac_try;;
17095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17096 (eval "$ac_try") 2>&5
17098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17099 (exit $ac_status); }; }; then
17100 eval "$as_ac_var=yes"
17102 echo "$as_me: failed program was:" >&5
17103 sed 's/^/| /' conftest.$ac_ext >&5
17105 eval "$as_ac_var=no"
17108 rm -f core conftest.err conftest.$ac_objext \
17109 conftest$ac_exeext conftest.$ac_ext
17111 ac_res=`eval echo '${'$as_ac_var'}'`
17112 { echo "$as_me:$LINENO: result: $ac_res" >&5
17113 echo "${ECHO_T}$ac_res" >&6; }
17114 if test `eval echo '${'$as_ac_var'}'` = yes; then
17115 cat >>confdefs.h <<_ACEOF
17116 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17125 for ac_func in isatty mkdtemp mkstemp
17127 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17128 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17129 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17130 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17131 echo $ECHO_N "(cached) $ECHO_C" >&6
17133 cat >conftest.$ac_ext <<_ACEOF
17136 cat confdefs.h >>conftest.$ac_ext
17137 cat >>conftest.$ac_ext <<_ACEOF
17138 /* end confdefs.h. */
17139 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17140 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17141 #define $ac_func innocuous_$ac_func
17143 /* System header to define __stub macros and hopefully few prototypes,
17144 which can conflict with char $ac_func (); below.
17145 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17146 <limits.h> exists even on freestanding compilers. */
17149 # include <limits.h>
17151 # include <assert.h>
17156 /* Override any GCC internal prototype to avoid an error.
17157 Use char because int might match the return type of a GCC
17158 builtin and then its argument prototype would still apply. */
17163 /* The GNU C library defines this for functions which it implements
17164 to always fail with ENOSYS. Some functions are actually named
17165 something starting with __ and the normal name is an alias. */
17166 #if defined __stub_$ac_func || defined __stub___$ac_func
17173 return $ac_func ();
17178 rm -f conftest.$ac_objext conftest$ac_exeext
17179 if { (ac_try="$ac_link"
17180 case "(($ac_try" in
17181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17182 *) ac_try_echo=$ac_try;;
17184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17185 (eval "$ac_link") 2>conftest.er1
17187 grep -v '^ *+' conftest.er1 >conftest.err
17189 cat conftest.err >&5
17190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17191 (exit $ac_status); } &&
17192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17193 { (case "(($ac_try" in
17194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17195 *) ac_try_echo=$ac_try;;
17197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17198 (eval "$ac_try") 2>&5
17200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17201 (exit $ac_status); }; } &&
17202 { ac_try='test -s conftest$ac_exeext'
17203 { (case "(($ac_try" in
17204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17205 *) ac_try_echo=$ac_try;;
17207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17208 (eval "$ac_try") 2>&5
17210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17211 (exit $ac_status); }; }; then
17212 eval "$as_ac_var=yes"
17214 echo "$as_me: failed program was:" >&5
17215 sed 's/^/| /' conftest.$ac_ext >&5
17217 eval "$as_ac_var=no"
17220 rm -f core conftest.err conftest.$ac_objext \
17221 conftest$ac_exeext conftest.$ac_ext
17223 ac_res=`eval echo '${'$as_ac_var'}'`
17224 { echo "$as_me:$LINENO: result: $ac_res" >&5
17225 echo "${ECHO_T}$ac_res" >&6; }
17226 if test `eval echo '${'$as_ac_var'}'` = yes; then
17227 cat >>confdefs.h <<_ACEOF
17228 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17240 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
17242 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17243 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17244 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17245 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17246 echo $ECHO_N "(cached) $ECHO_C" >&6
17248 cat >conftest.$ac_ext <<_ACEOF
17251 cat confdefs.h >>conftest.$ac_ext
17252 cat >>conftest.$ac_ext <<_ACEOF
17253 /* end confdefs.h. */
17254 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17255 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17256 #define $ac_func innocuous_$ac_func
17258 /* System header to define __stub macros and hopefully few prototypes,
17259 which can conflict with char $ac_func (); below.
17260 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17261 <limits.h> exists even on freestanding compilers. */
17264 # include <limits.h>
17266 # include <assert.h>
17271 /* Override any GCC internal prototype to avoid an error.
17272 Use char because int might match the return type of a GCC
17273 builtin and then its argument prototype would still apply. */
17278 /* The GNU C library defines this for functions which it implements
17279 to always fail with ENOSYS. Some functions are actually named
17280 something starting with __ and the normal name is an alias. */
17281 #if defined __stub_$ac_func || defined __stub___$ac_func
17288 return $ac_func ();
17293 rm -f conftest.$ac_objext conftest$ac_exeext
17294 if { (ac_try="$ac_link"
17295 case "(($ac_try" in
17296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17297 *) ac_try_echo=$ac_try;;
17299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17300 (eval "$ac_link") 2>conftest.er1
17302 grep -v '^ *+' conftest.er1 >conftest.err
17304 cat conftest.err >&5
17305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17306 (exit $ac_status); } &&
17307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17308 { (case "(($ac_try" in
17309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17310 *) ac_try_echo=$ac_try;;
17312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17313 (eval "$ac_try") 2>&5
17315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17316 (exit $ac_status); }; } &&
17317 { ac_try='test -s conftest$ac_exeext'
17318 { (case "(($ac_try" in
17319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17320 *) ac_try_echo=$ac_try;;
17322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17323 (eval "$ac_try") 2>&5
17325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326 (exit $ac_status); }; }; then
17327 eval "$as_ac_var=yes"
17329 echo "$as_me: failed program was:" >&5
17330 sed 's/^/| /' conftest.$ac_ext >&5
17332 eval "$as_ac_var=no"
17335 rm -f core conftest.err conftest.$ac_objext \
17336 conftest$ac_exeext conftest.$ac_ext
17338 ac_res=`eval echo '${'$as_ac_var'}'`
17339 { echo "$as_me:$LINENO: result: $ac_res" >&5
17340 echo "${ECHO_T}$ac_res" >&6; }
17341 if test `eval echo '${'$as_ac_var'}'` = yes; then
17342 cat >>confdefs.h <<_ACEOF
17343 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17352 for ac_func in strerror strerror_r setenv
17354 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17355 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17356 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17357 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17358 echo $ECHO_N "(cached) $ECHO_C" >&6
17360 cat >conftest.$ac_ext <<_ACEOF
17363 cat confdefs.h >>conftest.$ac_ext
17364 cat >>conftest.$ac_ext <<_ACEOF
17365 /* end confdefs.h. */
17366 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17367 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17368 #define $ac_func innocuous_$ac_func
17370 /* System header to define __stub macros and hopefully few prototypes,
17371 which can conflict with char $ac_func (); below.
17372 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17373 <limits.h> exists even on freestanding compilers. */
17376 # include <limits.h>
17378 # include <assert.h>
17383 /* Override any GCC internal prototype to avoid an error.
17384 Use char because int might match the return type of a GCC
17385 builtin and then its argument prototype would still apply. */
17390 /* The GNU C library defines this for functions which it implements
17391 to always fail with ENOSYS. Some functions are actually named
17392 something starting with __ and the normal name is an alias. */
17393 #if defined __stub_$ac_func || defined __stub___$ac_func
17400 return $ac_func ();
17405 rm -f conftest.$ac_objext conftest$ac_exeext
17406 if { (ac_try="$ac_link"
17407 case "(($ac_try" in
17408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17409 *) ac_try_echo=$ac_try;;
17411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17412 (eval "$ac_link") 2>conftest.er1
17414 grep -v '^ *+' conftest.er1 >conftest.err
17416 cat conftest.err >&5
17417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17418 (exit $ac_status); } &&
17419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17420 { (case "(($ac_try" in
17421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17422 *) ac_try_echo=$ac_try;;
17424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17425 (eval "$ac_try") 2>&5
17427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17428 (exit $ac_status); }; } &&
17429 { ac_try='test -s conftest$ac_exeext'
17430 { (case "(($ac_try" in
17431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17432 *) ac_try_echo=$ac_try;;
17434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17435 (eval "$ac_try") 2>&5
17437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17438 (exit $ac_status); }; }; then
17439 eval "$as_ac_var=yes"
17441 echo "$as_me: failed program was:" >&5
17442 sed 's/^/| /' conftest.$ac_ext >&5
17444 eval "$as_ac_var=no"
17447 rm -f core conftest.err conftest.$ac_objext \
17448 conftest$ac_exeext conftest.$ac_ext
17450 ac_res=`eval echo '${'$as_ac_var'}'`
17451 { echo "$as_me:$LINENO: result: $ac_res" >&5
17452 echo "${ECHO_T}$ac_res" >&6; }
17453 if test `eval echo '${'$as_ac_var'}'` = yes; then
17454 cat >>confdefs.h <<_ACEOF
17455 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17465 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17467 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17468 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17469 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17470 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17471 echo $ECHO_N "(cached) $ECHO_C" >&6
17473 cat >conftest.$ac_ext <<_ACEOF
17476 cat confdefs.h >>conftest.$ac_ext
17477 cat >>conftest.$ac_ext <<_ACEOF
17478 /* end confdefs.h. */
17479 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17480 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17481 #define $ac_func innocuous_$ac_func
17483 /* System header to define __stub macros and hopefully few prototypes,
17484 which can conflict with char $ac_func (); below.
17485 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17486 <limits.h> exists even on freestanding compilers. */
17489 # include <limits.h>
17491 # include <assert.h>
17496 /* Override any GCC internal prototype to avoid an error.
17497 Use char because int might match the return type of a GCC
17498 builtin and then its argument prototype would still apply. */
17503 /* The GNU C library defines this for functions which it implements
17504 to always fail with ENOSYS. Some functions are actually named
17505 something starting with __ and the normal name is an alias. */
17506 #if defined __stub_$ac_func || defined __stub___$ac_func
17513 return $ac_func ();
17518 rm -f conftest.$ac_objext conftest$ac_exeext
17519 if { (ac_try="$ac_link"
17520 case "(($ac_try" in
17521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17522 *) ac_try_echo=$ac_try;;
17524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17525 (eval "$ac_link") 2>conftest.er1
17527 grep -v '^ *+' conftest.er1 >conftest.err
17529 cat conftest.err >&5
17530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531 (exit $ac_status); } &&
17532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17533 { (case "(($ac_try" in
17534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17535 *) ac_try_echo=$ac_try;;
17537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17538 (eval "$ac_try") 2>&5
17540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17541 (exit $ac_status); }; } &&
17542 { ac_try='test -s conftest$ac_exeext'
17543 { (case "(($ac_try" in
17544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17545 *) ac_try_echo=$ac_try;;
17547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17548 (eval "$ac_try") 2>&5
17550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17551 (exit $ac_status); }; }; then
17552 eval "$as_ac_var=yes"
17554 echo "$as_me: failed program was:" >&5
17555 sed 's/^/| /' conftest.$ac_ext >&5
17557 eval "$as_ac_var=no"
17560 rm -f core conftest.err conftest.$ac_objext \
17561 conftest$ac_exeext conftest.$ac_ext
17563 ac_res=`eval echo '${'$as_ac_var'}'`
17564 { echo "$as_me:$LINENO: result: $ac_res" >&5
17565 echo "${ECHO_T}$ac_res" >&6; }
17566 if test `eval echo '${'$as_ac_var'}'` = yes; then
17567 cat >>confdefs.h <<_ACEOF
17568 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17579 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17581 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17582 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17583 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17584 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17585 echo $ECHO_N "(cached) $ECHO_C" >&6
17587 cat >conftest.$ac_ext <<_ACEOF
17590 cat confdefs.h >>conftest.$ac_ext
17591 cat >>conftest.$ac_ext <<_ACEOF
17592 /* end confdefs.h. */
17593 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17594 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17595 #define $ac_func innocuous_$ac_func
17597 /* System header to define __stub macros and hopefully few prototypes,
17598 which can conflict with char $ac_func (); below.
17599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17600 <limits.h> exists even on freestanding compilers. */
17603 # include <limits.h>
17605 # include <assert.h>
17610 /* Override any GCC internal prototype to avoid an error.
17611 Use char because int might match the return type of a GCC
17612 builtin and then its argument prototype would still apply. */
17617 /* The GNU C library defines this for functions which it implements
17618 to always fail with ENOSYS. Some functions are actually named
17619 something starting with __ and the normal name is an alias. */
17620 #if defined __stub_$ac_func || defined __stub___$ac_func
17627 return $ac_func ();
17632 rm -f conftest.$ac_objext conftest$ac_exeext
17633 if { (ac_try="$ac_link"
17634 case "(($ac_try" in
17635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17636 *) ac_try_echo=$ac_try;;
17638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17639 (eval "$ac_link") 2>conftest.er1
17641 grep -v '^ *+' conftest.er1 >conftest.err
17643 cat conftest.err >&5
17644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645 (exit $ac_status); } &&
17646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17647 { (case "(($ac_try" in
17648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17649 *) ac_try_echo=$ac_try;;
17651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17652 (eval "$ac_try") 2>&5
17654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17655 (exit $ac_status); }; } &&
17656 { ac_try='test -s conftest$ac_exeext'
17657 { (case "(($ac_try" in
17658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17659 *) ac_try_echo=$ac_try;;
17661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17662 (eval "$ac_try") 2>&5
17664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17665 (exit $ac_status); }; }; then
17666 eval "$as_ac_var=yes"
17668 echo "$as_me: failed program was:" >&5
17669 sed 's/^/| /' conftest.$ac_ext >&5
17671 eval "$as_ac_var=no"
17674 rm -f core conftest.err conftest.$ac_objext \
17675 conftest$ac_exeext conftest.$ac_ext
17677 ac_res=`eval echo '${'$as_ac_var'}'`
17678 { echo "$as_me:$LINENO: result: $ac_res" >&5
17679 echo "${ECHO_T}$ac_res" >&6; }
17680 if test `eval echo '${'$as_ac_var'}'` = yes; then
17681 cat >>confdefs.h <<_ACEOF
17682 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17688 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17689 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17690 if test "${llvm_cv_c_printf_a+set}" = set; then
17691 echo $ECHO_N "(cached) $ECHO_C" >&6
17694 ac_cpp='$CPP $CPPFLAGS'
17695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17699 if test "$cross_compiling" = yes; then
17700 llvmac_cv_c_printf_a=no
17702 cat >conftest.$ac_ext <<_ACEOF
17706 cat confdefs.h >>conftest.$ac_ext
17707 cat >>conftest.$ac_ext <<_ACEOF
17708 /* end confdefs.h. */
17711 #include <stdlib.h>
17717 volatile double A, B;
17721 sprintf(Buffer, "%a", A);
17725 if (A != 0x1.999999999999ap-4)
17732 rm -f conftest$ac_exeext
17733 if { (ac_try="$ac_link"
17734 case "(($ac_try" in
17735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17736 *) ac_try_echo=$ac_try;;
17738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17739 (eval "$ac_link") 2>&5
17741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17742 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17743 { (case "(($ac_try" in
17744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17745 *) ac_try_echo=$ac_try;;
17747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17748 (eval "$ac_try") 2>&5
17750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751 (exit $ac_status); }; }; then
17752 llvm_cv_c_printf_a=yes
17754 echo "$as_me: program exited with status $ac_status" >&5
17755 echo "$as_me: failed program was:" >&5
17756 sed 's/^/| /' conftest.$ac_ext >&5
17758 ( exit $ac_status )
17759 llvmac_cv_c_printf_a=no
17761 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17766 ac_cpp='$CPP $CPPFLAGS'
17767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17772 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17773 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17774 if test "$llvm_cv_c_printf_a" = "yes"; then
17776 cat >>confdefs.h <<\_ACEOF
17777 #define HAVE_PRINTF_A 1
17783 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17784 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17785 if test "${ac_cv_func_rand48+set}" = set; then
17786 echo $ECHO_N "(cached) $ECHO_C" >&6
17789 ac_cpp='$CXXCPP $CPPFLAGS'
17790 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17791 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17792 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17794 cat >conftest.$ac_ext <<_ACEOF
17797 cat confdefs.h >>conftest.$ac_ext
17798 cat >>conftest.$ac_ext <<_ACEOF
17799 /* end confdefs.h. */
17800 #include <stdlib.h>
17804 srand48(0);lrand48();drand48();
17809 rm -f conftest.$ac_objext
17810 if { (ac_try="$ac_compile"
17811 case "(($ac_try" in
17812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17813 *) ac_try_echo=$ac_try;;
17815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17816 (eval "$ac_compile") 2>conftest.er1
17818 grep -v '^ *+' conftest.er1 >conftest.err
17820 cat conftest.err >&5
17821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17822 (exit $ac_status); } &&
17823 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17824 { (case "(($ac_try" in
17825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17826 *) ac_try_echo=$ac_try;;
17828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17829 (eval "$ac_try") 2>&5
17831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17832 (exit $ac_status); }; } &&
17833 { ac_try='test -s conftest.$ac_objext'
17834 { (case "(($ac_try" in
17835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17836 *) ac_try_echo=$ac_try;;
17838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17839 (eval "$ac_try") 2>&5
17841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17842 (exit $ac_status); }; }; then
17843 ac_cv_func_rand48=yes
17845 echo "$as_me: failed program was:" >&5
17846 sed 's/^/| /' conftest.$ac_ext >&5
17848 ac_cv_func_rand48=no
17851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17853 ac_cpp='$CPP $CPPFLAGS'
17854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17859 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17860 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17862 if test "$ac_cv_func_rand48" = "yes" ; then
17864 cat >>confdefs.h <<\_ACEOF
17865 #define HAVE_RAND48 1
17871 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17872 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17873 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17874 echo $ECHO_N "(cached) $ECHO_C" >&6
17876 cat >conftest.$ac_ext <<_ACEOF
17879 cat confdefs.h >>conftest.$ac_ext
17880 cat >>conftest.$ac_ext <<_ACEOF
17881 /* end confdefs.h. */
17882 $ac_includes_default
17887 char *p = (char *) strerror_s;
17895 rm -f conftest.$ac_objext
17896 if { (ac_try="$ac_compile"
17897 case "(($ac_try" in
17898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17899 *) ac_try_echo=$ac_try;;
17901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17902 (eval "$ac_compile") 2>conftest.er1
17904 grep -v '^ *+' conftest.er1 >conftest.err
17906 cat conftest.err >&5
17907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908 (exit $ac_status); } &&
17909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17910 { (case "(($ac_try" in
17911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17912 *) ac_try_echo=$ac_try;;
17914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17915 (eval "$ac_try") 2>&5
17917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17918 (exit $ac_status); }; } &&
17919 { ac_try='test -s conftest.$ac_objext'
17920 { (case "(($ac_try" in
17921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17922 *) ac_try_echo=$ac_try;;
17924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17925 (eval "$ac_try") 2>&5
17927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17928 (exit $ac_status); }; }; then
17929 ac_cv_have_decl_strerror_s=yes
17931 echo "$as_me: failed program was:" >&5
17932 sed 's/^/| /' conftest.$ac_ext >&5
17934 ac_cv_have_decl_strerror_s=no
17937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17939 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17940 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17941 if test $ac_cv_have_decl_strerror_s = yes; then
17943 cat >>confdefs.h <<_ACEOF
17944 #define HAVE_DECL_STRERROR_S 1
17949 cat >>confdefs.h <<_ACEOF
17950 #define HAVE_DECL_STRERROR_S 0
17958 if test "$llvm_cv_os_type" = "MingW" ; then
17959 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17960 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17961 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17962 echo $ECHO_N "(cached) $ECHO_C" >&6
17964 ac_check_lib_save_LIBS=$LIBS
17966 cat >conftest.$ac_ext <<_ACEOF
17969 cat confdefs.h >>conftest.$ac_ext
17970 cat >>conftest.$ac_ext <<_ACEOF
17971 /* end confdefs.h. */
17973 /* Override any GCC internal prototype to avoid an error.
17974 Use char because int might match the return type of a GCC
17975 builtin and then its argument prototype would still apply. */
17988 rm -f conftest.$ac_objext conftest$ac_exeext
17989 if { (ac_try="$ac_link"
17990 case "(($ac_try" in
17991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17992 *) ac_try_echo=$ac_try;;
17994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17995 (eval "$ac_link") 2>conftest.er1
17997 grep -v '^ *+' conftest.er1 >conftest.err
17999 cat conftest.err >&5
18000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18001 (exit $ac_status); } &&
18002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18003 { (case "(($ac_try" in
18004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18005 *) ac_try_echo=$ac_try;;
18007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18008 (eval "$ac_try") 2>&5
18010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18011 (exit $ac_status); }; } &&
18012 { ac_try='test -s conftest$ac_exeext'
18013 { (case "(($ac_try" in
18014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18015 *) ac_try_echo=$ac_try;;
18017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18018 (eval "$ac_try") 2>&5
18020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18021 (exit $ac_status); }; }; then
18022 ac_cv_lib_gcc__alloca=yes
18024 echo "$as_me: failed program was:" >&5
18025 sed 's/^/| /' conftest.$ac_ext >&5
18027 ac_cv_lib_gcc__alloca=no
18030 rm -f core conftest.err conftest.$ac_objext \
18031 conftest$ac_exeext conftest.$ac_ext
18032 LIBS=$ac_check_lib_save_LIBS
18034 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18035 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18036 if test $ac_cv_lib_gcc__alloca = yes; then
18038 cat >>confdefs.h <<\_ACEOF
18039 #define HAVE__ALLOCA 1
18044 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18045 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18046 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18047 echo $ECHO_N "(cached) $ECHO_C" >&6
18049 ac_check_lib_save_LIBS=$LIBS
18051 cat >conftest.$ac_ext <<_ACEOF
18054 cat confdefs.h >>conftest.$ac_ext
18055 cat >>conftest.$ac_ext <<_ACEOF
18056 /* end confdefs.h. */
18058 /* Override any GCC internal prototype to avoid an error.
18059 Use char because int might match the return type of a GCC
18060 builtin and then its argument prototype would still apply. */
18068 return __alloca ();
18073 rm -f conftest.$ac_objext conftest$ac_exeext
18074 if { (ac_try="$ac_link"
18075 case "(($ac_try" in
18076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18077 *) ac_try_echo=$ac_try;;
18079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18080 (eval "$ac_link") 2>conftest.er1
18082 grep -v '^ *+' conftest.er1 >conftest.err
18084 cat conftest.err >&5
18085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18086 (exit $ac_status); } &&
18087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18088 { (case "(($ac_try" in
18089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18090 *) ac_try_echo=$ac_try;;
18092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18093 (eval "$ac_try") 2>&5
18095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18096 (exit $ac_status); }; } &&
18097 { ac_try='test -s conftest$ac_exeext'
18098 { (case "(($ac_try" in
18099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18100 *) ac_try_echo=$ac_try;;
18102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18103 (eval "$ac_try") 2>&5
18105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18106 (exit $ac_status); }; }; then
18107 ac_cv_lib_gcc___alloca=yes
18109 echo "$as_me: failed program was:" >&5
18110 sed 's/^/| /' conftest.$ac_ext >&5
18112 ac_cv_lib_gcc___alloca=no
18115 rm -f core conftest.err conftest.$ac_objext \
18116 conftest$ac_exeext conftest.$ac_ext
18117 LIBS=$ac_check_lib_save_LIBS
18119 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18120 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18121 if test $ac_cv_lib_gcc___alloca = yes; then
18123 cat >>confdefs.h <<\_ACEOF
18124 #define HAVE___ALLOCA 1
18129 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18130 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18131 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18132 echo $ECHO_N "(cached) $ECHO_C" >&6
18134 ac_check_lib_save_LIBS=$LIBS
18136 cat >conftest.$ac_ext <<_ACEOF
18139 cat confdefs.h >>conftest.$ac_ext
18140 cat >>conftest.$ac_ext <<_ACEOF
18141 /* end confdefs.h. */
18143 /* Override any GCC internal prototype to avoid an error.
18144 Use char because int might match the return type of a GCC
18145 builtin and then its argument prototype would still apply. */
18153 return __chkstk ();
18158 rm -f conftest.$ac_objext conftest$ac_exeext
18159 if { (ac_try="$ac_link"
18160 case "(($ac_try" in
18161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18162 *) ac_try_echo=$ac_try;;
18164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18165 (eval "$ac_link") 2>conftest.er1
18167 grep -v '^ *+' conftest.er1 >conftest.err
18169 cat conftest.err >&5
18170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18171 (exit $ac_status); } &&
18172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18173 { (case "(($ac_try" in
18174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18175 *) ac_try_echo=$ac_try;;
18177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18178 (eval "$ac_try") 2>&5
18180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18181 (exit $ac_status); }; } &&
18182 { ac_try='test -s conftest$ac_exeext'
18183 { (case "(($ac_try" in
18184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18185 *) ac_try_echo=$ac_try;;
18187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18188 (eval "$ac_try") 2>&5
18190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18191 (exit $ac_status); }; }; then
18192 ac_cv_lib_gcc___chkstk=yes
18194 echo "$as_me: failed program was:" >&5
18195 sed 's/^/| /' conftest.$ac_ext >&5
18197 ac_cv_lib_gcc___chkstk=no
18200 rm -f core conftest.err conftest.$ac_objext \
18201 conftest$ac_exeext conftest.$ac_ext
18202 LIBS=$ac_check_lib_save_LIBS
18204 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18205 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18206 if test $ac_cv_lib_gcc___chkstk = yes; then
18208 cat >>confdefs.h <<\_ACEOF
18209 #define HAVE___CHKSTK 1
18214 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18215 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18216 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18217 echo $ECHO_N "(cached) $ECHO_C" >&6
18219 ac_check_lib_save_LIBS=$LIBS
18221 cat >conftest.$ac_ext <<_ACEOF
18224 cat confdefs.h >>conftest.$ac_ext
18225 cat >>conftest.$ac_ext <<_ACEOF
18226 /* end confdefs.h. */
18228 /* Override any GCC internal prototype to avoid an error.
18229 Use char because int might match the return type of a GCC
18230 builtin and then its argument prototype would still apply. */
18238 return ___chkstk ();
18243 rm -f conftest.$ac_objext conftest$ac_exeext
18244 if { (ac_try="$ac_link"
18245 case "(($ac_try" in
18246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18247 *) ac_try_echo=$ac_try;;
18249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18250 (eval "$ac_link") 2>conftest.er1
18252 grep -v '^ *+' conftest.er1 >conftest.err
18254 cat conftest.err >&5
18255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18256 (exit $ac_status); } &&
18257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18258 { (case "(($ac_try" in
18259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18260 *) ac_try_echo=$ac_try;;
18262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18263 (eval "$ac_try") 2>&5
18265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18266 (exit $ac_status); }; } &&
18267 { ac_try='test -s conftest$ac_exeext'
18268 { (case "(($ac_try" in
18269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18270 *) ac_try_echo=$ac_try;;
18272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18273 (eval "$ac_try") 2>&5
18275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18276 (exit $ac_status); }; }; then
18277 ac_cv_lib_gcc____chkstk=yes
18279 echo "$as_me: failed program was:" >&5
18280 sed 's/^/| /' conftest.$ac_ext >&5
18282 ac_cv_lib_gcc____chkstk=no
18285 rm -f core conftest.err conftest.$ac_objext \
18286 conftest$ac_exeext conftest.$ac_ext
18287 LIBS=$ac_check_lib_save_LIBS
18289 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18290 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18291 if test $ac_cv_lib_gcc____chkstk = yes; then
18293 cat >>confdefs.h <<\_ACEOF
18294 #define HAVE____CHKSTK 1
18300 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18301 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18302 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18303 echo $ECHO_N "(cached) $ECHO_C" >&6
18305 ac_check_lib_save_LIBS=$LIBS
18307 cat >conftest.$ac_ext <<_ACEOF
18310 cat confdefs.h >>conftest.$ac_ext
18311 cat >>conftest.$ac_ext <<_ACEOF
18312 /* end confdefs.h. */
18314 /* Override any GCC internal prototype to avoid an error.
18315 Use char because int might match the return type of a GCC
18316 builtin and then its argument prototype would still apply. */
18324 return __ashldi3 ();
18329 rm -f conftest.$ac_objext conftest$ac_exeext
18330 if { (ac_try="$ac_link"
18331 case "(($ac_try" in
18332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18333 *) ac_try_echo=$ac_try;;
18335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18336 (eval "$ac_link") 2>conftest.er1
18338 grep -v '^ *+' conftest.er1 >conftest.err
18340 cat conftest.err >&5
18341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18342 (exit $ac_status); } &&
18343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18344 { (case "(($ac_try" in
18345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18346 *) ac_try_echo=$ac_try;;
18348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18349 (eval "$ac_try") 2>&5
18351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18352 (exit $ac_status); }; } &&
18353 { ac_try='test -s conftest$ac_exeext'
18354 { (case "(($ac_try" in
18355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18356 *) ac_try_echo=$ac_try;;
18358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18359 (eval "$ac_try") 2>&5
18361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18362 (exit $ac_status); }; }; then
18363 ac_cv_lib_gcc___ashldi3=yes
18365 echo "$as_me: failed program was:" >&5
18366 sed 's/^/| /' conftest.$ac_ext >&5
18368 ac_cv_lib_gcc___ashldi3=no
18371 rm -f core conftest.err conftest.$ac_objext \
18372 conftest$ac_exeext conftest.$ac_ext
18373 LIBS=$ac_check_lib_save_LIBS
18375 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18376 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18377 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18379 cat >>confdefs.h <<\_ACEOF
18380 #define HAVE___ASHLDI3 1
18385 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18386 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18387 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18388 echo $ECHO_N "(cached) $ECHO_C" >&6
18390 ac_check_lib_save_LIBS=$LIBS
18392 cat >conftest.$ac_ext <<_ACEOF
18395 cat confdefs.h >>conftest.$ac_ext
18396 cat >>conftest.$ac_ext <<_ACEOF
18397 /* end confdefs.h. */
18399 /* Override any GCC internal prototype to avoid an error.
18400 Use char because int might match the return type of a GCC
18401 builtin and then its argument prototype would still apply. */
18409 return __ashrdi3 ();
18414 rm -f conftest.$ac_objext conftest$ac_exeext
18415 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
18423 grep -v '^ *+' conftest.er1 >conftest.err
18425 cat conftest.err >&5
18426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18427 (exit $ac_status); } &&
18428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18429 { (case "(($ac_try" in
18430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18431 *) ac_try_echo=$ac_try;;
18433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18434 (eval "$ac_try") 2>&5
18436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18437 (exit $ac_status); }; } &&
18438 { ac_try='test -s conftest$ac_exeext'
18439 { (case "(($ac_try" in
18440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18441 *) ac_try_echo=$ac_try;;
18443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18444 (eval "$ac_try") 2>&5
18446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18447 (exit $ac_status); }; }; then
18448 ac_cv_lib_gcc___ashrdi3=yes
18450 echo "$as_me: failed program was:" >&5
18451 sed 's/^/| /' conftest.$ac_ext >&5
18453 ac_cv_lib_gcc___ashrdi3=no
18456 rm -f core conftest.err conftest.$ac_objext \
18457 conftest$ac_exeext conftest.$ac_ext
18458 LIBS=$ac_check_lib_save_LIBS
18460 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18461 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18462 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18464 cat >>confdefs.h <<\_ACEOF
18465 #define HAVE___ASHRDI3 1
18470 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18471 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18472 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18473 echo $ECHO_N "(cached) $ECHO_C" >&6
18475 ac_check_lib_save_LIBS=$LIBS
18477 cat >conftest.$ac_ext <<_ACEOF
18480 cat confdefs.h >>conftest.$ac_ext
18481 cat >>conftest.$ac_ext <<_ACEOF
18482 /* end confdefs.h. */
18484 /* Override any GCC internal prototype to avoid an error.
18485 Use char because int might match the return type of a GCC
18486 builtin and then its argument prototype would still apply. */
18494 return __divdi3 ();
18499 rm -f conftest.$ac_objext conftest$ac_exeext
18500 if { (ac_try="$ac_link"
18501 case "(($ac_try" in
18502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18503 *) ac_try_echo=$ac_try;;
18505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18506 (eval "$ac_link") 2>conftest.er1
18508 grep -v '^ *+' conftest.er1 >conftest.err
18510 cat conftest.err >&5
18511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18512 (exit $ac_status); } &&
18513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18514 { (case "(($ac_try" in
18515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18516 *) ac_try_echo=$ac_try;;
18518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18519 (eval "$ac_try") 2>&5
18521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18522 (exit $ac_status); }; } &&
18523 { ac_try='test -s conftest$ac_exeext'
18524 { (case "(($ac_try" in
18525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18526 *) ac_try_echo=$ac_try;;
18528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18529 (eval "$ac_try") 2>&5
18531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18532 (exit $ac_status); }; }; then
18533 ac_cv_lib_gcc___divdi3=yes
18535 echo "$as_me: failed program was:" >&5
18536 sed 's/^/| /' conftest.$ac_ext >&5
18538 ac_cv_lib_gcc___divdi3=no
18541 rm -f core conftest.err conftest.$ac_objext \
18542 conftest$ac_exeext conftest.$ac_ext
18543 LIBS=$ac_check_lib_save_LIBS
18545 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18546 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18547 if test $ac_cv_lib_gcc___divdi3 = yes; then
18549 cat >>confdefs.h <<\_ACEOF
18550 #define HAVE___DIVDI3 1
18555 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18556 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18557 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18558 echo $ECHO_N "(cached) $ECHO_C" >&6
18560 ac_check_lib_save_LIBS=$LIBS
18562 cat >conftest.$ac_ext <<_ACEOF
18565 cat confdefs.h >>conftest.$ac_ext
18566 cat >>conftest.$ac_ext <<_ACEOF
18567 /* end confdefs.h. */
18569 /* Override any GCC internal prototype to avoid an error.
18570 Use char because int might match the return type of a GCC
18571 builtin and then its argument prototype would still apply. */
18579 return __fixdfdi ();
18584 rm -f conftest.$ac_objext conftest$ac_exeext
18585 if { (ac_try="$ac_link"
18586 case "(($ac_try" in
18587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18588 *) ac_try_echo=$ac_try;;
18590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18591 (eval "$ac_link") 2>conftest.er1
18593 grep -v '^ *+' conftest.er1 >conftest.err
18595 cat conftest.err >&5
18596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18597 (exit $ac_status); } &&
18598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18599 { (case "(($ac_try" in
18600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18601 *) ac_try_echo=$ac_try;;
18603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18604 (eval "$ac_try") 2>&5
18606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18607 (exit $ac_status); }; } &&
18608 { ac_try='test -s conftest$ac_exeext'
18609 { (case "(($ac_try" in
18610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18611 *) ac_try_echo=$ac_try;;
18613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18614 (eval "$ac_try") 2>&5
18616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18617 (exit $ac_status); }; }; then
18618 ac_cv_lib_gcc___fixdfdi=yes
18620 echo "$as_me: failed program was:" >&5
18621 sed 's/^/| /' conftest.$ac_ext >&5
18623 ac_cv_lib_gcc___fixdfdi=no
18626 rm -f core conftest.err conftest.$ac_objext \
18627 conftest$ac_exeext conftest.$ac_ext
18628 LIBS=$ac_check_lib_save_LIBS
18630 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18631 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18632 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18634 cat >>confdefs.h <<\_ACEOF
18635 #define HAVE___FIXDFDI 1
18640 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18641 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18642 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18643 echo $ECHO_N "(cached) $ECHO_C" >&6
18645 ac_check_lib_save_LIBS=$LIBS
18647 cat >conftest.$ac_ext <<_ACEOF
18650 cat confdefs.h >>conftest.$ac_ext
18651 cat >>conftest.$ac_ext <<_ACEOF
18652 /* end confdefs.h. */
18654 /* Override any GCC internal prototype to avoid an error.
18655 Use char because int might match the return type of a GCC
18656 builtin and then its argument prototype would still apply. */
18664 return __fixsfdi ();
18669 rm -f conftest.$ac_objext conftest$ac_exeext
18670 if { (ac_try="$ac_link"
18671 case "(($ac_try" in
18672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18673 *) ac_try_echo=$ac_try;;
18675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18676 (eval "$ac_link") 2>conftest.er1
18678 grep -v '^ *+' conftest.er1 >conftest.err
18680 cat conftest.err >&5
18681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18682 (exit $ac_status); } &&
18683 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18684 { (case "(($ac_try" in
18685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18686 *) ac_try_echo=$ac_try;;
18688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18689 (eval "$ac_try") 2>&5
18691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18692 (exit $ac_status); }; } &&
18693 { ac_try='test -s conftest$ac_exeext'
18694 { (case "(($ac_try" in
18695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18696 *) ac_try_echo=$ac_try;;
18698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18699 (eval "$ac_try") 2>&5
18701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18702 (exit $ac_status); }; }; then
18703 ac_cv_lib_gcc___fixsfdi=yes
18705 echo "$as_me: failed program was:" >&5
18706 sed 's/^/| /' conftest.$ac_ext >&5
18708 ac_cv_lib_gcc___fixsfdi=no
18711 rm -f core conftest.err conftest.$ac_objext \
18712 conftest$ac_exeext conftest.$ac_ext
18713 LIBS=$ac_check_lib_save_LIBS
18715 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18716 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18717 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18719 cat >>confdefs.h <<\_ACEOF
18720 #define HAVE___FIXSFDI 1
18725 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18726 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18727 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18728 echo $ECHO_N "(cached) $ECHO_C" >&6
18730 ac_check_lib_save_LIBS=$LIBS
18732 cat >conftest.$ac_ext <<_ACEOF
18735 cat confdefs.h >>conftest.$ac_ext
18736 cat >>conftest.$ac_ext <<_ACEOF
18737 /* end confdefs.h. */
18739 /* Override any GCC internal prototype to avoid an error.
18740 Use char because int might match the return type of a GCC
18741 builtin and then its argument prototype would still apply. */
18745 char __floatdidf ();
18749 return __floatdidf ();
18754 rm -f conftest.$ac_objext conftest$ac_exeext
18755 if { (ac_try="$ac_link"
18756 case "(($ac_try" in
18757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18758 *) ac_try_echo=$ac_try;;
18760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18761 (eval "$ac_link") 2>conftest.er1
18763 grep -v '^ *+' conftest.er1 >conftest.err
18765 cat conftest.err >&5
18766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18767 (exit $ac_status); } &&
18768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18769 { (case "(($ac_try" in
18770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18771 *) ac_try_echo=$ac_try;;
18773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18774 (eval "$ac_try") 2>&5
18776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18777 (exit $ac_status); }; } &&
18778 { ac_try='test -s conftest$ac_exeext'
18779 { (case "(($ac_try" in
18780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18781 *) ac_try_echo=$ac_try;;
18783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18784 (eval "$ac_try") 2>&5
18786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18787 (exit $ac_status); }; }; then
18788 ac_cv_lib_gcc___floatdidf=yes
18790 echo "$as_me: failed program was:" >&5
18791 sed 's/^/| /' conftest.$ac_ext >&5
18793 ac_cv_lib_gcc___floatdidf=no
18796 rm -f core conftest.err conftest.$ac_objext \
18797 conftest$ac_exeext conftest.$ac_ext
18798 LIBS=$ac_check_lib_save_LIBS
18800 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18801 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18802 if test $ac_cv_lib_gcc___floatdidf = yes; then
18804 cat >>confdefs.h <<\_ACEOF
18805 #define HAVE___FLOATDIDF 1
18810 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18811 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18812 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18813 echo $ECHO_N "(cached) $ECHO_C" >&6
18815 ac_check_lib_save_LIBS=$LIBS
18817 cat >conftest.$ac_ext <<_ACEOF
18820 cat confdefs.h >>conftest.$ac_ext
18821 cat >>conftest.$ac_ext <<_ACEOF
18822 /* end confdefs.h. */
18824 /* Override any GCC internal prototype to avoid an error.
18825 Use char because int might match the return type of a GCC
18826 builtin and then its argument prototype would still apply. */
18834 return __lshrdi3 ();
18839 rm -f conftest.$ac_objext conftest$ac_exeext
18840 if { (ac_try="$ac_link"
18841 case "(($ac_try" in
18842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18843 *) ac_try_echo=$ac_try;;
18845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18846 (eval "$ac_link") 2>conftest.er1
18848 grep -v '^ *+' conftest.er1 >conftest.err
18850 cat conftest.err >&5
18851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18852 (exit $ac_status); } &&
18853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18854 { (case "(($ac_try" in
18855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18856 *) ac_try_echo=$ac_try;;
18858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18859 (eval "$ac_try") 2>&5
18861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18862 (exit $ac_status); }; } &&
18863 { ac_try='test -s conftest$ac_exeext'
18864 { (case "(($ac_try" in
18865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18866 *) ac_try_echo=$ac_try;;
18868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18869 (eval "$ac_try") 2>&5
18871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18872 (exit $ac_status); }; }; then
18873 ac_cv_lib_gcc___lshrdi3=yes
18875 echo "$as_me: failed program was:" >&5
18876 sed 's/^/| /' conftest.$ac_ext >&5
18878 ac_cv_lib_gcc___lshrdi3=no
18881 rm -f core conftest.err conftest.$ac_objext \
18882 conftest$ac_exeext conftest.$ac_ext
18883 LIBS=$ac_check_lib_save_LIBS
18885 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18886 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18887 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18889 cat >>confdefs.h <<\_ACEOF
18890 #define HAVE___LSHRDI3 1
18895 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18896 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18897 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18898 echo $ECHO_N "(cached) $ECHO_C" >&6
18900 ac_check_lib_save_LIBS=$LIBS
18902 cat >conftest.$ac_ext <<_ACEOF
18905 cat confdefs.h >>conftest.$ac_ext
18906 cat >>conftest.$ac_ext <<_ACEOF
18907 /* end confdefs.h. */
18909 /* Override any GCC internal prototype to avoid an error.
18910 Use char because int might match the return type of a GCC
18911 builtin and then its argument prototype would still apply. */
18919 return __moddi3 ();
18924 rm -f conftest.$ac_objext conftest$ac_exeext
18925 if { (ac_try="$ac_link"
18926 case "(($ac_try" in
18927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18928 *) ac_try_echo=$ac_try;;
18930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18931 (eval "$ac_link") 2>conftest.er1
18933 grep -v '^ *+' conftest.er1 >conftest.err
18935 cat conftest.err >&5
18936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18937 (exit $ac_status); } &&
18938 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18939 { (case "(($ac_try" in
18940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18941 *) ac_try_echo=$ac_try;;
18943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18944 (eval "$ac_try") 2>&5
18946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18947 (exit $ac_status); }; } &&
18948 { ac_try='test -s conftest$ac_exeext'
18949 { (case "(($ac_try" in
18950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18951 *) ac_try_echo=$ac_try;;
18953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18954 (eval "$ac_try") 2>&5
18956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18957 (exit $ac_status); }; }; then
18958 ac_cv_lib_gcc___moddi3=yes
18960 echo "$as_me: failed program was:" >&5
18961 sed 's/^/| /' conftest.$ac_ext >&5
18963 ac_cv_lib_gcc___moddi3=no
18966 rm -f core conftest.err conftest.$ac_objext \
18967 conftest$ac_exeext conftest.$ac_ext
18968 LIBS=$ac_check_lib_save_LIBS
18970 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18971 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18972 if test $ac_cv_lib_gcc___moddi3 = yes; then
18974 cat >>confdefs.h <<\_ACEOF
18975 #define HAVE___MODDI3 1
18980 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18981 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18982 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18983 echo $ECHO_N "(cached) $ECHO_C" >&6
18985 ac_check_lib_save_LIBS=$LIBS
18987 cat >conftest.$ac_ext <<_ACEOF
18990 cat confdefs.h >>conftest.$ac_ext
18991 cat >>conftest.$ac_ext <<_ACEOF
18992 /* end confdefs.h. */
18994 /* Override any GCC internal prototype to avoid an error.
18995 Use char because int might match the return type of a GCC
18996 builtin and then its argument prototype would still apply. */
19004 return __udivdi3 ();
19009 rm -f conftest.$ac_objext conftest$ac_exeext
19010 if { (ac_try="$ac_link"
19011 case "(($ac_try" in
19012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19013 *) ac_try_echo=$ac_try;;
19015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19016 (eval "$ac_link") 2>conftest.er1
19018 grep -v '^ *+' conftest.er1 >conftest.err
19020 cat conftest.err >&5
19021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19022 (exit $ac_status); } &&
19023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19024 { (case "(($ac_try" in
19025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19026 *) ac_try_echo=$ac_try;;
19028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19029 (eval "$ac_try") 2>&5
19031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19032 (exit $ac_status); }; } &&
19033 { ac_try='test -s conftest$ac_exeext'
19034 { (case "(($ac_try" in
19035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19036 *) ac_try_echo=$ac_try;;
19038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19039 (eval "$ac_try") 2>&5
19041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19042 (exit $ac_status); }; }; then
19043 ac_cv_lib_gcc___udivdi3=yes
19045 echo "$as_me: failed program was:" >&5
19046 sed 's/^/| /' conftest.$ac_ext >&5
19048 ac_cv_lib_gcc___udivdi3=no
19051 rm -f core conftest.err conftest.$ac_objext \
19052 conftest$ac_exeext conftest.$ac_ext
19053 LIBS=$ac_check_lib_save_LIBS
19055 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19056 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19057 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19059 cat >>confdefs.h <<\_ACEOF
19060 #define HAVE___UDIVDI3 1
19065 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19066 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19067 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19068 echo $ECHO_N "(cached) $ECHO_C" >&6
19070 ac_check_lib_save_LIBS=$LIBS
19072 cat >conftest.$ac_ext <<_ACEOF
19075 cat confdefs.h >>conftest.$ac_ext
19076 cat >>conftest.$ac_ext <<_ACEOF
19077 /* end confdefs.h. */
19079 /* Override any GCC internal prototype to avoid an error.
19080 Use char because int might match the return type of a GCC
19081 builtin and then its argument prototype would still apply. */
19089 return __umoddi3 ();
19094 rm -f conftest.$ac_objext conftest$ac_exeext
19095 if { (ac_try="$ac_link"
19096 case "(($ac_try" in
19097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19098 *) ac_try_echo=$ac_try;;
19100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19101 (eval "$ac_link") 2>conftest.er1
19103 grep -v '^ *+' conftest.er1 >conftest.err
19105 cat conftest.err >&5
19106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19107 (exit $ac_status); } &&
19108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19109 { (case "(($ac_try" in
19110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19111 *) ac_try_echo=$ac_try;;
19113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19114 (eval "$ac_try") 2>&5
19116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19117 (exit $ac_status); }; } &&
19118 { ac_try='test -s conftest$ac_exeext'
19119 { (case "(($ac_try" in
19120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19121 *) ac_try_echo=$ac_try;;
19123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19124 (eval "$ac_try") 2>&5
19126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19127 (exit $ac_status); }; }; then
19128 ac_cv_lib_gcc___umoddi3=yes
19130 echo "$as_me: failed program was:" >&5
19131 sed 's/^/| /' conftest.$ac_ext >&5
19133 ac_cv_lib_gcc___umoddi3=no
19136 rm -f core conftest.err conftest.$ac_objext \
19137 conftest$ac_exeext conftest.$ac_ext
19138 LIBS=$ac_check_lib_save_LIBS
19140 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19141 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19142 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19144 cat >>confdefs.h <<\_ACEOF
19145 #define HAVE___UMODDI3 1
19151 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19152 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19153 if test "${ac_cv_lib_gcc___main+set}" = set; then
19154 echo $ECHO_N "(cached) $ECHO_C" >&6
19156 ac_check_lib_save_LIBS=$LIBS
19158 cat >conftest.$ac_ext <<_ACEOF
19161 cat confdefs.h >>conftest.$ac_ext
19162 cat >>conftest.$ac_ext <<_ACEOF
19163 /* end confdefs.h. */
19165 /* Override any GCC internal prototype to avoid an error.
19166 Use char because int might match the return type of a GCC
19167 builtin and then its argument prototype would still apply. */
19180 rm -f conftest.$ac_objext conftest$ac_exeext
19181 if { (ac_try="$ac_link"
19182 case "(($ac_try" in
19183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19184 *) ac_try_echo=$ac_try;;
19186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19187 (eval "$ac_link") 2>conftest.er1
19189 grep -v '^ *+' conftest.er1 >conftest.err
19191 cat conftest.err >&5
19192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19193 (exit $ac_status); } &&
19194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19195 { (case "(($ac_try" in
19196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19197 *) ac_try_echo=$ac_try;;
19199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19200 (eval "$ac_try") 2>&5
19202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203 (exit $ac_status); }; } &&
19204 { ac_try='test -s conftest$ac_exeext'
19205 { (case "(($ac_try" in
19206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19207 *) ac_try_echo=$ac_try;;
19209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19210 (eval "$ac_try") 2>&5
19212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19213 (exit $ac_status); }; }; then
19214 ac_cv_lib_gcc___main=yes
19216 echo "$as_me: failed program was:" >&5
19217 sed 's/^/| /' conftest.$ac_ext >&5
19219 ac_cv_lib_gcc___main=no
19222 rm -f core conftest.err conftest.$ac_objext \
19223 conftest$ac_exeext conftest.$ac_ext
19224 LIBS=$ac_check_lib_save_LIBS
19226 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19227 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19228 if test $ac_cv_lib_gcc___main = yes; then
19230 cat >>confdefs.h <<\_ACEOF
19231 #define HAVE___MAIN 1
19236 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19237 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19238 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19239 echo $ECHO_N "(cached) $ECHO_C" >&6
19241 ac_check_lib_save_LIBS=$LIBS
19243 cat >conftest.$ac_ext <<_ACEOF
19246 cat confdefs.h >>conftest.$ac_ext
19247 cat >>conftest.$ac_ext <<_ACEOF
19248 /* end confdefs.h. */
19250 /* Override any GCC internal prototype to avoid an error.
19251 Use char because int might match the return type of a GCC
19252 builtin and then its argument prototype would still apply. */
19260 return __cmpdi2 ();
19265 rm -f conftest.$ac_objext conftest$ac_exeext
19266 if { (ac_try="$ac_link"
19267 case "(($ac_try" in
19268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19269 *) ac_try_echo=$ac_try;;
19271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19272 (eval "$ac_link") 2>conftest.er1
19274 grep -v '^ *+' conftest.er1 >conftest.err
19276 cat conftest.err >&5
19277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19278 (exit $ac_status); } &&
19279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19280 { (case "(($ac_try" in
19281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19282 *) ac_try_echo=$ac_try;;
19284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19285 (eval "$ac_try") 2>&5
19287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19288 (exit $ac_status); }; } &&
19289 { ac_try='test -s conftest$ac_exeext'
19290 { (case "(($ac_try" in
19291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19292 *) ac_try_echo=$ac_try;;
19294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19295 (eval "$ac_try") 2>&5
19297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19298 (exit $ac_status); }; }; then
19299 ac_cv_lib_gcc___cmpdi2=yes
19301 echo "$as_me: failed program was:" >&5
19302 sed 's/^/| /' conftest.$ac_ext >&5
19304 ac_cv_lib_gcc___cmpdi2=no
19307 rm -f core conftest.err conftest.$ac_objext \
19308 conftest$ac_exeext conftest.$ac_ext
19309 LIBS=$ac_check_lib_save_LIBS
19311 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19312 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19313 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19315 cat >>confdefs.h <<\_ACEOF
19316 #define HAVE___CMPDI2 1
19323 if test "$llvm_cv_os_type" = "MingW" ; then
19324 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19325 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19326 cat >conftest.$ac_ext <<_ACEOF
19327 #include <windows.h>
19328 #include <imagehlp.h>
19329 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19330 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19332 rm -f conftest.$ac_objext
19333 if { (ac_try="$ac_compile"
19334 case "(($ac_try" in
19335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19336 *) ac_try_echo=$ac_try;;
19338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19339 (eval "$ac_compile") 2>conftest.er1
19341 grep -v '^ *+' conftest.er1 >conftest.err
19343 cat conftest.err >&5
19344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19345 (exit $ac_status); } &&
19346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19347 { (case "(($ac_try" in
19348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19349 *) ac_try_echo=$ac_try;;
19351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19352 (eval "$ac_try") 2>&5
19354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19355 (exit $ac_status); }; } &&
19356 { ac_try='test -s conftest.$ac_objext'
19357 { (case "(($ac_try" in
19358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19359 *) ac_try_echo=$ac_try;;
19361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19362 (eval "$ac_try") 2>&5
19364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19365 (exit $ac_status); }; }; then
19367 { echo "$as_me:$LINENO: result: yes" >&5
19368 echo "${ECHO_T}yes" >&6; }
19369 llvm_cv_win32_elmcb_pcstr="PCSTR"
19372 echo "$as_me: failed program was:" >&5
19373 sed 's/^/| /' conftest.$ac_ext >&5
19376 { echo "$as_me:$LINENO: result: no" >&5
19377 echo "${ECHO_T}no" >&6; }
19378 llvm_cv_win32_elmcb_pcstr="PSTR"
19382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19384 cat >>confdefs.h <<_ACEOF
19385 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19391 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19392 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19393 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19394 echo $ECHO_N "(cached) $ECHO_C" >&6
19397 ac_cpp='$CXXCPP $CPPFLAGS'
19398 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19399 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19400 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19402 cat >conftest.$ac_ext <<_ACEOF
19405 cat confdefs.h >>conftest.$ac_ext
19406 cat >>conftest.$ac_ext <<_ACEOF
19407 /* end confdefs.h. */
19417 rm -f conftest.$ac_objext
19418 if { (ac_try="$ac_compile"
19419 case "(($ac_try" in
19420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19421 *) ac_try_echo=$ac_try;;
19423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19424 (eval "$ac_compile") 2>conftest.er1
19426 grep -v '^ *+' conftest.er1 >conftest.err
19428 cat conftest.err >&5
19429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19430 (exit $ac_status); } &&
19431 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19432 { (case "(($ac_try" in
19433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19434 *) ac_try_echo=$ac_try;;
19436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19437 (eval "$ac_try") 2>&5
19439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19440 (exit $ac_status); }; } &&
19441 { ac_try='test -s conftest.$ac_objext'
19442 { (case "(($ac_try" in
19443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19444 *) ac_try_echo=$ac_try;;
19446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19447 (eval "$ac_try") 2>&5
19449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19450 (exit $ac_status); }; }; then
19451 ac_cv_func_isnan_in_math_h=yes
19453 echo "$as_me: failed program was:" >&5
19454 sed 's/^/| /' conftest.$ac_ext >&5
19456 ac_cv_func_isnan_in_math_h=no
19459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19461 ac_cpp='$CPP $CPPFLAGS'
19462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19467 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19468 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19471 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19473 cat >>confdefs.h <<\_ACEOF
19474 #define HAVE_ISNAN_IN_MATH_H 1
19479 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19480 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19481 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19482 echo $ECHO_N "(cached) $ECHO_C" >&6
19485 ac_cpp='$CXXCPP $CPPFLAGS'
19486 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19487 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19488 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19490 cat >conftest.$ac_ext <<_ACEOF
19493 cat confdefs.h >>conftest.$ac_ext
19494 cat >>conftest.$ac_ext <<_ACEOF
19495 /* end confdefs.h. */
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_cxx_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 ac_cv_func_isnan_in_cmath=yes
19541 echo "$as_me: failed program was:" >&5
19542 sed 's/^/| /' conftest.$ac_ext >&5
19544 ac_cv_func_isnan_in_cmath=no
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
19555 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19556 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19558 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19560 cat >>confdefs.h <<\_ACEOF
19561 #define HAVE_ISNAN_IN_CMATH 1
19566 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19567 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19568 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19569 echo $ECHO_N "(cached) $ECHO_C" >&6
19572 ac_cpp='$CXXCPP $CPPFLAGS'
19573 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19574 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19575 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19577 cat >conftest.$ac_ext <<_ACEOF
19580 cat confdefs.h >>conftest.$ac_ext
19581 cat >>conftest.$ac_ext <<_ACEOF
19582 /* end confdefs.h. */
19587 float f; std::isnan(f);
19592 rm -f conftest.$ac_objext
19593 if { (ac_try="$ac_compile"
19594 case "(($ac_try" in
19595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19596 *) ac_try_echo=$ac_try;;
19598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19599 (eval "$ac_compile") 2>conftest.er1
19601 grep -v '^ *+' conftest.er1 >conftest.err
19603 cat conftest.err >&5
19604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19605 (exit $ac_status); } &&
19606 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19607 { (case "(($ac_try" in
19608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19609 *) ac_try_echo=$ac_try;;
19611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19612 (eval "$ac_try") 2>&5
19614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19615 (exit $ac_status); }; } &&
19616 { ac_try='test -s conftest.$ac_objext'
19617 { (case "(($ac_try" in
19618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19619 *) ac_try_echo=$ac_try;;
19621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19622 (eval "$ac_try") 2>&5
19624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19625 (exit $ac_status); }; }; then
19626 ac_cv_func_std_isnan_in_cmath=yes
19628 echo "$as_me: failed program was:" >&5
19629 sed 's/^/| /' conftest.$ac_ext >&5
19631 ac_cv_func_std_isnan_in_cmath=no
19634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19636 ac_cpp='$CPP $CPPFLAGS'
19637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19642 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19643 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19645 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19647 cat >>confdefs.h <<\_ACEOF
19648 #define HAVE_STD_ISNAN_IN_CMATH 1
19654 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19655 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19656 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19657 echo $ECHO_N "(cached) $ECHO_C" >&6
19660 ac_cpp='$CXXCPP $CPPFLAGS'
19661 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19662 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19663 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19665 cat >conftest.$ac_ext <<_ACEOF
19668 cat confdefs.h >>conftest.$ac_ext
19669 cat >>conftest.$ac_ext <<_ACEOF
19670 /* end confdefs.h. */
19680 rm -f conftest.$ac_objext
19681 if { (ac_try="$ac_compile"
19682 case "(($ac_try" in
19683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19684 *) ac_try_echo=$ac_try;;
19686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19687 (eval "$ac_compile") 2>conftest.er1
19689 grep -v '^ *+' conftest.er1 >conftest.err
19691 cat conftest.err >&5
19692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19693 (exit $ac_status); } &&
19694 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19695 { (case "(($ac_try" in
19696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19697 *) ac_try_echo=$ac_try;;
19699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19700 (eval "$ac_try") 2>&5
19702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19703 (exit $ac_status); }; } &&
19704 { ac_try='test -s conftest.$ac_objext'
19705 { (case "(($ac_try" in
19706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19707 *) ac_try_echo=$ac_try;;
19709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19710 (eval "$ac_try") 2>&5
19712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19713 (exit $ac_status); }; }; then
19714 ac_cv_func_isinf_in_math_h=yes
19716 echo "$as_me: failed program was:" >&5
19717 sed 's/^/| /' conftest.$ac_ext >&5
19719 ac_cv_func_isinf_in_math_h=no
19722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19724 ac_cpp='$CPP $CPPFLAGS'
19725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19730 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19731 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19733 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19735 cat >>confdefs.h <<\_ACEOF
19736 #define HAVE_ISINF_IN_MATH_H 1
19741 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19742 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19743 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19744 echo $ECHO_N "(cached) $ECHO_C" >&6
19747 ac_cpp='$CXXCPP $CPPFLAGS'
19748 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19749 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19750 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19752 cat >conftest.$ac_ext <<_ACEOF
19755 cat confdefs.h >>conftest.$ac_ext
19756 cat >>conftest.$ac_ext <<_ACEOF
19757 /* end confdefs.h. */
19767 rm -f conftest.$ac_objext
19768 if { (ac_try="$ac_compile"
19769 case "(($ac_try" in
19770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19771 *) ac_try_echo=$ac_try;;
19773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19774 (eval "$ac_compile") 2>conftest.er1
19776 grep -v '^ *+' conftest.er1 >conftest.err
19778 cat conftest.err >&5
19779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19780 (exit $ac_status); } &&
19781 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19782 { (case "(($ac_try" in
19783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19784 *) ac_try_echo=$ac_try;;
19786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19787 (eval "$ac_try") 2>&5
19789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19790 (exit $ac_status); }; } &&
19791 { ac_try='test -s conftest.$ac_objext'
19792 { (case "(($ac_try" in
19793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19794 *) ac_try_echo=$ac_try;;
19796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19797 (eval "$ac_try") 2>&5
19799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19800 (exit $ac_status); }; }; then
19801 ac_cv_func_isinf_in_cmath=yes
19803 echo "$as_me: failed program was:" >&5
19804 sed 's/^/| /' conftest.$ac_ext >&5
19806 ac_cv_func_isinf_in_cmath=no
19809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19811 ac_cpp='$CPP $CPPFLAGS'
19812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19817 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19818 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19820 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19822 cat >>confdefs.h <<\_ACEOF
19823 #define HAVE_ISINF_IN_CMATH 1
19828 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19829 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19830 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19831 echo $ECHO_N "(cached) $ECHO_C" >&6
19834 ac_cpp='$CXXCPP $CPPFLAGS'
19835 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19836 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19837 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19839 cat >conftest.$ac_ext <<_ACEOF
19842 cat confdefs.h >>conftest.$ac_ext
19843 cat >>conftest.$ac_ext <<_ACEOF
19844 /* end confdefs.h. */
19849 float f; std::isinf(f);
19854 rm -f conftest.$ac_objext
19855 if { (ac_try="$ac_compile"
19856 case "(($ac_try" in
19857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19858 *) ac_try_echo=$ac_try;;
19860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19861 (eval "$ac_compile") 2>conftest.er1
19863 grep -v '^ *+' conftest.er1 >conftest.err
19865 cat conftest.err >&5
19866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19867 (exit $ac_status); } &&
19868 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19869 { (case "(($ac_try" in
19870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19871 *) ac_try_echo=$ac_try;;
19873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19874 (eval "$ac_try") 2>&5
19876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19877 (exit $ac_status); }; } &&
19878 { ac_try='test -s conftest.$ac_objext'
19879 { (case "(($ac_try" in
19880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19881 *) ac_try_echo=$ac_try;;
19883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19884 (eval "$ac_try") 2>&5
19886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887 (exit $ac_status); }; }; then
19888 ac_cv_func_std_isinf_in_cmath=yes
19890 echo "$as_me: failed program was:" >&5
19891 sed 's/^/| /' conftest.$ac_ext >&5
19893 ac_cv_func_std_isinf_in_cmath=no
19896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19898 ac_cpp='$CPP $CPPFLAGS'
19899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19904 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19905 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19907 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19909 cat >>confdefs.h <<\_ACEOF
19910 #define HAVE_STD_ISINF_IN_CMATH 1
19915 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19916 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19917 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19918 echo $ECHO_N "(cached) $ECHO_C" >&6
19921 ac_cpp='$CXXCPP $CPPFLAGS'
19922 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19923 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19924 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19926 cat >conftest.$ac_ext <<_ACEOF
19929 cat confdefs.h >>conftest.$ac_ext
19930 cat >>conftest.$ac_ext <<_ACEOF
19931 /* end confdefs.h. */
19932 #include <ieeefp.h>
19936 float f; finite(f);
19941 rm -f conftest.$ac_objext
19942 if { (ac_try="$ac_compile"
19943 case "(($ac_try" in
19944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19945 *) ac_try_echo=$ac_try;;
19947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19948 (eval "$ac_compile") 2>conftest.er1
19950 grep -v '^ *+' conftest.er1 >conftest.err
19952 cat conftest.err >&5
19953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19954 (exit $ac_status); } &&
19955 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19956 { (case "(($ac_try" in
19957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19958 *) ac_try_echo=$ac_try;;
19960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19961 (eval "$ac_try") 2>&5
19963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19964 (exit $ac_status); }; } &&
19965 { ac_try='test -s conftest.$ac_objext'
19966 { (case "(($ac_try" in
19967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19968 *) ac_try_echo=$ac_try;;
19970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19971 (eval "$ac_try") 2>&5
19973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19974 (exit $ac_status); }; }; then
19975 ac_cv_func_finite_in_ieeefp_h=yes
19977 echo "$as_me: failed program was:" >&5
19978 sed 's/^/| /' conftest.$ac_ext >&5
19980 ac_cv_func_finite_in_ieeefp_h=no
19983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19985 ac_cpp='$CPP $CPPFLAGS'
19986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19991 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19992 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19994 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19996 cat >>confdefs.h <<\_ACEOF
19997 #define HAVE_FINITE_IN_IEEEFP_H 1
20004 if test "$llvm_cv_platform_type" = "Unix" ; then
20007 for ac_header in stdlib.h unistd.h
20009 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20010 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20011 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20013 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20014 echo $ECHO_N "(cached) $ECHO_C" >&6
20016 ac_res=`eval echo '${'$as_ac_Header'}'`
20017 { echo "$as_me:$LINENO: result: $ac_res" >&5
20018 echo "${ECHO_T}$ac_res" >&6; }
20020 # Is the header compilable?
20021 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20022 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20023 cat >conftest.$ac_ext <<_ACEOF
20026 cat confdefs.h >>conftest.$ac_ext
20027 cat >>conftest.$ac_ext <<_ACEOF
20028 /* end confdefs.h. */
20029 $ac_includes_default
20030 #include <$ac_header>
20032 rm -f conftest.$ac_objext
20033 if { (ac_try="$ac_compile"
20034 case "(($ac_try" in
20035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20036 *) ac_try_echo=$ac_try;;
20038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20039 (eval "$ac_compile") 2>conftest.er1
20041 grep -v '^ *+' conftest.er1 >conftest.err
20043 cat conftest.err >&5
20044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20045 (exit $ac_status); } &&
20046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20047 { (case "(($ac_try" in
20048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20049 *) ac_try_echo=$ac_try;;
20051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20052 (eval "$ac_try") 2>&5
20054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20055 (exit $ac_status); }; } &&
20056 { ac_try='test -s conftest.$ac_objext'
20057 { (case "(($ac_try" in
20058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20059 *) ac_try_echo=$ac_try;;
20061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20062 (eval "$ac_try") 2>&5
20064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20065 (exit $ac_status); }; }; then
20066 ac_header_compiler=yes
20068 echo "$as_me: failed program was:" >&5
20069 sed 's/^/| /' conftest.$ac_ext >&5
20071 ac_header_compiler=no
20074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20075 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20076 echo "${ECHO_T}$ac_header_compiler" >&6; }
20078 # Is the header present?
20079 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20080 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20081 cat >conftest.$ac_ext <<_ACEOF
20084 cat confdefs.h >>conftest.$ac_ext
20085 cat >>conftest.$ac_ext <<_ACEOF
20086 /* end confdefs.h. */
20087 #include <$ac_header>
20089 if { (ac_try="$ac_cpp conftest.$ac_ext"
20090 case "(($ac_try" in
20091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20092 *) ac_try_echo=$ac_try;;
20094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20095 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20097 grep -v '^ *+' conftest.er1 >conftest.err
20099 cat conftest.err >&5
20100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20101 (exit $ac_status); } >/dev/null; then
20102 if test -s conftest.err; then
20103 ac_cpp_err=$ac_c_preproc_warn_flag
20104 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20111 if test -z "$ac_cpp_err"; then
20112 ac_header_preproc=yes
20114 echo "$as_me: failed program was:" >&5
20115 sed 's/^/| /' conftest.$ac_ext >&5
20117 ac_header_preproc=no
20120 rm -f conftest.err conftest.$ac_ext
20121 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20122 echo "${ECHO_T}$ac_header_preproc" >&6; }
20124 # So? What about this header?
20125 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20127 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20128 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20129 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20130 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20131 ac_header_preproc=yes
20134 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20135 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20136 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20137 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20138 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20139 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20140 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20141 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20142 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20143 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20144 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20145 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20147 ## ------------------------------ ##
20148 ## Report this to bugs@yourdomain ##
20149 ## ------------------------------ ##
20151 ) | sed "s/^/$as_me: WARNING: /" >&2
20154 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20156 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20157 echo $ECHO_N "(cached) $ECHO_C" >&6
20159 eval "$as_ac_Header=\$ac_header_preproc"
20161 ac_res=`eval echo '${'$as_ac_Header'}'`
20162 { echo "$as_me:$LINENO: result: $ac_res" >&5
20163 echo "${ECHO_T}$ac_res" >&6; }
20166 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20167 cat >>confdefs.h <<_ACEOF
20168 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20176 for ac_func in getpagesize
20178 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20179 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20181 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20182 echo $ECHO_N "(cached) $ECHO_C" >&6
20184 cat >conftest.$ac_ext <<_ACEOF
20187 cat confdefs.h >>conftest.$ac_ext
20188 cat >>conftest.$ac_ext <<_ACEOF
20189 /* end confdefs.h. */
20190 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20192 #define $ac_func innocuous_$ac_func
20194 /* System header to define __stub macros and hopefully few prototypes,
20195 which can conflict with char $ac_func (); below.
20196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20197 <limits.h> exists even on freestanding compilers. */
20200 # include <limits.h>
20202 # include <assert.h>
20207 /* Override any GCC internal prototype to avoid an error.
20208 Use char because int might match the return type of a GCC
20209 builtin and then its argument prototype would still apply. */
20214 /* The GNU C library defines this for functions which it implements
20215 to always fail with ENOSYS. Some functions are actually named
20216 something starting with __ and the normal name is an alias. */
20217 #if defined __stub_$ac_func || defined __stub___$ac_func
20224 return $ac_func ();
20229 rm -f conftest.$ac_objext conftest$ac_exeext
20230 if { (ac_try="$ac_link"
20231 case "(($ac_try" in
20232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20233 *) ac_try_echo=$ac_try;;
20235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20236 (eval "$ac_link") 2>conftest.er1
20238 grep -v '^ *+' conftest.er1 >conftest.err
20240 cat conftest.err >&5
20241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242 (exit $ac_status); } &&
20243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20244 { (case "(($ac_try" in
20245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20246 *) ac_try_echo=$ac_try;;
20248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20249 (eval "$ac_try") 2>&5
20251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20252 (exit $ac_status); }; } &&
20253 { ac_try='test -s conftest$ac_exeext'
20254 { (case "(($ac_try" in
20255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20256 *) ac_try_echo=$ac_try;;
20258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20259 (eval "$ac_try") 2>&5
20261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20262 (exit $ac_status); }; }; then
20263 eval "$as_ac_var=yes"
20265 echo "$as_me: failed program was:" >&5
20266 sed 's/^/| /' conftest.$ac_ext >&5
20268 eval "$as_ac_var=no"
20271 rm -f core conftest.err conftest.$ac_objext \
20272 conftest$ac_exeext conftest.$ac_ext
20274 ac_res=`eval echo '${'$as_ac_var'}'`
20275 { echo "$as_me:$LINENO: result: $ac_res" >&5
20276 echo "${ECHO_T}$ac_res" >&6; }
20277 if test `eval echo '${'$as_ac_var'}'` = yes; then
20278 cat >>confdefs.h <<_ACEOF
20279 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20285 { echo "$as_me:$LINENO: checking for working mmap" >&5
20286 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20287 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20288 echo $ECHO_N "(cached) $ECHO_C" >&6
20290 if test "$cross_compiling" = yes; then
20291 ac_cv_func_mmap_fixed_mapped=no
20293 cat >conftest.$ac_ext <<_ACEOF
20296 cat confdefs.h >>conftest.$ac_ext
20297 cat >>conftest.$ac_ext <<_ACEOF
20298 /* end confdefs.h. */
20299 $ac_includes_default
20300 /* malloc might have been renamed as rpl_malloc. */
20303 /* Thanks to Mike Haertel and Jim Avera for this test.
20304 Here is a matrix of mmap possibilities:
20305 mmap private not fixed
20306 mmap private fixed at somewhere currently unmapped
20307 mmap private fixed at somewhere already mapped
20308 mmap shared not fixed
20309 mmap shared fixed at somewhere currently unmapped
20310 mmap shared fixed at somewhere already mapped
20311 For private mappings, we should verify that changes cannot be read()
20312 back from the file, nor mmap's back from the file at a different
20313 address. (There have been systems where private was not correctly
20314 implemented like the infamous i386 svr4.0, and systems where the
20315 VM page cache was not coherent with the file system buffer cache
20316 like early versions of FreeBSD and possibly contemporary NetBSD.)
20317 For shared mappings, we should conversely verify that changes get
20318 propagated back to all the places they're supposed to be.
20320 Grep wants private fixed already mapped.
20321 The main things grep needs to know about mmap are:
20322 * does it exist and is it safe to write into the mmap'd area
20323 * how to use it (BSD variants) */
20326 #include <sys/mman.h>
20328 #if !STDC_HEADERS && !HAVE_STDLIB_H
20332 /* This mess was copied from the GNU getpagesize.h. */
20333 #if !HAVE_GETPAGESIZE
20334 /* Assume that all systems that can run configure have sys/param.h. */
20335 # if !HAVE_SYS_PARAM_H
20336 # define HAVE_SYS_PARAM_H 1
20339 # ifdef _SC_PAGESIZE
20340 # define getpagesize() sysconf(_SC_PAGESIZE)
20341 # else /* no _SC_PAGESIZE */
20342 # if HAVE_SYS_PARAM_H
20343 # include <sys/param.h>
20344 # ifdef EXEC_PAGESIZE
20345 # define getpagesize() EXEC_PAGESIZE
20346 # else /* no EXEC_PAGESIZE */
20348 # define getpagesize() NBPG * CLSIZE
20351 # endif /* no CLSIZE */
20352 # else /* no NBPG */
20354 # define getpagesize() NBPC
20355 # else /* no NBPC */
20357 # define getpagesize() PAGESIZE
20358 # endif /* PAGESIZE */
20359 # endif /* no NBPC */
20360 # endif /* no NBPG */
20361 # endif /* no EXEC_PAGESIZE */
20362 # else /* no HAVE_SYS_PARAM_H */
20363 # define getpagesize() 8192 /* punt totally */
20364 # endif /* no HAVE_SYS_PARAM_H */
20365 # endif /* no _SC_PAGESIZE */
20367 #endif /* no HAVE_GETPAGESIZE */
20372 char *data, *data2, *data3;
20376 pagesize = getpagesize ();
20378 /* First, make a file with some known garbage in it. */
20379 data = (char *) malloc (pagesize);
20382 for (i = 0; i < pagesize; ++i)
20383 *(data + i) = rand ();
20385 fd = creat ("conftest.mmap", 0600);
20388 if (write (fd, data, pagesize) != pagesize)
20392 /* Next, try to mmap the file at a fixed address which already has
20393 something else allocated at it. If we can, also make sure that
20394 we see the same garbage. */
20395 fd = open ("conftest.mmap", O_RDWR);
20398 data2 = (char *) malloc (2 * pagesize);
20401 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20402 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20403 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20405 for (i = 0; i < pagesize; ++i)
20406 if (*(data + i) != *(data2 + i))
20409 /* Finally, make sure that changes to the mapped area do not
20410 percolate back to the file as seen by read(). (This is a bug on
20411 some variants of i386 svr4.0.) */
20412 for (i = 0; i < pagesize; ++i)
20413 *(data2 + i) = *(data2 + i) + 1;
20414 data3 = (char *) malloc (pagesize);
20417 if (read (fd, data3, pagesize) != pagesize)
20419 for (i = 0; i < pagesize; ++i)
20420 if (*(data + i) != *(data3 + i))
20426 rm -f conftest$ac_exeext
20427 if { (ac_try="$ac_link"
20428 case "(($ac_try" in
20429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20430 *) ac_try_echo=$ac_try;;
20432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20433 (eval "$ac_link") 2>&5
20435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20436 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20437 { (case "(($ac_try" in
20438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20439 *) ac_try_echo=$ac_try;;
20441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20442 (eval "$ac_try") 2>&5
20444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20445 (exit $ac_status); }; }; then
20446 ac_cv_func_mmap_fixed_mapped=yes
20448 echo "$as_me: program exited with status $ac_status" >&5
20449 echo "$as_me: failed program was:" >&5
20450 sed 's/^/| /' conftest.$ac_ext >&5
20452 ( exit $ac_status )
20453 ac_cv_func_mmap_fixed_mapped=no
20455 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20460 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20461 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20462 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20464 cat >>confdefs.h <<\_ACEOF
20465 #define HAVE_MMAP 1
20469 rm -f conftest.mmap
20471 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20472 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20473 if test "${ac_cv_func_mmap_file+set}" = set; then
20474 echo $ECHO_N "(cached) $ECHO_C" >&6
20477 ac_cpp='$CPP $CPPFLAGS'
20478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20482 if test "$cross_compiling" = yes; then
20483 ac_cv_func_mmap_file=no
20485 cat >conftest.$ac_ext <<_ACEOF
20489 cat confdefs.h >>conftest.$ac_ext
20490 cat >>conftest.$ac_ext <<_ACEOF
20491 /* end confdefs.h. */
20493 #include <sys/types.h>
20494 #include <sys/mman.h>
20502 fd = creat ("foo",0777);
20503 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20505 return (fd != (int) MAP_FAILED);
20510 rm -f conftest$ac_exeext
20511 if { (ac_try="$ac_link"
20512 case "(($ac_try" in
20513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20514 *) ac_try_echo=$ac_try;;
20516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20517 (eval "$ac_link") 2>&5
20519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20520 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20521 { (case "(($ac_try" in
20522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20523 *) ac_try_echo=$ac_try;;
20525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20526 (eval "$ac_try") 2>&5
20528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20529 (exit $ac_status); }; }; then
20530 ac_cv_func_mmap_file=yes
20532 echo "$as_me: program exited with status $ac_status" >&5
20533 echo "$as_me: failed program was:" >&5
20534 sed 's/^/| /' conftest.$ac_ext >&5
20536 ( exit $ac_status )
20537 ac_cv_func_mmap_file=no
20539 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20544 ac_cpp='$CPP $CPPFLAGS'
20545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20551 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20552 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20553 if test "$ac_cv_func_mmap_file" = yes; then
20555 cat >>confdefs.h <<\_ACEOF
20556 #define HAVE_MMAP_FILE
20563 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20564 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20565 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20566 echo $ECHO_N "(cached) $ECHO_C" >&6
20568 if test "$llvm_cv_os_type" = "Interix" ; then
20569 ac_cv_need_dev_zero_for_mmap=yes
20571 ac_cv_need_dev_zero_for_mmap=no
20575 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20576 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20577 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20579 cat >>confdefs.h <<\_ACEOF
20580 #define NEED_DEV_ZERO_FOR_MMAP 1
20585 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20587 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20588 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20590 if test "$ac_cv_func_mmap_file" = "no"
20592 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20593 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20597 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20598 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20600 ac_cpp='$CXXCPP $CPPFLAGS'
20601 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20602 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20603 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20605 cat >conftest.$ac_ext <<_ACEOF
20608 cat confdefs.h >>conftest.$ac_ext
20609 cat >>conftest.$ac_ext <<_ACEOF
20610 /* end confdefs.h. */
20612 volatile unsigned long val = 1;
20613 __sync_synchronize();
20614 __sync_val_compare_and_swap(&val, 1, 0);
20615 __sync_add_and_fetch(&val, 1);
20616 __sync_sub_and_fetch(&val, 1);
20621 rm -f conftest.$ac_objext conftest$ac_exeext
20622 if { (ac_try="$ac_link"
20623 case "(($ac_try" in
20624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20625 *) ac_try_echo=$ac_try;;
20627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20628 (eval "$ac_link") 2>conftest.er1
20630 grep -v '^ *+' conftest.er1 >conftest.err
20632 cat conftest.err >&5
20633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20634 (exit $ac_status); } &&
20635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20636 { (case "(($ac_try" in
20637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20638 *) ac_try_echo=$ac_try;;
20640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20641 (eval "$ac_try") 2>&5
20643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20644 (exit $ac_status); }; } &&
20645 { ac_try='test -s conftest$ac_exeext'
20646 { (case "(($ac_try" in
20647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20648 *) ac_try_echo=$ac_try;;
20650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20651 (eval "$ac_try") 2>&5
20653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20654 (exit $ac_status); }; }; then
20656 ac_cpp='$CPP $CPPFLAGS'
20657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20661 { echo "$as_me:$LINENO: result: yes" >&5
20662 echo "${ECHO_T}yes" >&6; }
20664 cat >>confdefs.h <<\_ACEOF
20665 #define LLVM_HAS_ATOMICS 1
20669 echo "$as_me: failed program was:" >&5
20670 sed 's/^/| /' conftest.$ac_ext >&5
20672 { echo "$as_me:$LINENO: result: no" >&5
20673 echo "${ECHO_T}no" >&6; }
20675 cat >>confdefs.h <<\_ACEOF
20676 #define LLVM_HAS_ATOMICS 0
20679 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20680 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20683 rm -f core conftest.err conftest.$ac_objext \
20684 conftest$ac_exeext conftest.$ac_ext
20687 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20688 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20689 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20690 if test "${llvm_cv_linux_mixed+set}" = set; then
20691 echo $ECHO_N "(cached) $ECHO_C" >&6
20694 ac_cpp='$CPP $CPPFLAGS'
20695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20699 cat >conftest.$ac_ext <<_ACEOF
20702 cat confdefs.h >>conftest.$ac_ext
20703 cat >>conftest.$ac_ext <<_ACEOF
20704 /* end confdefs.h. */
20706 error: Not x86-64 even if uname says so!
20717 rm -f conftest.$ac_objext
20718 if { (ac_try="$ac_compile"
20719 case "(($ac_try" in
20720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20721 *) ac_try_echo=$ac_try;;
20723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20724 (eval "$ac_compile") 2>conftest.er1
20726 grep -v '^ *+' conftest.er1 >conftest.err
20728 cat conftest.err >&5
20729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20730 (exit $ac_status); } &&
20731 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20732 { (case "(($ac_try" in
20733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20734 *) ac_try_echo=$ac_try;;
20736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20737 (eval "$ac_try") 2>&5
20739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20740 (exit $ac_status); }; } &&
20741 { ac_try='test -s conftest.$ac_objext'
20742 { (case "(($ac_try" in
20743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20744 *) ac_try_echo=$ac_try;;
20746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20747 (eval "$ac_try") 2>&5
20749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20750 (exit $ac_status); }; }; then
20751 llvm_cv_linux_mixed=no
20753 echo "$as_me: failed program was:" >&5
20754 sed 's/^/| /' conftest.$ac_ext >&5
20756 llvm_cv_linux_mixed=yes
20759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20761 ac_cpp='$CPP $CPPFLAGS'
20762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20768 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20769 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20771 if test "$llvm_cv_linux_mixed" = "yes"; then
20772 llvm_cv_target_arch="x86"
20778 for ac_func in __dso_handle
20780 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20781 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20782 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20783 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20784 echo $ECHO_N "(cached) $ECHO_C" >&6
20786 cat >conftest.$ac_ext <<_ACEOF
20789 cat confdefs.h >>conftest.$ac_ext
20790 cat >>conftest.$ac_ext <<_ACEOF
20791 /* end confdefs.h. */
20792 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20793 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20794 #define $ac_func innocuous_$ac_func
20796 /* System header to define __stub macros and hopefully few prototypes,
20797 which can conflict with char $ac_func (); below.
20798 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20799 <limits.h> exists even on freestanding compilers. */
20802 # include <limits.h>
20804 # include <assert.h>
20809 /* Override any GCC internal prototype to avoid an error.
20810 Use char because int might match the return type of a GCC
20811 builtin and then its argument prototype would still apply. */
20816 /* The GNU C library defines this for functions which it implements
20817 to always fail with ENOSYS. Some functions are actually named
20818 something starting with __ and the normal name is an alias. */
20819 #if defined __stub_$ac_func || defined __stub___$ac_func
20826 return $ac_func ();
20831 rm -f conftest.$ac_objext conftest$ac_exeext
20832 if { (ac_try="$ac_link"
20833 case "(($ac_try" in
20834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20835 *) ac_try_echo=$ac_try;;
20837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20838 (eval "$ac_link") 2>conftest.er1
20840 grep -v '^ *+' conftest.er1 >conftest.err
20842 cat conftest.err >&5
20843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20844 (exit $ac_status); } &&
20845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20846 { (case "(($ac_try" in
20847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20848 *) ac_try_echo=$ac_try;;
20850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20851 (eval "$ac_try") 2>&5
20853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20854 (exit $ac_status); }; } &&
20855 { ac_try='test -s conftest$ac_exeext'
20856 { (case "(($ac_try" in
20857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20858 *) ac_try_echo=$ac_try;;
20860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20861 (eval "$ac_try") 2>&5
20863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20864 (exit $ac_status); }; }; then
20865 eval "$as_ac_var=yes"
20867 echo "$as_me: failed program was:" >&5
20868 sed 's/^/| /' conftest.$ac_ext >&5
20870 eval "$as_ac_var=no"
20873 rm -f core conftest.err conftest.$ac_objext \
20874 conftest$ac_exeext conftest.$ac_ext
20876 ac_res=`eval echo '${'$as_ac_var'}'`
20877 { echo "$as_me:$LINENO: result: $ac_res" >&5
20878 echo "${ECHO_T}$ac_res" >&6; }
20879 if test `eval echo '${'$as_ac_var'}'` = yes; then
20880 cat >>confdefs.h <<_ACEOF
20881 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20888 SHLIBEXT=$libltdl_cv_shlibext
20891 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20894 # Translate the various configuration directories and other basic
20895 # information into substitutions that will end up in Makefile.config.in
20896 # that these configured values can be used by the makefiles
20897 if test "${prefix}" = "NONE" ; then
20898 prefix="/usr/local"
20900 eval LLVM_PREFIX="${prefix}";
20901 eval LLVM_BINDIR="${prefix}/bin";
20902 eval LLVM_DATADIR="${prefix}/share/llvm";
20903 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20904 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20905 eval LLVM_INCLUDEDIR="${prefix}/include";
20906 eval LLVM_INFODIR="${prefix}/info";
20907 eval LLVM_MANDIR="${prefix}/man";
20908 LLVM_CONFIGTIME=`date`
20919 # Place the various directores into the config.h file as #defines so that we
20920 # can know about the installation paths within LLVM.
20922 cat >>confdefs.h <<_ACEOF
20923 #define LLVM_PREFIX "$LLVM_PREFIX"
20927 cat >>confdefs.h <<_ACEOF
20928 #define LLVM_BINDIR "$LLVM_BINDIR"
20932 cat >>confdefs.h <<_ACEOF
20933 #define LLVM_DATADIR "$LLVM_DATADIR"
20937 cat >>confdefs.h <<_ACEOF
20938 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20942 cat >>confdefs.h <<_ACEOF
20943 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20947 cat >>confdefs.h <<_ACEOF
20948 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20952 cat >>confdefs.h <<_ACEOF
20953 #define LLVM_INFODIR "$LLVM_INFODIR"
20957 cat >>confdefs.h <<_ACEOF
20958 #define LLVM_MANDIR "$LLVM_MANDIR"
20962 cat >>confdefs.h <<_ACEOF
20963 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20967 cat >>confdefs.h <<_ACEOF
20968 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
20972 # Determine which bindings to build.
20973 if test "$BINDINGS_TO_BUILD" = auto ; then
20974 BINDINGS_TO_BUILD=""
20975 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20976 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20979 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20982 # This isn't really configurey, but it avoids having to repeat the list in
20987 # Do any work necessary to ensure that bindings have what they need.
20988 binding_prereqs_failed=0
20989 for a_binding in $BINDINGS_TO_BUILD ; do
20990 case "$a_binding" in
20992 if test "x$OCAMLC" = x ; then
20993 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20994 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20995 binding_prereqs_failed=1
20997 if test "x$OCAMLDEP" = x ; then
20998 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20999 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
21000 binding_prereqs_failed=1
21002 if test "x$OCAMLOPT" = x ; then
21003 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21004 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
21006 if test "x$with_ocaml_libdir" != xauto ; then
21007 OCAML_LIBDIR=$with_ocaml_libdir
21010 ocaml_stdlib="`"$OCAMLC" -where`"
21011 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21013 # ocaml stdlib is beneath our prefix; use stdlib
21014 OCAML_LIBDIR=$ocaml_stdlib
21017 # ocaml stdlib is outside our prefix; use libdir/ocaml
21018 OCAML_LIBDIR=${prefix}/lib/ocaml
21025 if test "$binding_prereqs_failed" = 1 ; then
21026 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21027 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21028 { (exit 1); exit 1; }; }
21031 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21032 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21033 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21034 echo $ECHO_N "(cached) $ECHO_C" >&6
21037 ac_cpp='$CXXCPP $CPPFLAGS'
21038 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21039 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21040 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21042 oldcxxflags="$CXXFLAGS"
21043 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
21044 cat >conftest.$ac_ext <<_ACEOF
21047 cat confdefs.h >>conftest.$ac_ext
21048 cat >>conftest.$ac_ext <<_ACEOF
21049 /* end confdefs.h. */
21050 template <typename T> struct X { void __attribute__((noinline)) f() {} };
21059 rm -f conftest.$ac_objext
21060 if { (ac_try="$ac_compile"
21061 case "(($ac_try" in
21062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21063 *) ac_try_echo=$ac_try;;
21065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21066 (eval "$ac_compile") 2>conftest.er1
21068 grep -v '^ *+' conftest.er1 >conftest.err
21070 cat conftest.err >&5
21071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21072 (exit $ac_status); } &&
21073 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21074 { (case "(($ac_try" in
21075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21076 *) ac_try_echo=$ac_try;;
21078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21079 (eval "$ac_try") 2>&5
21081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21082 (exit $ac_status); }; } &&
21083 { ac_try='test -s conftest.$ac_objext'
21084 { (case "(($ac_try" in
21085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21086 *) ac_try_echo=$ac_try;;
21088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21089 (eval "$ac_try") 2>&5
21091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21092 (exit $ac_status); }; }; then
21093 llvm_cv_cxx_visibility_inlines_hidden=yes
21095 echo "$as_me: failed program was:" >&5
21096 sed 's/^/| /' conftest.$ac_ext >&5
21098 llvm_cv_cxx_visibility_inlines_hidden=no
21101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21102 CXXFLAGS="$oldcxxflags"
21104 ac_cpp='$CPP $CPPFLAGS'
21105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21111 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21112 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21113 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21114 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21117 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21122 if test "$llvm_cv_link_use_r" = "yes" ; then
21129 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21130 RDYNAMIC="-rdynamic"
21138 ac_config_files="$ac_config_files Makefile.common"
21140 ac_config_files="$ac_config_files Makefile.llvm.config"
21143 ac_config_commands="$ac_config_commands Makefile"
21146 ac_config_commands="$ac_config_commands lib/Makefile"
21149 ac_config_commands="$ac_config_commands lib/sample/Makefile"
21152 ac_config_commands="$ac_config_commands tools/Makefile"
21155 ac_config_commands="$ac_config_commands tools/sample/Makefile"
21159 cat >confcache <<\_ACEOF
21160 # This file is a shell script that caches the results of configure
21161 # tests run on this system so they can be shared between configure
21162 # scripts and configure runs, see configure's option --config-cache.
21163 # It is not useful on other systems. If it contains results you don't
21164 # want to keep, you may remove or edit it.
21166 # config.status only pays attention to the cache file if you give it
21167 # the --recheck option to rerun configure.
21169 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21170 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21171 # following values.
21175 # The following way of writing the cache mishandles newlines in values,
21176 # but we know of no workaround that is simple, portable, and efficient.
21177 # So, we kill variables containing newlines.
21178 # Ultrix sh set writes to stderr and can't be redirected directly,
21179 # and sets the high bit in the cache file unless we assign to the vars.
21181 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21182 eval ac_val=\$$ac_var
21186 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21187 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21190 _ | IFS | as_nl) ;; #(
21191 *) $as_unset $ac_var ;;
21197 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21198 *${as_nl}ac_space=\ *)
21199 # `set' does not quote correctly, so add quotes (double-quote
21200 # substitution turns \\\\ into \\, and sed turns \\ into \).
21203 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21206 # `set' quotes correctly as required by POSIX, so do not add quotes.
21207 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21216 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21218 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21220 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21221 if test -w "$cache_file"; then
21222 test "x$cache_file" != "x/dev/null" &&
21223 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21224 echo "$as_me: updating cache $cache_file" >&6;}
21225 cat confcache >$cache_file
21227 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21228 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21233 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21234 # Let make expand exec_prefix.
21235 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21237 # Transform confdefs.h into DEFS.
21238 # Protect against shell expansion while executing Makefile rules.
21239 # Protect against Makefile macro expansion.
21241 # If the first sed substitution is executed (which looks for macros that
21242 # take arguments), then branch to the quote section. Otherwise,
21243 # look for a macro that doesn't take arguments.
21247 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
21249 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
21253 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
21266 DEFS=`sed -n "$ac_script" confdefs.h`
21271 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21272 # 1. Remove the extension, and $U if already installed.
21273 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21274 ac_i=`echo "$ac_i" | sed "$ac_script"`
21275 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21276 # will be set to the directory where LIBOBJS objects are built.
21277 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21278 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21280 LIBOBJS=$ac_libobjs
21282 LTLIBOBJS=$ac_ltlibobjs
21285 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21286 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21287 Usually this means the macro was only invoked conditionally." >&5
21288 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21289 Usually this means the macro was only invoked conditionally." >&2;}
21290 { (exit 1); exit 1; }; }
21292 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21293 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21294 Usually this means the macro was only invoked conditionally." >&5
21295 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21296 Usually this means the macro was only invoked conditionally." >&2;}
21297 { (exit 1); exit 1; }; }
21300 : ${CONFIG_STATUS=./config.status}
21301 ac_clean_files_save=$ac_clean_files
21302 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21303 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21304 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21305 cat >$CONFIG_STATUS <<_ACEOF
21307 # Generated by $as_me.
21308 # Run this file to recreate the current configuration.
21309 # Compiler output produced by configure, useful for debugging
21310 # configure, is in config.log if it exists.
21313 ac_cs_recheck=false
21315 SHELL=\${CONFIG_SHELL-$SHELL}
21318 cat >>$CONFIG_STATUS <<\_ACEOF
21319 ## --------------------- ##
21320 ## M4sh Initialization. ##
21321 ## --------------------- ##
21323 # Be Bourne compatible
21324 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21327 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21328 # is contrary to our usage. Disable this feature.
21329 alias -g '${1+"$@"}'='"$@"'
21330 setopt NO_GLOB_SUBST
21332 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21334 BIN_SH=xpg4; export BIN_SH # for Tru64
21335 DUALCASE=1; export DUALCASE # for MKS sh
21339 # Avoid depending upon Character Ranges.
21340 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21341 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21342 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21343 as_cr_digits='0123456789'
21344 as_cr_alnum=$as_cr_Letters$as_cr_digits
21346 # The user is always right.
21347 if test "${PATH_SEPARATOR+set}" != set; then
21348 echo "#! /bin/sh" >conf$$.sh
21349 echo "exit 0" >>conf$$.sh
21351 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21359 # Support unset when possible.
21360 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21368 # We need space, tab and new line, in precisely that order. Quoting is
21369 # there to prevent editors from complaining about space-tab.
21370 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21371 # splitting by setting IFS to empty value.)
21376 # Find who we are. Look in the path if we contain no directory separator.
21378 *[\\/]* ) as_myself=$0 ;;
21379 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21380 for as_dir in $PATH
21383 test -z "$as_dir" && as_dir=.
21384 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21390 # We did not find ourselves, most probably we were run as `sh COMMAND'
21391 # in which case we are not to be found in the path.
21392 if test "x$as_myself" = x; then
21395 if test ! -f "$as_myself"; then
21396 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21397 { (exit 1); exit 1; }
21400 # Work around bugs in pre-3.0 UWIN ksh.
21401 for as_var in ENV MAIL MAILPATH
21402 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21410 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21411 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21412 LC_TELEPHONE LC_TIME
21414 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21415 eval $as_var=C; export $as_var
21417 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21421 # Required to use basename.
21422 if expr a : '\(a\)' >/dev/null 2>&1 &&
21423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21430 as_basename=basename
21436 # Name of the executable.
21437 as_me=`$as_basename -- "$0" ||
21438 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21439 X"$0" : 'X\(//\)$' \| \
21440 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21442 sed '/^.*\/\([^/][^/]*\)\/*$/{
21461 as_lineno_1=$LINENO
21462 as_lineno_2=$LINENO
21463 test "x$as_lineno_1" != "x$as_lineno_2" &&
21464 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21466 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21467 # uniformly replaced by the line number. The first 'sed' inserts a
21468 # line-number line after each line using $LINENO; the second 'sed'
21469 # does the real work. The second script uses 'N' to pair each
21470 # line-number line with the line containing $LINENO, and appends
21471 # trailing '-' during substitution so that $LINENO is not a special
21472 # case at line end.
21473 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21474 # scripts with optimization help from Paolo Bonzini. Blame Lee
21475 # E. McMahon (1931-1989) for sed's syntax. :-)
21487 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21490 ' >$as_me.lineno &&
21491 chmod +x "$as_me.lineno" ||
21492 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21493 { (exit 1); exit 1; }; }
21495 # Don't try to exec as it changes $[0], causing all sort of problems
21496 # (the dirname of $[0] is not the place where we might find the
21497 # original and so on. Autoconf is especially sensitive to this).
21498 . "./$as_me.lineno"
21499 # Exit status is that of the last command.
21504 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21510 ECHO_C= ECHO_N= ECHO_T=
21511 case `echo -n x` in
21513 case `echo 'x\c'` in
21514 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21521 if expr a : '\(a\)' >/dev/null 2>&1 &&
21522 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21528 rm -f conf$$ conf$$.exe conf$$.file
21529 if test -d conf$$.dir; then
21530 rm -f conf$$.dir/conf$$.file
21536 if ln -s conf$$.file conf$$ 2>/dev/null; then
21538 # ... but there are two gotchas:
21539 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21540 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21541 # In both cases, we have to default to `cp -p'.
21542 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21544 elif ln conf$$.file conf$$ 2>/dev/null; then
21549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21550 rmdir conf$$.dir 2>/dev/null
21552 if mkdir -p . 2>/dev/null; then
21555 test -d ./-p && rmdir ./-p
21559 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21560 # systems may use methods other than mode bits to determine executability.
21561 cat >conf$$.file <<_ASEOF
21565 chmod +x conf$$.file
21566 if test -x conf$$.file >/dev/null 2>&1; then
21567 as_executable_p="test -x"
21573 # Sed expression to map a string onto a valid CPP name.
21574 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21576 # Sed expression to map a string onto a valid variable name.
21577 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21582 # Save the log message, to keep $[0] and so on meaningful, and to
21583 # report actual input values of CONFIG_FILES etc. instead of their
21584 # values after options handling.
21586 This file was extended by [SAMPLE] $as_me [x.xx], which was
21587 generated by GNU Autoconf 2.60. Invocation command line was
21589 CONFIG_FILES = $CONFIG_FILES
21590 CONFIG_HEADERS = $CONFIG_HEADERS
21591 CONFIG_LINKS = $CONFIG_LINKS
21592 CONFIG_COMMANDS = $CONFIG_COMMANDS
21595 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21600 cat >>$CONFIG_STATUS <<_ACEOF
21601 # Files that config.status was made for.
21602 config_files="$ac_config_files"
21603 config_commands="$ac_config_commands"
21607 cat >>$CONFIG_STATUS <<\_ACEOF
21609 \`$as_me' instantiates files from templates according to the
21610 current configuration.
21612 Usage: $0 [OPTIONS] [FILE]...
21614 -h, --help print this help, then exit
21615 -V, --version print version number, then exit
21616 -q, --quiet do not print progress messages
21617 -d, --debug don't remove temporary files
21618 --recheck update $as_me by reconfiguring in the same conditions
21619 --file=FILE[:TEMPLATE]
21620 instantiate the configuration file FILE
21622 Configuration files:
21625 Configuration commands:
21628 Report bugs to <bug-autoconf@gnu.org>."
21631 cat >>$CONFIG_STATUS <<_ACEOF
21633 [SAMPLE] config.status [x.xx]
21634 configured by $0, generated by GNU Autoconf 2.60,
21635 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21637 Copyright (C) 2006 Free Software Foundation, Inc.
21638 This config.status script is free software; the Free Software Foundation
21639 gives unlimited permission to copy, distribute and modify it."
21646 cat >>$CONFIG_STATUS <<\_ACEOF
21647 # If no file are specified by the user, then we need to provide default
21648 # value. By we need to know if files were specified by the user.
21654 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21655 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21666 # Handling of the options.
21667 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21669 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21670 echo "$ac_cs_version"; exit ;;
21671 --debug | --debu | --deb | --de | --d | -d )
21673 --file | --fil | --fi | --f )
21675 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21676 ac_need_defaults=false;;
21677 --he | --h | --help | --hel | -h )
21678 echo "$ac_cs_usage"; exit ;;
21679 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21680 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21683 # This is an error.
21684 -*) { echo "$as_me: error: unrecognized option: $1
21685 Try \`$0 --help' for more information." >&2
21686 { (exit 1); exit 1; }; } ;;
21688 *) ac_config_targets="$ac_config_targets $1"
21689 ac_need_defaults=false ;;
21695 ac_configure_extra_args=
21697 if $ac_cs_silent; then
21699 ac_configure_extra_args="$ac_configure_extra_args --silent"
21703 cat >>$CONFIG_STATUS <<_ACEOF
21704 if \$ac_cs_recheck; then
21705 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21706 CONFIG_SHELL=$SHELL
21707 export CONFIG_SHELL
21708 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21712 cat >>$CONFIG_STATUS <<\_ACEOF
21716 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21717 ## Running $as_me. ##
21723 cat >>$CONFIG_STATUS <<_ACEOF
21727 llvm_src="${LLVM_SRC}"
21731 cat >>$CONFIG_STATUS <<\_ACEOF
21733 # Handling of arguments.
21734 for ac_config_target in $ac_config_targets
21736 case $ac_config_target in
21737 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21738 "Makefile.common") CONFIG_FILES="$CONFIG_FILES Makefile.common" ;;
21739 "Makefile.llvm.config") CONFIG_FILES="$CONFIG_FILES Makefile.llvm.config" ;;
21740 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21741 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21742 "lib/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/sample/Makefile" ;;
21743 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21744 "tools/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/sample/Makefile" ;;
21746 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21747 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21748 { (exit 1); exit 1; }; };;
21753 # If the user did not use the arguments to specify the items to instantiate,
21754 # then the envvar interface is used. Set only those that are not.
21755 # We use the long form for the default assignment because of an extremely
21756 # bizarre bug on SunOS 4.1.3.
21757 if $ac_need_defaults; then
21758 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21759 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21762 # Have a temporary directory for convenience. Make it in the build tree
21763 # simply because there is no reason against having it here, and in addition,
21764 # creating and moving files from /tmp can sometimes cause problems.
21765 # Hook for its removal unless debugging.
21766 # Note that there is a small window in which the directory will not be cleaned:
21767 # after its creation but before its name has been assigned to `$tmp'.
21771 trap 'exit_status=$?
21772 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21774 trap '{ (exit 1); exit 1; }' 1 2 13 15
21776 # Create a (secure) tmp directory for tmp files.
21779 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21780 test -n "$tmp" && test -d "$tmp"
21783 tmp=./conf$$-$RANDOM
21784 (umask 077 && mkdir "$tmp")
21787 echo "$me: cannot create a temporary directory in ." >&2
21788 { (exit 1); exit 1; }
21792 # Set up the sed scripts for CONFIG_FILES section.
21795 # No need to generate the scripts if there are no CONFIG_FILES.
21796 # This happens for instance when ./config.status config.h
21797 if test -n "$CONFIG_FILES"; then
21804 for ac_last_try in false false false false false :; do
21805 cat >conf$$subs.sed <<_ACEOF
21806 SHELL!$SHELL$ac_delim
21807 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21808 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21809 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21810 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21811 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21812 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21813 exec_prefix!$exec_prefix$ac_delim
21814 prefix!$prefix$ac_delim
21815 program_transform_name!$program_transform_name$ac_delim
21816 bindir!$bindir$ac_delim
21817 sbindir!$sbindir$ac_delim
21818 libexecdir!$libexecdir$ac_delim
21819 datarootdir!$datarootdir$ac_delim
21820 datadir!$datadir$ac_delim
21821 sysconfdir!$sysconfdir$ac_delim
21822 sharedstatedir!$sharedstatedir$ac_delim
21823 localstatedir!$localstatedir$ac_delim
21824 includedir!$includedir$ac_delim
21825 oldincludedir!$oldincludedir$ac_delim
21826 docdir!$docdir$ac_delim
21827 infodir!$infodir$ac_delim
21828 htmldir!$htmldir$ac_delim
21829 dvidir!$dvidir$ac_delim
21830 pdfdir!$pdfdir$ac_delim
21831 psdir!$psdir$ac_delim
21832 libdir!$libdir$ac_delim
21833 localedir!$localedir$ac_delim
21834 mandir!$mandir$ac_delim
21835 DEFS!$DEFS$ac_delim
21836 ECHO_C!$ECHO_C$ac_delim
21837 ECHO_N!$ECHO_N$ac_delim
21838 ECHO_T!$ECHO_T$ac_delim
21839 LIBS!$LIBS$ac_delim
21840 build_alias!$build_alias$ac_delim
21841 host_alias!$host_alias$ac_delim
21842 target_alias!$target_alias$ac_delim
21843 LLVM_SRC!$LLVM_SRC$ac_delim
21844 LLVM_OBJ!$LLVM_OBJ$ac_delim
21845 LLVM_VERSION!$LLVM_VERSION$ac_delim
21847 CFLAGS!$CFLAGS$ac_delim
21848 LDFLAGS!$LDFLAGS$ac_delim
21849 CPPFLAGS!$CPPFLAGS$ac_delim
21850 ac_ct_CC!$ac_ct_CC$ac_delim
21851 EXEEXT!$EXEEXT$ac_delim
21852 OBJEXT!$OBJEXT$ac_delim
21854 CXXFLAGS!$CXXFLAGS$ac_delim
21855 ac_ct_CXX!$ac_ct_CXX$ac_delim
21857 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21858 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21859 subdirs!$subdirs$ac_delim
21860 build!$build$ac_delim
21861 build_cpu!$build_cpu$ac_delim
21862 build_vendor!$build_vendor$ac_delim
21863 build_os!$build_os$ac_delim
21864 host!$host$ac_delim
21865 host_cpu!$host_cpu$ac_delim
21866 host_vendor!$host_vendor$ac_delim
21867 host_os!$host_os$ac_delim
21868 target!$target$ac_delim
21869 target_cpu!$target_cpu$ac_delim
21870 target_vendor!$target_vendor$ac_delim
21871 target_os!$target_os$ac_delim
21873 HOST_OS!$HOST_OS$ac_delim
21874 TARGET_OS!$TARGET_OS$ac_delim
21875 LINKALL!$LINKALL$ac_delim
21876 NOLINKALL!$NOLINKALL$ac_delim
21877 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21878 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21879 ARCH!$ARCH$ac_delim
21880 ENDIAN!$ENDIAN$ac_delim
21881 GREP!$GREP$ac_delim
21882 EGREP!$EGREP$ac_delim
21883 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21884 BUILD_CC!$BUILD_CC$ac_delim
21885 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21886 BUILD_CXX!$BUILD_CXX$ac_delim
21887 CVSBUILD!$CVSBUILD$ac_delim
21888 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
21889 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
21890 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21891 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21892 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21893 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
21894 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21895 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21896 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21897 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21899 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21900 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21901 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21902 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21905 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21907 elif $ac_last_try; then
21908 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21909 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21910 { (exit 1); exit 1; }; }
21912 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21916 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21917 if test -n "$ac_eof"; then
21918 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21919 ac_eof=`expr $ac_eof + 1`
21922 cat >>$CONFIG_STATUS <<_ACEOF
21923 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21924 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21927 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21928 s/^/s,@/; s/!/@,|#_!!_#|/
21931 s/'"$ac_delim"'$/,g/; t
21933 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21934 ' >>$CONFIG_STATUS <conf$$subs.sed
21935 rm -f conf$$subs.sed
21936 cat >>$CONFIG_STATUS <<_ACEOF
21942 for ac_last_try in false false false false false :; do
21943 cat >conf$$subs.sed <<_ACEOF
21944 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21945 ENABLE_PIC!$ENABLE_PIC$ac_delim
21946 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21947 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21948 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21949 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21950 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21951 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21952 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21953 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21954 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21955 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21956 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21957 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21959 ifGNUmake!$ifGNUmake$ac_delim
21960 LN_S!$LN_S$ac_delim
21963 DATE!$DATE$ac_delim
21964 FIND!$FIND$ac_delim
21965 MKDIR!$MKDIR$ac_delim
21967 RANLIB!$RANLIB$ac_delim
21972 BINPWD!$BINPWD$ac_delim
21973 GRAPHVIZ!$GRAPHVIZ$ac_delim
21976 NEATO!$NEATO$ac_delim
21977 TWOPI!$TWOPI$ac_delim
21978 CIRCO!$CIRCO$ac_delim
21980 DOTTY!$DOTTY$ac_delim
21981 XDOT_PY!$XDOT_PY$ac_delim
21982 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21983 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21984 INSTALL_DATA!$INSTALL_DATA$ac_delim
21985 BZIP2!$BZIP2$ac_delim
21987 DOXYGEN!$DOXYGEN$ac_delim
21988 GROFF!$GROFF$ac_delim
21989 GZIPBIN!$GZIPBIN$ac_delim
21990 POD2HTML!$POD2HTML$ac_delim
21991 POD2MAN!$POD2MAN$ac_delim
21992 PDFROFF!$PDFROFF$ac_delim
21993 RUNTEST!$RUNTEST$ac_delim
21994 TCLSH!$TCLSH$ac_delim
21996 OCAMLC!$OCAMLC$ac_delim
21997 OCAMLOPT!$OCAMLOPT$ac_delim
21998 OCAMLDEP!$OCAMLDEP$ac_delim
21999 OCAMLDOC!$OCAMLDOC$ac_delim
22001 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22002 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22003 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22004 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22005 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22006 LIBADD_DL!$LIBADD_DL$ac_delim
22007 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22008 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22009 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
22010 USE_UDIS86!$USE_UDIS86$ac_delim
22011 USE_OPROFILE!$USE_OPROFILE$ac_delim
22012 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22013 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22014 MMAP_FILE!$MMAP_FILE$ac_delim
22015 SHLIBEXT!$SHLIBEXT$ac_delim
22016 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22017 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22018 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22019 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22020 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22021 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22022 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22023 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22024 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22025 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22026 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22027 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22028 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22029 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22030 RPATH!$RPATH$ac_delim
22031 RDYNAMIC!$RDYNAMIC$ac_delim
22032 LIBOBJS!$LIBOBJS$ac_delim
22033 LTLIBOBJS!$LTLIBOBJS$ac_delim
22036 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 90; then
22038 elif $ac_last_try; then
22039 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22040 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22041 { (exit 1); exit 1; }; }
22043 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22047 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22048 if test -n "$ac_eof"; then
22049 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22050 ac_eof=`expr $ac_eof + 1`
22053 cat >>$CONFIG_STATUS <<_ACEOF
22054 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22055 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22058 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22059 s/^/s,@/; s/!/@,|#_!!_#|/
22062 s/'"$ac_delim"'$/,g/; t
22064 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22065 ' >>$CONFIG_STATUS <conf$$subs.sed
22066 rm -f conf$$subs.sed
22067 cat >>$CONFIG_STATUS <<_ACEOF
22074 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22075 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22076 # trailing colons and then remove the whole line if VPATH becomes empty
22077 # (actually we leave an empty line to preserve line numbers).
22078 if test "x$srcdir" = x.; then
22079 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22080 s/:*\$(srcdir):*/:/
22081 s/:*\${srcdir}:*/:/
22083 s/^\([^=]*=[ ]*\):*/\1/
22089 cat >>$CONFIG_STATUS <<\_ACEOF
22090 fi # test -n "$CONFIG_FILES"
22093 for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
22096 :[FHLC]) ac_mode=$ac_tag; continue;;
22098 case $ac_mode$ac_tag in
22100 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22101 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22102 { (exit 1); exit 1; }; };;
22103 :[FH]-) ac_tag=-:-;;
22104 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22121 -) ac_f="$tmp/stdin";;
22122 *) # Look for the file first in the build tree, then in the source tree
22123 # (if the path is not absolute). The absolute path cannot be DOS-style,
22124 # because $ac_f cannot contain `:'.
22128 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22130 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22131 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22132 { (exit 1); exit 1; }; };;
22134 ac_file_inputs="$ac_file_inputs $ac_f"
22137 # Let's still pretend it is `configure' which instantiates (i.e., don't
22138 # use $as_me), people would be surprised to read:
22139 # /* config.h. Generated by config.status. */
22140 configure_input="Generated from "`IFS=:
22141 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22142 if test x"$ac_file" != x-; then
22143 configure_input="$ac_file. $configure_input"
22144 { echo "$as_me:$LINENO: creating $ac_file" >&5
22145 echo "$as_me: creating $ac_file" >&6;}
22149 *:-:* | *:-) cat >"$tmp/stdin";;
22154 ac_dir=`$as_dirname -- "$ac_file" ||
22155 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22156 X"$ac_file" : 'X\(//\)[^/]' \| \
22157 X"$ac_file" : 'X\(//\)$' \| \
22158 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22164 /^X\(\/\/\)[^/].*/{
22179 -*) as_dir=./$as_dir;;
22181 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22185 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22186 *) as_qdir=$as_dir;;
22188 as_dirs="'$as_qdir' $as_dirs"
22189 as_dir=`$as_dirname -- "$as_dir" ||
22190 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22191 X"$as_dir" : 'X\(//\)[^/]' \| \
22192 X"$as_dir" : 'X\(//\)$' \| \
22193 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22195 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22199 /^X\(\/\/\)[^/].*/{
22212 test -d "$as_dir" && break
22214 test -z "$as_dirs" || eval "mkdir $as_dirs"
22215 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22216 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22217 { (exit 1); exit 1; }; }; }
22221 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22223 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22224 # A ".." for each directory in $ac_dir_suffix.
22225 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22226 case $ac_top_builddir_sub in
22227 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22228 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22231 ac_abs_top_builddir=$ac_pwd
22232 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22233 # for backward compatibility:
22234 ac_top_builddir=$ac_top_build_prefix
22237 .) # We are building in place.
22239 ac_top_srcdir=$ac_top_builddir_sub
22240 ac_abs_top_srcdir=$ac_pwd ;;
22241 [\\/]* | ?:[\\/]* ) # Absolute name.
22242 ac_srcdir=$srcdir$ac_dir_suffix;
22243 ac_top_srcdir=$srcdir
22244 ac_abs_top_srcdir=$srcdir ;;
22245 *) # Relative name.
22246 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22247 ac_top_srcdir=$ac_top_build_prefix$srcdir
22248 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22250 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22260 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22261 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22265 cat >>$CONFIG_STATUS <<\_ACEOF
22266 # If the template does not know about datarootdir, expand it.
22267 # FIXME: This hack should be removed a few years after 2.60.
22268 ac_datarootdir_hack=; ac_datarootdir_seen=
22270 case `sed -n '/datarootdir/ {
22279 ' $ac_file_inputs` in
22280 *datarootdir*) ac_datarootdir_seen=yes;;
22281 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22282 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22283 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22285 cat >>$CONFIG_STATUS <<_ACEOF
22286 ac_datarootdir_hack='
22287 s&@datadir@&$datadir&g
22288 s&@docdir@&$docdir&g
22289 s&@infodir@&$infodir&g
22290 s&@localedir@&$localedir&g
22291 s&@mandir@&$mandir&g
22292 s&\\\${datarootdir}&$datarootdir&g' ;;
22296 # Neutralize VPATH when `$srcdir' = `.'.
22297 # Shell code in configure.ac might set extrasub.
22298 # FIXME: do we really want to maintain this feature?
22299 cat >>$CONFIG_STATUS <<_ACEOF
22303 cat >>$CONFIG_STATUS <<\_ACEOF
22305 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22306 s&@configure_input@&$configure_input&;t t
22307 s&@top_builddir@&$ac_top_builddir_sub&;t t
22308 s&@srcdir@&$ac_srcdir&;t t
22309 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22310 s&@top_srcdir@&$ac_top_srcdir&;t t
22311 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22312 s&@builddir@&$ac_builddir&;t t
22313 s&@abs_builddir@&$ac_abs_builddir&;t t
22314 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22315 s&@INSTALL@&$ac_INSTALL&;t t
22316 $ac_datarootdir_hack
22317 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22319 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22320 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22321 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22322 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22323 which seems to be undefined. Please make sure it is defined." >&5
22324 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22325 which seems to be undefined. Please make sure it is defined." >&2;}
22329 -) cat "$tmp/out"; rm -f "$tmp/out";;
22330 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22335 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22336 echo "$as_me: executing $ac_file commands" >&6;}
22341 case $ac_file$ac_mode in
22342 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22343 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22344 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22345 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22346 "lib/sample/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/sample/Makefile`
22347 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/sample/Makefile lib/sample/Makefile ;;
22348 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22349 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22350 "tools/sample/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/sample/Makefile`
22351 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/sample/Makefile tools/sample/Makefile ;;
22357 { (exit 0); exit 0; }
22359 chmod +x $CONFIG_STATUS
22360 ac_clean_files=$ac_clean_files_save
22363 # configure is writing to config.log, and then calls config.status.
22364 # config.status does its own redirection, appending to config.log.
22365 # Unfortunately, on DOS this fails, as config.log is still kept open
22366 # by configure, so config.status won't be able to write to it; its
22367 # output is simply discarded. So we exec the FD to /dev/null,
22368 # effectively closing config.log, so it can be properly (re)opened and
22369 # appended to by config.status. When coming back to configure, we
22370 # need to make the FD available again.
22371 if test "$no_create" != yes; then
22373 ac_config_status_args=
22374 test "$silent" = yes &&
22375 ac_config_status_args="$ac_config_status_args --quiet"
22377 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22379 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22380 # would make configure fail if this is the last instruction.
22381 $ac_cs_success || { (exit 1); exit 1; }
22385 # CONFIG_SUBDIRS section.
22387 if test "$no_recursion" != yes; then
22389 # Remove --cache-file and --srcdir arguments so they do not pile up.
22390 ac_sub_configure_args=
22392 eval "set x $ac_configure_args"
22396 if test -n "$ac_prev"; then
22401 -cache-file | --cache-file | --cache-fil | --cache-fi \
22402 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22403 ac_prev=cache_file ;;
22404 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22405 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22408 --config-cache | -C)
22410 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22412 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22414 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22416 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22420 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22422 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22426 # Always prepend --prefix to ensure using the same prefix
22427 # in subdir configurations.
22428 ac_arg="--prefix=$prefix"
22430 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22432 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22435 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22437 # Do not complain, so a configure script can configure whichever
22438 # parts of a large source tree are present.
22439 test -d "$srcdir/$ac_dir" || continue
22441 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22442 echo "$as_me:$LINENO: $ac_msg" >&5
22446 -*) as_dir=./$as_dir;;
22448 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22452 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22453 *) as_qdir=$as_dir;;
22455 as_dirs="'$as_qdir' $as_dirs"
22456 as_dir=`$as_dirname -- "$as_dir" ||
22457 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22458 X"$as_dir" : 'X\(//\)[^/]' \| \
22459 X"$as_dir" : 'X\(//\)$' \| \
22460 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22462 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22466 /^X\(\/\/\)[^/].*/{
22479 test -d "$as_dir" && break
22481 test -z "$as_dirs" || eval "mkdir $as_dirs"
22482 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22483 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22484 { (exit 1); exit 1; }; }; }
22488 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22490 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22491 # A ".." for each directory in $ac_dir_suffix.
22492 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22493 case $ac_top_builddir_sub in
22494 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22495 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22498 ac_abs_top_builddir=$ac_pwd
22499 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22500 # for backward compatibility:
22501 ac_top_builddir=$ac_top_build_prefix
22504 .) # We are building in place.
22506 ac_top_srcdir=$ac_top_builddir_sub
22507 ac_abs_top_srcdir=$ac_pwd ;;
22508 [\\/]* | ?:[\\/]* ) # Absolute name.
22509 ac_srcdir=$srcdir$ac_dir_suffix;
22510 ac_top_srcdir=$srcdir
22511 ac_abs_top_srcdir=$srcdir ;;
22512 *) # Relative name.
22513 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22514 ac_top_srcdir=$ac_top_build_prefix$srcdir
22515 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22517 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22522 # Check for guested configure; otherwise get Cygnus style configure.
22523 if test -f "$ac_srcdir/configure.gnu"; then
22524 ac_sub_configure=$ac_srcdir/configure.gnu
22525 elif test -f "$ac_srcdir/configure"; then
22526 ac_sub_configure=$ac_srcdir/configure
22527 elif test -f "$ac_srcdir/configure.in"; then
22528 # This should be Cygnus configure.
22529 ac_sub_configure=$ac_aux_dir/configure
22531 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22532 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22536 # The recursion is here.
22537 if test -n "$ac_sub_configure"; then
22538 # Make the cache file name correct relative to the subdirectory.
22539 case $cache_file in
22540 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22541 *) # Relative name.
22542 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22545 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22546 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22547 # The eval makes quoting arguments work.
22548 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22549 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22550 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22551 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22552 { (exit 1); exit 1; }; }