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
688 ENABLE_EXPENSIVE_CHECKS
704 LLVM_ENUM_ASM_PRINTERS
705 LLVM_ENUM_ASM_PARSERS
706 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
786 ENABLE_VISIBILITY_INLINES_HIDDEN
792 ac_precious_vars='build_alias
803 ac_subdirs_all='tools/polly'
805 # Initialize some variables set by options.
807 ac_init_version=false
808 # The variables have the same names as the options, with
809 # dashes changed to underlines.
817 program_transform_name=s,x,x,
825 # Installation directory options.
826 # These are left unexpanded so users can "make install exec_prefix=/foo"
827 # and all the variables that are supposed to be based on exec_prefix
828 # by default will actually change.
829 # Use braces instead of parens because sh, perl, etc. also accept them.
830 # (The list follows the same order as the GNU Coding Standards.)
831 bindir='${exec_prefix}/bin'
832 sbindir='${exec_prefix}/sbin'
833 libexecdir='${exec_prefix}/libexec'
834 datarootdir='${prefix}/share'
835 datadir='${datarootdir}'
836 sysconfdir='${prefix}/etc'
837 sharedstatedir='${prefix}/com'
838 localstatedir='${prefix}/var'
839 includedir='${prefix}/include'
840 oldincludedir='/usr/include'
841 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
842 infodir='${datarootdir}/info'
847 libdir='${exec_prefix}/lib'
848 localedir='${datarootdir}/locale'
849 mandir='${datarootdir}/man'
855 # If the previous option needs an argument, assign it.
856 if test -n "$ac_prev"; then
857 eval $ac_prev=\$ac_option
863 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
867 # Accept the important Cygnus configure options, so we can diagnose typos.
869 case $ac_dashdash$ac_option in
873 -bindir | --bindir | --bindi | --bind | --bin | --bi)
875 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
878 -build | --build | --buil | --bui | --bu)
879 ac_prev=build_alias ;;
880 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
881 build_alias=$ac_optarg ;;
883 -cache-file | --cache-file | --cache-fil | --cache-fi \
884 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
885 ac_prev=cache_file ;;
886 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
887 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
888 cache_file=$ac_optarg ;;
891 cache_file=config.cache ;;
893 -datadir | --datadir | --datadi | --datad)
895 -datadir=* | --datadir=* | --datadi=* | --datad=*)
896 datadir=$ac_optarg ;;
898 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
899 | --dataroo | --dataro | --datar)
900 ac_prev=datarootdir ;;
901 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
902 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
903 datarootdir=$ac_optarg ;;
905 -disable-* | --disable-*)
906 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
907 # Reject names that are not valid shell variable names.
908 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
909 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
910 { (exit 1); exit 1; }; }
911 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
912 eval enable_$ac_feature=no ;;
914 -docdir | --docdir | --docdi | --doc | --do)
916 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
919 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
921 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
924 -enable-* | --enable-*)
925 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
926 # Reject names that are not valid shell variable names.
927 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
928 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
929 { (exit 1); exit 1; }; }
930 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
931 eval enable_$ac_feature=\$ac_optarg ;;
933 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
934 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
935 | --exec | --exe | --ex)
936 ac_prev=exec_prefix ;;
937 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
938 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
939 | --exec=* | --exe=* | --ex=*)
940 exec_prefix=$ac_optarg ;;
942 -gas | --gas | --ga | --g)
943 # Obsolete; use --with-gas.
946 -help | --help | --hel | --he | -h)
948 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
949 ac_init_help=recursive ;;
950 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
951 ac_init_help=short ;;
953 -host | --host | --hos | --ho)
954 ac_prev=host_alias ;;
955 -host=* | --host=* | --hos=* | --ho=*)
956 host_alias=$ac_optarg ;;
958 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
960 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
962 htmldir=$ac_optarg ;;
964 -includedir | --includedir | --includedi | --included | --include \
965 | --includ | --inclu | --incl | --inc)
966 ac_prev=includedir ;;
967 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
968 | --includ=* | --inclu=* | --incl=* | --inc=*)
969 includedir=$ac_optarg ;;
971 -infodir | --infodir | --infodi | --infod | --info | --inf)
973 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
974 infodir=$ac_optarg ;;
976 -libdir | --libdir | --libdi | --libd)
978 -libdir=* | --libdir=* | --libdi=* | --libd=*)
981 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
982 | --libexe | --libex | --libe)
983 ac_prev=libexecdir ;;
984 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
985 | --libexe=* | --libex=* | --libe=*)
986 libexecdir=$ac_optarg ;;
988 -localedir | --localedir | --localedi | --localed | --locale)
990 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
991 localedir=$ac_optarg ;;
993 -localstatedir | --localstatedir | --localstatedi | --localstated \
994 | --localstate | --localstat | --localsta | --localst | --locals)
995 ac_prev=localstatedir ;;
996 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
997 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
998 localstatedir=$ac_optarg ;;
1000 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1002 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1003 mandir=$ac_optarg ;;
1005 -nfp | --nfp | --nf)
1006 # Obsolete; use --without-fp.
1009 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1010 | --no-cr | --no-c | -n)
1013 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1014 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1017 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1018 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1019 | --oldin | --oldi | --old | --ol | --o)
1020 ac_prev=oldincludedir ;;
1021 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1022 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1023 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1024 oldincludedir=$ac_optarg ;;
1026 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1028 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1029 prefix=$ac_optarg ;;
1031 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1032 | --program-pre | --program-pr | --program-p)
1033 ac_prev=program_prefix ;;
1034 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1035 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1036 program_prefix=$ac_optarg ;;
1038 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1039 | --program-suf | --program-su | --program-s)
1040 ac_prev=program_suffix ;;
1041 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1042 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1043 program_suffix=$ac_optarg ;;
1045 -program-transform-name | --program-transform-name \
1046 | --program-transform-nam | --program-transform-na \
1047 | --program-transform-n | --program-transform- \
1048 | --program-transform | --program-transfor \
1049 | --program-transfo | --program-transf \
1050 | --program-trans | --program-tran \
1051 | --progr-tra | --program-tr | --program-t)
1052 ac_prev=program_transform_name ;;
1053 -program-transform-name=* | --program-transform-name=* \
1054 | --program-transform-nam=* | --program-transform-na=* \
1055 | --program-transform-n=* | --program-transform-=* \
1056 | --program-transform=* | --program-transfor=* \
1057 | --program-transfo=* | --program-transf=* \
1058 | --program-trans=* | --program-tran=* \
1059 | --progr-tra=* | --program-tr=* | --program-t=*)
1060 program_transform_name=$ac_optarg ;;
1062 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1064 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1065 pdfdir=$ac_optarg ;;
1067 -psdir | --psdir | --psdi | --psd | --ps)
1069 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1072 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1073 | -silent | --silent | --silen | --sile | --sil)
1076 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1078 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1080 sbindir=$ac_optarg ;;
1082 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1083 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1084 | --sharedst | --shareds | --shared | --share | --shar \
1086 ac_prev=sharedstatedir ;;
1087 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1088 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1089 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1091 sharedstatedir=$ac_optarg ;;
1093 -site | --site | --sit)
1095 -site=* | --site=* | --sit=*)
1098 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1100 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1101 srcdir=$ac_optarg ;;
1103 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1104 | --syscon | --sysco | --sysc | --sys | --sy)
1105 ac_prev=sysconfdir ;;
1106 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1107 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1108 sysconfdir=$ac_optarg ;;
1110 -target | --target | --targe | --targ | --tar | --ta | --t)
1111 ac_prev=target_alias ;;
1112 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1113 target_alias=$ac_optarg ;;
1115 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1118 -version | --version | --versio | --versi | --vers | -V)
1119 ac_init_version=: ;;
1122 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1123 # Reject names that are not valid shell variable names.
1124 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1125 { echo "$as_me: error: invalid package name: $ac_package" >&2
1126 { (exit 1); exit 1; }; }
1127 ac_package=`echo $ac_package| sed 's/-/_/g'`
1128 eval with_$ac_package=\$ac_optarg ;;
1130 -without-* | --without-*)
1131 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1132 # Reject names that are not valid shell variable names.
1133 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1134 { echo "$as_me: error: invalid package name: $ac_package" >&2
1135 { (exit 1); exit 1; }; }
1136 ac_package=`echo $ac_package | sed 's/-/_/g'`
1137 eval with_$ac_package=no ;;
1140 # Obsolete; use --with-x.
1143 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1144 | --x-incl | --x-inc | --x-in | --x-i)
1145 ac_prev=x_includes ;;
1146 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1147 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1148 x_includes=$ac_optarg ;;
1150 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1151 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1152 ac_prev=x_libraries ;;
1153 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1154 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1155 x_libraries=$ac_optarg ;;
1157 -*) { echo "$as_me: error: unrecognized option: $ac_option
1158 Try \`$0 --help' for more information." >&2
1159 { (exit 1); exit 1; }; }
1163 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1164 # Reject names that are not valid shell variable names.
1165 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1166 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1167 { (exit 1); exit 1; }; }
1168 eval $ac_envvar=\$ac_optarg
1169 export $ac_envvar ;;
1172 # FIXME: should be removed in autoconf 3.0.
1173 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1174 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1175 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1176 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1182 if test -n "$ac_prev"; then
1183 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1184 { echo "$as_me: error: missing argument to $ac_option" >&2
1185 { (exit 1); exit 1; }; }
1188 # Be sure to have absolute directory names.
1189 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1190 datadir sysconfdir sharedstatedir localstatedir includedir \
1191 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1192 libdir localedir mandir
1194 eval ac_val=\$$ac_var
1196 [\\/$]* | ?:[\\/]* ) continue;;
1197 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1199 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1200 { (exit 1); exit 1; }; }
1203 # There might be people who depend on the old broken behavior: `$host'
1204 # used to hold the argument of --host etc.
1205 # FIXME: To remove some day.
1208 target=$target_alias
1210 # FIXME: To remove some day.
1211 if test "x$host_alias" != x; then
1212 if test "x$build_alias" = x; then
1213 cross_compiling=maybe
1214 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1215 If a cross compiler is detected then cross compile mode will be used." >&2
1216 elif test "x$build_alias" != "x$host_alias"; then
1222 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1224 test "$silent" = yes && exec 6>/dev/null
1227 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1228 ac_ls_di=`ls -di .` &&
1229 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1230 { echo "$as_me: error: Working directory cannot be determined" >&2
1231 { (exit 1); exit 1; }; }
1232 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1233 { echo "$as_me: error: pwd does not report name of working directory" >&2
1234 { (exit 1); exit 1; }; }
1237 # Find the source files, if location was not specified.
1238 if test -z "$srcdir"; then
1239 ac_srcdir_defaulted=yes
1240 # Try the directory containing this script, then the parent directory.
1241 ac_confdir=`$as_dirname -- "$0" ||
1242 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1243 X"$0" : 'X\(//\)[^/]' \| \
1244 X"$0" : 'X\(//\)$' \| \
1245 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1247 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1265 if test ! -r "$srcdir/$ac_unique_file"; then
1269 ac_srcdir_defaulted=no
1271 if test ! -r "$srcdir/$ac_unique_file"; then
1272 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1273 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1274 { (exit 1); exit 1; }; }
1276 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1278 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1279 { (exit 1); exit 1; }; }
1281 # When building in place, set srcdir=.
1282 if test "$ac_abs_confdir" = "$ac_pwd"; then
1285 # Remove unnecessary trailing slashes from srcdir.
1286 # Double slashes in file names in object file debugging info
1287 # mess up M-x gdb in Emacs.
1289 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1291 for ac_var in $ac_precious_vars; do
1292 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1293 eval ac_env_${ac_var}_value=\$${ac_var}
1294 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1295 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1299 # Report the --help message.
1301 if test "$ac_init_help" = "long"; then
1302 # Omit some internal or obsolete options to make the list less imposing.
1303 # This message is too long to be a string in the A/UX 3.1 sh.
1305 \`configure' configures [SAMPLE] [x.xx] to adapt to many kinds of systems.
1307 Usage: $0 [OPTION]... [VAR=VALUE]...
1309 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1310 VAR=VALUE. See below for descriptions of some of the useful variables.
1312 Defaults for the options are specified in brackets.
1315 -h, --help display this help and exit
1316 --help=short display options specific to this package
1317 --help=recursive display the short help of all the included packages
1318 -V, --version display version information and exit
1319 -q, --quiet, --silent do not print \`checking...' messages
1320 --cache-file=FILE cache test results in FILE [disabled]
1321 -C, --config-cache alias for \`--cache-file=config.cache'
1322 -n, --no-create do not create output files
1323 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1325 Installation directories:
1326 --prefix=PREFIX install architecture-independent files in PREFIX
1327 [$ac_default_prefix]
1328 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1331 By default, \`make install' will install all the files in
1332 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1333 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1334 for instance \`--prefix=\$HOME'.
1336 For better control, use the options below.
1338 Fine tuning of the installation directories:
1339 --bindir=DIR user executables [EPREFIX/bin]
1340 --sbindir=DIR system admin executables [EPREFIX/sbin]
1341 --libexecdir=DIR program executables [EPREFIX/libexec]
1342 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1343 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1344 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1345 --libdir=DIR object code libraries [EPREFIX/lib]
1346 --includedir=DIR C header files [PREFIX/include]
1347 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1348 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1349 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1350 --infodir=DIR info documentation [DATAROOTDIR/info]
1351 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1352 --mandir=DIR man documentation [DATAROOTDIR/man]
1353 --docdir=DIR documentation root [DATAROOTDIR/doc/--sample--]
1354 --htmldir=DIR html documentation [DOCDIR]
1355 --dvidir=DIR dvi documentation [DOCDIR]
1356 --pdfdir=DIR pdf documentation [DOCDIR]
1357 --psdir=DIR ps documentation [DOCDIR]
1363 --build=BUILD configure for building on BUILD [guessed]
1364 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1365 --target=TARGET configure for building compilers for TARGET [HOST]
1369 if test -n "$ac_init_help"; then
1370 case $ac_init_help in
1371 short | recursive ) echo "Configuration of [SAMPLE] [x.xx]:";;
1376 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1377 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1378 --enable-polly Use polly if available (default is YES)
1379 --enable-optimized Compile with optimizations enabled (default is NO)
1380 --enable-profiling Compile with profiling enabled (default is NO)
1381 --enable-assertions Compile with assertion checks enabled (default is
1383 --enable-expensive-checks
1384 Compile with expensive debug checks enabled (default
1386 --enable-debug-runtime Build runtime libs with debug symbols (default is
1388 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1389 optimization is on and YES if it's off)
1390 --enable-jit Enable Just In Time Compiling (default is YES)
1391 --enable-docs Build documents (default is YES)
1392 --enable-doxygen Build doxygen documentation (default is NO)
1393 --enable-threads Use threads if available (default is YES)
1394 --enable-pthreads Use pthreads if available (default is YES)
1395 --enable-pic Build LLVM with Position Independent Code (default
1397 --enable-shared Build a shared library and link tools against it
1399 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1400 Win32 DLL (default is YES)
1401 --enable-timestamps Enable embedding timestamp information in build
1403 --enable-targets Build specific host targets: all or
1404 target1,target2,... Valid targets are: host, x86,
1405 x86_64, sparc, powerpc, arm, mips, spu, hexagon,
1406 xcore, msp430, ptx, cbe, and cpp (default=all)
1407 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1409 --enable-bindings Build specific language bindings:
1410 all,auto,none,{binding-name} (default=auto)
1411 --enable-libffi Check for the presence of libffi (default is NO)
1412 --enable-ltdl-install install libltdl
1415 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1416 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1417 --with-llvmsrc Location of LLVM Source Code
1418 --with-llvmobj Location of LLVM Object Code
1419 --with-optimize-option Select the compiler options to use for optimized
1421 --with-extra-options Specify additional options to compile LLVM with
1422 --with-extra-ld-options Specify additional options to link LLVM with
1423 --with-ocaml-libdir Specify install location for ocaml bindings (default
1425 --with-clang-resource-dir
1426 Relative directory from the Clang binary for
1428 --with-c-include-dirs Colon separated list of directories clang will
1430 --with-gcc-toolchain Directory where gcc is installed.
1431 --with-binutils-include Specify path to binutils/include/ containing
1432 plugin-api.h file for gold plugin.
1433 --with-bug-report-url Specify the URL where bug reports should be
1434 submitted (default=http://llvm.org/bugs/)
1435 --with-tclinclude directory where tcl headers are
1436 --with-udis86=<path> Use udis86 external x86 disassembler library
1437 --with-oprofile=<prefix>
1438 Tell OProfile >= 0.9.4 how to symbolize JIT output
1440 Some influential environment variables:
1441 CC C compiler command
1442 CFLAGS C compiler flags
1443 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1444 nonstandard directory <lib dir>
1445 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1446 you have headers in a nonstandard directory <include dir>
1447 CXX C++ compiler command
1448 CXXFLAGS C++ compiler flags
1451 Use these variables to override the choices made by `configure' or to help
1452 it to find libraries and programs with nonstandard names/locations.
1454 Report bugs to <bugs@yourdomain>.
1459 if test "$ac_init_help" = "recursive"; then
1460 # If there are subdirs, report their specific --help.
1461 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1462 test -d "$ac_dir" || continue
1466 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1468 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1469 # A ".." for each directory in $ac_dir_suffix.
1470 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1471 case $ac_top_builddir_sub in
1472 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1473 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1476 ac_abs_top_builddir=$ac_pwd
1477 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1478 # for backward compatibility:
1479 ac_top_builddir=$ac_top_build_prefix
1482 .) # We are building in place.
1484 ac_top_srcdir=$ac_top_builddir_sub
1485 ac_abs_top_srcdir=$ac_pwd ;;
1486 [\\/]* | ?:[\\/]* ) # Absolute name.
1487 ac_srcdir=$srcdir$ac_dir_suffix;
1488 ac_top_srcdir=$srcdir
1489 ac_abs_top_srcdir=$srcdir ;;
1491 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1492 ac_top_srcdir=$ac_top_build_prefix$srcdir
1493 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1495 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1497 cd "$ac_dir" || { ac_status=$?; continue; }
1498 # Check for guested configure.
1499 if test -f "$ac_srcdir/configure.gnu"; then
1501 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1502 elif test -f "$ac_srcdir/configure"; then
1504 $SHELL "$ac_srcdir/configure" --help=recursive
1506 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1508 cd "$ac_pwd" || { ac_status=$?; break; }
1512 test -n "$ac_init_help" && exit $ac_status
1513 if $ac_init_version; then
1515 [SAMPLE] configure [x.xx]
1516 generated by GNU Autoconf 2.60
1518 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1519 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1520 This configure script is free software; the Free Software Foundation
1521 gives unlimited permission to copy, distribute and modify it.
1525 cat >config.log <<_ACEOF
1526 This file contains any messages produced by compilers while
1527 running configure, to aid debugging if configure makes a mistake.
1529 It was created by [SAMPLE] $as_me [x.xx], which was
1530 generated by GNU Autoconf 2.60. Invocation command line was
1542 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1543 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1544 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1545 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1546 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1548 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1549 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1551 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1552 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1553 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1554 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1555 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1556 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1557 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1565 test -z "$as_dir" && as_dir=.
1566 echo "PATH: $as_dir"
1582 # Keep a trace of the command line.
1583 # Strip out --no-create and --no-recursion so they do not pile up.
1584 # Strip out --silent because we don't want to record it for future runs.
1585 # Also quote any args containing shell meta-characters.
1586 # Make two passes to allow for proper duplicate-argument suppression.
1590 ac_must_keep_next=false
1596 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1597 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1598 | -silent | --silent | --silen | --sile | --sil)
1601 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1604 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1606 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1607 if test $ac_must_keep_next = true; then
1608 ac_must_keep_next=false # Got value, back to normal.
1611 *=* | --config-cache | -C | -disable-* | --disable-* \
1612 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1613 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1614 | -with-* | --with-* | -without-* | --without-* | --x)
1615 case "$ac_configure_args0 " in
1616 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1619 -* ) ac_must_keep_next=true ;;
1622 ac_configure_args="$ac_configure_args '$ac_arg'"
1627 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1628 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1630 # When interrupted or exit'd, cleanup temporary files, and complete
1631 # config.log. We remove comments because anyway the quotes in there
1632 # would cause problems or look ugly.
1633 # WARNING: Use '\'' to represent an apostrophe within the trap.
1634 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1635 trap 'exit_status=$?
1636 # Save into config.log some information that might help in debugging.
1641 ## ---------------- ##
1642 ## Cache variables. ##
1643 ## ---------------- ##
1646 # The following way of writing the cache mishandles newlines in values,
1648 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1649 eval ac_val=\$$ac_var
1653 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1654 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1657 _ | IFS | as_nl) ;; #(
1658 *) $as_unset $ac_var ;;
1663 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1664 *${as_nl}ac_space=\ *)
1666 "s/'\''/'\''\\\\'\'''\''/g;
1667 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1670 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1678 ## ----------------- ##
1679 ## Output variables. ##
1680 ## ----------------- ##
1683 for ac_var in $ac_subst_vars
1685 eval ac_val=\$$ac_var
1687 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1689 echo "$ac_var='\''$ac_val'\''"
1693 if test -n "$ac_subst_files"; then
1695 ## ------------------- ##
1696 ## File substitutions. ##
1697 ## ------------------- ##
1700 for ac_var in $ac_subst_files
1702 eval ac_val=\$$ac_var
1704 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1706 echo "$ac_var='\''$ac_val'\''"
1711 if test -s confdefs.h; then
1721 test "$ac_signal" != 0 &&
1722 echo "$as_me: caught signal $ac_signal"
1723 echo "$as_me: exit $exit_status"
1725 rm -f core *.core core.conftest.* &&
1726 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1729 for ac_signal in 1 2 13 15; do
1730 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1734 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1735 rm -f -r conftest* confdefs.h
1737 # Predefined preprocessor variables.
1739 cat >>confdefs.h <<_ACEOF
1740 #define PACKAGE_NAME "$PACKAGE_NAME"
1744 cat >>confdefs.h <<_ACEOF
1745 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1749 cat >>confdefs.h <<_ACEOF
1750 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1754 cat >>confdefs.h <<_ACEOF
1755 #define PACKAGE_STRING "$PACKAGE_STRING"
1759 cat >>confdefs.h <<_ACEOF
1760 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1764 # Let the site file select an alternate cache file if it wants to.
1765 # Prefer explicitly selected file to automatically selected ones.
1766 if test -n "$CONFIG_SITE"; then
1767 set x "$CONFIG_SITE"
1768 elif test "x$prefix" != xNONE; then
1769 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1771 set x "$ac_default_prefix/share/config.site" \
1772 "$ac_default_prefix/etc/config.site"
1777 if test -r "$ac_site_file"; then
1778 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1779 echo "$as_me: loading site script $ac_site_file" >&6;}
1780 sed 's/^/| /' "$ac_site_file" >&5
1785 if test -r "$cache_file"; then
1786 # Some versions of bash will fail to source /dev/null (special
1787 # files actually), so we avoid doing that.
1788 if test -f "$cache_file"; then
1789 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1790 echo "$as_me: loading cache $cache_file" >&6;}
1792 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1793 *) . "./$cache_file";;
1797 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1798 echo "$as_me: creating cache $cache_file" >&6;}
1802 # Check that the precious variables saved in the cache have kept the same
1804 ac_cache_corrupted=false
1805 for ac_var in $ac_precious_vars; do
1806 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1807 eval ac_new_set=\$ac_env_${ac_var}_set
1808 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1809 eval ac_new_val=\$ac_env_${ac_var}_value
1810 case $ac_old_set,$ac_new_set in
1812 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1813 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1814 ac_cache_corrupted=: ;;
1816 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1817 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1818 ac_cache_corrupted=: ;;
1821 if test "x$ac_old_val" != "x$ac_new_val"; then
1822 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1823 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1824 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1825 echo "$as_me: former value: $ac_old_val" >&2;}
1826 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1827 echo "$as_me: current value: $ac_new_val" >&2;}
1828 ac_cache_corrupted=:
1831 # Pass precious variables to config.status.
1832 if test "$ac_new_set" = set; then
1834 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1835 *) ac_arg=$ac_var=$ac_new_val ;;
1837 case " $ac_configure_args " in
1838 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1839 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1843 if $ac_cache_corrupted; then
1844 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1845 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1846 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1847 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1848 { (exit 1); exit 1; }; }
1876 ac_cpp='$CPP $CPPFLAGS'
1877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1883 LLVM_SRC_ROOT="../.."
1884 LLVM_OBJ_ROOT="../.."
1886 LLVM_ABS_SRC_ROOT="`cd $srcdir ; cd $LLVM_SRC_ROOT ; pwd`"
1887 LLVM_ABS_OBJ_ROOT="`cd $LLVM_OBJ_ROOT ; pwd`"
1890 # Check whether --with-llvmsrc was given.
1891 if test "${with_llvmsrc+set}" = set; then
1892 withval=$with_llvmsrc; llvm_src="$withval"
1894 llvm_src="$LLVM_ABS_SRC_ROOT"
1900 # Check whether --with-llvmobj was given.
1901 if test "${with_llvmobj+set}" = set; then
1902 withval=$with_llvmobj; llvm_obj="$withval"
1904 llvm_obj="$LLVM_ABS_OBJ_ROOT"
1909 ac_config_commands="$ac_config_commands setup"
1913 { echo "$as_me:$LINENO: checking llvm-config" >&5
1914 echo $ECHO_N "checking llvm-config... $ECHO_C" >&6; }
1915 llvm_config_path="`ls -1 $llvm_obj/*/bin/llvm-config 2> /dev/null | head -1`"
1916 if ! test -f "$llvm_config_path" ; then
1917 llvm_config_path="no"
1919 { echo "$as_me:$LINENO: result: $llvm_config_path" >&5
1920 echo "${ECHO_T}$llvm_config_path" >&6; }
1922 { echo "$as_me:$LINENO: checking LLVM package version" >&5
1923 echo $ECHO_N "checking LLVM package version... $ECHO_C" >&6; }
1924 if test "$llvm_config_path" != no ; then
1925 llvm_package_version=`$llvm_config_path --version`
1927 llvm_package_version="unknown";
1929 { echo "$as_me:$LINENO: result: $llvm_package_version" >&5
1930 echo "${ECHO_T}$llvm_package_version" >&6; }
1931 LLVM_VERSION=$llvm_package_version
1937 for ac_dir in autoconf "$srcdir"/autoconf; do
1938 if test -f "$ac_dir/install-sh"; then
1940 ac_install_sh="$ac_aux_dir/install-sh -c"
1942 elif test -f "$ac_dir/install.sh"; then
1944 ac_install_sh="$ac_aux_dir/install.sh -c"
1946 elif test -f "$ac_dir/shtool"; then
1948 ac_install_sh="$ac_aux_dir/shtool install -c"
1952 if test -z "$ac_aux_dir"; then
1953 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1954 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1955 { (exit 1); exit 1; }; }
1958 # These three variables are undocumented and unsupported,
1959 # and are intended to be withdrawn in a future Autoconf release.
1960 # They can cause serious problems if a builder's source tree is in a directory
1961 # whose full name contains unusual characters.
1962 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1963 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1964 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1970 ac_cpp='$CPP $CPPFLAGS'
1971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1974 if test -n "$ac_tool_prefix"; then
1975 for ac_prog in clang llvm-gcc gcc
1977 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1978 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1979 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1981 if test "${ac_cv_prog_CC+set}" = set; then
1982 echo $ECHO_N "(cached) $ECHO_C" >&6
1984 if test -n "$CC"; then
1985 ac_cv_prog_CC="$CC" # Let the user override the test.
1987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1991 test -z "$as_dir" && as_dir=.
1992 for ac_exec_ext in '' $ac_executable_extensions; do
1993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1994 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2005 if test -n "$CC"; then
2006 { echo "$as_me:$LINENO: result: $CC" >&5
2007 echo "${ECHO_T}$CC" >&6; }
2009 { echo "$as_me:$LINENO: result: no" >&5
2010 echo "${ECHO_T}no" >&6; }
2014 test -n "$CC" && break
2017 if test -z "$CC"; then
2019 for ac_prog in clang llvm-gcc gcc
2021 # Extract the first word of "$ac_prog", so it can be a program name with args.
2022 set dummy $ac_prog; ac_word=$2
2023 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2025 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2026 echo $ECHO_N "(cached) $ECHO_C" >&6
2028 if test -n "$ac_ct_CC"; then
2029 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2035 test -z "$as_dir" && as_dir=.
2036 for ac_exec_ext in '' $ac_executable_extensions; do
2037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2038 ac_cv_prog_ac_ct_CC="$ac_prog"
2039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2048 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2049 if test -n "$ac_ct_CC"; then
2050 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2051 echo "${ECHO_T}$ac_ct_CC" >&6; }
2053 { echo "$as_me:$LINENO: result: no" >&5
2054 echo "${ECHO_T}no" >&6; }
2058 test -n "$ac_ct_CC" && break
2061 if test "x$ac_ct_CC" = x; then
2064 case $cross_compiling:$ac_tool_warned in
2066 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2067 whose name does not start with the host triplet. If you think this
2068 configuration is useful to you, please write to autoconf@gnu.org." >&5
2069 echo "$as_me: 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." >&2;}
2072 ac_tool_warned=yes ;;
2079 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2080 See \`config.log' for more details." >&5
2081 echo "$as_me: error: no acceptable C compiler found in \$PATH
2082 See \`config.log' for more details." >&2;}
2083 { (exit 1); exit 1; }; }
2085 # Provide some information about the compiler.
2086 echo "$as_me:$LINENO: checking for C compiler version" >&5
2087 ac_compiler=`set X $ac_compile; echo $2`
2088 { (ac_try="$ac_compiler --version >&5"
2090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2091 *) ac_try_echo=$ac_try;;
2093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2094 (eval "$ac_compiler --version >&5") 2>&5
2096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097 (exit $ac_status); }
2098 { (ac_try="$ac_compiler -v >&5"
2100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2101 *) ac_try_echo=$ac_try;;
2103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2104 (eval "$ac_compiler -v >&5") 2>&5
2106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107 (exit $ac_status); }
2108 { (ac_try="$ac_compiler -V >&5"
2110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2111 *) ac_try_echo=$ac_try;;
2113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2114 (eval "$ac_compiler -V >&5") 2>&5
2116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2117 (exit $ac_status); }
2119 cat >conftest.$ac_ext <<_ACEOF
2122 cat confdefs.h >>conftest.$ac_ext
2123 cat >>conftest.$ac_ext <<_ACEOF
2124 /* end confdefs.h. */
2134 ac_clean_files_save=$ac_clean_files
2135 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2136 # Try to create an executable without -o first, disregard a.out.
2137 # It will help us diagnose broken compilers, and finding out an intuition
2139 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2140 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2141 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2143 # List of possible output files, starting from the most likely.
2144 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2145 # only as a last resort. b.out is created by i960 compilers.
2146 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2148 # The IRIX 6 linker writes into existing files which may not be
2149 # executable, retaining their permissions. Remove them first so a
2150 # subsequent execution test works.
2152 for ac_file in $ac_files
2155 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2156 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2161 if { (ac_try="$ac_link_default"
2163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2164 *) ac_try_echo=$ac_try;;
2166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2167 (eval "$ac_link_default") 2>&5
2169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2170 (exit $ac_status); }; then
2171 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2172 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2173 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2174 # so that the user can short-circuit this test for compilers unknown to
2176 for ac_file in $ac_files
2178 test -f "$ac_file" || continue
2180 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2183 # We found the default executable, but exeext='' is most
2187 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2189 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2191 # We set ac_cv_exeext here because the later test for it is not
2192 # safe: cross compilers may not add the suffix if given an `-o'
2193 # argument, so we may need to know it at that point already.
2194 # Even if this section looks crufty: it has the advantage of
2201 test "$ac_cv_exeext" = no && ac_cv_exeext=
2204 echo "$as_me: failed program was:" >&5
2205 sed 's/^/| /' conftest.$ac_ext >&5
2207 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2208 See \`config.log' for more details." >&5
2209 echo "$as_me: error: C compiler cannot create executables
2210 See \`config.log' for more details." >&2;}
2211 { (exit 77); exit 77; }; }
2214 ac_exeext=$ac_cv_exeext
2215 { echo "$as_me:$LINENO: result: $ac_file" >&5
2216 echo "${ECHO_T}$ac_file" >&6; }
2218 # Check that the compiler produces executables we can run. If not, either
2219 # the compiler is broken, or we cross compile.
2220 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2221 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2222 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2223 # If not cross compiling, check that we can run a simple program.
2224 if test "$cross_compiling" != yes; then
2225 if { ac_try='./$ac_file'
2226 { (case "(($ac_try" in
2227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2228 *) ac_try_echo=$ac_try;;
2230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2231 (eval "$ac_try") 2>&5
2233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234 (exit $ac_status); }; }; then
2237 if test "$cross_compiling" = maybe; then
2240 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2241 If you meant to cross compile, use \`--host'.
2242 See \`config.log' for more details." >&5
2243 echo "$as_me: error: cannot run C compiled programs.
2244 If you meant to cross compile, use \`--host'.
2245 See \`config.log' for more details." >&2;}
2246 { (exit 1); exit 1; }; }
2250 { echo "$as_me:$LINENO: result: yes" >&5
2251 echo "${ECHO_T}yes" >&6; }
2253 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2254 ac_clean_files=$ac_clean_files_save
2255 # Check that the compiler produces executables we can run. If not, either
2256 # the compiler is broken, or we cross compile.
2257 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2258 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2259 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2260 echo "${ECHO_T}$cross_compiling" >&6; }
2262 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2263 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2264 if { (ac_try="$ac_link"
2266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2267 *) ac_try_echo=$ac_try;;
2269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2270 (eval "$ac_link") 2>&5
2272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273 (exit $ac_status); }; then
2274 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2275 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2276 # work properly (i.e., refer to `conftest.exe'), while it won't with
2278 for ac_file in conftest.exe conftest conftest.*; do
2279 test -f "$ac_file" || continue
2281 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2282 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2288 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2289 See \`config.log' for more details." >&5
2290 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2291 See \`config.log' for more details." >&2;}
2292 { (exit 1); exit 1; }; }
2295 rm -f conftest$ac_cv_exeext
2296 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2297 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2299 rm -f conftest.$ac_ext
2300 EXEEXT=$ac_cv_exeext
2302 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2303 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2304 if test "${ac_cv_objext+set}" = set; then
2305 echo $ECHO_N "(cached) $ECHO_C" >&6
2307 cat >conftest.$ac_ext <<_ACEOF
2310 cat confdefs.h >>conftest.$ac_ext
2311 cat >>conftest.$ac_ext <<_ACEOF
2312 /* end confdefs.h. */
2322 rm -f conftest.o conftest.obj
2323 if { (ac_try="$ac_compile"
2325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2326 *) ac_try_echo=$ac_try;;
2328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2329 (eval "$ac_compile") 2>&5
2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); }; then
2333 for ac_file in conftest.o conftest.obj conftest.*; do
2334 test -f "$ac_file" || continue;
2336 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2337 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2342 echo "$as_me: failed program was:" >&5
2343 sed 's/^/| /' conftest.$ac_ext >&5
2345 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2346 See \`config.log' for more details." >&5
2347 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2348 See \`config.log' for more details." >&2;}
2349 { (exit 1); exit 1; }; }
2352 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2354 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2355 echo "${ECHO_T}$ac_cv_objext" >&6; }
2356 OBJEXT=$ac_cv_objext
2358 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2359 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2360 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2361 echo $ECHO_N "(cached) $ECHO_C" >&6
2363 cat >conftest.$ac_ext <<_ACEOF
2366 cat confdefs.h >>conftest.$ac_ext
2367 cat >>conftest.$ac_ext <<_ACEOF
2368 /* end confdefs.h. */
2381 rm -f conftest.$ac_objext
2382 if { (ac_try="$ac_compile"
2384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2385 *) ac_try_echo=$ac_try;;
2387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2388 (eval "$ac_compile") 2>conftest.er1
2390 grep -v '^ *+' conftest.er1 >conftest.err
2392 cat conftest.err >&5
2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394 (exit $ac_status); } &&
2395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2396 { (case "(($ac_try" in
2397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2398 *) ac_try_echo=$ac_try;;
2400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2401 (eval "$ac_try") 2>&5
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); }; } &&
2405 { ac_try='test -s conftest.$ac_objext'
2406 { (case "(($ac_try" in
2407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2408 *) ac_try_echo=$ac_try;;
2410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2411 (eval "$ac_try") 2>&5
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); }; }; then
2417 echo "$as_me: failed program was:" >&5
2418 sed 's/^/| /' conftest.$ac_ext >&5
2423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2424 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2427 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2428 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2429 GCC=`test $ac_compiler_gnu = yes && echo yes`
2430 ac_test_CFLAGS=${CFLAGS+set}
2431 ac_save_CFLAGS=$CFLAGS
2432 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2433 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2434 if test "${ac_cv_prog_cc_g+set}" = set; then
2435 echo $ECHO_N "(cached) $ECHO_C" >&6
2437 ac_save_c_werror_flag=$ac_c_werror_flag
2438 ac_c_werror_flag=yes
2441 cat >conftest.$ac_ext <<_ACEOF
2444 cat confdefs.h >>conftest.$ac_ext
2445 cat >>conftest.$ac_ext <<_ACEOF
2446 /* end confdefs.h. */
2456 rm -f conftest.$ac_objext
2457 if { (ac_try="$ac_compile"
2459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2460 *) ac_try_echo=$ac_try;;
2462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2463 (eval "$ac_compile") 2>conftest.er1
2465 grep -v '^ *+' conftest.er1 >conftest.err
2467 cat conftest.err >&5
2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469 (exit $ac_status); } &&
2470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2471 { (case "(($ac_try" in
2472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2473 *) ac_try_echo=$ac_try;;
2475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2476 (eval "$ac_try") 2>&5
2478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479 (exit $ac_status); }; } &&
2480 { ac_try='test -s conftest.$ac_objext'
2481 { (case "(($ac_try" in
2482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2483 *) ac_try_echo=$ac_try;;
2485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2486 (eval "$ac_try") 2>&5
2488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489 (exit $ac_status); }; }; then
2492 echo "$as_me: failed program was:" >&5
2493 sed 's/^/| /' conftest.$ac_ext >&5
2496 cat >conftest.$ac_ext <<_ACEOF
2499 cat confdefs.h >>conftest.$ac_ext
2500 cat >>conftest.$ac_ext <<_ACEOF
2501 /* end confdefs.h. */
2511 rm -f conftest.$ac_objext
2512 if { (ac_try="$ac_compile"
2514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2515 *) ac_try_echo=$ac_try;;
2517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2518 (eval "$ac_compile") 2>conftest.er1
2520 grep -v '^ *+' conftest.er1 >conftest.err
2522 cat conftest.err >&5
2523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524 (exit $ac_status); } &&
2525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2526 { (case "(($ac_try" in
2527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2528 *) ac_try_echo=$ac_try;;
2530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2531 (eval "$ac_try") 2>&5
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); }; } &&
2535 { ac_try='test -s conftest.$ac_objext'
2536 { (case "(($ac_try" in
2537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2538 *) ac_try_echo=$ac_try;;
2540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2541 (eval "$ac_try") 2>&5
2543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544 (exit $ac_status); }; }; then
2547 echo "$as_me: failed program was:" >&5
2548 sed 's/^/| /' conftest.$ac_ext >&5
2550 ac_c_werror_flag=$ac_save_c_werror_flag
2552 cat >conftest.$ac_ext <<_ACEOF
2555 cat confdefs.h >>conftest.$ac_ext
2556 cat >>conftest.$ac_ext <<_ACEOF
2557 /* end confdefs.h. */
2567 rm -f conftest.$ac_objext
2568 if { (ac_try="$ac_compile"
2570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2571 *) ac_try_echo=$ac_try;;
2573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2574 (eval "$ac_compile") 2>conftest.er1
2576 grep -v '^ *+' conftest.er1 >conftest.err
2578 cat conftest.err >&5
2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); } &&
2581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2582 { (case "(($ac_try" in
2583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2584 *) ac_try_echo=$ac_try;;
2586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2587 (eval "$ac_try") 2>&5
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); }; } &&
2591 { ac_try='test -s conftest.$ac_objext'
2592 { (case "(($ac_try" in
2593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2594 *) ac_try_echo=$ac_try;;
2596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2597 (eval "$ac_try") 2>&5
2599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600 (exit $ac_status); }; }; then
2603 echo "$as_me: failed program was:" >&5
2604 sed 's/^/| /' conftest.$ac_ext >&5
2609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2616 ac_c_werror_flag=$ac_save_c_werror_flag
2618 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2619 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2620 if test "$ac_test_CFLAGS" = set; then
2621 CFLAGS=$ac_save_CFLAGS
2622 elif test $ac_cv_prog_cc_g = yes; then
2623 if test "$GCC" = yes; then
2629 if test "$GCC" = yes; then
2635 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2636 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2637 if test "${ac_cv_prog_cc_c89+set}" = set; then
2638 echo $ECHO_N "(cached) $ECHO_C" >&6
2640 ac_cv_prog_cc_c89=no
2642 cat >conftest.$ac_ext <<_ACEOF
2645 cat confdefs.h >>conftest.$ac_ext
2646 cat >>conftest.$ac_ext <<_ACEOF
2647 /* end confdefs.h. */
2650 #include <sys/types.h>
2651 #include <sys/stat.h>
2652 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2653 struct buf { int x; };
2654 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2655 static char *e (p, i)
2661 static char *f (char * (*g) (char **, int), char **p, ...)
2666 s = g (p, va_arg (v,int));
2671 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2672 function prototypes and stuff, but not '\xHH' hex character constants.
2673 These don't provoke an error unfortunately, instead are silently treated
2674 as 'x'. The following induces an error, until -std is added to get
2675 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2676 array size at least. It's necessary to write '\x00'==0 to get something
2677 that's true only with -std. */
2678 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2680 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2681 inside strings and character constants. */
2683 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2685 int test (int i, double x);
2686 struct s1 {int (*f) (int a);};
2687 struct s2 {int (*f) (double a);};
2688 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2694 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2699 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2700 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2702 CC="$ac_save_CC $ac_arg"
2703 rm -f conftest.$ac_objext
2704 if { (ac_try="$ac_compile"
2706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2707 *) ac_try_echo=$ac_try;;
2709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2710 (eval "$ac_compile") 2>conftest.er1
2712 grep -v '^ *+' conftest.er1 >conftest.err
2714 cat conftest.err >&5
2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); } &&
2717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2718 { (case "(($ac_try" in
2719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2720 *) ac_try_echo=$ac_try;;
2722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2723 (eval "$ac_try") 2>&5
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); }; } &&
2727 { ac_try='test -s conftest.$ac_objext'
2728 { (case "(($ac_try" in
2729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2730 *) ac_try_echo=$ac_try;;
2732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2733 (eval "$ac_try") 2>&5
2735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736 (exit $ac_status); }; }; then
2737 ac_cv_prog_cc_c89=$ac_arg
2739 echo "$as_me: failed program was:" >&5
2740 sed 's/^/| /' conftest.$ac_ext >&5
2745 rm -f core conftest.err conftest.$ac_objext
2746 test "x$ac_cv_prog_cc_c89" != "xno" && break
2748 rm -f conftest.$ac_ext
2753 case "x$ac_cv_prog_cc_c89" in
2755 { echo "$as_me:$LINENO: result: none needed" >&5
2756 echo "${ECHO_T}none needed" >&6; } ;;
2758 { echo "$as_me:$LINENO: result: unsupported" >&5
2759 echo "${ECHO_T}unsupported" >&6; } ;;
2761 CC="$CC $ac_cv_prog_cc_c89"
2762 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2763 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2768 ac_cpp='$CPP $CPPFLAGS'
2769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2774 ac_cpp='$CXXCPP $CPPFLAGS'
2775 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2776 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2777 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2778 if test -z "$CXX"; then
2779 if test -n "$CCC"; then
2782 if test -n "$ac_tool_prefix"; then
2783 for ac_prog in clang++ llvm-g++ g++
2785 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2786 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2787 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2789 if test "${ac_cv_prog_CXX+set}" = set; then
2790 echo $ECHO_N "(cached) $ECHO_C" >&6
2792 if test -n "$CXX"; then
2793 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2799 test -z "$as_dir" && as_dir=.
2800 for ac_exec_ext in '' $ac_executable_extensions; do
2801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2802 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2813 if test -n "$CXX"; then
2814 { echo "$as_me:$LINENO: result: $CXX" >&5
2815 echo "${ECHO_T}$CXX" >&6; }
2817 { echo "$as_me:$LINENO: result: no" >&5
2818 echo "${ECHO_T}no" >&6; }
2822 test -n "$CXX" && break
2825 if test -z "$CXX"; then
2827 for ac_prog in clang++ llvm-g++ g++
2829 # Extract the first word of "$ac_prog", so it can be a program name with args.
2830 set dummy $ac_prog; ac_word=$2
2831 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2833 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2834 echo $ECHO_N "(cached) $ECHO_C" >&6
2836 if test -n "$ac_ct_CXX"; then
2837 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2843 test -z "$as_dir" && as_dir=.
2844 for ac_exec_ext in '' $ac_executable_extensions; do
2845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2846 ac_cv_prog_ac_ct_CXX="$ac_prog"
2847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2856 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2857 if test -n "$ac_ct_CXX"; then
2858 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2859 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2861 { echo "$as_me:$LINENO: result: no" >&5
2862 echo "${ECHO_T}no" >&6; }
2866 test -n "$ac_ct_CXX" && break
2869 if test "x$ac_ct_CXX" = x; then
2872 case $cross_compiling:$ac_tool_warned in
2874 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2875 whose name does not start with the host triplet. If you think this
2876 configuration is useful to you, please write to autoconf@gnu.org." >&5
2877 echo "$as_me: 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." >&2;}
2880 ac_tool_warned=yes ;;
2888 # Provide some information about the compiler.
2889 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2890 ac_compiler=`set X $ac_compile; echo $2`
2891 { (ac_try="$ac_compiler --version >&5"
2893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2894 *) ac_try_echo=$ac_try;;
2896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2897 (eval "$ac_compiler --version >&5") 2>&5
2899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900 (exit $ac_status); }
2901 { (ac_try="$ac_compiler -v >&5"
2903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2904 *) ac_try_echo=$ac_try;;
2906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2907 (eval "$ac_compiler -v >&5") 2>&5
2909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910 (exit $ac_status); }
2911 { (ac_try="$ac_compiler -V >&5"
2913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2914 *) ac_try_echo=$ac_try;;
2916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2917 (eval "$ac_compiler -V >&5") 2>&5
2919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920 (exit $ac_status); }
2922 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2923 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2924 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2925 echo $ECHO_N "(cached) $ECHO_C" >&6
2927 cat >conftest.$ac_ext <<_ACEOF
2930 cat confdefs.h >>conftest.$ac_ext
2931 cat >>conftest.$ac_ext <<_ACEOF
2932 /* end confdefs.h. */
2945 rm -f conftest.$ac_objext
2946 if { (ac_try="$ac_compile"
2948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2949 *) ac_try_echo=$ac_try;;
2951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2952 (eval "$ac_compile") 2>conftest.er1
2954 grep -v '^ *+' conftest.er1 >conftest.err
2956 cat conftest.err >&5
2957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958 (exit $ac_status); } &&
2959 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2960 { (case "(($ac_try" in
2961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2962 *) ac_try_echo=$ac_try;;
2964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2965 (eval "$ac_try") 2>&5
2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968 (exit $ac_status); }; } &&
2969 { ac_try='test -s conftest.$ac_objext'
2970 { (case "(($ac_try" in
2971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2972 *) ac_try_echo=$ac_try;;
2974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2975 (eval "$ac_try") 2>&5
2977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); }; }; then
2981 echo "$as_me: failed program was:" >&5
2982 sed 's/^/| /' conftest.$ac_ext >&5
2987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2988 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2991 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2992 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2993 GXX=`test $ac_compiler_gnu = yes && echo yes`
2994 ac_test_CXXFLAGS=${CXXFLAGS+set}
2995 ac_save_CXXFLAGS=$CXXFLAGS
2996 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2997 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2998 if test "${ac_cv_prog_cxx_g+set}" = set; then
2999 echo $ECHO_N "(cached) $ECHO_C" >&6
3001 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3002 ac_cxx_werror_flag=yes
3005 cat >conftest.$ac_ext <<_ACEOF
3008 cat confdefs.h >>conftest.$ac_ext
3009 cat >>conftest.$ac_ext <<_ACEOF
3010 /* end confdefs.h. */
3020 rm -f conftest.$ac_objext
3021 if { (ac_try="$ac_compile"
3023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024 *) ac_try_echo=$ac_try;;
3026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3027 (eval "$ac_compile") 2>conftest.er1
3029 grep -v '^ *+' conftest.er1 >conftest.err
3031 cat conftest.err >&5
3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033 (exit $ac_status); } &&
3034 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3035 { (case "(($ac_try" in
3036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3037 *) ac_try_echo=$ac_try;;
3039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3040 (eval "$ac_try") 2>&5
3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043 (exit $ac_status); }; } &&
3044 { ac_try='test -s conftest.$ac_objext'
3045 { (case "(($ac_try" in
3046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3047 *) ac_try_echo=$ac_try;;
3049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3050 (eval "$ac_try") 2>&5
3052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053 (exit $ac_status); }; }; then
3054 ac_cv_prog_cxx_g=yes
3056 echo "$as_me: failed program was:" >&5
3057 sed 's/^/| /' conftest.$ac_ext >&5
3060 cat >conftest.$ac_ext <<_ACEOF
3063 cat confdefs.h >>conftest.$ac_ext
3064 cat >>conftest.$ac_ext <<_ACEOF
3065 /* end confdefs.h. */
3075 rm -f conftest.$ac_objext
3076 if { (ac_try="$ac_compile"
3078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3079 *) ac_try_echo=$ac_try;;
3081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3082 (eval "$ac_compile") 2>conftest.er1
3084 grep -v '^ *+' conftest.er1 >conftest.err
3086 cat conftest.err >&5
3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088 (exit $ac_status); } &&
3089 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3090 { (case "(($ac_try" in
3091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3092 *) ac_try_echo=$ac_try;;
3094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3095 (eval "$ac_try") 2>&5
3097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098 (exit $ac_status); }; } &&
3099 { ac_try='test -s conftest.$ac_objext'
3100 { (case "(($ac_try" in
3101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3102 *) ac_try_echo=$ac_try;;
3104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3105 (eval "$ac_try") 2>&5
3107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108 (exit $ac_status); }; }; then
3111 echo "$as_me: failed program was:" >&5
3112 sed 's/^/| /' conftest.$ac_ext >&5
3114 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3116 cat >conftest.$ac_ext <<_ACEOF
3119 cat confdefs.h >>conftest.$ac_ext
3120 cat >>conftest.$ac_ext <<_ACEOF
3121 /* end confdefs.h. */
3131 rm -f conftest.$ac_objext
3132 if { (ac_try="$ac_compile"
3134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135 *) ac_try_echo=$ac_try;;
3137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3138 (eval "$ac_compile") 2>conftest.er1
3140 grep -v '^ *+' conftest.er1 >conftest.err
3142 cat conftest.err >&5
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); } &&
3145 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3146 { (case "(($ac_try" in
3147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3148 *) ac_try_echo=$ac_try;;
3150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3151 (eval "$ac_try") 2>&5
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); }; } &&
3155 { ac_try='test -s conftest.$ac_objext'
3156 { (case "(($ac_try" in
3157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158 *) ac_try_echo=$ac_try;;
3160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3161 (eval "$ac_try") 2>&5
3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); }; }; then
3165 ac_cv_prog_cxx_g=yes
3167 echo "$as_me: failed program was:" >&5
3168 sed 's/^/| /' conftest.$ac_ext >&5
3173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3180 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3182 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3183 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3184 if test "$ac_test_CXXFLAGS" = set; then
3185 CXXFLAGS=$ac_save_CXXFLAGS
3186 elif test $ac_cv_prog_cxx_g = yes; then
3187 if test "$GXX" = yes; then
3193 if test "$GXX" = yes; then
3200 ac_cpp='$CPP $CPPFLAGS'
3201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3206 ac_cpp='$CPP $CPPFLAGS'
3207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3210 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3211 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3212 # On Suns, sometimes $CPP names a directory.
3213 if test -n "$CPP" && test -d "$CPP"; then
3216 if test -z "$CPP"; then
3217 if test "${ac_cv_prog_CPP+set}" = set; then
3218 echo $ECHO_N "(cached) $ECHO_C" >&6
3220 # Double quotes because CPP needs to be expanded
3221 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3224 for ac_c_preproc_warn_flag in '' yes
3226 # Use a header file that comes with gcc, so configuring glibc
3227 # with a fresh cross-compiler works.
3228 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3229 # <limits.h> exists even on freestanding compilers.
3230 # On the NeXT, cc -E runs the code through the compiler's parser,
3231 # not just through cpp. "Syntax error" is here to catch this case.
3232 cat >conftest.$ac_ext <<_ACEOF
3235 cat confdefs.h >>conftest.$ac_ext
3236 cat >>conftest.$ac_ext <<_ACEOF
3237 /* end confdefs.h. */
3239 # include <limits.h>
3241 # include <assert.h>
3245 if { (ac_try="$ac_cpp conftest.$ac_ext"
3247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248 *) ac_try_echo=$ac_try;;
3250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3251 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3253 grep -v '^ *+' conftest.er1 >conftest.err
3255 cat conftest.err >&5
3256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257 (exit $ac_status); } >/dev/null; then
3258 if test -s conftest.err; then
3259 ac_cpp_err=$ac_c_preproc_warn_flag
3260 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3267 if test -z "$ac_cpp_err"; then
3270 echo "$as_me: failed program was:" >&5
3271 sed 's/^/| /' conftest.$ac_ext >&5
3273 # Broken: fails on valid input.
3277 rm -f conftest.err conftest.$ac_ext
3279 # OK, works on sane cases. Now check whether nonexistent headers
3280 # can be detected and how.
3281 cat >conftest.$ac_ext <<_ACEOF
3284 cat confdefs.h >>conftest.$ac_ext
3285 cat >>conftest.$ac_ext <<_ACEOF
3286 /* end confdefs.h. */
3287 #include <ac_nonexistent.h>
3289 if { (ac_try="$ac_cpp conftest.$ac_ext"
3291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3292 *) ac_try_echo=$ac_try;;
3294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3295 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3297 grep -v '^ *+' conftest.er1 >conftest.err
3299 cat conftest.err >&5
3300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301 (exit $ac_status); } >/dev/null; then
3302 if test -s conftest.err; then
3303 ac_cpp_err=$ac_c_preproc_warn_flag
3304 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3311 if test -z "$ac_cpp_err"; then
3312 # Broken: success on invalid input.
3315 echo "$as_me: failed program was:" >&5
3316 sed 's/^/| /' conftest.$ac_ext >&5
3318 # Passes both tests.
3323 rm -f conftest.err conftest.$ac_ext
3326 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3327 rm -f conftest.err conftest.$ac_ext
3328 if $ac_preproc_ok; then
3340 { echo "$as_me:$LINENO: result: $CPP" >&5
3341 echo "${ECHO_T}$CPP" >&6; }
3343 for ac_c_preproc_warn_flag in '' yes
3345 # Use a header file that comes with gcc, so configuring glibc
3346 # with a fresh cross-compiler works.
3347 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3348 # <limits.h> exists even on freestanding compilers.
3349 # On the NeXT, cc -E runs the code through the compiler's parser,
3350 # not just through cpp. "Syntax error" is here to catch this case.
3351 cat >conftest.$ac_ext <<_ACEOF
3354 cat confdefs.h >>conftest.$ac_ext
3355 cat >>conftest.$ac_ext <<_ACEOF
3356 /* end confdefs.h. */
3358 # include <limits.h>
3360 # include <assert.h>
3364 if { (ac_try="$ac_cpp conftest.$ac_ext"
3366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3367 *) ac_try_echo=$ac_try;;
3369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3370 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3372 grep -v '^ *+' conftest.er1 >conftest.err
3374 cat conftest.err >&5
3375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); } >/dev/null; then
3377 if test -s conftest.err; then
3378 ac_cpp_err=$ac_c_preproc_warn_flag
3379 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3386 if test -z "$ac_cpp_err"; then
3389 echo "$as_me: failed program was:" >&5
3390 sed 's/^/| /' conftest.$ac_ext >&5
3392 # Broken: fails on valid input.
3396 rm -f conftest.err conftest.$ac_ext
3398 # OK, works on sane cases. Now check whether nonexistent headers
3399 # can be detected and how.
3400 cat >conftest.$ac_ext <<_ACEOF
3403 cat confdefs.h >>conftest.$ac_ext
3404 cat >>conftest.$ac_ext <<_ACEOF
3405 /* end confdefs.h. */
3406 #include <ac_nonexistent.h>
3408 if { (ac_try="$ac_cpp conftest.$ac_ext"
3410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3411 *) ac_try_echo=$ac_try;;
3413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3414 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3416 grep -v '^ *+' conftest.er1 >conftest.err
3418 cat conftest.err >&5
3419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420 (exit $ac_status); } >/dev/null; then
3421 if test -s conftest.err; then
3422 ac_cpp_err=$ac_c_preproc_warn_flag
3423 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3430 if test -z "$ac_cpp_err"; then
3431 # Broken: success on invalid input.
3434 echo "$as_me: failed program was:" >&5
3435 sed 's/^/| /' conftest.$ac_ext >&5
3437 # Passes both tests.
3442 rm -f conftest.err conftest.$ac_ext
3445 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3446 rm -f conftest.err conftest.$ac_ext
3447 if $ac_preproc_ok; then
3450 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3451 See \`config.log' for more details." >&5
3452 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3453 See \`config.log' for more details." >&2;}
3454 { (exit 1); exit 1; }; }
3458 ac_cpp='$CPP $CPPFLAGS'
3459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3466 # Check whether --enable-polly was given.
3467 if test "${enable_polly+set}" = set; then
3468 enableval=$enable_polly;
3473 case "$enableval" in
3478 default) ENABLE_POLLY=1
3480 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3481 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3482 { (exit 1); exit 1; }; } ;;
3486 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3489 subdirs="$subdirs tools/polly"
3494 # Make sure we can run config.sub.
3495 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3496 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3497 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3498 { (exit 1); exit 1; }; }
3500 { echo "$as_me:$LINENO: checking build system type" >&5
3501 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3502 if test "${ac_cv_build+set}" = set; then
3503 echo $ECHO_N "(cached) $ECHO_C" >&6
3505 ac_build_alias=$build_alias
3506 test "x$ac_build_alias" = x &&
3507 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3508 test "x$ac_build_alias" = x &&
3509 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3510 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3511 { (exit 1); exit 1; }; }
3512 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3513 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3514 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3515 { (exit 1); exit 1; }; }
3518 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3519 echo "${ECHO_T}$ac_cv_build" >&6; }
3520 case $ac_cv_build in
3522 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3523 echo "$as_me: error: invalid value of canonical build" >&2;}
3524 { (exit 1); exit 1; }; };;
3527 ac_save_IFS=$IFS; IFS='-'
3533 # Remember, the first character of IFS is used to create $*,
3534 # except with old shells:
3537 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3540 { echo "$as_me:$LINENO: checking host system type" >&5
3541 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3542 if test "${ac_cv_host+set}" = set; then
3543 echo $ECHO_N "(cached) $ECHO_C" >&6
3545 if test "x$host_alias" = x; then
3546 ac_cv_host=$ac_cv_build
3548 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3549 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3550 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3551 { (exit 1); exit 1; }; }
3555 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3556 echo "${ECHO_T}$ac_cv_host" >&6; }
3559 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3560 echo "$as_me: error: invalid value of canonical host" >&2;}
3561 { (exit 1); exit 1; }; };;
3564 ac_save_IFS=$IFS; IFS='-'
3570 # Remember, the first character of IFS is used to create $*,
3571 # except with old shells:
3574 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3577 { echo "$as_me:$LINENO: checking target system type" >&5
3578 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3579 if test "${ac_cv_target+set}" = set; then
3580 echo $ECHO_N "(cached) $ECHO_C" >&6
3582 if test "x$target_alias" = x; then
3583 ac_cv_target=$ac_cv_host
3585 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3586 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3587 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3588 { (exit 1); exit 1; }; }
3592 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3593 echo "${ECHO_T}$ac_cv_target" >&6; }
3594 case $ac_cv_target in
3596 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3597 echo "$as_me: error: invalid value of canonical target" >&2;}
3598 { (exit 1); exit 1; }; };;
3600 target=$ac_cv_target
3601 ac_save_IFS=$IFS; IFS='-'
3607 # Remember, the first character of IFS is used to create $*,
3608 # except with old shells:
3611 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3614 # The aliases save the names the user supplied, while $host etc.
3615 # will get canonicalized.
3616 test -n "$target_alias" &&
3617 test "$program_prefix$program_suffix$program_transform_name" = \
3619 program_prefix=${target_alias}-
3621 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3622 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3623 if test "${llvm_cv_os_type+set}" = set; then
3624 echo $ECHO_N "(cached) $ECHO_C" >&6
3628 llvm_cv_link_all_option="-Wl,--whole-archive"
3629 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3630 llvm_cv_os_type="AIX"
3631 llvm_cv_platform_type="Unix" ;;
3633 llvm_cv_link_all_option="-Wl,--whole-archive"
3634 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3635 llvm_cv_os_type="IRIX"
3636 llvm_cv_platform_type="Unix" ;;
3638 llvm_cv_link_all_option="-Wl,--whole-archive"
3639 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3640 llvm_cv_os_type="Cygwin"
3641 llvm_cv_platform_type="Unix" ;;
3643 llvm_cv_link_all_option="-Wl,-all_load"
3644 llvm_cv_no_link_all_option="-Wl,-noall_load"
3645 llvm_cv_os_type="Darwin"
3646 llvm_cv_platform_type="Unix" ;;
3648 llvm_cv_link_all_option="-Wl,-all_load"
3649 llvm_cv_no_link_all_option="-Wl,-noall_load"
3650 llvm_cv_os_type="Minix"
3651 llvm_cv_platform_type="Unix" ;;
3653 llvm_cv_link_all_option="-Wl,--whole-archive"
3654 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3655 llvm_cv_os_type="FreeBSD"
3656 llvm_cv_platform_type="Unix" ;;
3658 llvm_cv_link_all_option="-Wl,--whole-archive"
3659 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3660 llvm_cv_os_type="OpenBSD"
3661 llvm_cv_platform_type="Unix" ;;
3663 llvm_cv_link_all_option="-Wl,--whole-archive"
3664 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3665 llvm_cv_os_type="NetBSD"
3666 llvm_cv_platform_type="Unix" ;;
3668 llvm_cv_link_all_option="-Wl,--whole-archive"
3669 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3670 llvm_cv_os_type="DragonFly"
3671 llvm_cv_platform_type="Unix" ;;
3673 llvm_cv_link_all_option="-Wl,--whole-archive"
3674 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3675 llvm_cv_os_type="HP-UX"
3676 llvm_cv_platform_type="Unix" ;;
3678 llvm_cv_link_all_option="-Wl,--whole-archive"
3679 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3680 llvm_cv_os_type="Interix"
3681 llvm_cv_platform_type="Unix" ;;
3683 llvm_cv_link_all_option="-Wl,--whole-archive"
3684 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3685 llvm_cv_os_type="Linux"
3686 llvm_cv_platform_type="Unix" ;;
3688 llvm_cv_link_all_option="-Wl,-z,allextract"
3689 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3690 llvm_cv_os_type="SunOS"
3691 llvm_cv_platform_type="Unix" ;;
3693 llvm_cv_link_all_option="-Wl,-z,allextract"
3694 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3695 llvm_cv_os_type="AuroraUX"
3696 llvm_cv_platform_type="Unix" ;;
3698 llvm_cv_link_all_option="-Wl,--whole-archive"
3699 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3700 llvm_cv_os_type="Win32"
3701 llvm_cv_platform_type="Win32" ;;
3703 llvm_cv_link_all_option="-Wl,--whole-archive"
3704 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3705 llvm_cv_os_type="MingW"
3706 llvm_cv_platform_type="Win32" ;;
3708 llvm_cv_link_all_option="-Wl,--whole-archive"
3709 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3710 llvm_cv_os_type="Haiku"
3711 llvm_cv_platform_type="Unix" ;;
3713 llvm_cv_link_all_option="-Wl,--whole-archive"
3714 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3715 llvm_cv_os_type="Freestanding"
3716 llvm_cv_platform_type="Unix" ;;
3718 llvm_cv_link_all_option="-Wl,--whole-archive"
3719 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3720 llvm_cv_os_type="Freestanding"
3721 llvm_cv_platform_type="Unix" ;;
3723 llvm_cv_link_all_option=""
3724 llvm_cv_no_link_all_option=""
3725 llvm_cv_os_type="Unknown"
3726 llvm_cv_platform_type="Unknown" ;;
3729 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3730 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3732 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3733 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3734 if test "${llvm_cv_target_os_type+set}" = set; then
3735 echo $ECHO_N "(cached) $ECHO_C" >&6
3739 llvm_cv_target_os_type="AIX" ;;
3741 llvm_cv_target_os_type="IRIX" ;;
3743 llvm_cv_target_os_type="Cygwin" ;;
3745 llvm_cv_target_os_type="Darwin" ;;
3747 llvm_cv_target_os_type="Minix" ;;
3749 llvm_cv_target_os_type="FreeBSD" ;;
3751 llvm_cv_target_os_type="OpenBSD" ;;
3753 llvm_cv_target_os_type="NetBSD" ;;
3755 llvm_cv_target_os_type="DragonFly" ;;
3757 llvm_cv_target_os_type="HP-UX" ;;
3759 llvm_cv_target_os_type="Interix" ;;
3761 llvm_cv_target_os_type="Linux" ;;
3763 llvm_cv_target_os_type="SunOS" ;;
3765 llvm_cv_target_os_type="AuroraUX" ;;
3767 llvm_cv_target_os_type="Win32" ;;
3769 llvm_cv_target_os_type="MingW" ;;
3771 llvm_cv_target_os_type="Haiku" ;;
3773 llvm_cv_target_os_type="RTEMS" ;;
3775 llvm_cv_target_os_type="NativeClient" ;;
3777 llvm_cv_target_os_type="Freestanding" ;;
3779 llvm_cv_target_os_type="Unknown" ;;
3782 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3783 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3785 if test "$llvm_cv_os_type" = "Unknown" ; then
3786 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3787 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3788 { (exit 1); exit 1; }; }
3793 HOST_OS=$llvm_cv_os_type
3795 TARGET_OS=$llvm_cv_target_os_type
3798 LINKALL=$llvm_cv_link_all_option
3800 NOLINKALL=$llvm_cv_no_link_all_option
3803 case $llvm_cv_platform_type in
3806 cat >>confdefs.h <<\_ACEOF
3807 #define LLVM_ON_UNIX 1
3817 cat >>confdefs.h <<\_ACEOF
3818 #define LLVM_ON_WIN32 1
3828 { echo "$as_me:$LINENO: checking target architecture" >&5
3829 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3830 if test "${llvm_cv_target_arch+set}" = set; then
3831 echo $ECHO_N "(cached) $ECHO_C" >&6
3834 i?86-*) llvm_cv_target_arch="x86" ;;
3835 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3836 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3837 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
3838 arm*-*) llvm_cv_target_arch="ARM" ;;
3839 mips-*) llvm_cv_target_arch="Mips" ;;
3840 xcore-*) llvm_cv_target_arch="XCore" ;;
3841 msp430-*) llvm_cv_target_arch="MSP430" ;;
3842 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
3843 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3844 ptx-*) llvm_cv_target_arch="PTX" ;;
3845 *) llvm_cv_target_arch="Unknown" ;;
3848 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3849 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3851 if test "$llvm_cv_target_arch" = "Unknown" ; then
3852 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3853 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3856 # Determine the LLVM native architecture for the target
3857 case "$llvm_cv_target_arch" in
3858 x86) LLVM_NATIVE_ARCH="X86" ;;
3859 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3860 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3863 ARCH=$llvm_cv_target_arch
3868 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3869 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3870 if test "${ac_cv_path_GREP+set}" = set; then
3871 echo $ECHO_N "(cached) $ECHO_C" >&6
3873 # Extract the first word of "grep ggrep" to use in msg output
3874 if test -z "$GREP"; then
3875 set dummy grep ggrep; ac_prog_name=$2
3876 if test "${ac_cv_path_GREP+set}" = set; then
3877 echo $ECHO_N "(cached) $ECHO_C" >&6
3879 ac_path_GREP_found=false
3880 # Loop through the user's path and test for each of PROGNAME-LIST
3881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3882 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3885 test -z "$as_dir" && as_dir=.
3886 for ac_prog in grep ggrep; do
3887 for ac_exec_ext in '' $ac_executable_extensions; do
3888 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3889 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3890 # Check for GNU ac_path_GREP and select it if it is found.
3891 # Check for GNU $ac_path_GREP
3892 case `"$ac_path_GREP" --version 2>&1` in
3894 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3897 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3900 cat "conftest.in" "conftest.in" >"conftest.tmp"
3901 mv "conftest.tmp" "conftest.in"
3902 cp "conftest.in" "conftest.nl"
3903 echo 'GREP' >> "conftest.nl"
3904 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3905 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3906 ac_count=`expr $ac_count + 1`
3907 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3908 # Best one so far, save it but keep looking for a better one
3909 ac_cv_path_GREP="$ac_path_GREP"
3910 ac_path_GREP_max=$ac_count
3912 # 10*(2^10) chars as input seems more than enough
3913 test $ac_count -gt 10 && break
3915 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3919 $ac_path_GREP_found && break 3
3929 GREP="$ac_cv_path_GREP"
3930 if test -z "$GREP"; then
3931 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3932 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3933 { (exit 1); exit 1; }; }
3937 ac_cv_path_GREP=$GREP
3942 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3943 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3944 GREP="$ac_cv_path_GREP"
3947 { echo "$as_me:$LINENO: checking for egrep" >&5
3948 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3949 if test "${ac_cv_path_EGREP+set}" = set; then
3950 echo $ECHO_N "(cached) $ECHO_C" >&6
3952 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3953 then ac_cv_path_EGREP="$GREP -E"
3955 # Extract the first word of "egrep" to use in msg output
3956 if test -z "$EGREP"; then
3957 set dummy egrep; ac_prog_name=$2
3958 if test "${ac_cv_path_EGREP+set}" = set; then
3959 echo $ECHO_N "(cached) $ECHO_C" >&6
3961 ac_path_EGREP_found=false
3962 # Loop through the user's path and test for each of PROGNAME-LIST
3963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3964 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3967 test -z "$as_dir" && as_dir=.
3968 for ac_prog in egrep; do
3969 for ac_exec_ext in '' $ac_executable_extensions; do
3970 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3971 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3972 # Check for GNU ac_path_EGREP and select it if it is found.
3973 # Check for GNU $ac_path_EGREP
3974 case `"$ac_path_EGREP" --version 2>&1` in
3976 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3979 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3982 cat "conftest.in" "conftest.in" >"conftest.tmp"
3983 mv "conftest.tmp" "conftest.in"
3984 cp "conftest.in" "conftest.nl"
3985 echo 'EGREP' >> "conftest.nl"
3986 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3987 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3988 ac_count=`expr $ac_count + 1`
3989 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3990 # Best one so far, save it but keep looking for a better one
3991 ac_cv_path_EGREP="$ac_path_EGREP"
3992 ac_path_EGREP_max=$ac_count
3994 # 10*(2^10) chars as input seems more than enough
3995 test $ac_count -gt 10 && break
3997 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4001 $ac_path_EGREP_found && break 3
4011 EGREP="$ac_cv_path_EGREP"
4012 if test -z "$EGREP"; then
4013 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4014 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4015 { (exit 1); exit 1; }; }
4019 ac_cv_path_EGREP=$EGREP
4025 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4026 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4027 EGREP="$ac_cv_path_EGREP"
4030 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4031 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4032 if test "${ac_cv_header_stdc+set}" = set; then
4033 echo $ECHO_N "(cached) $ECHO_C" >&6
4035 cat >conftest.$ac_ext <<_ACEOF
4038 cat confdefs.h >>conftest.$ac_ext
4039 cat >>conftest.$ac_ext <<_ACEOF
4040 /* end confdefs.h. */
4054 rm -f conftest.$ac_objext
4055 if { (ac_try="$ac_compile"
4057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4058 *) ac_try_echo=$ac_try;;
4060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4061 (eval "$ac_compile") 2>conftest.er1
4063 grep -v '^ *+' conftest.er1 >conftest.err
4065 cat conftest.err >&5
4066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067 (exit $ac_status); } &&
4068 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4069 { (case "(($ac_try" in
4070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4071 *) ac_try_echo=$ac_try;;
4073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4074 (eval "$ac_try") 2>&5
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); }; } &&
4078 { ac_try='test -s conftest.$ac_objext'
4079 { (case "(($ac_try" in
4080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4081 *) ac_try_echo=$ac_try;;
4083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4084 (eval "$ac_try") 2>&5
4086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087 (exit $ac_status); }; }; then
4088 ac_cv_header_stdc=yes
4090 echo "$as_me: failed program was:" >&5
4091 sed 's/^/| /' conftest.$ac_ext >&5
4093 ac_cv_header_stdc=no
4096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4098 if test $ac_cv_header_stdc = yes; then
4099 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4100 cat >conftest.$ac_ext <<_ACEOF
4103 cat confdefs.h >>conftest.$ac_ext
4104 cat >>conftest.$ac_ext <<_ACEOF
4105 /* end confdefs.h. */
4109 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4110 $EGREP "memchr" >/dev/null 2>&1; then
4113 ac_cv_header_stdc=no
4119 if test $ac_cv_header_stdc = yes; then
4120 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4121 cat >conftest.$ac_ext <<_ACEOF
4124 cat confdefs.h >>conftest.$ac_ext
4125 cat >>conftest.$ac_ext <<_ACEOF
4126 /* end confdefs.h. */
4130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4131 $EGREP "free" >/dev/null 2>&1; then
4134 ac_cv_header_stdc=no
4140 if test $ac_cv_header_stdc = yes; then
4141 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4142 if test "$cross_compiling" = yes; then
4145 cat >conftest.$ac_ext <<_ACEOF
4148 cat confdefs.h >>conftest.$ac_ext
4149 cat >>conftest.$ac_ext <<_ACEOF
4150 /* end confdefs.h. */
4153 #if ((' ' & 0x0FF) == 0x020)
4154 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4155 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4157 # define ISLOWER(c) \
4158 (('a' <= (c) && (c) <= 'i') \
4159 || ('j' <= (c) && (c) <= 'r') \
4160 || ('s' <= (c) && (c) <= 'z'))
4161 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4164 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4169 for (i = 0; i < 256; i++)
4170 if (XOR (islower (i), ISLOWER (i))
4171 || toupper (i) != TOUPPER (i))
4176 rm -f conftest$ac_exeext
4177 if { (ac_try="$ac_link"
4179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4180 *) ac_try_echo=$ac_try;;
4182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4183 (eval "$ac_link") 2>&5
4185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4187 { (case "(($ac_try" in
4188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4189 *) ac_try_echo=$ac_try;;
4191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4192 (eval "$ac_try") 2>&5
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); }; }; then
4198 echo "$as_me: program exited with status $ac_status" >&5
4199 echo "$as_me: failed program was:" >&5
4200 sed 's/^/| /' conftest.$ac_ext >&5
4203 ac_cv_header_stdc=no
4205 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4211 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4212 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4213 if test $ac_cv_header_stdc = yes; then
4215 cat >>confdefs.h <<\_ACEOF
4216 #define STDC_HEADERS 1
4221 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4231 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4232 inttypes.h stdint.h unistd.h
4234 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4235 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4236 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4237 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4238 echo $ECHO_N "(cached) $ECHO_C" >&6
4240 cat >conftest.$ac_ext <<_ACEOF
4243 cat confdefs.h >>conftest.$ac_ext
4244 cat >>conftest.$ac_ext <<_ACEOF
4245 /* end confdefs.h. */
4246 $ac_includes_default
4248 #include <$ac_header>
4250 rm -f conftest.$ac_objext
4251 if { (ac_try="$ac_compile"
4253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4254 *) ac_try_echo=$ac_try;;
4256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4257 (eval "$ac_compile") 2>conftest.er1
4259 grep -v '^ *+' conftest.er1 >conftest.err
4261 cat conftest.err >&5
4262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263 (exit $ac_status); } &&
4264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4265 { (case "(($ac_try" in
4266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4267 *) ac_try_echo=$ac_try;;
4269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4270 (eval "$ac_try") 2>&5
4272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273 (exit $ac_status); }; } &&
4274 { ac_try='test -s conftest.$ac_objext'
4275 { (case "(($ac_try" in
4276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4277 *) ac_try_echo=$ac_try;;
4279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4280 (eval "$ac_try") 2>&5
4282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283 (exit $ac_status); }; }; then
4284 eval "$as_ac_Header=yes"
4286 echo "$as_me: failed program was:" >&5
4287 sed 's/^/| /' conftest.$ac_ext >&5
4289 eval "$as_ac_Header=no"
4292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4294 ac_res=`eval echo '${'$as_ac_Header'}'`
4295 { echo "$as_me:$LINENO: result: $ac_res" >&5
4296 echo "${ECHO_T}$ac_res" >&6; }
4297 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4298 cat >>confdefs.h <<_ACEOF
4299 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4307 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4308 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4309 if test "${ac_cv_c_bigendian+set}" = set; then
4310 echo $ECHO_N "(cached) $ECHO_C" >&6
4312 # See if sys/param.h defines the BYTE_ORDER macro.
4313 cat >conftest.$ac_ext <<_ACEOF
4316 cat confdefs.h >>conftest.$ac_ext
4317 cat >>conftest.$ac_ext <<_ACEOF
4318 /* end confdefs.h. */
4319 #include <sys/types.h>
4320 #include <sys/param.h>
4325 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4333 rm -f conftest.$ac_objext
4334 if { (ac_try="$ac_compile"
4336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4337 *) ac_try_echo=$ac_try;;
4339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4340 (eval "$ac_compile") 2>conftest.er1
4342 grep -v '^ *+' conftest.er1 >conftest.err
4344 cat conftest.err >&5
4345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346 (exit $ac_status); } &&
4347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4348 { (case "(($ac_try" in
4349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4350 *) ac_try_echo=$ac_try;;
4352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4353 (eval "$ac_try") 2>&5
4355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356 (exit $ac_status); }; } &&
4357 { ac_try='test -s conftest.$ac_objext'
4358 { (case "(($ac_try" in
4359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4360 *) ac_try_echo=$ac_try;;
4362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4363 (eval "$ac_try") 2>&5
4365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366 (exit $ac_status); }; }; then
4367 # It does; now see whether it defined to BIG_ENDIAN or not.
4368 cat >conftest.$ac_ext <<_ACEOF
4371 cat confdefs.h >>conftest.$ac_ext
4372 cat >>conftest.$ac_ext <<_ACEOF
4373 /* end confdefs.h. */
4374 #include <sys/types.h>
4375 #include <sys/param.h>
4380 #if BYTE_ORDER != BIG_ENDIAN
4388 rm -f conftest.$ac_objext
4389 if { (ac_try="$ac_compile"
4391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4392 *) ac_try_echo=$ac_try;;
4394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4395 (eval "$ac_compile") 2>conftest.er1
4397 grep -v '^ *+' conftest.er1 >conftest.err
4399 cat conftest.err >&5
4400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401 (exit $ac_status); } &&
4402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4403 { (case "(($ac_try" in
4404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4405 *) ac_try_echo=$ac_try;;
4407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4408 (eval "$ac_try") 2>&5
4410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411 (exit $ac_status); }; } &&
4412 { ac_try='test -s conftest.$ac_objext'
4413 { (case "(($ac_try" in
4414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4415 *) ac_try_echo=$ac_try;;
4417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4418 (eval "$ac_try") 2>&5
4420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421 (exit $ac_status); }; }; then
4422 ac_cv_c_bigendian=yes
4424 echo "$as_me: failed program was:" >&5
4425 sed 's/^/| /' conftest.$ac_ext >&5
4427 ac_cv_c_bigendian=no
4430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4432 echo "$as_me: failed program was:" >&5
4433 sed 's/^/| /' conftest.$ac_ext >&5
4435 # It does not; compile a test program.
4436 if test "$cross_compiling" = yes; then
4437 # try to guess the endianness by grepping values into an object file
4438 ac_cv_c_bigendian=unknown
4439 cat >conftest.$ac_ext <<_ACEOF
4442 cat confdefs.h >>conftest.$ac_ext
4443 cat >>conftest.$ac_ext <<_ACEOF
4444 /* end confdefs.h. */
4445 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4446 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4447 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4448 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4449 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4450 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4454 _ascii (); _ebcdic ();
4459 rm -f conftest.$ac_objext
4460 if { (ac_try="$ac_compile"
4462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4463 *) ac_try_echo=$ac_try;;
4465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4466 (eval "$ac_compile") 2>conftest.er1
4468 grep -v '^ *+' conftest.er1 >conftest.err
4470 cat conftest.err >&5
4471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472 (exit $ac_status); } &&
4473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4474 { (case "(($ac_try" in
4475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4476 *) ac_try_echo=$ac_try;;
4478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4479 (eval "$ac_try") 2>&5
4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482 (exit $ac_status); }; } &&
4483 { ac_try='test -s conftest.$ac_objext'
4484 { (case "(($ac_try" in
4485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4486 *) ac_try_echo=$ac_try;;
4488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4489 (eval "$ac_try") 2>&5
4491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492 (exit $ac_status); }; }; then
4493 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4494 ac_cv_c_bigendian=yes
4496 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4497 if test "$ac_cv_c_bigendian" = unknown; then
4498 ac_cv_c_bigendian=no
4500 # finding both strings is unlikely to happen, but who knows?
4501 ac_cv_c_bigendian=unknown
4505 echo "$as_me: failed program was:" >&5
4506 sed 's/^/| /' conftest.$ac_ext >&5
4511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4513 cat >conftest.$ac_ext <<_ACEOF
4516 cat confdefs.h >>conftest.$ac_ext
4517 cat >>conftest.$ac_ext <<_ACEOF
4518 /* end confdefs.h. */
4519 $ac_includes_default
4524 /* Are we little or big endian? From Harbison&Steele. */
4528 char c[sizeof (long int)];
4531 return u.c[sizeof (long int) - 1] == 1;
4537 rm -f conftest$ac_exeext
4538 if { (ac_try="$ac_link"
4540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4541 *) ac_try_echo=$ac_try;;
4543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4544 (eval "$ac_link") 2>&5
4546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4548 { (case "(($ac_try" in
4549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4550 *) ac_try_echo=$ac_try;;
4552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4553 (eval "$ac_try") 2>&5
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); }; }; then
4557 ac_cv_c_bigendian=no
4559 echo "$as_me: program exited with status $ac_status" >&5
4560 echo "$as_me: failed program was:" >&5
4561 sed 's/^/| /' conftest.$ac_ext >&5
4564 ac_cv_c_bigendian=yes
4566 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4574 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4575 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4576 case $ac_cv_c_bigendian in
4584 { { echo "$as_me:$LINENO: error: unknown endianness
4585 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4586 echo "$as_me: error: unknown endianness
4587 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4588 { (exit 1); exit 1; }; } ;;
4592 if test "$cross_compiling" = yes; then
4593 LLVM_CROSS_COMPILING=1
4596 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4597 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4598 if test "${ac_cv_build_exeext+set}" = set; then
4599 echo $ECHO_N "(cached) $ECHO_C" >&6
4601 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4602 ac_cv_build_exeext=.exe
4604 ac_build_prefix=${build_alias}-
4606 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4607 set dummy ${ac_build_prefix}gcc; ac_word=$2
4608 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4610 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4611 echo $ECHO_N "(cached) $ECHO_C" >&6
4613 if test -n "$BUILD_CC"; then
4614 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4620 test -z "$as_dir" && as_dir=.
4621 for ac_exec_ext in '' $ac_executable_extensions; do
4622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4623 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4633 BUILD_CC=$ac_cv_prog_BUILD_CC
4634 if test -n "$BUILD_CC"; then
4635 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4636 echo "${ECHO_T}$BUILD_CC" >&6; }
4638 { echo "$as_me:$LINENO: result: no" >&5
4639 echo "${ECHO_T}no" >&6; }
4643 if test -z "$BUILD_CC"; then
4644 # Extract the first word of "gcc", so it can be a program name with args.
4645 set dummy gcc; ac_word=$2
4646 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4648 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4649 echo $ECHO_N "(cached) $ECHO_C" >&6
4651 if test -n "$BUILD_CC"; then
4652 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658 test -z "$as_dir" && as_dir=.
4659 for ac_exec_ext in '' $ac_executable_extensions; do
4660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4661 ac_cv_prog_BUILD_CC="gcc"
4662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4671 BUILD_CC=$ac_cv_prog_BUILD_CC
4672 if test -n "$BUILD_CC"; then
4673 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4674 echo "${ECHO_T}$BUILD_CC" >&6; }
4676 { echo "$as_me:$LINENO: result: no" >&5
4677 echo "${ECHO_T}no" >&6; }
4681 if test -z "$BUILD_CC"; then
4682 # Extract the first word of "cc", so it can be a program name with args.
4683 set dummy cc; ac_word=$2
4684 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4686 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4687 echo $ECHO_N "(cached) $ECHO_C" >&6
4689 if test -n "$BUILD_CC"; then
4690 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4697 test -z "$as_dir" && as_dir=.
4698 for ac_exec_ext in '' $ac_executable_extensions; do
4699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4700 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4701 ac_prog_rejected=yes
4704 ac_cv_prog_BUILD_CC="cc"
4705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4712 if test $ac_prog_rejected = yes; then
4713 # We found a bogon in the path, so make sure we never use it.
4714 set dummy $ac_cv_prog_BUILD_CC
4716 if test $# != 0; then
4717 # We chose a different compiler from the bogus one.
4718 # However, it has the same basename, so the bogon will be chosen
4719 # first if we set BUILD_CC to just the basename; use the full file name.
4721 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4726 BUILD_CC=$ac_cv_prog_BUILD_CC
4727 if test -n "$BUILD_CC"; then
4728 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4729 echo "${ECHO_T}$BUILD_CC" >&6; }
4731 { echo "$as_me:$LINENO: result: no" >&5
4732 echo "${ECHO_T}no" >&6; }
4738 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4739 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4740 { (exit 1); exit 1; }; }
4741 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4743 echo 'int main () { return 0; }' > conftest.$ac_ext
4745 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4746 (eval $ac_build_link) 2>&5
4748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749 (exit $ac_status); }; then
4750 for file in conftest.*; do
4752 *.c | *.o | *.obj | *.dSYM) ;;
4753 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4757 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4758 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4759 { (exit 1); exit 1; }; }
4762 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4767 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4768 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4769 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4770 ac_build_exeext=$BUILD_EXEEXT
4772 ac_build_prefix=${build_alias}-
4773 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4774 set dummy ${ac_build_prefix}g++; ac_word=$2
4775 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4777 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4778 echo $ECHO_N "(cached) $ECHO_C" >&6
4780 if test -n "$BUILD_CXX"; then
4781 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4787 test -z "$as_dir" && as_dir=.
4788 for ac_exec_ext in '' $ac_executable_extensions; do
4789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4790 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4800 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4801 if test -n "$BUILD_CXX"; then
4802 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4803 echo "${ECHO_T}$BUILD_CXX" >&6; }
4805 { echo "$as_me:$LINENO: result: no" >&5
4806 echo "${ECHO_T}no" >&6; }
4810 if test -z "$BUILD_CXX"; then
4811 # Extract the first word of "g++", so it can be a program name with args.
4812 set dummy g++; ac_word=$2
4813 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4815 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4816 echo $ECHO_N "(cached) $ECHO_C" >&6
4818 if test -n "$BUILD_CXX"; then
4819 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4825 test -z "$as_dir" && as_dir=.
4826 for ac_exec_ext in '' $ac_executable_extensions; do
4827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4828 ac_cv_prog_BUILD_CXX="g++"
4829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4838 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4839 if test -n "$BUILD_CXX"; then
4840 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4841 echo "${ECHO_T}$BUILD_CXX" >&6; }
4843 { echo "$as_me:$LINENO: result: no" >&5
4844 echo "${ECHO_T}no" >&6; }
4848 if test -z "$BUILD_CXX"; then
4849 # Extract the first word of "c++", so it can be a program name with args.
4850 set dummy c++; ac_word=$2
4851 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4853 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4854 echo $ECHO_N "(cached) $ECHO_C" >&6
4856 if test -n "$BUILD_CXX"; then
4857 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4864 test -z "$as_dir" && as_dir=.
4865 for ac_exec_ext in '' $ac_executable_extensions; do
4866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4867 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4868 ac_prog_rejected=yes
4871 ac_cv_prog_BUILD_CXX="c++"
4872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4879 if test $ac_prog_rejected = yes; then
4880 # We found a bogon in the path, so make sure we never use it.
4881 set dummy $ac_cv_prog_BUILD_CXX
4883 if test $# != 0; then
4884 # We chose a different compiler from the bogus one.
4885 # However, it has the same basename, so the bogon will be chosen
4886 # first if we set BUILD_CXX to just the basename; use the full file name.
4888 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4893 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4894 if test -n "$BUILD_CXX"; then
4895 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4896 echo "${ECHO_T}$BUILD_CXX" >&6; }
4898 { echo "$as_me:$LINENO: result: no" >&5
4899 echo "${ECHO_T}no" >&6; }
4906 LLVM_CROSS_COMPILING=0
4910 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4921 # Check whether --enable-optimized was given.
4922 if test "${enable_optimized+set}" = set; then
4923 enableval=$enable_optimized;
4928 if test ${enableval} = "no" ; then
4932 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4936 # Check whether --enable-profiling was given.
4937 if test "${enable_profiling+set}" = set; then
4938 enableval=$enable_profiling;
4943 if test ${enableval} = "no" ; then
4947 ENABLE_PROFILING=ENABLE_PROFILING=1
4951 # Check whether --enable-assertions was given.
4952 if test "${enable_assertions+set}" = set; then
4953 enableval=$enable_assertions;
4958 if test ${enableval} = "yes" ; then
4962 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4966 # Check whether --enable-expensive-checks was given.
4967 if test "${enable_expensive_checks+set}" = set; then
4968 enableval=$enable_expensive_checks;
4973 if test ${enableval} = "yes" ; then
4974 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4976 EXPENSIVE_CHECKS=yes
4979 ENABLE_EXPENSIVE_CHECKS=
4985 # Check whether --enable-debug-runtime was given.
4986 if test "${enable_debug_runtime+set}" = set; then
4987 enableval=$enable_debug_runtime;
4992 if test ${enableval} = "no" ; then
4996 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5000 # Check whether --enable-debug-symbols was given.
5001 if test "${enable_debug_symbols+set}" = set; then
5002 enableval=$enable_debug_symbols;
5007 if test ${enableval} = "no" ; then
5011 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5015 # Check whether --enable-jit was given.
5016 if test "${enable_jit+set}" = set; then
5017 enableval=$enable_jit;
5022 if test ${enableval} = "no"
5027 case "$llvm_cv_target_arch" in
5028 x86) TARGET_HAS_JIT=1
5030 Sparc) TARGET_HAS_JIT=0
5032 PowerPC) TARGET_HAS_JIT=1
5034 x86_64) TARGET_HAS_JIT=1
5036 ARM) TARGET_HAS_JIT=1
5038 Mips) TARGET_HAS_JIT=1
5040 XCore) TARGET_HAS_JIT=0
5042 MSP430) TARGET_HAS_JIT=0
5044 Hexagon) TARGET_HAS_JIT=0
5046 MBlaze) TARGET_HAS_JIT=0
5048 PTX) TARGET_HAS_JIT=0
5055 # Check whether --enable-docs was given.
5056 if test "${enable_docs+set}" = set; then
5057 enableval=$enable_docs;
5062 case "$enableval" in
5067 default) ENABLE_DOCS=1
5069 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5070 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5071 { (exit 1); exit 1; }; } ;;
5074 # Check whether --enable-doxygen was given.
5075 if test "${enable_doxygen+set}" = set; then
5076 enableval=$enable_doxygen;
5081 case "$enableval" in
5082 yes) ENABLE_DOXYGEN=1
5084 no) ENABLE_DOXYGEN=0
5086 default) ENABLE_DOXYGEN=0
5088 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5089 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5090 { (exit 1); exit 1; }; } ;;
5093 # Check whether --enable-threads was given.
5094 if test "${enable_threads+set}" = set; then
5095 enableval=$enable_threads;
5100 case "$enableval" in
5101 yes) ENABLE_THREADS=1
5103 no) ENABLE_THREADS=0
5105 default) ENABLE_THREADS=1
5107 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5108 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5109 { (exit 1); exit 1; }; } ;;
5112 cat >>confdefs.h <<_ACEOF
5113 #define ENABLE_THREADS $ENABLE_THREADS
5117 # Check whether --enable-pthreads was given.
5118 if test "${enable_pthreads+set}" = set; then
5119 enableval=$enable_pthreads;
5124 case "$enableval" in
5125 yes) ENABLE_PTHREADS=1
5127 no) ENABLE_PTHREADS=0
5129 default) ENABLE_PTHREADS=1
5131 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5132 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5133 { (exit 1); exit 1; }; } ;;
5136 # Check whether --enable-pic was given.
5137 if test "${enable_pic+set}" = set; then
5138 enableval=$enable_pic;
5143 case "$enableval" in
5148 default) ENABLE_PIC=1
5150 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5151 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5152 { (exit 1); exit 1; }; } ;;
5155 cat >>confdefs.h <<_ACEOF
5156 #define ENABLE_PIC $ENABLE_PIC
5160 # Check whether --enable-shared was given.
5161 if test "${enable_shared+set}" = set; then
5162 enableval=$enable_shared;
5167 case "$enableval" in
5168 yes) ENABLE_SHARED=1
5172 default) ENABLE_SHARED=0
5174 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5175 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5176 { (exit 1); exit 1; }; } ;;
5179 # Check whether --enable-embed-stdcxx was given.
5180 if test "${enable_embed_stdcxx+set}" = set; then
5181 enableval=$enable_embed_stdcxx;
5186 case "$enableval" in
5187 yes) ENABLE_EMBED_STDCXX=1
5189 no) ENABLE_EMBED_STDCXX=0
5191 default) ENABLE_EMBED_STDCXX=1
5193 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5194 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5195 { (exit 1); exit 1; }; } ;;
5198 # Check whether --enable-timestamps was given.
5199 if test "${enable_timestamps+set}" = set; then
5200 enableval=$enable_timestamps;
5205 case "$enableval" in
5206 yes) ENABLE_TIMESTAMPS=1
5208 no) ENABLE_TIMESTAMPS=0
5210 default) ENABLE_TIMESTAMPS=1
5212 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5213 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5214 { (exit 1); exit 1; }; } ;;
5217 cat >>confdefs.h <<_ACEOF
5218 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5223 # Check whether --enable-targets was given.
5224 if test "${enable_targets+set}" = set; then
5225 enableval=$enable_targets;
5230 if test "$enableval" = host-only ; then
5233 case "$enableval" in
5234 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 Hexagon CBackend CppBackend MBlaze PTX" ;;
5235 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5237 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5238 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5239 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5240 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5241 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5242 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5243 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5244 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5245 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5246 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5247 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5248 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5249 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5250 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5251 host) case "$llvm_cv_target_arch" in
5252 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5253 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5254 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5255 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5256 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5257 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5258 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5259 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5260 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5261 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5262 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5263 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5264 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5265 echo "$as_me: error: Can not set target to build" >&2;}
5266 { (exit 1); exit 1; }; } ;;
5268 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5269 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5270 { (exit 1); exit 1; }; } ;;
5275 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5278 # Determine whether we are building LLVM support for the native architecture.
5279 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5280 for a_target in $TARGETS_TO_BUILD; do
5281 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5283 cat >>confdefs.h <<_ACEOF
5284 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5287 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5288 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5289 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5290 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5291 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5292 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5295 cat >>confdefs.h <<_ACEOF
5296 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5300 cat >>confdefs.h <<_ACEOF
5301 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5305 cat >>confdefs.h <<_ACEOF
5306 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5310 cat >>confdefs.h <<_ACEOF
5311 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5314 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5316 cat >>confdefs.h <<_ACEOF
5317 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5324 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5325 # target feature def files.
5326 LLVM_ENUM_TARGETS=""
5327 LLVM_ENUM_ASM_PRINTERS=""
5328 LLVM_ENUM_ASM_PARSERS=""
5329 LLVM_ENUM_DISASSEMBLERS=""
5330 for target_to_build in $TARGETS_TO_BUILD; do
5331 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5332 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5333 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5335 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5336 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5338 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5339 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5347 # Check whether --enable-cbe-printf-a was given.
5348 if test "${enable_cbe_printf_a+set}" = set; then
5349 enableval=$enable_cbe_printf_a;
5354 case "$enableval" in
5355 yes) ENABLE_CBE_PRINTF_A=1
5357 no) ENABLE_CBE_PRINTF_A=0
5359 default) ENABLE_CBE_PRINTF_A=1
5361 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5362 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5363 { (exit 1); exit 1; }; } ;;
5366 cat >>confdefs.h <<_ACEOF
5367 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5372 # Check whether --with-optimize-option was given.
5373 if test "${with_optimize_option+set}" = set; then
5374 withval=$with_optimize_option;
5379 { echo "$as_me:$LINENO: checking optimization flags" >&5
5380 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5383 case "$llvm_cv_os_type" in
5384 FreeBSD) optimize_option=-O2 ;;
5385 MingW) optimize_option=-O2 ;;
5386 *) optimize_option=-O3 ;;
5388 *) optimize_option="$withval" ;;
5390 OPTIMIZE_OPTION=$optimize_option
5392 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5393 echo "${ECHO_T}$optimize_option" >&6; }
5396 # Check whether --with-extra-options was given.
5397 if test "${with_extra_options+set}" = set; then
5398 withval=$with_extra_options;
5404 default) EXTRA_OPTIONS= ;;
5405 *) EXTRA_OPTIONS=$withval ;;
5407 EXTRA_OPTIONS=$EXTRA_OPTIONS
5411 # Check whether --with-extra-ld-options was given.
5412 if test "${with_extra_ld_options+set}" = set; then
5413 withval=$with_extra_ld_options;
5419 default) EXTRA_LD_OPTIONS= ;;
5420 *) EXTRA_LD_OPTIONS=$withval ;;
5422 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5425 # Check whether --enable-bindings was given.
5426 if test "${enable_bindings+set}" = set; then
5427 enableval=$enable_bindings;
5432 BINDINGS_TO_BUILD=""
5433 case "$enableval" in
5434 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5435 all ) BINDINGS_TO_BUILD="ocaml" ;;
5436 none | no) BINDINGS_TO_BUILD="" ;;
5437 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5438 case "$a_binding" in
5439 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5440 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5441 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5442 { (exit 1); exit 1; }; } ;;
5449 # Check whether --with-ocaml-libdir was given.
5450 if test "${with_ocaml_libdir+set}" = set; then
5451 withval=$with_ocaml_libdir;
5457 auto) with_ocaml_libdir="$withval" ;;
5458 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5459 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5460 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5461 { (exit 1); exit 1; }; } ;;
5465 # Check whether --with-clang-resource-dir was given.
5466 if test "${with_clang_resource_dir+set}" = set; then
5467 withval=$with_clang_resource_dir;
5473 cat >>confdefs.h <<_ACEOF
5474 #define CLANG_RESOURCE_DIR "$withval"
5479 # Check whether --with-c-include-dirs was given.
5480 if test "${with_c_include_dirs+set}" = set; then
5481 withval=$with_c_include_dirs;
5487 cat >>confdefs.h <<_ACEOF
5488 #define C_INCLUDE_DIRS "$withval"
5492 # Clang normally uses the system c++ headers and libraries. With this option,
5493 # clang will use the ones provided by a gcc installation instead. This option should
5494 # be passed the same value that was used with --prefix when configuring gcc.
5496 # Check whether --with-gcc-toolchain was given.
5497 if test "${with_gcc_toolchain+set}" = set; then
5498 withval=$with_gcc_toolchain;
5504 cat >>confdefs.h <<_ACEOF
5505 #define GCC_INSTALL_PREFIX "$withval"
5510 # Check whether --with-binutils-include was given.
5511 if test "${with_binutils_include+set}" = set; then
5512 withval=$with_binutils_include;
5518 default) WITH_BINUTILS_INCDIR=default ;;
5519 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5520 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5521 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5522 { (exit 1); exit 1; }; } ;;
5524 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5525 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5527 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5528 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5529 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5530 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5531 { (exit 1); exit 1; }; };
5536 # Check whether --with-bug-report-url was given.
5537 if test "${with_bug_report_url+set}" = set; then
5538 withval=$with_bug_report_url;
5540 withval="http://llvm.org/bugs/"
5544 cat >>confdefs.h <<_ACEOF
5545 #define BUG_REPORT_URL "$withval"
5549 # Check whether --enable-libffi was given.
5550 if test "${enable_libffi+set}" = set; then
5551 enableval=$enable_libffi; case "$enableval" in
5552 yes) llvm_cv_enable_libffi="yes" ;;
5553 no) llvm_cv_enable_libffi="no" ;;
5554 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5555 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5556 { (exit 1); exit 1; }; } ;;
5559 llvm_cv_enable_libffi=no
5564 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5565 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5566 if test "${lt_cv_path_NM+set}" = set; then
5567 echo $ECHO_N "(cached) $ECHO_C" >&6
5569 if test -n "$NM"; then
5570 # Let the user override the test.
5573 lt_nm_to_check="${ac_tool_prefix}nm"
5574 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5575 lt_nm_to_check="$lt_nm_to_check nm"
5577 for lt_tmp_nm in $lt_nm_to_check; do
5578 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5579 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5581 test -z "$ac_dir" && ac_dir=.
5582 tmp_nm="$ac_dir/$lt_tmp_nm"
5583 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5584 # Check to see if the nm accepts a BSD-compat flag.
5585 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5586 # nm: unknown option "B" ignored
5587 # Tru64's nm complains that /dev/null is an invalid object file
5588 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5589 */dev/null* | *'Invalid file or object type'*)
5590 lt_cv_path_NM="$tmp_nm -B"
5594 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5596 lt_cv_path_NM="$tmp_nm -p"
5600 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5601 continue # so that we can try to find one that supports BSD flags
5610 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5613 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5614 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5619 { echo "$as_me:$LINENO: checking for GNU make" >&5
5620 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5621 if test "${llvm_cv_gnu_make_command+set}" = set; then
5622 echo $ECHO_N "(cached) $ECHO_C" >&6
5624 llvm_cv_gnu_make_command=''
5625 for a in "$MAKE" make gmake gnumake ; do
5626 if test -z "$a" ; then continue ; fi ;
5627 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5629 llvm_cv_gnu_make_command=$a ;
5634 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5635 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5636 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5640 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5641 echo "${ECHO_T}\"Not found\"" >&6; };
5645 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5646 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5648 if test "$LN_S" = "ln -s"; then
5649 { echo "$as_me:$LINENO: result: yes" >&5
5650 echo "${ECHO_T}yes" >&6; }
5652 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5653 echo "${ECHO_T}no, using $LN_S" >&6; }
5656 # Extract the first word of "cmp", so it can be a program name with args.
5657 set dummy cmp; ac_word=$2
5658 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5660 if test "${ac_cv_path_CMP+set}" = set; then
5661 echo $ECHO_N "(cached) $ECHO_C" >&6
5665 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5672 test -z "$as_dir" && as_dir=.
5673 for ac_exec_ext in '' $ac_executable_extensions; do
5674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5675 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5683 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5688 if test -n "$CMP"; then
5689 { echo "$as_me:$LINENO: result: $CMP" >&5
5690 echo "${ECHO_T}$CMP" >&6; }
5692 { echo "$as_me:$LINENO: result: no" >&5
5693 echo "${ECHO_T}no" >&6; }
5697 # Extract the first word of "cp", so it can be a program name with args.
5698 set dummy cp; ac_word=$2
5699 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5701 if test "${ac_cv_path_CP+set}" = set; then
5702 echo $ECHO_N "(cached) $ECHO_C" >&6
5706 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5713 test -z "$as_dir" && as_dir=.
5714 for ac_exec_ext in '' $ac_executable_extensions; do
5715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5716 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5724 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5729 if test -n "$CP"; then
5730 { echo "$as_me:$LINENO: result: $CP" >&5
5731 echo "${ECHO_T}$CP" >&6; }
5733 { echo "$as_me:$LINENO: result: no" >&5
5734 echo "${ECHO_T}no" >&6; }
5738 # Extract the first word of "date", so it can be a program name with args.
5739 set dummy date; ac_word=$2
5740 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5742 if test "${ac_cv_path_DATE+set}" = set; then
5743 echo $ECHO_N "(cached) $ECHO_C" >&6
5747 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5754 test -z "$as_dir" && as_dir=.
5755 for ac_exec_ext in '' $ac_executable_extensions; do
5756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5757 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5765 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5769 DATE=$ac_cv_path_DATE
5770 if test -n "$DATE"; then
5771 { echo "$as_me:$LINENO: result: $DATE" >&5
5772 echo "${ECHO_T}$DATE" >&6; }
5774 { echo "$as_me:$LINENO: result: no" >&5
5775 echo "${ECHO_T}no" >&6; }
5779 # Extract the first word of "find", so it can be a program name with args.
5780 set dummy find; ac_word=$2
5781 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5783 if test "${ac_cv_path_FIND+set}" = set; then
5784 echo $ECHO_N "(cached) $ECHO_C" >&6
5788 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5795 test -z "$as_dir" && as_dir=.
5796 for ac_exec_ext in '' $ac_executable_extensions; do
5797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5798 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5806 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5810 FIND=$ac_cv_path_FIND
5811 if test -n "$FIND"; then
5812 { echo "$as_me:$LINENO: result: $FIND" >&5
5813 echo "${ECHO_T}$FIND" >&6; }
5815 { echo "$as_me:$LINENO: result: no" >&5
5816 echo "${ECHO_T}no" >&6; }
5820 # Extract the first word of "grep", so it can be a program name with args.
5821 set dummy grep; ac_word=$2
5822 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5824 if test "${ac_cv_path_GREP+set}" = set; then
5825 echo $ECHO_N "(cached) $ECHO_C" >&6
5829 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5836 test -z "$as_dir" && as_dir=.
5837 for ac_exec_ext in '' $ac_executable_extensions; do
5838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5839 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5847 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5851 GREP=$ac_cv_path_GREP
5852 if test -n "$GREP"; then
5853 { echo "$as_me:$LINENO: result: $GREP" >&5
5854 echo "${ECHO_T}$GREP" >&6; }
5856 { echo "$as_me:$LINENO: result: no" >&5
5857 echo "${ECHO_T}no" >&6; }
5861 # Extract the first word of "mkdir", so it can be a program name with args.
5862 set dummy mkdir; ac_word=$2
5863 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5865 if test "${ac_cv_path_MKDIR+set}" = set; then
5866 echo $ECHO_N "(cached) $ECHO_C" >&6
5870 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5877 test -z "$as_dir" && as_dir=.
5878 for ac_exec_ext in '' $ac_executable_extensions; do
5879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5880 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5888 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5892 MKDIR=$ac_cv_path_MKDIR
5893 if test -n "$MKDIR"; then
5894 { echo "$as_me:$LINENO: result: $MKDIR" >&5
5895 echo "${ECHO_T}$MKDIR" >&6; }
5897 { echo "$as_me:$LINENO: result: no" >&5
5898 echo "${ECHO_T}no" >&6; }
5902 # Extract the first word of "mv", so it can be a program name with args.
5903 set dummy mv; ac_word=$2
5904 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5906 if test "${ac_cv_path_MV+set}" = set; then
5907 echo $ECHO_N "(cached) $ECHO_C" >&6
5911 ac_cv_path_MV="$MV" # Let the user override the test with a path.
5914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5918 test -z "$as_dir" && as_dir=.
5919 for ac_exec_ext in '' $ac_executable_extensions; do
5920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5921 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5929 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
5934 if test -n "$MV"; then
5935 { echo "$as_me:$LINENO: result: $MV" >&5
5936 echo "${ECHO_T}$MV" >&6; }
5938 { echo "$as_me:$LINENO: result: no" >&5
5939 echo "${ECHO_T}no" >&6; }
5943 if test -n "$ac_tool_prefix"; then
5944 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5945 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5946 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5948 if test "${ac_cv_prog_RANLIB+set}" = set; then
5949 echo $ECHO_N "(cached) $ECHO_C" >&6
5951 if test -n "$RANLIB"; then
5952 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5958 test -z "$as_dir" && as_dir=.
5959 for ac_exec_ext in '' $ac_executable_extensions; do
5960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5961 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5971 RANLIB=$ac_cv_prog_RANLIB
5972 if test -n "$RANLIB"; then
5973 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5974 echo "${ECHO_T}$RANLIB" >&6; }
5976 { echo "$as_me:$LINENO: result: no" >&5
5977 echo "${ECHO_T}no" >&6; }
5982 if test -z "$ac_cv_prog_RANLIB"; then
5983 ac_ct_RANLIB=$RANLIB
5984 # Extract the first word of "ranlib", so it can be a program name with args.
5985 set dummy ranlib; ac_word=$2
5986 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5988 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5989 echo $ECHO_N "(cached) $ECHO_C" >&6
5991 if test -n "$ac_ct_RANLIB"; then
5992 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5998 test -z "$as_dir" && as_dir=.
5999 for ac_exec_ext in '' $ac_executable_extensions; do
6000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6001 ac_cv_prog_ac_ct_RANLIB="ranlib"
6002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6011 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6012 if test -n "$ac_ct_RANLIB"; then
6013 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6014 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6016 { echo "$as_me:$LINENO: result: no" >&5
6017 echo "${ECHO_T}no" >&6; }
6020 if test "x$ac_ct_RANLIB" = x; then
6023 case $cross_compiling:$ac_tool_warned in
6025 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6026 whose name does not start with the host triplet. If you think this
6027 configuration is useful to you, please write to autoconf@gnu.org." >&5
6028 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6029 whose name does not start with the host triplet. If you think this
6030 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6031 ac_tool_warned=yes ;;
6033 RANLIB=$ac_ct_RANLIB
6036 RANLIB="$ac_cv_prog_RANLIB"
6039 if test -n "$ac_tool_prefix"; then
6040 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6041 set dummy ${ac_tool_prefix}ar; ac_word=$2
6042 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6044 if test "${ac_cv_prog_AR+set}" = set; then
6045 echo $ECHO_N "(cached) $ECHO_C" >&6
6047 if test -n "$AR"; then
6048 ac_cv_prog_AR="$AR" # Let the user override the test.
6050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6054 test -z "$as_dir" && as_dir=.
6055 for ac_exec_ext in '' $ac_executable_extensions; do
6056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6057 ac_cv_prog_AR="${ac_tool_prefix}ar"
6058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6068 if test -n "$AR"; then
6069 { echo "$as_me:$LINENO: result: $AR" >&5
6070 echo "${ECHO_T}$AR" >&6; }
6072 { echo "$as_me:$LINENO: result: no" >&5
6073 echo "${ECHO_T}no" >&6; }
6078 if test -z "$ac_cv_prog_AR"; then
6080 # Extract the first word of "ar", so it can be a program name with args.
6081 set dummy ar; ac_word=$2
6082 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6084 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6085 echo $ECHO_N "(cached) $ECHO_C" >&6
6087 if test -n "$ac_ct_AR"; then
6088 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6094 test -z "$as_dir" && as_dir=.
6095 for ac_exec_ext in '' $ac_executable_extensions; do
6096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6097 ac_cv_prog_ac_ct_AR="ar"
6098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6107 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6108 if test -n "$ac_ct_AR"; then
6109 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6110 echo "${ECHO_T}$ac_ct_AR" >&6; }
6112 { echo "$as_me:$LINENO: result: no" >&5
6113 echo "${ECHO_T}no" >&6; }
6116 if test "x$ac_ct_AR" = x; then
6119 case $cross_compiling:$ac_tool_warned in
6121 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6122 whose name does not start with the host triplet. If you think this
6123 configuration is useful to you, please write to autoconf@gnu.org." >&5
6124 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6125 whose name does not start with the host triplet. If you think this
6126 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6127 ac_tool_warned=yes ;;
6135 # Extract the first word of "rm", so it can be a program name with args.
6136 set dummy rm; ac_word=$2
6137 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6139 if test "${ac_cv_path_RM+set}" = set; then
6140 echo $ECHO_N "(cached) $ECHO_C" >&6
6144 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6151 test -z "$as_dir" && as_dir=.
6152 for ac_exec_ext in '' $ac_executable_extensions; do
6153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6154 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6162 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6167 if test -n "$RM"; then
6168 { echo "$as_me:$LINENO: result: $RM" >&5
6169 echo "${ECHO_T}$RM" >&6; }
6171 { echo "$as_me:$LINENO: result: no" >&5
6172 echo "${ECHO_T}no" >&6; }
6176 # Extract the first word of "sed", so it can be a program name with args.
6177 set dummy sed; ac_word=$2
6178 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6180 if test "${ac_cv_path_SED+set}" = set; then
6181 echo $ECHO_N "(cached) $ECHO_C" >&6
6185 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6192 test -z "$as_dir" && as_dir=.
6193 for ac_exec_ext in '' $ac_executable_extensions; do
6194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6195 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6203 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6208 if test -n "$SED"; then
6209 { echo "$as_me:$LINENO: result: $SED" >&5
6210 echo "${ECHO_T}$SED" >&6; }
6212 { echo "$as_me:$LINENO: result: no" >&5
6213 echo "${ECHO_T}no" >&6; }
6217 # Extract the first word of "tar", so it can be a program name with args.
6218 set dummy tar; ac_word=$2
6219 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6221 if test "${ac_cv_path_TAR+set}" = set; then
6222 echo $ECHO_N "(cached) $ECHO_C" >&6
6226 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6233 test -z "$as_dir" && as_dir=.
6234 for ac_exec_ext in '' $ac_executable_extensions; do
6235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6236 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6244 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6249 if test -n "$TAR"; then
6250 { echo "$as_me:$LINENO: result: $TAR" >&5
6251 echo "${ECHO_T}$TAR" >&6; }
6253 { echo "$as_me:$LINENO: result: no" >&5
6254 echo "${ECHO_T}no" >&6; }
6258 # Extract the first word of "pwd", so it can be a program name with args.
6259 set dummy pwd; ac_word=$2
6260 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6262 if test "${ac_cv_path_BINPWD+set}" = set; then
6263 echo $ECHO_N "(cached) $ECHO_C" >&6
6267 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6274 test -z "$as_dir" && as_dir=.
6275 for ac_exec_ext in '' $ac_executable_extensions; do
6276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6277 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6285 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6289 BINPWD=$ac_cv_path_BINPWD
6290 if test -n "$BINPWD"; then
6291 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6292 echo "${ECHO_T}$BINPWD" >&6; }
6294 { echo "$as_me:$LINENO: result: no" >&5
6295 echo "${ECHO_T}no" >&6; }
6300 # Extract the first word of "Graphviz", so it can be a program name with args.
6301 set dummy Graphviz; ac_word=$2
6302 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6304 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6305 echo $ECHO_N "(cached) $ECHO_C" >&6
6309 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6316 test -z "$as_dir" && as_dir=.
6317 for ac_exec_ext in '' $ac_executable_extensions; do
6318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6319 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6327 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6331 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6332 if test -n "$GRAPHVIZ"; then
6333 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6334 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6336 { echo "$as_me:$LINENO: result: no" >&5
6337 echo "${ECHO_T}no" >&6; }
6341 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6343 cat >>confdefs.h <<\_ACEOF
6344 #define HAVE_GRAPHVIZ 1
6347 if test "$llvm_cv_os_type" = "MingW" ; then
6348 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6351 cat >>confdefs.h <<_ACEOF
6352 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6356 # Extract the first word of "dot", so it can be a program name with args.
6357 set dummy dot; ac_word=$2
6358 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6360 if test "${ac_cv_path_DOT+set}" = set; then
6361 echo $ECHO_N "(cached) $ECHO_C" >&6
6365 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6372 test -z "$as_dir" && as_dir=.
6373 for ac_exec_ext in '' $ac_executable_extensions; do
6374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6375 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6383 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6388 if test -n "$DOT"; then
6389 { echo "$as_me:$LINENO: result: $DOT" >&5
6390 echo "${ECHO_T}$DOT" >&6; }
6392 { echo "$as_me:$LINENO: result: no" >&5
6393 echo "${ECHO_T}no" >&6; }
6397 if test "$DOT" != "echo dot" ; then
6399 cat >>confdefs.h <<\_ACEOF
6403 if test "$llvm_cv_os_type" = "MingW" ; then
6404 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6407 cat >>confdefs.h <<_ACEOF
6408 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6412 # Extract the first word of "fdp", so it can be a program name with args.
6413 set dummy fdp; ac_word=$2
6414 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6416 if test "${ac_cv_path_FDP+set}" = set; then
6417 echo $ECHO_N "(cached) $ECHO_C" >&6
6421 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6428 test -z "$as_dir" && as_dir=.
6429 for ac_exec_ext in '' $ac_executable_extensions; do
6430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6431 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6439 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6444 if test -n "$FDP"; then
6445 { echo "$as_me:$LINENO: result: $FDP" >&5
6446 echo "${ECHO_T}$FDP" >&6; }
6448 { echo "$as_me:$LINENO: result: no" >&5
6449 echo "${ECHO_T}no" >&6; }
6453 if test "$FDP" != "echo fdp" ; then
6455 cat >>confdefs.h <<\_ACEOF
6459 if test "$llvm_cv_os_type" = "MingW" ; then
6460 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6463 cat >>confdefs.h <<_ACEOF
6464 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6468 # Extract the first word of "neato", so it can be a program name with args.
6469 set dummy neato; ac_word=$2
6470 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6472 if test "${ac_cv_path_NEATO+set}" = set; then
6473 echo $ECHO_N "(cached) $ECHO_C" >&6
6477 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6484 test -z "$as_dir" && as_dir=.
6485 for ac_exec_ext in '' $ac_executable_extensions; do
6486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6487 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6495 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6499 NEATO=$ac_cv_path_NEATO
6500 if test -n "$NEATO"; then
6501 { echo "$as_me:$LINENO: result: $NEATO" >&5
6502 echo "${ECHO_T}$NEATO" >&6; }
6504 { echo "$as_me:$LINENO: result: no" >&5
6505 echo "${ECHO_T}no" >&6; }
6509 if test "$NEATO" != "echo neato" ; then
6511 cat >>confdefs.h <<\_ACEOF
6512 #define HAVE_NEATO 1
6515 if test "$llvm_cv_os_type" = "MingW" ; then
6516 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6519 cat >>confdefs.h <<_ACEOF
6520 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6524 # Extract the first word of "twopi", so it can be a program name with args.
6525 set dummy twopi; ac_word=$2
6526 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6528 if test "${ac_cv_path_TWOPI+set}" = set; then
6529 echo $ECHO_N "(cached) $ECHO_C" >&6
6533 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6540 test -z "$as_dir" && as_dir=.
6541 for ac_exec_ext in '' $ac_executable_extensions; do
6542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6543 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6551 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6555 TWOPI=$ac_cv_path_TWOPI
6556 if test -n "$TWOPI"; then
6557 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6558 echo "${ECHO_T}$TWOPI" >&6; }
6560 { echo "$as_me:$LINENO: result: no" >&5
6561 echo "${ECHO_T}no" >&6; }
6565 if test "$TWOPI" != "echo twopi" ; then
6567 cat >>confdefs.h <<\_ACEOF
6568 #define HAVE_TWOPI 1
6571 if test "$llvm_cv_os_type" = "MingW" ; then
6572 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6575 cat >>confdefs.h <<_ACEOF
6576 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6580 # Extract the first word of "circo", so it can be a program name with args.
6581 set dummy circo; ac_word=$2
6582 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6584 if test "${ac_cv_path_CIRCO+set}" = set; then
6585 echo $ECHO_N "(cached) $ECHO_C" >&6
6589 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6596 test -z "$as_dir" && as_dir=.
6597 for ac_exec_ext in '' $ac_executable_extensions; do
6598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6599 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6607 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6611 CIRCO=$ac_cv_path_CIRCO
6612 if test -n "$CIRCO"; then
6613 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6614 echo "${ECHO_T}$CIRCO" >&6; }
6616 { echo "$as_me:$LINENO: result: no" >&5
6617 echo "${ECHO_T}no" >&6; }
6621 if test "$CIRCO" != "echo circo" ; then
6623 cat >>confdefs.h <<\_ACEOF
6624 #define HAVE_CIRCO 1
6627 if test "$llvm_cv_os_type" = "MingW" ; then
6628 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6631 cat >>confdefs.h <<_ACEOF
6632 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6636 for ac_prog in gv gsview32
6638 # Extract the first word of "$ac_prog", so it can be a program name with args.
6639 set dummy $ac_prog; ac_word=$2
6640 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6642 if test "${ac_cv_path_GV+set}" = set; then
6643 echo $ECHO_N "(cached) $ECHO_C" >&6
6647 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6654 test -z "$as_dir" && as_dir=.
6655 for ac_exec_ext in '' $ac_executable_extensions; do
6656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6657 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6669 if test -n "$GV"; then
6670 { echo "$as_me:$LINENO: result: $GV" >&5
6671 echo "${ECHO_T}$GV" >&6; }
6673 { echo "$as_me:$LINENO: result: no" >&5
6674 echo "${ECHO_T}no" >&6; }
6678 test -n "$GV" && break
6680 test -n "$GV" || GV="echo gv"
6682 if test "$GV" != "echo gv" ; then
6684 cat >>confdefs.h <<\_ACEOF
6688 if test "$llvm_cv_os_type" = "MingW" ; then
6689 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6692 cat >>confdefs.h <<_ACEOF
6693 #define LLVM_PATH_GV "$GV${EXEEXT}"
6697 # Extract the first word of "dotty", so it can be a program name with args.
6698 set dummy dotty; ac_word=$2
6699 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6701 if test "${ac_cv_path_DOTTY+set}" = set; then
6702 echo $ECHO_N "(cached) $ECHO_C" >&6
6706 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6713 test -z "$as_dir" && as_dir=.
6714 for ac_exec_ext in '' $ac_executable_extensions; do
6715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6716 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6724 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6728 DOTTY=$ac_cv_path_DOTTY
6729 if test -n "$DOTTY"; then
6730 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6731 echo "${ECHO_T}$DOTTY" >&6; }
6733 { echo "$as_me:$LINENO: result: no" >&5
6734 echo "${ECHO_T}no" >&6; }
6738 if test "$DOTTY" != "echo dotty" ; then
6740 cat >>confdefs.h <<\_ACEOF
6741 #define HAVE_DOTTY 1
6744 if test "$llvm_cv_os_type" = "MingW" ; then
6745 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6748 cat >>confdefs.h <<_ACEOF
6749 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6753 # Extract the first word of "xdot.py", so it can be a program name with args.
6754 set dummy xdot.py; ac_word=$2
6755 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6757 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6758 echo $ECHO_N "(cached) $ECHO_C" >&6
6762 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6769 test -z "$as_dir" && as_dir=.
6770 for ac_exec_ext in '' $ac_executable_extensions; do
6771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6772 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6780 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6784 XDOT_PY=$ac_cv_path_XDOT_PY
6785 if test -n "$XDOT_PY"; then
6786 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6787 echo "${ECHO_T}$XDOT_PY" >&6; }
6789 { echo "$as_me:$LINENO: result: no" >&5
6790 echo "${ECHO_T}no" >&6; }
6794 if test "$XDOT_PY" != "echo xdot.py" ; then
6796 cat >>confdefs.h <<\_ACEOF
6797 #define HAVE_XDOT_PY 1
6800 if test "$llvm_cv_os_type" = "MingW" ; then
6801 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6804 cat >>confdefs.h <<_ACEOF
6805 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6811 # Extract the first word of "perl", so it can be a program name with args.
6812 set dummy perl; ac_word=$2
6813 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6815 if test "${ac_cv_path_PERL+set}" = set; then
6816 echo $ECHO_N "(cached) $ECHO_C" >&6
6820 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6827 test -z "$as_dir" && as_dir=.
6828 for ac_exec_ext in '' $ac_executable_extensions; do
6829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6830 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6838 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
6842 PERL=$ac_cv_path_PERL
6843 if test -n "$PERL"; then
6844 { echo "$as_me:$LINENO: result: $PERL" >&5
6845 echo "${ECHO_T}$PERL" >&6; }
6847 { echo "$as_me:$LINENO: result: no" >&5
6848 echo "${ECHO_T}no" >&6; }
6852 if test "$PERL" != "none"; then
6853 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
6854 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
6855 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
6856 { echo "$as_me:$LINENO: result: yes" >&5
6857 echo "${ECHO_T}yes" >&6; }
6860 { echo "$as_me:$LINENO: result: not found" >&5
6861 echo "${ECHO_T}not found" >&6; }
6866 if test x"$PERL" = xnone; then
6869 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
6870 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
6871 { (exit 1); exit 1; }; }
6877 # Find a good install program. We prefer a C program (faster),
6878 # so one script is as good as another. But avoid the broken or
6879 # incompatible versions:
6880 # SysV /etc/install, /usr/sbin/install
6881 # SunOS /usr/etc/install
6882 # IRIX /sbin/install
6884 # AmigaOS /C/install, which installs bootblocks on floppy discs
6885 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6886 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6887 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6888 # OS/2's system install, which has a completely different semantic
6889 # ./install, which can be erroneously created by make from ./install.sh.
6890 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6891 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6892 if test -z "$INSTALL"; then
6893 if test "${ac_cv_path_install+set}" = set; then
6894 echo $ECHO_N "(cached) $ECHO_C" >&6
6896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6900 test -z "$as_dir" && as_dir=.
6901 # Account for people who put trailing slashes in PATH elements.
6903 ./ | .// | /cC/* | \
6904 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6905 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6908 # OSF1 and SCO ODT 3.0 have their own names for install.
6909 # Don't use installbsd from OSF since it installs stuff as root
6911 for ac_prog in ginstall scoinst install; do
6912 for ac_exec_ext in '' $ac_executable_extensions; do
6913 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6914 if test $ac_prog = install &&
6915 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6916 # AIX install. It has an incompatible calling convention.
6918 elif test $ac_prog = install &&
6919 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6920 # program-specific install script used by HP pwplus--don't use.
6923 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6936 if test "${ac_cv_path_install+set}" = set; then
6937 INSTALL=$ac_cv_path_install
6939 # As a last resort, use the slow shell script. Don't cache a
6940 # value for INSTALL within a source directory, because that will
6941 # break other packages using the cache if that directory is
6942 # removed, or if the value is a relative name.
6943 INSTALL=$ac_install_sh
6946 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6947 echo "${ECHO_T}$INSTALL" >&6; }
6949 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6950 # It thinks the first close brace ends the variable substitution.
6951 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6953 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6955 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6958 [\\/$]* | ?:[\\/]* ) ;;
6959 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6962 # Extract the first word of "bzip2", so it can be a program name with args.
6963 set dummy bzip2; ac_word=$2
6964 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6966 if test "${ac_cv_path_BZIP2+set}" = set; then
6967 echo $ECHO_N "(cached) $ECHO_C" >&6
6971 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6978 test -z "$as_dir" && as_dir=.
6979 for ac_exec_ext in '' $ac_executable_extensions; do
6980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6981 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6992 BZIP2=$ac_cv_path_BZIP2
6993 if test -n "$BZIP2"; then
6994 { echo "$as_me:$LINENO: result: $BZIP2" >&5
6995 echo "${ECHO_T}$BZIP2" >&6; }
6997 { echo "$as_me:$LINENO: result: no" >&5
6998 echo "${ECHO_T}no" >&6; }
7002 # Extract the first word of "cat", so it can be a program name with args.
7003 set dummy cat; ac_word=$2
7004 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7006 if test "${ac_cv_path_CAT+set}" = set; then
7007 echo $ECHO_N "(cached) $ECHO_C" >&6
7011 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7018 test -z "$as_dir" && as_dir=.
7019 for ac_exec_ext in '' $ac_executable_extensions; do
7020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7021 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7033 if test -n "$CAT"; then
7034 { echo "$as_me:$LINENO: result: $CAT" >&5
7035 echo "${ECHO_T}$CAT" >&6; }
7037 { echo "$as_me:$LINENO: result: no" >&5
7038 echo "${ECHO_T}no" >&6; }
7042 # Extract the first word of "doxygen", so it can be a program name with args.
7043 set dummy doxygen; ac_word=$2
7044 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7046 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7047 echo $ECHO_N "(cached) $ECHO_C" >&6
7051 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7058 test -z "$as_dir" && as_dir=.
7059 for ac_exec_ext in '' $ac_executable_extensions; do
7060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7061 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7072 DOXYGEN=$ac_cv_path_DOXYGEN
7073 if test -n "$DOXYGEN"; then
7074 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7075 echo "${ECHO_T}$DOXYGEN" >&6; }
7077 { echo "$as_me:$LINENO: result: no" >&5
7078 echo "${ECHO_T}no" >&6; }
7082 # Extract the first word of "groff", so it can be a program name with args.
7083 set dummy groff; ac_word=$2
7084 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7086 if test "${ac_cv_path_GROFF+set}" = set; then
7087 echo $ECHO_N "(cached) $ECHO_C" >&6
7091 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7098 test -z "$as_dir" && as_dir=.
7099 for ac_exec_ext in '' $ac_executable_extensions; do
7100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7101 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7112 GROFF=$ac_cv_path_GROFF
7113 if test -n "$GROFF"; then
7114 { echo "$as_me:$LINENO: result: $GROFF" >&5
7115 echo "${ECHO_T}$GROFF" >&6; }
7117 { echo "$as_me:$LINENO: result: no" >&5
7118 echo "${ECHO_T}no" >&6; }
7122 # Extract the first word of "gzip", so it can be a program name with args.
7123 set dummy gzip; ac_word=$2
7124 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7126 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7127 echo $ECHO_N "(cached) $ECHO_C" >&6
7131 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7138 test -z "$as_dir" && as_dir=.
7139 for ac_exec_ext in '' $ac_executable_extensions; do
7140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7141 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7152 GZIPBIN=$ac_cv_path_GZIPBIN
7153 if test -n "$GZIPBIN"; then
7154 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7155 echo "${ECHO_T}$GZIPBIN" >&6; }
7157 { echo "$as_me:$LINENO: result: no" >&5
7158 echo "${ECHO_T}no" >&6; }
7162 # Extract the first word of "pod2html", so it can be a program name with args.
7163 set dummy pod2html; ac_word=$2
7164 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7166 if test "${ac_cv_path_POD2HTML+set}" = set; then
7167 echo $ECHO_N "(cached) $ECHO_C" >&6
7171 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7178 test -z "$as_dir" && as_dir=.
7179 for ac_exec_ext in '' $ac_executable_extensions; do
7180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7181 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7192 POD2HTML=$ac_cv_path_POD2HTML
7193 if test -n "$POD2HTML"; then
7194 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7195 echo "${ECHO_T}$POD2HTML" >&6; }
7197 { echo "$as_me:$LINENO: result: no" >&5
7198 echo "${ECHO_T}no" >&6; }
7202 # Extract the first word of "pod2man", so it can be a program name with args.
7203 set dummy pod2man; ac_word=$2
7204 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7206 if test "${ac_cv_path_POD2MAN+set}" = set; then
7207 echo $ECHO_N "(cached) $ECHO_C" >&6
7211 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7218 test -z "$as_dir" && as_dir=.
7219 for ac_exec_ext in '' $ac_executable_extensions; do
7220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7221 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7232 POD2MAN=$ac_cv_path_POD2MAN
7233 if test -n "$POD2MAN"; then
7234 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7235 echo "${ECHO_T}$POD2MAN" >&6; }
7237 { echo "$as_me:$LINENO: result: no" >&5
7238 echo "${ECHO_T}no" >&6; }
7242 # Extract the first word of "pdfroff", so it can be a program name with args.
7243 set dummy pdfroff; ac_word=$2
7244 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7246 if test "${ac_cv_path_PDFROFF+set}" = set; then
7247 echo $ECHO_N "(cached) $ECHO_C" >&6
7251 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7258 test -z "$as_dir" && as_dir=.
7259 for ac_exec_ext in '' $ac_executable_extensions; do
7260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7261 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7272 PDFROFF=$ac_cv_path_PDFROFF
7273 if test -n "$PDFROFF"; then
7274 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7275 echo "${ECHO_T}$PDFROFF" >&6; }
7277 { echo "$as_me:$LINENO: result: no" >&5
7278 echo "${ECHO_T}no" >&6; }
7282 # Extract the first word of "runtest", so it can be a program name with args.
7283 set dummy runtest; ac_word=$2
7284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7286 if test "${ac_cv_path_RUNTEST+set}" = set; then
7287 echo $ECHO_N "(cached) $ECHO_C" >&6
7291 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7298 test -z "$as_dir" && as_dir=.
7299 for ac_exec_ext in '' $ac_executable_extensions; do
7300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7301 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7312 RUNTEST=$ac_cv_path_RUNTEST
7313 if test -n "$RUNTEST"; then
7314 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7315 echo "${ECHO_T}$RUNTEST" >&6; }
7317 { echo "$as_me:$LINENO: result: no" >&5
7318 echo "${ECHO_T}no" >&6; }
7324 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7325 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7327 # Check whether --with-tclinclude was given.
7328 if test "${with_tclinclude+set}" = set; then
7329 withval=$with_tclinclude; with_tclinclude=${withval}
7334 if test "${ac_cv_path_tclsh+set}" = set; then
7335 echo $ECHO_N "(cached) $ECHO_C" >&6
7338 if test x"${with_tclinclude}" != x ; then
7339 if test -f ${with_tclinclude}/tclsh ; then
7340 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7341 elif test -f ${with_tclinclude}/src/tclsh ; then
7342 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7344 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7345 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7346 { (exit 1); exit 1; }; }
7352 if test x"${ac_cv_path_tclsh}" = x ; then
7353 { echo "$as_me:$LINENO: result: none" >&5
7354 echo "${ECHO_T}none" >&6; }
7355 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
7357 # Extract the first word of "$ac_prog", so it can be a program name with args.
7358 set dummy $ac_prog; ac_word=$2
7359 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7361 if test "${ac_cv_path_TCLSH+set}" = set; then
7362 echo $ECHO_N "(cached) $ECHO_C" >&6
7366 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7373 test -z "$as_dir" && as_dir=.
7374 for ac_exec_ext in '' $ac_executable_extensions; do
7375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7376 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7387 TCLSH=$ac_cv_path_TCLSH
7388 if test -n "$TCLSH"; then
7389 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7390 echo "${ECHO_T}$TCLSH" >&6; }
7392 { echo "$as_me:$LINENO: result: no" >&5
7393 echo "${ECHO_T}no" >&6; }
7397 test -n "$TCLSH" && break
7400 if test x"${TCLSH}" = x ; then
7401 ac_cv_path_tclsh='';
7403 ac_cv_path_tclsh="${TCLSH}";
7406 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7407 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7408 TCLSH="${ac_cv_path_tclsh}"
7412 # Extract the first word of "zip", so it can be a program name with args.
7413 set dummy zip; ac_word=$2
7414 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7416 if test "${ac_cv_path_ZIP+set}" = set; then
7417 echo $ECHO_N "(cached) $ECHO_C" >&6
7421 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7428 test -z "$as_dir" && as_dir=.
7429 for ac_exec_ext in '' $ac_executable_extensions; do
7430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7431 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7443 if test -n "$ZIP"; then
7444 { echo "$as_me:$LINENO: result: $ZIP" >&5
7445 echo "${ECHO_T}$ZIP" >&6; }
7447 { echo "$as_me:$LINENO: result: no" >&5
7448 echo "${ECHO_T}no" >&6; }
7452 for ac_prog in ocamlc
7454 # Extract the first word of "$ac_prog", so it can be a program name with args.
7455 set dummy $ac_prog; ac_word=$2
7456 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7458 if test "${ac_cv_path_OCAMLC+set}" = set; then
7459 echo $ECHO_N "(cached) $ECHO_C" >&6
7463 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7470 test -z "$as_dir" && as_dir=.
7471 for ac_exec_ext in '' $ac_executable_extensions; do
7472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7473 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7484 OCAMLC=$ac_cv_path_OCAMLC
7485 if test -n "$OCAMLC"; then
7486 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7487 echo "${ECHO_T}$OCAMLC" >&6; }
7489 { echo "$as_me:$LINENO: result: no" >&5
7490 echo "${ECHO_T}no" >&6; }
7494 test -n "$OCAMLC" && break
7497 for ac_prog in ocamlopt
7499 # Extract the first word of "$ac_prog", so it can be a program name with args.
7500 set dummy $ac_prog; ac_word=$2
7501 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7503 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7504 echo $ECHO_N "(cached) $ECHO_C" >&6
7508 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7515 test -z "$as_dir" && as_dir=.
7516 for ac_exec_ext in '' $ac_executable_extensions; do
7517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7518 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7529 OCAMLOPT=$ac_cv_path_OCAMLOPT
7530 if test -n "$OCAMLOPT"; then
7531 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7532 echo "${ECHO_T}$OCAMLOPT" >&6; }
7534 { echo "$as_me:$LINENO: result: no" >&5
7535 echo "${ECHO_T}no" >&6; }
7539 test -n "$OCAMLOPT" && break
7542 for ac_prog in ocamldep
7544 # Extract the first word of "$ac_prog", so it can be a program name with args.
7545 set dummy $ac_prog; ac_word=$2
7546 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7548 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7549 echo $ECHO_N "(cached) $ECHO_C" >&6
7553 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7560 test -z "$as_dir" && as_dir=.
7561 for ac_exec_ext in '' $ac_executable_extensions; do
7562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7563 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7574 OCAMLDEP=$ac_cv_path_OCAMLDEP
7575 if test -n "$OCAMLDEP"; then
7576 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7577 echo "${ECHO_T}$OCAMLDEP" >&6; }
7579 { echo "$as_me:$LINENO: result: no" >&5
7580 echo "${ECHO_T}no" >&6; }
7584 test -n "$OCAMLDEP" && break
7587 for ac_prog in ocamldoc
7589 # Extract the first word of "$ac_prog", so it can be a program name with args.
7590 set dummy $ac_prog; ac_word=$2
7591 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7593 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7594 echo $ECHO_N "(cached) $ECHO_C" >&6
7598 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7605 test -z "$as_dir" && as_dir=.
7606 for ac_exec_ext in '' $ac_executable_extensions; do
7607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7608 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7619 OCAMLDOC=$ac_cv_path_OCAMLDOC
7620 if test -n "$OCAMLDOC"; then
7621 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7622 echo "${ECHO_T}$OCAMLDOC" >&6; }
7624 { echo "$as_me:$LINENO: result: no" >&5
7625 echo "${ECHO_T}no" >&6; }
7629 test -n "$OCAMLDOC" && break
7632 for ac_prog in gas as
7634 # Extract the first word of "$ac_prog", so it can be a program name with args.
7635 set dummy $ac_prog; ac_word=$2
7636 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7638 if test "${ac_cv_path_GAS+set}" = set; then
7639 echo $ECHO_N "(cached) $ECHO_C" >&6
7643 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7650 test -z "$as_dir" && as_dir=.
7651 for ac_exec_ext in '' $ac_executable_extensions; do
7652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7653 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7665 if test -n "$GAS"; then
7666 { echo "$as_me:$LINENO: result: $GAS" >&5
7667 echo "${ECHO_T}$GAS" >&6; }
7669 { echo "$as_me:$LINENO: result: no" >&5
7670 echo "${ECHO_T}no" >&6; }
7674 test -n "$GAS" && break
7678 { echo "$as_me:$LINENO: checking for linker version" >&5
7679 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7680 if test "${llvm_cv_link_version+set}" = set; then
7681 echo $ECHO_N "(cached) $ECHO_C" >&6
7684 version_string="$(ld -v 2>&1 | head -1)"
7687 if (echo "$version_string" | grep -q "ld64"); then
7688 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7690 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7694 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7695 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7697 cat >>confdefs.h <<_ACEOF
7698 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7703 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7704 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7705 if test "${llvm_cv_link_use_r+set}" = set; then
7706 echo $ECHO_N "(cached) $ECHO_C" >&6
7709 ac_cpp='$CPP $CPPFLAGS'
7710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7715 CFLAGS="$CFLAGS -Wl,-R."
7716 cat >conftest.$ac_ext <<_ACEOF
7719 cat confdefs.h >>conftest.$ac_ext
7720 cat >>conftest.$ac_ext <<_ACEOF
7721 /* end confdefs.h. */
7731 rm -f conftest.$ac_objext conftest$ac_exeext
7732 if { (ac_try="$ac_link"
7734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7735 *) ac_try_echo=$ac_try;;
7737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7738 (eval "$ac_link") 2>conftest.er1
7740 grep -v '^ *+' conftest.er1 >conftest.err
7742 cat conftest.err >&5
7743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744 (exit $ac_status); } &&
7745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7746 { (case "(($ac_try" in
7747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7748 *) ac_try_echo=$ac_try;;
7750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7751 (eval "$ac_try") 2>&5
7753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7754 (exit $ac_status); }; } &&
7755 { ac_try='test -s conftest$ac_exeext'
7756 { (case "(($ac_try" in
7757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7758 *) ac_try_echo=$ac_try;;
7760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7761 (eval "$ac_try") 2>&5
7763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7764 (exit $ac_status); }; }; then
7765 llvm_cv_link_use_r=yes
7767 echo "$as_me: failed program was:" >&5
7768 sed 's/^/| /' conftest.$ac_ext >&5
7770 llvm_cv_link_use_r=no
7773 rm -f core conftest.err conftest.$ac_objext \
7774 conftest$ac_exeext conftest.$ac_ext
7777 ac_cpp='$CPP $CPPFLAGS'
7778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7784 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7785 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7786 if test "$llvm_cv_link_use_r" = yes ; then
7788 cat >>confdefs.h <<\_ACEOF
7789 #define HAVE_LINK_R 1
7795 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7796 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7797 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7798 echo $ECHO_N "(cached) $ECHO_C" >&6
7801 ac_cpp='$CPP $CPPFLAGS'
7802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7807 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7808 cat >conftest.$ac_ext <<_ACEOF
7811 cat confdefs.h >>conftest.$ac_ext
7812 cat >>conftest.$ac_ext <<_ACEOF
7813 /* end confdefs.h. */
7823 rm -f conftest.$ac_objext conftest$ac_exeext
7824 if { (ac_try="$ac_link"
7826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7827 *) ac_try_echo=$ac_try;;
7829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7830 (eval "$ac_link") 2>conftest.er1
7832 grep -v '^ *+' conftest.er1 >conftest.err
7834 cat conftest.err >&5
7835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836 (exit $ac_status); } &&
7837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7838 { (case "(($ac_try" in
7839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7840 *) ac_try_echo=$ac_try;;
7842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7843 (eval "$ac_try") 2>&5
7845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7846 (exit $ac_status); }; } &&
7847 { ac_try='test -s conftest$ac_exeext'
7848 { (case "(($ac_try" in
7849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7850 *) ac_try_echo=$ac_try;;
7852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7853 (eval "$ac_try") 2>&5
7855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7856 (exit $ac_status); }; }; then
7857 llvm_cv_link_use_export_dynamic=yes
7859 echo "$as_me: failed program was:" >&5
7860 sed 's/^/| /' conftest.$ac_ext >&5
7862 llvm_cv_link_use_export_dynamic=no
7865 rm -f core conftest.err conftest.$ac_objext \
7866 conftest$ac_exeext conftest.$ac_ext
7869 ac_cpp='$CPP $CPPFLAGS'
7870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7876 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7877 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7878 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7880 cat >>confdefs.h <<\_ACEOF
7881 #define HAVE_LINK_EXPORT_DYNAMIC 1
7887 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7888 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7889 if test "${llvm_cv_link_use_version_script+set}" = set; then
7890 echo $ECHO_N "(cached) $ECHO_C" >&6
7893 ac_cpp='$CPP $CPPFLAGS'
7894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7900 # The following code is from the autoconf manual,
7901 # "11.13: Limitations of Usual Tools".
7902 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7903 # Use mktemp if possible; otherwise fall back on mkdir,
7904 # with $RANDOM to make collisions less likely.
7908 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7910 test -n "$tmp" && test -d "$tmp"
7912 tmp=$TMPDIR/foo$$-$RANDOM
7913 (umask 077 && mkdir "$tmp")
7916 echo "{" > "$tmp/export.map"
7917 echo " global: main;" >> "$tmp/export.map"
7918 echo " local: *;" >> "$tmp/export.map"
7919 echo "};" >> "$tmp/export.map"
7921 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7922 cat >conftest.$ac_ext <<_ACEOF
7925 cat confdefs.h >>conftest.$ac_ext
7926 cat >>conftest.$ac_ext <<_ACEOF
7927 /* end confdefs.h. */
7937 rm -f conftest.$ac_objext conftest$ac_exeext
7938 if { (ac_try="$ac_link"
7940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7941 *) ac_try_echo=$ac_try;;
7943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7944 (eval "$ac_link") 2>conftest.er1
7946 grep -v '^ *+' conftest.er1 >conftest.err
7948 cat conftest.err >&5
7949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950 (exit $ac_status); } &&
7951 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7952 { (case "(($ac_try" in
7953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7954 *) ac_try_echo=$ac_try;;
7956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7957 (eval "$ac_try") 2>&5
7959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960 (exit $ac_status); }; } &&
7961 { ac_try='test -s conftest$ac_exeext'
7962 { (case "(($ac_try" in
7963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7964 *) ac_try_echo=$ac_try;;
7966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7967 (eval "$ac_try") 2>&5
7969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7970 (exit $ac_status); }; }; then
7971 llvm_cv_link_use_version_script=yes
7973 echo "$as_me: failed program was:" >&5
7974 sed 's/^/| /' conftest.$ac_ext >&5
7976 llvm_cv_link_use_version_script=no
7979 rm -f core conftest.err conftest.$ac_objext \
7980 conftest$ac_exeext conftest.$ac_ext
7981 rm "$tmp/export.map"
7985 ac_cpp='$CPP $CPPFLAGS'
7986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7992 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7993 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7994 if test "$llvm_cv_link_use_version_script" = yes ; then
7995 HAVE_LINK_VERSION_SCRIPT=1
8002 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8003 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8004 if test "${ac_cv_c_const+set}" = set; then
8005 echo $ECHO_N "(cached) $ECHO_C" >&6
8007 cat >conftest.$ac_ext <<_ACEOF
8010 cat confdefs.h >>conftest.$ac_ext
8011 cat >>conftest.$ac_ext <<_ACEOF
8012 /* end confdefs.h. */
8017 /* FIXME: Include the comments suggested by Paul. */
8019 /* Ultrix mips cc rejects this. */
8020 typedef int charset[2];
8022 /* SunOS 4.1.1 cc rejects this. */
8023 char const *const *ccp;
8025 /* NEC SVR4.0.2 mips cc rejects this. */
8026 struct point {int x, y;};
8027 static struct point const zero = {0,0};
8028 /* AIX XL C 1.02.0.0 rejects this.
8029 It does not let you subtract one const X* pointer from another in
8030 an arm of an if-expression whose if-part is not a constant
8032 const char *g = "string";
8033 ccp = &g + (g ? g-g : 0);
8034 /* HPUX 7.0 cc rejects these. */
8037 ccp = (char const *const *) p;
8038 { /* SCO 3.2v4 cc rejects this. */
8040 char const *s = 0 ? (char *) 0 : (char const *) 0;
8045 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8047 const int *foo = &x[0];
8050 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8051 typedef const int *iptr;
8055 { /* AIX XL C 1.02.0.0 rejects this saying
8056 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8057 struct s { int j; const int *ap[3]; };
8058 struct s *b; b->j = 5;
8060 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8064 return !x[0] && !zero.x;
8071 rm -f conftest.$ac_objext
8072 if { (ac_try="$ac_compile"
8074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8075 *) ac_try_echo=$ac_try;;
8077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8078 (eval "$ac_compile") 2>conftest.er1
8080 grep -v '^ *+' conftest.er1 >conftest.err
8082 cat conftest.err >&5
8083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084 (exit $ac_status); } &&
8085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8086 { (case "(($ac_try" in
8087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8088 *) ac_try_echo=$ac_try;;
8090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8091 (eval "$ac_try") 2>&5
8093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094 (exit $ac_status); }; } &&
8095 { ac_try='test -s conftest.$ac_objext'
8096 { (case "(($ac_try" in
8097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8098 *) ac_try_echo=$ac_try;;
8100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8101 (eval "$ac_try") 2>&5
8103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8104 (exit $ac_status); }; }; then
8107 echo "$as_me: failed program was:" >&5
8108 sed 's/^/| /' conftest.$ac_ext >&5
8113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8115 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8116 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8117 if test $ac_cv_c_const = no; then
8119 cat >>confdefs.h <<\_ACEOF
8131 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8132 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8133 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8134 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8135 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8136 echo $ECHO_N "(cached) $ECHO_C" >&6
8138 cat >conftest.$ac_ext <<_ACEOF
8141 cat confdefs.h >>conftest.$ac_ext
8142 cat >>conftest.$ac_ext <<_ACEOF
8143 /* end confdefs.h. */
8144 #include <sys/types.h>
8156 rm -f conftest.$ac_objext
8157 if { (ac_try="$ac_compile"
8159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8160 *) ac_try_echo=$ac_try;;
8162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8163 (eval "$ac_compile") 2>conftest.er1
8165 grep -v '^ *+' conftest.er1 >conftest.err
8167 cat conftest.err >&5
8168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8169 (exit $ac_status); } &&
8170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8171 { (case "(($ac_try" in
8172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8173 *) ac_try_echo=$ac_try;;
8175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8176 (eval "$ac_try") 2>&5
8178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179 (exit $ac_status); }; } &&
8180 { ac_try='test -s conftest.$ac_objext'
8181 { (case "(($ac_try" in
8182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8183 *) ac_try_echo=$ac_try;;
8185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8186 (eval "$ac_try") 2>&5
8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 (exit $ac_status); }; }; then
8190 eval "$as_ac_Header=yes"
8192 echo "$as_me: failed program was:" >&5
8193 sed 's/^/| /' conftest.$ac_ext >&5
8195 eval "$as_ac_Header=no"
8198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8200 ac_res=`eval echo '${'$as_ac_Header'}'`
8201 { echo "$as_me:$LINENO: result: $ac_res" >&5
8202 echo "${ECHO_T}$ac_res" >&6; }
8203 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8204 cat >>confdefs.h <<_ACEOF
8205 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8208 ac_header_dirent=$ac_hdr; break
8212 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8213 if test $ac_header_dirent = dirent.h; then
8214 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8215 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8216 if test "${ac_cv_search_opendir+set}" = set; then
8217 echo $ECHO_N "(cached) $ECHO_C" >&6
8219 ac_func_search_save_LIBS=$LIBS
8220 cat >conftest.$ac_ext <<_ACEOF
8223 cat confdefs.h >>conftest.$ac_ext
8224 cat >>conftest.$ac_ext <<_ACEOF
8225 /* end confdefs.h. */
8227 /* Override any GCC internal prototype to avoid an error.
8228 Use char because int might match the return type of a GCC
8229 builtin and then its argument prototype would still apply. */
8242 for ac_lib in '' dir; do
8243 if test -z "$ac_lib"; then
8244 ac_res="none required"
8247 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8249 rm -f conftest.$ac_objext conftest$ac_exeext
8250 if { (ac_try="$ac_link"
8252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8253 *) ac_try_echo=$ac_try;;
8255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8256 (eval "$ac_link") 2>conftest.er1
8258 grep -v '^ *+' conftest.er1 >conftest.err
8260 cat conftest.err >&5
8261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262 (exit $ac_status); } &&
8263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8264 { (case "(($ac_try" in
8265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8266 *) ac_try_echo=$ac_try;;
8268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8269 (eval "$ac_try") 2>&5
8271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8272 (exit $ac_status); }; } &&
8273 { ac_try='test -s conftest$ac_exeext'
8274 { (case "(($ac_try" in
8275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8276 *) ac_try_echo=$ac_try;;
8278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8279 (eval "$ac_try") 2>&5
8281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282 (exit $ac_status); }; }; then
8283 ac_cv_search_opendir=$ac_res
8285 echo "$as_me: failed program was:" >&5
8286 sed 's/^/| /' conftest.$ac_ext >&5
8291 rm -f core conftest.err conftest.$ac_objext \
8293 if test "${ac_cv_search_opendir+set}" = set; then
8297 if test "${ac_cv_search_opendir+set}" = set; then
8300 ac_cv_search_opendir=no
8303 LIBS=$ac_func_search_save_LIBS
8305 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8306 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8307 ac_res=$ac_cv_search_opendir
8308 if test "$ac_res" != no; then
8309 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8314 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8315 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8316 if test "${ac_cv_search_opendir+set}" = set; then
8317 echo $ECHO_N "(cached) $ECHO_C" >&6
8319 ac_func_search_save_LIBS=$LIBS
8320 cat >conftest.$ac_ext <<_ACEOF
8323 cat confdefs.h >>conftest.$ac_ext
8324 cat >>conftest.$ac_ext <<_ACEOF
8325 /* end confdefs.h. */
8327 /* Override any GCC internal prototype to avoid an error.
8328 Use char because int might match the return type of a GCC
8329 builtin and then its argument prototype would still apply. */
8342 for ac_lib in '' x; do
8343 if test -z "$ac_lib"; then
8344 ac_res="none required"
8347 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8349 rm -f conftest.$ac_objext conftest$ac_exeext
8350 if { (ac_try="$ac_link"
8352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8353 *) ac_try_echo=$ac_try;;
8355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8356 (eval "$ac_link") 2>conftest.er1
8358 grep -v '^ *+' conftest.er1 >conftest.err
8360 cat conftest.err >&5
8361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362 (exit $ac_status); } &&
8363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8364 { (case "(($ac_try" in
8365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8366 *) ac_try_echo=$ac_try;;
8368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8369 (eval "$ac_try") 2>&5
8371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372 (exit $ac_status); }; } &&
8373 { ac_try='test -s conftest$ac_exeext'
8374 { (case "(($ac_try" in
8375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8376 *) ac_try_echo=$ac_try;;
8378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8379 (eval "$ac_try") 2>&5
8381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382 (exit $ac_status); }; }; then
8383 ac_cv_search_opendir=$ac_res
8385 echo "$as_me: failed program was:" >&5
8386 sed 's/^/| /' conftest.$ac_ext >&5
8391 rm -f core conftest.err conftest.$ac_objext \
8393 if test "${ac_cv_search_opendir+set}" = set; then
8397 if test "${ac_cv_search_opendir+set}" = set; then
8400 ac_cv_search_opendir=no
8403 LIBS=$ac_func_search_save_LIBS
8405 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8406 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8407 ac_res=$ac_cv_search_opendir
8408 if test "$ac_res" != no; then
8409 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8416 for ac_header in dlfcn.h
8418 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8419 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8420 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8421 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8422 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8423 echo $ECHO_N "(cached) $ECHO_C" >&6
8425 ac_res=`eval echo '${'$as_ac_Header'}'`
8426 { echo "$as_me:$LINENO: result: $ac_res" >&5
8427 echo "${ECHO_T}$ac_res" >&6; }
8429 # Is the header compilable?
8430 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8431 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8432 cat >conftest.$ac_ext <<_ACEOF
8435 cat confdefs.h >>conftest.$ac_ext
8436 cat >>conftest.$ac_ext <<_ACEOF
8437 /* end confdefs.h. */
8438 $ac_includes_default
8439 #include <$ac_header>
8441 rm -f conftest.$ac_objext
8442 if { (ac_try="$ac_compile"
8444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8445 *) ac_try_echo=$ac_try;;
8447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8448 (eval "$ac_compile") 2>conftest.er1
8450 grep -v '^ *+' conftest.er1 >conftest.err
8452 cat conftest.err >&5
8453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454 (exit $ac_status); } &&
8455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8456 { (case "(($ac_try" in
8457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8458 *) ac_try_echo=$ac_try;;
8460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8461 (eval "$ac_try") 2>&5
8463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464 (exit $ac_status); }; } &&
8465 { ac_try='test -s conftest.$ac_objext'
8466 { (case "(($ac_try" in
8467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8468 *) ac_try_echo=$ac_try;;
8470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8471 (eval "$ac_try") 2>&5
8473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474 (exit $ac_status); }; }; then
8475 ac_header_compiler=yes
8477 echo "$as_me: failed program was:" >&5
8478 sed 's/^/| /' conftest.$ac_ext >&5
8480 ac_header_compiler=no
8483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8484 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8485 echo "${ECHO_T}$ac_header_compiler" >&6; }
8487 # Is the header present?
8488 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8489 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8490 cat >conftest.$ac_ext <<_ACEOF
8493 cat confdefs.h >>conftest.$ac_ext
8494 cat >>conftest.$ac_ext <<_ACEOF
8495 /* end confdefs.h. */
8496 #include <$ac_header>
8498 if { (ac_try="$ac_cpp conftest.$ac_ext"
8500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8501 *) ac_try_echo=$ac_try;;
8503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8504 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8506 grep -v '^ *+' conftest.er1 >conftest.err
8508 cat conftest.err >&5
8509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510 (exit $ac_status); } >/dev/null; then
8511 if test -s conftest.err; then
8512 ac_cpp_err=$ac_c_preproc_warn_flag
8513 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8520 if test -z "$ac_cpp_err"; then
8521 ac_header_preproc=yes
8523 echo "$as_me: failed program was:" >&5
8524 sed 's/^/| /' conftest.$ac_ext >&5
8526 ac_header_preproc=no
8529 rm -f conftest.err conftest.$ac_ext
8530 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8531 echo "${ECHO_T}$ac_header_preproc" >&6; }
8533 # So? What about this header?
8534 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8536 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8537 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8538 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8539 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8540 ac_header_preproc=yes
8543 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8544 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8545 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8546 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8547 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8548 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8549 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8550 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8551 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8552 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8553 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8554 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8556 ## ------------------------------ ##
8557 ## Report this to bugs@yourdomain ##
8558 ## ------------------------------ ##
8560 ) | sed "s/^/$as_me: WARNING: /" >&2
8563 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8564 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8565 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8566 echo $ECHO_N "(cached) $ECHO_C" >&6
8568 eval "$as_ac_Header=\$ac_header_preproc"
8570 ac_res=`eval echo '${'$as_ac_Header'}'`
8571 { echo "$as_me:$LINENO: result: $ac_res" >&5
8572 echo "${ECHO_T}$ac_res" >&6; }
8575 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8576 cat >>confdefs.h <<_ACEOF
8577 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8584 # Check whether --enable-ltdl-install was given.
8585 if test "${enable_ltdl_install+set}" = set; then
8586 enableval=$enable_ltdl_install;
8592 if test x"${enable_ltdl_install-no}" != xno; then
8594 INSTALL_LTDL_FALSE='#'
8596 INSTALL_LTDL_TRUE='#'
8602 if test x"${enable_ltdl_convenience-no}" != xno; then
8603 CONVENIENCE_LTDL_TRUE=
8604 CONVENIENCE_LTDL_FALSE='#'
8606 CONVENIENCE_LTDL_TRUE='#'
8607 CONVENIENCE_LTDL_FALSE=
8611 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8612 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8614 libname_spec='lib$name'
8622 shlibpath_overrides_runpath=unknown
8624 dynamic_linker="$host_os ld.so"
8625 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8626 if test "$GCC" = yes; then
8627 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8628 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8629 # if the path contains ";" then we assume it to be the separator
8630 # otherwise default to the standard path separator (i.e. ":") - it is
8631 # assumed that no part of a normal pathname contains ";" but that should
8632 # okay in the real world where ";" in dirpaths is itself problematic.
8633 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8635 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8638 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8640 need_lib_prefix=unknown
8641 hardcode_into_libs=no
8643 # when you set need_version to no, make sure it does not cause -set_version
8644 # flags to be left without arguments
8645 need_version=unknown
8650 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8651 shlibpath_var=LIBPATH
8653 # AIX 3 has no versioning support, so we append a major version to the name.
8654 soname_spec='${libname}${release}${shared_ext}$major'
8661 hardcode_into_libs=yes
8662 if test "$host_cpu" = ia64; then
8663 # AIX 5 supports IA64
8664 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8665 shlibpath_var=LD_LIBRARY_PATH
8667 # With GCC up to 2.95.x, collect2 would create an import file
8668 # for dependence libraries. The import file would start with
8669 # the line `#! .'. This would cause the generated library to
8670 # depend on `.', always an invalid library. This was fixed in
8671 # development snapshots of GCC prior to 3.0.
8673 aix4 | aix4.[01] | aix4.[01].*)
8674 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8676 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8683 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8684 # soname into executable. Probably we can add versioning support to
8685 # collect2, so additional links can be useful in future.
8686 if test "$aix_use_runtimelinking" = yes; then
8687 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8688 # instead of lib<name>.a to let people know that these are not
8689 # typical AIX shared libraries.
8690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8692 # We preserve .a as extension for shared libraries through AIX4.2
8693 # and later when we are not doing run time linking.
8694 library_names_spec='${libname}${release}.a $libname.a'
8695 soname_spec='${libname}${release}${shared_ext}$major'
8697 shlibpath_var=LIBPATH
8702 library_names_spec='$libname.ixlibrary $libname.a'
8703 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8704 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'
8708 library_names_spec='${libname}${shared_ext}'
8709 dynamic_linker="$host_os ld.so"
8710 shlibpath_var=LIBRARY_PATH
8716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8717 soname_spec='${libname}${release}${shared_ext}$major'
8718 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8719 shlibpath_var=LD_LIBRARY_PATH
8720 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8721 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8722 # the default ld.so.conf also contains /usr/contrib/lib and
8723 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8724 # libtool to hard-code these into programs
8727 cygwin* | mingw* | pw32*)
8728 version_type=windows
8733 case $GCC,$host_os in
8734 yes,cygwin* | yes,mingw* | yes,pw32*)
8735 library_names_spec='$libname.dll.a'
8736 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8737 postinstall_cmds='base_file=`basename \${file}`~
8738 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8739 dldir=$destdir/`dirname \$dlpath`~
8740 test -d \$dldir || mkdir -p \$dldir~
8741 $install_prog $dir/$dlname \$dldir/$dlname~
8742 chmod a+x \$dldir/$dlname'
8743 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8744 dlpath=$dir/\$dldll~
8746 shlibpath_overrides_runpath=yes
8750 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8751 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8752 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8755 # MinGW DLLs use traditional 'lib' prefix
8756 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8757 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8758 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8759 # It is most probably a Windows format PATH printed by
8760 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8761 # path with ; separators, and with drive letters. We can handle the
8762 # drive letters (cygwin fileutils understands them), so leave them,
8763 # especially as we might pass files found there to a mingw objdump,
8764 # which wouldn't understand a cygwinified path. Ahh.
8765 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8767 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8771 # pw32 DLLs use 'pw' prefix rather than 'lib'
8772 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8778 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8781 dynamic_linker='Win32 ld.exe'
8782 # FIXME: first we should search . and the directory the executable is in
8786 darwin* | rhapsody*)
8787 dynamic_linker="$host_os dyld"
8791 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8792 soname_spec='${libname}${release}${major}$shared_ext'
8793 shlibpath_overrides_runpath=yes
8794 shlibpath_var=DYLD_LIBRARY_PATH
8795 shrext_cmds='.dylib'
8796 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8797 if test "$GCC" = yes; then
8798 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"`
8800 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8802 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8810 soname_spec='${libname}${release}${shared_ext}$major'
8811 shlibpath_var=LD_LIBRARY_PATH
8822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8823 soname_spec='${libname}${release}${shared_ext}$major'
8824 shlibpath_var=LD_LIBRARY_PATH
8825 shlibpath_overrides_runpath=no
8826 hardcode_into_libs=yes
8827 dynamic_linker='GNU ld.so'
8830 freebsd* | dragonfly*)
8831 # DragonFly does not have aout. When/if they implement a new
8832 # versioning mechanism, adjust this.
8833 if test -x /usr/bin/objformat; then
8834 objformat=`/usr/bin/objformat`
8837 freebsd[123].*) objformat=aout ;;
8841 version_type=freebsd-$objformat
8842 case $version_type in
8844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8849 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8853 shlibpath_var=LD_LIBRARY_PATH
8856 shlibpath_overrides_runpath=yes
8858 freebsd3.[01]* | freebsdelf3.[01]*)
8859 shlibpath_overrides_runpath=yes
8860 hardcode_into_libs=yes
8862 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8863 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8864 shlibpath_overrides_runpath=no
8865 hardcode_into_libs=yes
8867 freebsd*) # from 4.6 on
8868 shlibpath_overrides_runpath=yes
8869 hardcode_into_libs=yes
8878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8879 soname_spec='${libname}${release}${shared_ext}$major'
8880 shlibpath_var=LD_LIBRARY_PATH
8881 hardcode_into_libs=yes
8884 hpux9* | hpux10* | hpux11*)
8885 # Give a soname corresponding to the major version so that dld.sl refuses to
8886 # link against other versions.
8893 hardcode_into_libs=yes
8894 dynamic_linker="$host_os dld.so"
8895 shlibpath_var=LD_LIBRARY_PATH
8896 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8898 soname_spec='${libname}${release}${shared_ext}$major'
8899 if test "X$HPUX_IA64_MODE" = X32; then
8900 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8902 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8904 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8908 hardcode_into_libs=yes
8909 dynamic_linker="$host_os dld.sl"
8910 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8911 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8913 soname_spec='${libname}${release}${shared_ext}$major'
8914 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8915 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8919 dynamic_linker="$host_os dld.sl"
8920 shlibpath_var=SHLIB_PATH
8921 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8923 soname_spec='${libname}${release}${shared_ext}$major'
8926 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8927 postinstall_cmds='chmod 555 $lib'
8934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8935 soname_spec='${libname}${release}${shared_ext}$major'
8936 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8937 shlibpath_var=LD_LIBRARY_PATH
8938 shlibpath_overrides_runpath=no
8939 hardcode_into_libs=yes
8942 irix5* | irix6* | nonstopux*)
8944 nonstopux*) version_type=nonstopux ;;
8946 if test "$lt_cv_prog_gnu_ld" = yes; then
8954 soname_spec='${libname}${release}${shared_ext}$major'
8955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8957 irix5* | nonstopux*)
8961 case $LD in # libtool.m4 will add one of these switches to LD
8962 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8963 libsuff= shlibsuff= libmagic=32-bit;;
8964 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8965 libsuff=32 shlibsuff=N32 libmagic=N32;;
8966 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8967 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8968 *) libsuff= shlibsuff= libmagic=never-match;;
8972 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8973 shlibpath_overrides_runpath=no
8974 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8975 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8976 hardcode_into_libs=yes
8979 # No shared lib support for Linux oldld, aout, or coff.
8980 linux*oldld* | linux*aout* | linux*coff*)
8984 # This must be Linux ELF.
8989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8990 soname_spec='${libname}${release}${shared_ext}$major'
8991 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8992 shlibpath_var=LD_LIBRARY_PATH
8993 shlibpath_overrides_runpath=no
8994 # This implies no fast_install, which is unacceptable.
8995 # Some rework will be needed to allow for fast_install
8996 # before this can be enabled.
8997 hardcode_into_libs=yes
8999 # Append ld.so.conf contents to the search path
9000 if test -f /etc/ld.so.conf; then
9001 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' ' '`
9002 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9005 # We used to test for /lib/ld.so.1 and disable shared libraries on
9006 # powerpc, because MkLinux only supported shared libraries with the
9007 # GNU dynamic linker. Since this was broken with cross compilers,
9008 # most powerpc-linux boxes support dynamic linking these days and
9009 # people can always --disable-shared, the test was removed, and we
9010 # assume the GNU/Linux dynamic linker is in use.
9011 dynamic_linker='GNU/Linux ld.so'
9018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9019 soname_spec='${libname}${release}${shared_ext}$major'
9020 shlibpath_var=LD_LIBRARY_PATH
9021 shlibpath_overrides_runpath=no
9022 hardcode_into_libs=yes
9023 dynamic_linker='GNU ld.so'
9030 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9032 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9033 dynamic_linker='NetBSD (a.out) ld.so'
9035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9036 soname_spec='${libname}${release}${shared_ext}$major'
9037 dynamic_linker='NetBSD ld.elf_so'
9039 shlibpath_var=LD_LIBRARY_PATH
9040 shlibpath_overrides_runpath=yes
9041 hardcode_into_libs=yes
9046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9047 shlibpath_var=LD_LIBRARY_PATH
9048 shlibpath_overrides_runpath=yes
9055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9056 soname_spec='${libname}${release}${shared_ext}$major'
9057 shlibpath_var=LD_LIBRARY_PATH
9058 shlibpath_overrides_runpath=yes
9063 sys_lib_dlsearch_path_spec="/usr/lib"
9065 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9067 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9068 *) need_version=no ;;
9070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9071 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9072 shlibpath_var=LD_LIBRARY_PATH
9073 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9075 openbsd2.[89] | openbsd2.[89].*)
9076 shlibpath_overrides_runpath=no
9079 shlibpath_overrides_runpath=yes
9083 shlibpath_overrides_runpath=yes
9088 libname_spec='$name'
9091 library_names_spec='$libname${shared_ext} $libname.a'
9092 dynamic_linker='OS/2 ld.exe'
9093 shlibpath_var=LIBPATH
9096 osf3* | osf4* | osf5*)
9100 soname_spec='${libname}${release}${shared_ext}$major'
9101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9102 shlibpath_var=LD_LIBRARY_PATH
9103 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9104 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9112 soname_spec='${libname}${release}${shared_ext}$major'
9113 shlibpath_var=LD_LIBRARY_PATH
9114 shlibpath_overrides_runpath=yes
9115 hardcode_into_libs=yes
9116 # ldd complains unless libraries are executable
9117 postinstall_cmds='chmod +x $lib'
9122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9123 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9124 shlibpath_var=LD_LIBRARY_PATH
9125 shlibpath_overrides_runpath=yes
9126 if test "$with_gnu_ld" = yes; then
9134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9135 soname_spec='${libname}${release}${shared_ext}$major'
9136 shlibpath_var=LD_LIBRARY_PATH
9137 case $host_vendor in
9139 shlibpath_overrides_runpath=no
9141 export_dynamic_flag_spec='${wl}-Blargedynsym'
9142 runpath_var=LD_RUN_PATH
9150 shlibpath_overrides_runpath=no
9151 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9157 if test -d /usr/nec ;then
9159 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9160 soname_spec='$libname${shared_ext}.$major'
9161 shlibpath_var=LD_LIBRARY_PATH
9165 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9166 version_type=freebsd-elf
9169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9170 soname_spec='${libname}${release}${shared_ext}$major'
9171 shlibpath_var=LD_LIBRARY_PATH
9172 hardcode_into_libs=yes
9173 if test "$with_gnu_ld" = yes; then
9174 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9175 shlibpath_overrides_runpath=no
9177 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9178 shlibpath_overrides_runpath=yes
9181 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9185 sys_lib_dlsearch_path_spec='/usr/lib'
9190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9191 soname_spec='${libname}${release}${shared_ext}$major'
9192 shlibpath_var=LD_LIBRARY_PATH
9199 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9200 echo "${ECHO_T}$dynamic_linker" >&6; }
9201 test "$dynamic_linker" = no && can_build_shared=no
9203 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9204 if test "$GCC" = yes; then
9205 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9209 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9210 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9211 if test "${libltdl_cv_shlibext+set}" = set; then
9212 echo $ECHO_N "(cached) $ECHO_C" >&6
9216 eval libltdl_cv_shlibext=$shrext_cmds
9219 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9220 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9221 if test -n "$libltdl_cv_shlibext"; then
9223 cat >>confdefs.h <<_ACEOF
9224 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9230 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9231 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9232 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9233 echo $ECHO_N "(cached) $ECHO_C" >&6
9235 libltdl_cv_shlibpath_var="$shlibpath_var"
9237 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9238 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9239 if test -n "$libltdl_cv_shlibpath_var"; then
9241 cat >>confdefs.h <<_ACEOF
9242 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9248 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9249 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9250 if test "${libltdl_cv_sys_search_path+set}" = set; then
9251 echo $ECHO_N "(cached) $ECHO_C" >&6
9253 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9255 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9256 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9257 if test -n "$libltdl_cv_sys_search_path"; then
9259 for dir in $libltdl_cv_sys_search_path; do
9260 if test -z "$sys_search_path"; then
9261 sys_search_path="$dir"
9263 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9267 cat >>confdefs.h <<_ACEOF
9268 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9273 { echo "$as_me:$LINENO: checking for objdir" >&5
9274 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9275 if test "${libltdl_cv_objdir+set}" = set; then
9276 echo $ECHO_N "(cached) $ECHO_C" >&6
9278 libltdl_cv_objdir="$objdir"
9279 if test -n "$objdir"; then
9282 rm -f .libs 2>/dev/null
9283 mkdir .libs 2>/dev/null
9284 if test -d .libs; then
9285 libltdl_cv_objdir=.libs
9287 # MS-DOS does not allow filenames that begin with a dot.
9288 libltdl_cv_objdir=_libs
9290 rmdir .libs 2>/dev/null
9294 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9295 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9297 cat >>confdefs.h <<_ACEOF
9298 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9306 # Check for command to grab the raw symbol name followed by C symbol from nm.
9307 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9308 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9309 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9310 echo $ECHO_N "(cached) $ECHO_C" >&6
9313 # These are sane defaults that work on at least a few old systems.
9314 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9316 # Character class describing NM global symbol codes.
9317 symcode='[BCDEGRST]'
9319 # Regexp to match symbols that can be accessed directly from C.
9320 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9322 # Transform an extracted symbol line into a proper C declaration
9323 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9325 # Transform an extracted symbol line into symbol name and symbol address
9326 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'"
9328 # Define system-specific variables.
9333 cygwin* | mingw* | pw32*)
9334 symcode='[ABCDGISTW]'
9336 hpux*) # Its linker distinguishes data from code symbols
9337 if test "$host_cpu" = ia64; then
9338 symcode='[ABCDEGRST]'
9340 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9341 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'"
9344 if test "$host_cpu" = ia64; then
9345 symcode='[ABCDGIRSTW]'
9346 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9347 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'"
9351 symcode='[BCDEGRST]'
9354 symcode='[BCDEGQRST]'
9365 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9373 # Handle CRLF in mingw tool chain
9377 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9381 # If we're using GNU nm, then use its standard symbol codes.
9382 case `$NM -V 2>&1` in
9383 *GNU* | *'with BFD'*)
9384 symcode='[ABCDGIRSTW]' ;;
9387 # Try without a prefix undercore, then with it.
9388 for ac_symprfx in "" "_"; do
9390 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9391 symxfrm="\\1 $ac_symprfx\\2 \\2"
9393 # Write the raw and C identifiers.
9394 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9396 # Check to see that the pipe works correctly.
9400 cat > conftest.$ac_ext <<EOF
9405 void nm_test_func(){}
9409 int main(){nm_test_var='a';nm_test_func();return(0);}
9412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9413 (eval $ac_compile) 2>&5
9415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416 (exit $ac_status); }; then
9417 # Now try to grab the symbols.
9419 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9420 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9423 (exit $ac_status); } && test -s "$nlist"; then
9424 # Try sorting and uniquifying the output.
9425 if sort "$nlist" | uniq > "$nlist"T; then
9426 mv -f "$nlist"T "$nlist"
9431 # Make sure that we snagged all the symbols we need.
9432 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9433 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9434 cat <<EOF > conftest.$ac_ext
9440 # Now generate the symbol file.
9441 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9443 cat <<EOF >> conftest.$ac_ext
9444 #if defined (__STDC__) && __STDC__
9445 # define lt_ptr_t void *
9447 # define lt_ptr_t char *
9451 /* The mapping between symbol names and symbols. */
9456 lt_preloaded_symbols[] =
9459 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9460 cat <<\EOF >> conftest.$ac_ext
9468 # Now try linking the two files.
9469 mv conftest.$ac_objext conftstm.$ac_objext
9470 lt_save_LIBS="$LIBS"
9471 lt_save_CFLAGS="$CFLAGS"
9472 LIBS="conftstm.$ac_objext"
9473 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9475 (eval $ac_link) 2>&5
9477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9478 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9481 LIBS="$lt_save_LIBS"
9482 CFLAGS="$lt_save_CFLAGS"
9484 echo "cannot find nm_test_func in $nlist" >&5
9487 echo "cannot find nm_test_var in $nlist" >&5
9490 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9493 echo "$progname: failed program was:" >&5
9494 cat conftest.$ac_ext >&5
9496 rm -f conftest* conftst*
9498 # Do not use the global_symbol_pipe unless it works.
9499 if test "$pipe_works" = yes; then
9502 lt_cv_sys_global_symbol_pipe=
9508 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9509 lt_cv_sys_global_symbol_to_cdecl=
9511 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9512 { echo "$as_me:$LINENO: result: failed" >&5
9513 echo "${ECHO_T}failed" >&6; }
9515 { echo "$as_me:$LINENO: result: ok" >&5
9516 echo "${ECHO_T}ok" >&6; }
9520 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9521 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9522 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9523 echo $ECHO_N "(cached) $ECHO_C" >&6
9525 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9526 libltdl_cv_preloaded_symbols=yes
9528 libltdl_cv_preloaded_symbols=no
9532 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9533 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9534 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9536 cat >>confdefs.h <<\_ACEOF
9537 #define HAVE_PRELOADED_SYMBOLS 1
9545 ac_cpp='$CPP $CPPFLAGS'
9546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9551 { echo "$as_me:$LINENO: checking for shl_load" >&5
9552 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9553 if test "${ac_cv_func_shl_load+set}" = set; then
9554 echo $ECHO_N "(cached) $ECHO_C" >&6
9556 cat >conftest.$ac_ext <<_ACEOF
9559 cat confdefs.h >>conftest.$ac_ext
9560 cat >>conftest.$ac_ext <<_ACEOF
9561 /* end confdefs.h. */
9562 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9563 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9564 #define shl_load innocuous_shl_load
9566 /* System header to define __stub macros and hopefully few prototypes,
9567 which can conflict with char shl_load (); below.
9568 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9569 <limits.h> exists even on freestanding compilers. */
9572 # include <limits.h>
9574 # include <assert.h>
9579 /* Override any GCC internal prototype to avoid an error.
9580 Use char because int might match the return type of a GCC
9581 builtin and then its argument prototype would still apply. */
9586 /* The GNU C library defines this for functions which it implements
9587 to always fail with ENOSYS. Some functions are actually named
9588 something starting with __ and the normal name is an alias. */
9589 #if defined __stub_shl_load || defined __stub___shl_load
9601 rm -f conftest.$ac_objext conftest$ac_exeext
9602 if { (ac_try="$ac_link"
9604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9605 *) ac_try_echo=$ac_try;;
9607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9608 (eval "$ac_link") 2>conftest.er1
9610 grep -v '^ *+' conftest.er1 >conftest.err
9612 cat conftest.err >&5
9613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614 (exit $ac_status); } &&
9615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9616 { (case "(($ac_try" in
9617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9618 *) ac_try_echo=$ac_try;;
9620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9621 (eval "$ac_try") 2>&5
9623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624 (exit $ac_status); }; } &&
9625 { ac_try='test -s conftest$ac_exeext'
9626 { (case "(($ac_try" in
9627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9628 *) ac_try_echo=$ac_try;;
9630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9631 (eval "$ac_try") 2>&5
9633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634 (exit $ac_status); }; }; then
9635 ac_cv_func_shl_load=yes
9637 echo "$as_me: failed program was:" >&5
9638 sed 's/^/| /' conftest.$ac_ext >&5
9640 ac_cv_func_shl_load=no
9643 rm -f core conftest.err conftest.$ac_objext \
9644 conftest$ac_exeext conftest.$ac_ext
9646 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9647 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9648 if test $ac_cv_func_shl_load = yes; then
9650 cat >>confdefs.h <<\_ACEOF
9651 #define HAVE_SHL_LOAD 1
9655 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9656 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9657 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9658 echo $ECHO_N "(cached) $ECHO_C" >&6
9660 ac_check_lib_save_LIBS=$LIBS
9662 cat >conftest.$ac_ext <<_ACEOF
9665 cat confdefs.h >>conftest.$ac_ext
9666 cat >>conftest.$ac_ext <<_ACEOF
9667 /* end confdefs.h. */
9669 /* Override any GCC internal prototype to avoid an error.
9670 Use char because int might match the return type of a GCC
9671 builtin and then its argument prototype would still apply. */
9684 rm -f conftest.$ac_objext conftest$ac_exeext
9685 if { (ac_try="$ac_link"
9687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9688 *) ac_try_echo=$ac_try;;
9690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9691 (eval "$ac_link") 2>conftest.er1
9693 grep -v '^ *+' conftest.er1 >conftest.err
9695 cat conftest.err >&5
9696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697 (exit $ac_status); } &&
9698 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9699 { (case "(($ac_try" in
9700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9701 *) ac_try_echo=$ac_try;;
9703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9704 (eval "$ac_try") 2>&5
9706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707 (exit $ac_status); }; } &&
9708 { ac_try='test -s conftest$ac_exeext'
9709 { (case "(($ac_try" in
9710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9711 *) ac_try_echo=$ac_try;;
9713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9714 (eval "$ac_try") 2>&5
9716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9717 (exit $ac_status); }; }; then
9718 ac_cv_lib_dld_shl_load=yes
9720 echo "$as_me: failed program was:" >&5
9721 sed 's/^/| /' conftest.$ac_ext >&5
9723 ac_cv_lib_dld_shl_load=no
9726 rm -f core conftest.err conftest.$ac_objext \
9727 conftest$ac_exeext conftest.$ac_ext
9728 LIBS=$ac_check_lib_save_LIBS
9730 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9731 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9732 if test $ac_cv_lib_dld_shl_load = yes; then
9734 cat >>confdefs.h <<\_ACEOF
9735 #define HAVE_SHL_LOAD 1
9738 LIBADD_DL="$LIBADD_DL -ldld"
9740 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9741 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9742 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9743 echo $ECHO_N "(cached) $ECHO_C" >&6
9745 ac_check_lib_save_LIBS=$LIBS
9747 cat >conftest.$ac_ext <<_ACEOF
9750 cat confdefs.h >>conftest.$ac_ext
9751 cat >>conftest.$ac_ext <<_ACEOF
9752 /* end confdefs.h. */
9754 /* Override any GCC internal prototype to avoid an error.
9755 Use char because int might match the return type of a GCC
9756 builtin and then its argument prototype would still apply. */
9769 rm -f conftest.$ac_objext conftest$ac_exeext
9770 if { (ac_try="$ac_link"
9772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9773 *) ac_try_echo=$ac_try;;
9775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9776 (eval "$ac_link") 2>conftest.er1
9778 grep -v '^ *+' conftest.er1 >conftest.err
9780 cat conftest.err >&5
9781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782 (exit $ac_status); } &&
9783 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9784 { (case "(($ac_try" in
9785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9786 *) ac_try_echo=$ac_try;;
9788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9789 (eval "$ac_try") 2>&5
9791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792 (exit $ac_status); }; } &&
9793 { ac_try='test -s conftest$ac_exeext'
9794 { (case "(($ac_try" in
9795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9796 *) ac_try_echo=$ac_try;;
9798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9799 (eval "$ac_try") 2>&5
9801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802 (exit $ac_status); }; }; then
9803 ac_cv_lib_dl_dlopen=yes
9805 echo "$as_me: failed program was:" >&5
9806 sed 's/^/| /' conftest.$ac_ext >&5
9808 ac_cv_lib_dl_dlopen=no
9811 rm -f core conftest.err conftest.$ac_objext \
9812 conftest$ac_exeext conftest.$ac_ext
9813 LIBS=$ac_check_lib_save_LIBS
9815 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9816 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9817 if test $ac_cv_lib_dl_dlopen = yes; then
9819 cat >>confdefs.h <<\_ACEOF
9820 #define HAVE_LIBDL 1
9823 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9825 cat >conftest.$ac_ext <<_ACEOF
9828 cat confdefs.h >>conftest.$ac_ext
9829 cat >>conftest.$ac_ext <<_ACEOF
9830 /* end confdefs.h. */
9843 rm -f conftest.$ac_objext conftest$ac_exeext
9844 if { (ac_try="$ac_link"
9846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9847 *) ac_try_echo=$ac_try;;
9849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9850 (eval "$ac_link") 2>conftest.er1
9852 grep -v '^ *+' conftest.er1 >conftest.err
9854 cat conftest.err >&5
9855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856 (exit $ac_status); } &&
9857 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9858 { (case "(($ac_try" in
9859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9860 *) ac_try_echo=$ac_try;;
9862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9863 (eval "$ac_try") 2>&5
9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866 (exit $ac_status); }; } &&
9867 { ac_try='test -s conftest$ac_exeext'
9868 { (case "(($ac_try" in
9869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9870 *) ac_try_echo=$ac_try;;
9872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9873 (eval "$ac_try") 2>&5
9875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876 (exit $ac_status); }; }; then
9878 cat >>confdefs.h <<\_ACEOF
9879 #define HAVE_LIBDL 1
9881 libltdl_cv_func_dlopen="yes"
9883 echo "$as_me: failed program was:" >&5
9884 sed 's/^/| /' conftest.$ac_ext >&5
9886 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9887 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9888 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9889 echo $ECHO_N "(cached) $ECHO_C" >&6
9891 ac_check_lib_save_LIBS=$LIBS
9893 cat >conftest.$ac_ext <<_ACEOF
9896 cat confdefs.h >>conftest.$ac_ext
9897 cat >>conftest.$ac_ext <<_ACEOF
9898 /* end confdefs.h. */
9900 /* Override any GCC internal prototype to avoid an error.
9901 Use char because int might match the return type of a GCC
9902 builtin and then its argument prototype would still apply. */
9915 rm -f conftest.$ac_objext conftest$ac_exeext
9916 if { (ac_try="$ac_link"
9918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9919 *) ac_try_echo=$ac_try;;
9921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9922 (eval "$ac_link") 2>conftest.er1
9924 grep -v '^ *+' conftest.er1 >conftest.err
9926 cat conftest.err >&5
9927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928 (exit $ac_status); } &&
9929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9930 { (case "(($ac_try" in
9931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9932 *) ac_try_echo=$ac_try;;
9934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9935 (eval "$ac_try") 2>&5
9937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9938 (exit $ac_status); }; } &&
9939 { ac_try='test -s conftest$ac_exeext'
9940 { (case "(($ac_try" in
9941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9942 *) ac_try_echo=$ac_try;;
9944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9945 (eval "$ac_try") 2>&5
9947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948 (exit $ac_status); }; }; then
9949 ac_cv_lib_svld_dlopen=yes
9951 echo "$as_me: failed program was:" >&5
9952 sed 's/^/| /' conftest.$ac_ext >&5
9954 ac_cv_lib_svld_dlopen=no
9957 rm -f core conftest.err conftest.$ac_objext \
9958 conftest$ac_exeext conftest.$ac_ext
9959 LIBS=$ac_check_lib_save_LIBS
9961 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9962 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9963 if test $ac_cv_lib_svld_dlopen = yes; then
9965 cat >>confdefs.h <<\_ACEOF
9966 #define HAVE_LIBDL 1
9969 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9971 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9972 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9973 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9974 echo $ECHO_N "(cached) $ECHO_C" >&6
9976 ac_check_lib_save_LIBS=$LIBS
9978 cat >conftest.$ac_ext <<_ACEOF
9981 cat confdefs.h >>conftest.$ac_ext
9982 cat >>conftest.$ac_ext <<_ACEOF
9983 /* end confdefs.h. */
9985 /* Override any GCC internal prototype to avoid an error.
9986 Use char because int might match the return type of a GCC
9987 builtin and then its argument prototype would still apply. */
10000 rm -f conftest.$ac_objext conftest$ac_exeext
10001 if { (ac_try="$ac_link"
10002 case "(($ac_try" in
10003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10004 *) ac_try_echo=$ac_try;;
10006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10007 (eval "$ac_link") 2>conftest.er1
10009 grep -v '^ *+' conftest.er1 >conftest.err
10011 cat conftest.err >&5
10012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013 (exit $ac_status); } &&
10014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10015 { (case "(($ac_try" in
10016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10017 *) ac_try_echo=$ac_try;;
10019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10020 (eval "$ac_try") 2>&5
10022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10023 (exit $ac_status); }; } &&
10024 { ac_try='test -s conftest$ac_exeext'
10025 { (case "(($ac_try" in
10026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10027 *) ac_try_echo=$ac_try;;
10029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10030 (eval "$ac_try") 2>&5
10032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033 (exit $ac_status); }; }; then
10034 ac_cv_lib_dld_dld_link=yes
10036 echo "$as_me: failed program was:" >&5
10037 sed 's/^/| /' conftest.$ac_ext >&5
10039 ac_cv_lib_dld_dld_link=no
10042 rm -f core conftest.err conftest.$ac_objext \
10043 conftest$ac_exeext conftest.$ac_ext
10044 LIBS=$ac_check_lib_save_LIBS
10046 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10047 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10048 if test $ac_cv_lib_dld_dld_link = yes; then
10050 cat >>confdefs.h <<\_ACEOF
10054 LIBADD_DL="$LIBADD_DL -ldld"
10056 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10057 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10058 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10059 echo $ECHO_N "(cached) $ECHO_C" >&6
10061 cat >conftest.$ac_ext <<_ACEOF
10064 cat confdefs.h >>conftest.$ac_ext
10065 cat >>conftest.$ac_ext <<_ACEOF
10066 /* end confdefs.h. */
10067 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10068 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10069 #define _dyld_func_lookup innocuous__dyld_func_lookup
10071 /* System header to define __stub macros and hopefully few prototypes,
10072 which can conflict with char _dyld_func_lookup (); below.
10073 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10074 <limits.h> exists even on freestanding compilers. */
10077 # include <limits.h>
10079 # include <assert.h>
10082 #undef _dyld_func_lookup
10084 /* Override any GCC internal prototype to avoid an error.
10085 Use char because int might match the return type of a GCC
10086 builtin and then its argument prototype would still apply. */
10090 char _dyld_func_lookup ();
10091 /* The GNU C library defines this for functions which it implements
10092 to always fail with ENOSYS. Some functions are actually named
10093 something starting with __ and the normal name is an alias. */
10094 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10101 return _dyld_func_lookup ();
10106 rm -f conftest.$ac_objext conftest$ac_exeext
10107 if { (ac_try="$ac_link"
10108 case "(($ac_try" in
10109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10110 *) ac_try_echo=$ac_try;;
10112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10113 (eval "$ac_link") 2>conftest.er1
10115 grep -v '^ *+' conftest.er1 >conftest.err
10117 cat conftest.err >&5
10118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119 (exit $ac_status); } &&
10120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10121 { (case "(($ac_try" in
10122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10123 *) ac_try_echo=$ac_try;;
10125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10126 (eval "$ac_try") 2>&5
10128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129 (exit $ac_status); }; } &&
10130 { ac_try='test -s conftest$ac_exeext'
10131 { (case "(($ac_try" in
10132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10133 *) ac_try_echo=$ac_try;;
10135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10136 (eval "$ac_try") 2>&5
10138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10139 (exit $ac_status); }; }; then
10140 ac_cv_func__dyld_func_lookup=yes
10142 echo "$as_me: failed program was:" >&5
10143 sed 's/^/| /' conftest.$ac_ext >&5
10145 ac_cv_func__dyld_func_lookup=no
10148 rm -f core conftest.err conftest.$ac_objext \
10149 conftest$ac_exeext conftest.$ac_ext
10151 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10152 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10153 if test $ac_cv_func__dyld_func_lookup = yes; then
10155 cat >>confdefs.h <<\_ACEOF
10156 #define HAVE_DYLD 1
10170 rm -f core conftest.err conftest.$ac_objext \
10171 conftest$ac_exeext conftest.$ac_ext
10182 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10184 lt_save_LIBS="$LIBS"
10185 LIBS="$LIBS $LIBADD_DL"
10187 for ac_func in dlerror
10189 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10190 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10191 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10192 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10193 echo $ECHO_N "(cached) $ECHO_C" >&6
10195 cat >conftest.$ac_ext <<_ACEOF
10198 cat confdefs.h >>conftest.$ac_ext
10199 cat >>conftest.$ac_ext <<_ACEOF
10200 /* end confdefs.h. */
10201 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10202 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10203 #define $ac_func innocuous_$ac_func
10205 /* System header to define __stub macros and hopefully few prototypes,
10206 which can conflict with char $ac_func (); below.
10207 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10208 <limits.h> exists even on freestanding compilers. */
10211 # include <limits.h>
10213 # include <assert.h>
10218 /* Override any GCC internal prototype to avoid an error.
10219 Use char because int might match the return type of a GCC
10220 builtin and then its argument prototype would still apply. */
10225 /* The GNU C library defines this for functions which it implements
10226 to always fail with ENOSYS. Some functions are actually named
10227 something starting with __ and the normal name is an alias. */
10228 #if defined __stub_$ac_func || defined __stub___$ac_func
10235 return $ac_func ();
10240 rm -f conftest.$ac_objext conftest$ac_exeext
10241 if { (ac_try="$ac_link"
10242 case "(($ac_try" in
10243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10244 *) ac_try_echo=$ac_try;;
10246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10247 (eval "$ac_link") 2>conftest.er1
10249 grep -v '^ *+' conftest.er1 >conftest.err
10251 cat conftest.err >&5
10252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253 (exit $ac_status); } &&
10254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10255 { (case "(($ac_try" in
10256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10257 *) ac_try_echo=$ac_try;;
10259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10260 (eval "$ac_try") 2>&5
10262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263 (exit $ac_status); }; } &&
10264 { ac_try='test -s conftest$ac_exeext'
10265 { (case "(($ac_try" in
10266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10267 *) ac_try_echo=$ac_try;;
10269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10270 (eval "$ac_try") 2>&5
10272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10273 (exit $ac_status); }; }; then
10274 eval "$as_ac_var=yes"
10276 echo "$as_me: failed program was:" >&5
10277 sed 's/^/| /' conftest.$ac_ext >&5
10279 eval "$as_ac_var=no"
10282 rm -f core conftest.err conftest.$ac_objext \
10283 conftest$ac_exeext conftest.$ac_ext
10285 ac_res=`eval echo '${'$as_ac_var'}'`
10286 { echo "$as_me:$LINENO: result: $ac_res" >&5
10287 echo "${ECHO_T}$ac_res" >&6; }
10288 if test `eval echo '${'$as_ac_var'}'` = yes; then
10289 cat >>confdefs.h <<_ACEOF
10290 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10296 LIBS="$lt_save_LIBS"
10299 ac_cpp='$CPP $CPPFLAGS'
10300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10306 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10307 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10308 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10309 echo $ECHO_N "(cached) $ECHO_C" >&6
10311 ac_cv_sys_symbol_underscore=no
10312 cat > conftest.$ac_ext <<EOF
10313 void nm_test_func(){}
10314 int main(){nm_test_func;return 0;}
10316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10317 (eval $ac_compile) 2>&5
10319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10320 (exit $ac_status); }; then
10321 # Now try to grab the symbols.
10322 ac_nlist=conftest.nm
10323 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10324 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10327 (exit $ac_status); } && test -s "$ac_nlist"; then
10328 # See whether the symbols have a leading underscore.
10329 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10330 ac_cv_sys_symbol_underscore=yes
10332 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10335 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10339 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10342 echo "configure: failed program was:" >&5
10348 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10349 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10352 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10353 if test x"$libltdl_cv_func_dlopen" = xyes ||
10354 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10355 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10356 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10357 if test "${libltdl_cv_need_uscore+set}" = set; then
10358 echo $ECHO_N "(cached) $ECHO_C" >&6
10360 libltdl_cv_need_uscore=unknown
10362 LIBS="$LIBS $LIBADD_DL"
10363 if test "$cross_compiling" = yes; then :
10364 libltdl_cv_need_uscore=cross
10366 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10367 lt_status=$lt_dlunknown
10368 cat > conftest.$ac_ext <<EOF
10369 #line 10369 "configure"
10370 #include "confdefs.h"
10379 # define LT_DLGLOBAL RTLD_GLOBAL
10382 # define LT_DLGLOBAL DL_GLOBAL
10384 # define LT_DLGLOBAL 0
10388 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10389 find out it does not work in some platform. */
10390 #ifndef LT_DLLAZY_OR_NOW
10392 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10395 # define LT_DLLAZY_OR_NOW DL_LAZY
10398 # define LT_DLLAZY_OR_NOW RTLD_NOW
10401 # define LT_DLLAZY_OR_NOW DL_NOW
10403 # define LT_DLLAZY_OR_NOW 0
10411 extern "C" void exit (int);
10414 void fnord() { int i=42;}
10417 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10418 int status = $lt_dlunknown;
10422 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10423 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10424 /* dlclose (self); */
10432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10433 (eval $ac_link) 2>&5
10435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10436 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10437 (./conftest; exit; ) >&5 2>/dev/null
10439 case x$lt_status in
10440 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10441 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10442 x$lt_dlunknown|x*) ;;
10445 # compilation failed
10454 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10455 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10459 if test x"$libltdl_cv_need_uscore" = xyes; then
10461 cat >>confdefs.h <<\_ACEOF
10462 #define NEED_USCORE 1
10468 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10469 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10470 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10471 echo $ECHO_N "(cached) $ECHO_C" >&6
10473 # PORTME does your system automatically load deplibs for dlopen?
10474 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10475 # For now, we just catch OSes we know something about -- in the
10476 # future, we'll try test this programmatically.
10477 libltdl_cv_sys_dlopen_deplibs=unknown
10479 aix3*|aix4.1.*|aix4.2.*)
10480 # Unknown whether this is true for these versions of AIX, but
10481 # we want this `case' here to explicitly catch those versions.
10482 libltdl_cv_sys_dlopen_deplibs=unknown
10485 libltdl_cv_sys_dlopen_deplibs=yes
10488 # Assuming the user has installed a libdl from somewhere, this is true
10489 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10490 libltdl_cv_sys_dlopen_deplibs=yes
10492 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10493 # GNU and its variants, using gnu ld.so (Glibc)
10494 libltdl_cv_sys_dlopen_deplibs=yes
10497 libltdl_cv_sys_dlopen_deplibs=yes
10500 libltdl_cv_sys_dlopen_deplibs=yes
10502 irix[12345]*|irix6.[01]*)
10503 # Catch all versions of IRIX before 6.2, and indicate that we don't
10504 # know how it worked for any of those versions.
10505 libltdl_cv_sys_dlopen_deplibs=unknown
10508 # The case above catches anything before 6.2, and it's known that
10509 # at 6.2 and later dlopen does load deplibs.
10510 libltdl_cv_sys_dlopen_deplibs=yes
10513 libltdl_cv_sys_dlopen_deplibs=yes
10516 libltdl_cv_sys_dlopen_deplibs=yes
10519 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10520 # it did *not* use an RPATH in a shared library to find objects the
10521 # library depends on, so we explicitly say `no'.
10522 libltdl_cv_sys_dlopen_deplibs=no
10524 osf5.0|osf5.0a|osf5.1)
10525 # dlopen *does* load deplibs and with the right loader patch applied
10526 # it even uses RPATH in a shared library to search for shared objects
10527 # that the library depends on, but there's no easy way to know if that
10528 # patch is installed. Since this is the case, all we can really
10529 # say is unknown -- it depends on the patch being installed. If
10530 # it is, this changes to `yes'. Without it, it would be `no'.
10531 libltdl_cv_sys_dlopen_deplibs=unknown
10534 # the two cases above should catch all versions of osf <= 5.1. Read
10535 # the comments above for what we know about them.
10536 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10537 # is used to find them so we can finally say `yes'.
10538 libltdl_cv_sys_dlopen_deplibs=yes
10541 libltdl_cv_sys_dlopen_deplibs=yes
10543 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10544 libltdl_cv_sys_dlopen_deplibs=yes
10549 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10550 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10551 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10553 cat >>confdefs.h <<\_ACEOF
10554 #define LTDL_DLOPEN_DEPLIBS 1
10560 for ac_header in argz.h
10562 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10563 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10564 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10565 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10566 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10567 echo $ECHO_N "(cached) $ECHO_C" >&6
10569 ac_res=`eval echo '${'$as_ac_Header'}'`
10570 { echo "$as_me:$LINENO: result: $ac_res" >&5
10571 echo "${ECHO_T}$ac_res" >&6; }
10573 # Is the header compilable?
10574 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10575 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10576 cat >conftest.$ac_ext <<_ACEOF
10579 cat confdefs.h >>conftest.$ac_ext
10580 cat >>conftest.$ac_ext <<_ACEOF
10581 /* end confdefs.h. */
10582 $ac_includes_default
10583 #include <$ac_header>
10585 rm -f conftest.$ac_objext
10586 if { (ac_try="$ac_compile"
10587 case "(($ac_try" in
10588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10589 *) ac_try_echo=$ac_try;;
10591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10592 (eval "$ac_compile") 2>conftest.er1
10594 grep -v '^ *+' conftest.er1 >conftest.err
10596 cat conftest.err >&5
10597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10598 (exit $ac_status); } &&
10599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10600 { (case "(($ac_try" in
10601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10602 *) ac_try_echo=$ac_try;;
10604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10605 (eval "$ac_try") 2>&5
10607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608 (exit $ac_status); }; } &&
10609 { ac_try='test -s conftest.$ac_objext'
10610 { (case "(($ac_try" in
10611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10612 *) ac_try_echo=$ac_try;;
10614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10615 (eval "$ac_try") 2>&5
10617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10618 (exit $ac_status); }; }; then
10619 ac_header_compiler=yes
10621 echo "$as_me: failed program was:" >&5
10622 sed 's/^/| /' conftest.$ac_ext >&5
10624 ac_header_compiler=no
10627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10628 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10629 echo "${ECHO_T}$ac_header_compiler" >&6; }
10631 # Is the header present?
10632 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10633 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10634 cat >conftest.$ac_ext <<_ACEOF
10637 cat confdefs.h >>conftest.$ac_ext
10638 cat >>conftest.$ac_ext <<_ACEOF
10639 /* end confdefs.h. */
10640 #include <$ac_header>
10642 if { (ac_try="$ac_cpp conftest.$ac_ext"
10643 case "(($ac_try" in
10644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10645 *) ac_try_echo=$ac_try;;
10647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10648 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10650 grep -v '^ *+' conftest.er1 >conftest.err
10652 cat conftest.err >&5
10653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654 (exit $ac_status); } >/dev/null; then
10655 if test -s conftest.err; then
10656 ac_cpp_err=$ac_c_preproc_warn_flag
10657 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10664 if test -z "$ac_cpp_err"; then
10665 ac_header_preproc=yes
10667 echo "$as_me: failed program was:" >&5
10668 sed 's/^/| /' conftest.$ac_ext >&5
10670 ac_header_preproc=no
10673 rm -f conftest.err conftest.$ac_ext
10674 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10675 echo "${ECHO_T}$ac_header_preproc" >&6; }
10677 # So? What about this header?
10678 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10680 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10681 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10682 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10683 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10684 ac_header_preproc=yes
10687 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10688 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10689 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10690 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10691 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10692 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10693 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10694 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10695 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10696 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10697 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10698 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10700 ## ------------------------------ ##
10701 ## Report this to bugs@yourdomain ##
10702 ## ------------------------------ ##
10704 ) | sed "s/^/$as_me: WARNING: /" >&2
10707 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10708 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10709 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10710 echo $ECHO_N "(cached) $ECHO_C" >&6
10712 eval "$as_ac_Header=\$ac_header_preproc"
10714 ac_res=`eval echo '${'$as_ac_Header'}'`
10715 { echo "$as_me:$LINENO: result: $ac_res" >&5
10716 echo "${ECHO_T}$ac_res" >&6; }
10719 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10720 cat >>confdefs.h <<_ACEOF
10721 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10729 { echo "$as_me:$LINENO: checking for error_t" >&5
10730 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10731 if test "${ac_cv_type_error_t+set}" = set; then
10732 echo $ECHO_N "(cached) $ECHO_C" >&6
10734 cat >conftest.$ac_ext <<_ACEOF
10737 cat confdefs.h >>conftest.$ac_ext
10738 cat >>conftest.$ac_ext <<_ACEOF
10739 /* end confdefs.h. */
10744 typedef error_t ac__type_new_;
10748 if ((ac__type_new_ *) 0)
10750 if (sizeof (ac__type_new_))
10756 rm -f conftest.$ac_objext
10757 if { (ac_try="$ac_compile"
10758 case "(($ac_try" in
10759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10760 *) ac_try_echo=$ac_try;;
10762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10763 (eval "$ac_compile") 2>conftest.er1
10765 grep -v '^ *+' conftest.er1 >conftest.err
10767 cat conftest.err >&5
10768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769 (exit $ac_status); } &&
10770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10771 { (case "(($ac_try" in
10772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10773 *) ac_try_echo=$ac_try;;
10775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10776 (eval "$ac_try") 2>&5
10778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779 (exit $ac_status); }; } &&
10780 { ac_try='test -s conftest.$ac_objext'
10781 { (case "(($ac_try" in
10782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10783 *) ac_try_echo=$ac_try;;
10785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10786 (eval "$ac_try") 2>&5
10788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789 (exit $ac_status); }; }; then
10790 ac_cv_type_error_t=yes
10792 echo "$as_me: failed program was:" >&5
10793 sed 's/^/| /' conftest.$ac_ext >&5
10795 ac_cv_type_error_t=no
10798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10800 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10801 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10802 if test $ac_cv_type_error_t = yes; then
10804 cat >>confdefs.h <<_ACEOF
10805 #define HAVE_ERROR_T 1
10811 cat >>confdefs.h <<\_ACEOF
10812 #define error_t int
10823 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10825 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10826 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10827 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10828 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10829 echo $ECHO_N "(cached) $ECHO_C" >&6
10831 cat >conftest.$ac_ext <<_ACEOF
10834 cat confdefs.h >>conftest.$ac_ext
10835 cat >>conftest.$ac_ext <<_ACEOF
10836 /* end confdefs.h. */
10837 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10838 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10839 #define $ac_func innocuous_$ac_func
10841 /* System header to define __stub macros and hopefully few prototypes,
10842 which can conflict with char $ac_func (); below.
10843 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10844 <limits.h> exists even on freestanding compilers. */
10847 # include <limits.h>
10849 # include <assert.h>
10854 /* Override any GCC internal prototype to avoid an error.
10855 Use char because int might match the return type of a GCC
10856 builtin and then its argument prototype would still apply. */
10861 /* The GNU C library defines this for functions which it implements
10862 to always fail with ENOSYS. Some functions are actually named
10863 something starting with __ and the normal name is an alias. */
10864 #if defined __stub_$ac_func || defined __stub___$ac_func
10871 return $ac_func ();
10876 rm -f conftest.$ac_objext conftest$ac_exeext
10877 if { (ac_try="$ac_link"
10878 case "(($ac_try" in
10879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10880 *) ac_try_echo=$ac_try;;
10882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10883 (eval "$ac_link") 2>conftest.er1
10885 grep -v '^ *+' conftest.er1 >conftest.err
10887 cat conftest.err >&5
10888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889 (exit $ac_status); } &&
10890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10891 { (case "(($ac_try" in
10892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10893 *) ac_try_echo=$ac_try;;
10895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10896 (eval "$ac_try") 2>&5
10898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899 (exit $ac_status); }; } &&
10900 { ac_try='test -s conftest$ac_exeext'
10901 { (case "(($ac_try" in
10902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10903 *) ac_try_echo=$ac_try;;
10905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10906 (eval "$ac_try") 2>&5
10908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10909 (exit $ac_status); }; }; then
10910 eval "$as_ac_var=yes"
10912 echo "$as_me: failed program was:" >&5
10913 sed 's/^/| /' conftest.$ac_ext >&5
10915 eval "$as_ac_var=no"
10918 rm -f core conftest.err conftest.$ac_objext \
10919 conftest$ac_exeext conftest.$ac_ext
10921 ac_res=`eval echo '${'$as_ac_var'}'`
10922 { echo "$as_me:$LINENO: result: $ac_res" >&5
10923 echo "${ECHO_T}$ac_res" >&6; }
10924 if test `eval echo '${'$as_ac_var'}'` = yes; then
10925 cat >>confdefs.h <<_ACEOF
10926 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10959 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10962 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10963 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10964 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10966 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10967 echo $ECHO_N "(cached) $ECHO_C" >&6
10969 ac_res=`eval echo '${'$as_ac_Header'}'`
10970 { echo "$as_me:$LINENO: result: $ac_res" >&5
10971 echo "${ECHO_T}$ac_res" >&6; }
10973 # Is the header compilable?
10974 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10975 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10976 cat >conftest.$ac_ext <<_ACEOF
10979 cat confdefs.h >>conftest.$ac_ext
10980 cat >>conftest.$ac_ext <<_ACEOF
10981 /* end confdefs.h. */
10982 $ac_includes_default
10983 #include <$ac_header>
10985 rm -f conftest.$ac_objext
10986 if { (ac_try="$ac_compile"
10987 case "(($ac_try" in
10988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10989 *) ac_try_echo=$ac_try;;
10991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10992 (eval "$ac_compile") 2>conftest.er1
10994 grep -v '^ *+' conftest.er1 >conftest.err
10996 cat conftest.err >&5
10997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998 (exit $ac_status); } &&
10999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11000 { (case "(($ac_try" in
11001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11002 *) ac_try_echo=$ac_try;;
11004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11005 (eval "$ac_try") 2>&5
11007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11008 (exit $ac_status); }; } &&
11009 { ac_try='test -s conftest.$ac_objext'
11010 { (case "(($ac_try" in
11011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11012 *) ac_try_echo=$ac_try;;
11014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11015 (eval "$ac_try") 2>&5
11017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018 (exit $ac_status); }; }; then
11019 ac_header_compiler=yes
11021 echo "$as_me: failed program was:" >&5
11022 sed 's/^/| /' conftest.$ac_ext >&5
11024 ac_header_compiler=no
11027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11028 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11029 echo "${ECHO_T}$ac_header_compiler" >&6; }
11031 # Is the header present?
11032 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11033 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11034 cat >conftest.$ac_ext <<_ACEOF
11037 cat confdefs.h >>conftest.$ac_ext
11038 cat >>conftest.$ac_ext <<_ACEOF
11039 /* end confdefs.h. */
11040 #include <$ac_header>
11042 if { (ac_try="$ac_cpp conftest.$ac_ext"
11043 case "(($ac_try" in
11044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11045 *) ac_try_echo=$ac_try;;
11047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11048 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11050 grep -v '^ *+' conftest.er1 >conftest.err
11052 cat conftest.err >&5
11053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11054 (exit $ac_status); } >/dev/null; then
11055 if test -s conftest.err; then
11056 ac_cpp_err=$ac_c_preproc_warn_flag
11057 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11064 if test -z "$ac_cpp_err"; then
11065 ac_header_preproc=yes
11067 echo "$as_me: failed program was:" >&5
11068 sed 's/^/| /' conftest.$ac_ext >&5
11070 ac_header_preproc=no
11073 rm -f conftest.err conftest.$ac_ext
11074 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11075 echo "${ECHO_T}$ac_header_preproc" >&6; }
11077 # So? What about this header?
11078 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11080 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11081 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11082 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11083 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11084 ac_header_preproc=yes
11087 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11088 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11089 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11090 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11091 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11092 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11093 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11094 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11095 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11096 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11097 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11098 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11100 ## ------------------------------ ##
11101 ## Report this to bugs@yourdomain ##
11102 ## ------------------------------ ##
11104 ) | sed "s/^/$as_me: WARNING: /" >&2
11107 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11108 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11109 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11110 echo $ECHO_N "(cached) $ECHO_C" >&6
11112 eval "$as_ac_Header=\$ac_header_preproc"
11114 ac_res=`eval echo '${'$as_ac_Header'}'`
11115 { echo "$as_me:$LINENO: result: $ac_res" >&5
11116 echo "${ECHO_T}$ac_res" >&6; }
11119 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11120 cat >>confdefs.h <<_ACEOF
11121 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11132 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11134 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11135 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11136 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11137 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11138 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11139 echo $ECHO_N "(cached) $ECHO_C" >&6
11141 ac_res=`eval echo '${'$as_ac_Header'}'`
11142 { echo "$as_me:$LINENO: result: $ac_res" >&5
11143 echo "${ECHO_T}$ac_res" >&6; }
11145 # Is the header compilable?
11146 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11147 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11148 cat >conftest.$ac_ext <<_ACEOF
11151 cat confdefs.h >>conftest.$ac_ext
11152 cat >>conftest.$ac_ext <<_ACEOF
11153 /* end confdefs.h. */
11154 $ac_includes_default
11155 #include <$ac_header>
11157 rm -f conftest.$ac_objext
11158 if { (ac_try="$ac_compile"
11159 case "(($ac_try" in
11160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11161 *) ac_try_echo=$ac_try;;
11163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11164 (eval "$ac_compile") 2>conftest.er1
11166 grep -v '^ *+' conftest.er1 >conftest.err
11168 cat conftest.err >&5
11169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170 (exit $ac_status); } &&
11171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11172 { (case "(($ac_try" in
11173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11174 *) ac_try_echo=$ac_try;;
11176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11177 (eval "$ac_try") 2>&5
11179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11180 (exit $ac_status); }; } &&
11181 { ac_try='test -s conftest.$ac_objext'
11182 { (case "(($ac_try" in
11183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11184 *) ac_try_echo=$ac_try;;
11186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11187 (eval "$ac_try") 2>&5
11189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190 (exit $ac_status); }; }; then
11191 ac_header_compiler=yes
11193 echo "$as_me: failed program was:" >&5
11194 sed 's/^/| /' conftest.$ac_ext >&5
11196 ac_header_compiler=no
11199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11200 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11201 echo "${ECHO_T}$ac_header_compiler" >&6; }
11203 # Is the header present?
11204 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11205 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11206 cat >conftest.$ac_ext <<_ACEOF
11209 cat confdefs.h >>conftest.$ac_ext
11210 cat >>conftest.$ac_ext <<_ACEOF
11211 /* end confdefs.h. */
11212 #include <$ac_header>
11214 if { (ac_try="$ac_cpp conftest.$ac_ext"
11215 case "(($ac_try" in
11216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11217 *) ac_try_echo=$ac_try;;
11219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11220 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11222 grep -v '^ *+' conftest.er1 >conftest.err
11224 cat conftest.err >&5
11225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11226 (exit $ac_status); } >/dev/null; then
11227 if test -s conftest.err; then
11228 ac_cpp_err=$ac_c_preproc_warn_flag
11229 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11236 if test -z "$ac_cpp_err"; then
11237 ac_header_preproc=yes
11239 echo "$as_me: failed program was:" >&5
11240 sed 's/^/| /' conftest.$ac_ext >&5
11242 ac_header_preproc=no
11245 rm -f conftest.err conftest.$ac_ext
11246 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11247 echo "${ECHO_T}$ac_header_preproc" >&6; }
11249 # So? What about this header?
11250 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11252 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11253 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11254 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11255 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11256 ac_header_preproc=yes
11259 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11260 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11261 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11262 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11263 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11264 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11265 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11266 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11267 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11268 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11269 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11270 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11272 ## ------------------------------ ##
11273 ## Report this to bugs@yourdomain ##
11274 ## ------------------------------ ##
11276 ) | sed "s/^/$as_me: WARNING: /" >&2
11279 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11280 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11281 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11282 echo $ECHO_N "(cached) $ECHO_C" >&6
11284 eval "$as_ac_Header=\$ac_header_preproc"
11286 ac_res=`eval echo '${'$as_ac_Header'}'`
11287 { echo "$as_me:$LINENO: result: $ac_res" >&5
11288 echo "${ECHO_T}$ac_res" >&6; }
11291 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11292 cat >>confdefs.h <<_ACEOF
11293 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11302 for ac_header in string.h strings.h
11304 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11306 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11308 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11309 echo $ECHO_N "(cached) $ECHO_C" >&6
11311 ac_res=`eval echo '${'$as_ac_Header'}'`
11312 { echo "$as_me:$LINENO: result: $ac_res" >&5
11313 echo "${ECHO_T}$ac_res" >&6; }
11315 # Is the header compilable?
11316 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11317 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11318 cat >conftest.$ac_ext <<_ACEOF
11321 cat confdefs.h >>conftest.$ac_ext
11322 cat >>conftest.$ac_ext <<_ACEOF
11323 /* end confdefs.h. */
11324 $ac_includes_default
11325 #include <$ac_header>
11327 rm -f conftest.$ac_objext
11328 if { (ac_try="$ac_compile"
11329 case "(($ac_try" in
11330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11331 *) ac_try_echo=$ac_try;;
11333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11334 (eval "$ac_compile") 2>conftest.er1
11336 grep -v '^ *+' conftest.er1 >conftest.err
11338 cat conftest.err >&5
11339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340 (exit $ac_status); } &&
11341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11342 { (case "(($ac_try" in
11343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11344 *) ac_try_echo=$ac_try;;
11346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11347 (eval "$ac_try") 2>&5
11349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350 (exit $ac_status); }; } &&
11351 { ac_try='test -s conftest.$ac_objext'
11352 { (case "(($ac_try" in
11353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11354 *) ac_try_echo=$ac_try;;
11356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11357 (eval "$ac_try") 2>&5
11359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360 (exit $ac_status); }; }; then
11361 ac_header_compiler=yes
11363 echo "$as_me: failed program was:" >&5
11364 sed 's/^/| /' conftest.$ac_ext >&5
11366 ac_header_compiler=no
11369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11370 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11371 echo "${ECHO_T}$ac_header_compiler" >&6; }
11373 # Is the header present?
11374 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11375 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11376 cat >conftest.$ac_ext <<_ACEOF
11379 cat confdefs.h >>conftest.$ac_ext
11380 cat >>conftest.$ac_ext <<_ACEOF
11381 /* end confdefs.h. */
11382 #include <$ac_header>
11384 if { (ac_try="$ac_cpp conftest.$ac_ext"
11385 case "(($ac_try" in
11386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11387 *) ac_try_echo=$ac_try;;
11389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11390 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11392 grep -v '^ *+' conftest.er1 >conftest.err
11394 cat conftest.err >&5
11395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11396 (exit $ac_status); } >/dev/null; then
11397 if test -s conftest.err; then
11398 ac_cpp_err=$ac_c_preproc_warn_flag
11399 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11406 if test -z "$ac_cpp_err"; then
11407 ac_header_preproc=yes
11409 echo "$as_me: failed program was:" >&5
11410 sed 's/^/| /' conftest.$ac_ext >&5
11412 ac_header_preproc=no
11415 rm -f conftest.err conftest.$ac_ext
11416 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11417 echo "${ECHO_T}$ac_header_preproc" >&6; }
11419 # So? What about this header?
11420 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11422 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11423 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11424 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11425 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11426 ac_header_preproc=yes
11429 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11430 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11431 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11432 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11433 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11434 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11435 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11436 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11437 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11438 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11439 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11440 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11442 ## ------------------------------ ##
11443 ## Report this to bugs@yourdomain ##
11444 ## ------------------------------ ##
11446 ) | sed "s/^/$as_me: WARNING: /" >&2
11449 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11450 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11451 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11452 echo $ECHO_N "(cached) $ECHO_C" >&6
11454 eval "$as_ac_Header=\$ac_header_preproc"
11456 ac_res=`eval echo '${'$as_ac_Header'}'`
11457 { echo "$as_me:$LINENO: result: $ac_res" >&5
11458 echo "${ECHO_T}$ac_res" >&6; }
11461 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11462 cat >>confdefs.h <<_ACEOF
11463 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11473 for ac_func in strchr index
11475 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11476 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11477 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11478 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11479 echo $ECHO_N "(cached) $ECHO_C" >&6
11481 cat >conftest.$ac_ext <<_ACEOF
11484 cat confdefs.h >>conftest.$ac_ext
11485 cat >>conftest.$ac_ext <<_ACEOF
11486 /* end confdefs.h. */
11487 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11488 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11489 #define $ac_func innocuous_$ac_func
11491 /* System header to define __stub macros and hopefully few prototypes,
11492 which can conflict with char $ac_func (); below.
11493 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11494 <limits.h> exists even on freestanding compilers. */
11497 # include <limits.h>
11499 # include <assert.h>
11504 /* Override any GCC internal prototype to avoid an error.
11505 Use char because int might match the return type of a GCC
11506 builtin and then its argument prototype would still apply. */
11511 /* The GNU C library defines this for functions which it implements
11512 to always fail with ENOSYS. Some functions are actually named
11513 something starting with __ and the normal name is an alias. */
11514 #if defined __stub_$ac_func || defined __stub___$ac_func
11521 return $ac_func ();
11526 rm -f conftest.$ac_objext conftest$ac_exeext
11527 if { (ac_try="$ac_link"
11528 case "(($ac_try" in
11529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11530 *) ac_try_echo=$ac_try;;
11532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11533 (eval "$ac_link") 2>conftest.er1
11535 grep -v '^ *+' conftest.er1 >conftest.err
11537 cat conftest.err >&5
11538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11539 (exit $ac_status); } &&
11540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11541 { (case "(($ac_try" in
11542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11543 *) ac_try_echo=$ac_try;;
11545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11546 (eval "$ac_try") 2>&5
11548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11549 (exit $ac_status); }; } &&
11550 { ac_try='test -s conftest$ac_exeext'
11551 { (case "(($ac_try" in
11552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11553 *) ac_try_echo=$ac_try;;
11555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11556 (eval "$ac_try") 2>&5
11558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11559 (exit $ac_status); }; }; then
11560 eval "$as_ac_var=yes"
11562 echo "$as_me: failed program was:" >&5
11563 sed 's/^/| /' conftest.$ac_ext >&5
11565 eval "$as_ac_var=no"
11568 rm -f core conftest.err conftest.$ac_objext \
11569 conftest$ac_exeext conftest.$ac_ext
11571 ac_res=`eval echo '${'$as_ac_var'}'`
11572 { echo "$as_me:$LINENO: result: $ac_res" >&5
11573 echo "${ECHO_T}$ac_res" >&6; }
11574 if test `eval echo '${'$as_ac_var'}'` = yes; then
11575 cat >>confdefs.h <<_ACEOF
11576 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11584 for ac_func in strrchr rindex
11586 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11587 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11588 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11589 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11590 echo $ECHO_N "(cached) $ECHO_C" >&6
11592 cat >conftest.$ac_ext <<_ACEOF
11595 cat confdefs.h >>conftest.$ac_ext
11596 cat >>conftest.$ac_ext <<_ACEOF
11597 /* end confdefs.h. */
11598 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11599 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11600 #define $ac_func innocuous_$ac_func
11602 /* System header to define __stub macros and hopefully few prototypes,
11603 which can conflict with char $ac_func (); below.
11604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11605 <limits.h> exists even on freestanding compilers. */
11608 # include <limits.h>
11610 # include <assert.h>
11615 /* Override any GCC internal prototype to avoid an error.
11616 Use char because int might match the return type of a GCC
11617 builtin and then its argument prototype would still apply. */
11622 /* The GNU C library defines this for functions which it implements
11623 to always fail with ENOSYS. Some functions are actually named
11624 something starting with __ and the normal name is an alias. */
11625 #if defined __stub_$ac_func || defined __stub___$ac_func
11632 return $ac_func ();
11637 rm -f conftest.$ac_objext conftest$ac_exeext
11638 if { (ac_try="$ac_link"
11639 case "(($ac_try" in
11640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11641 *) ac_try_echo=$ac_try;;
11643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11644 (eval "$ac_link") 2>conftest.er1
11646 grep -v '^ *+' conftest.er1 >conftest.err
11648 cat conftest.err >&5
11649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11650 (exit $ac_status); } &&
11651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11652 { (case "(($ac_try" in
11653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11654 *) ac_try_echo=$ac_try;;
11656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11657 (eval "$ac_try") 2>&5
11659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660 (exit $ac_status); }; } &&
11661 { ac_try='test -s conftest$ac_exeext'
11662 { (case "(($ac_try" in
11663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11664 *) ac_try_echo=$ac_try;;
11666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11667 (eval "$ac_try") 2>&5
11669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670 (exit $ac_status); }; }; then
11671 eval "$as_ac_var=yes"
11673 echo "$as_me: failed program was:" >&5
11674 sed 's/^/| /' conftest.$ac_ext >&5
11676 eval "$as_ac_var=no"
11679 rm -f core conftest.err conftest.$ac_objext \
11680 conftest$ac_exeext conftest.$ac_ext
11682 ac_res=`eval echo '${'$as_ac_var'}'`
11683 { echo "$as_me:$LINENO: result: $ac_res" >&5
11684 echo "${ECHO_T}$ac_res" >&6; }
11685 if test `eval echo '${'$as_ac_var'}'` = yes; then
11686 cat >>confdefs.h <<_ACEOF
11687 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11695 for ac_func in memcpy bcopy
11697 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11698 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11699 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11700 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11701 echo $ECHO_N "(cached) $ECHO_C" >&6
11703 cat >conftest.$ac_ext <<_ACEOF
11706 cat confdefs.h >>conftest.$ac_ext
11707 cat >>conftest.$ac_ext <<_ACEOF
11708 /* end confdefs.h. */
11709 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11710 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11711 #define $ac_func innocuous_$ac_func
11713 /* System header to define __stub macros and hopefully few prototypes,
11714 which can conflict with char $ac_func (); below.
11715 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11716 <limits.h> exists even on freestanding compilers. */
11719 # include <limits.h>
11721 # include <assert.h>
11726 /* Override any GCC internal prototype to avoid an error.
11727 Use char because int might match the return type of a GCC
11728 builtin and then its argument prototype would still apply. */
11733 /* The GNU C library defines this for functions which it implements
11734 to always fail with ENOSYS. Some functions are actually named
11735 something starting with __ and the normal name is an alias. */
11736 #if defined __stub_$ac_func || defined __stub___$ac_func
11743 return $ac_func ();
11748 rm -f conftest.$ac_objext conftest$ac_exeext
11749 if { (ac_try="$ac_link"
11750 case "(($ac_try" in
11751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11752 *) ac_try_echo=$ac_try;;
11754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11755 (eval "$ac_link") 2>conftest.er1
11757 grep -v '^ *+' conftest.er1 >conftest.err
11759 cat conftest.err >&5
11760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761 (exit $ac_status); } &&
11762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11763 { (case "(($ac_try" in
11764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11765 *) ac_try_echo=$ac_try;;
11767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11768 (eval "$ac_try") 2>&5
11770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771 (exit $ac_status); }; } &&
11772 { ac_try='test -s conftest$ac_exeext'
11773 { (case "(($ac_try" in
11774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11775 *) ac_try_echo=$ac_try;;
11777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11778 (eval "$ac_try") 2>&5
11780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781 (exit $ac_status); }; }; then
11782 eval "$as_ac_var=yes"
11784 echo "$as_me: failed program was:" >&5
11785 sed 's/^/| /' conftest.$ac_ext >&5
11787 eval "$as_ac_var=no"
11790 rm -f core conftest.err conftest.$ac_objext \
11791 conftest$ac_exeext conftest.$ac_ext
11793 ac_res=`eval echo '${'$as_ac_var'}'`
11794 { echo "$as_me:$LINENO: result: $ac_res" >&5
11795 echo "${ECHO_T}$ac_res" >&6; }
11796 if test `eval echo '${'$as_ac_var'}'` = yes; then
11797 cat >>confdefs.h <<_ACEOF
11798 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11806 for ac_func in memmove strcmp
11808 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11809 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11810 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11811 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11812 echo $ECHO_N "(cached) $ECHO_C" >&6
11814 cat >conftest.$ac_ext <<_ACEOF
11817 cat confdefs.h >>conftest.$ac_ext
11818 cat >>conftest.$ac_ext <<_ACEOF
11819 /* end confdefs.h. */
11820 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11821 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11822 #define $ac_func innocuous_$ac_func
11824 /* System header to define __stub macros and hopefully few prototypes,
11825 which can conflict with char $ac_func (); below.
11826 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11827 <limits.h> exists even on freestanding compilers. */
11830 # include <limits.h>
11832 # include <assert.h>
11837 /* Override any GCC internal prototype to avoid an error.
11838 Use char because int might match the return type of a GCC
11839 builtin and then its argument prototype would still apply. */
11844 /* The GNU C library defines this for functions which it implements
11845 to always fail with ENOSYS. Some functions are actually named
11846 something starting with __ and the normal name is an alias. */
11847 #if defined __stub_$ac_func || defined __stub___$ac_func
11854 return $ac_func ();
11859 rm -f conftest.$ac_objext conftest$ac_exeext
11860 if { (ac_try="$ac_link"
11861 case "(($ac_try" in
11862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11863 *) ac_try_echo=$ac_try;;
11865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11866 (eval "$ac_link") 2>conftest.er1
11868 grep -v '^ *+' conftest.er1 >conftest.err
11870 cat conftest.err >&5
11871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11872 (exit $ac_status); } &&
11873 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11874 { (case "(($ac_try" in
11875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11876 *) ac_try_echo=$ac_try;;
11878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11879 (eval "$ac_try") 2>&5
11881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882 (exit $ac_status); }; } &&
11883 { ac_try='test -s conftest$ac_exeext'
11884 { (case "(($ac_try" in
11885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11886 *) ac_try_echo=$ac_try;;
11888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11889 (eval "$ac_try") 2>&5
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 (exit $ac_status); }; }; then
11893 eval "$as_ac_var=yes"
11895 echo "$as_me: failed program was:" >&5
11896 sed 's/^/| /' conftest.$ac_ext >&5
11898 eval "$as_ac_var=no"
11901 rm -f core conftest.err conftest.$ac_objext \
11902 conftest$ac_exeext conftest.$ac_ext
11904 ac_res=`eval echo '${'$as_ac_var'}'`
11905 { echo "$as_me:$LINENO: result: $ac_res" >&5
11906 echo "${ECHO_T}$ac_res" >&6; }
11907 if test `eval echo '${'$as_ac_var'}'` = yes; then
11908 cat >>confdefs.h <<_ACEOF
11909 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11918 for ac_func in closedir opendir readdir
11920 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11921 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11922 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11923 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11924 echo $ECHO_N "(cached) $ECHO_C" >&6
11926 cat >conftest.$ac_ext <<_ACEOF
11929 cat confdefs.h >>conftest.$ac_ext
11930 cat >>conftest.$ac_ext <<_ACEOF
11931 /* end confdefs.h. */
11932 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11933 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11934 #define $ac_func innocuous_$ac_func
11936 /* System header to define __stub macros and hopefully few prototypes,
11937 which can conflict with char $ac_func (); below.
11938 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11939 <limits.h> exists even on freestanding compilers. */
11942 # include <limits.h>
11944 # include <assert.h>
11949 /* Override any GCC internal prototype to avoid an error.
11950 Use char because int might match the return type of a GCC
11951 builtin and then its argument prototype would still apply. */
11956 /* The GNU C library defines this for functions which it implements
11957 to always fail with ENOSYS. Some functions are actually named
11958 something starting with __ and the normal name is an alias. */
11959 #if defined __stub_$ac_func || defined __stub___$ac_func
11966 return $ac_func ();
11971 rm -f conftest.$ac_objext conftest$ac_exeext
11972 if { (ac_try="$ac_link"
11973 case "(($ac_try" in
11974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11975 *) ac_try_echo=$ac_try;;
11977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11978 (eval "$ac_link") 2>conftest.er1
11980 grep -v '^ *+' conftest.er1 >conftest.err
11982 cat conftest.err >&5
11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); } &&
11985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11986 { (case "(($ac_try" in
11987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11988 *) ac_try_echo=$ac_try;;
11990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11991 (eval "$ac_try") 2>&5
11993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994 (exit $ac_status); }; } &&
11995 { ac_try='test -s conftest$ac_exeext'
11996 { (case "(($ac_try" in
11997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11998 *) ac_try_echo=$ac_try;;
12000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12001 (eval "$ac_try") 2>&5
12003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004 (exit $ac_status); }; }; then
12005 eval "$as_ac_var=yes"
12007 echo "$as_me: failed program was:" >&5
12008 sed 's/^/| /' conftest.$ac_ext >&5
12010 eval "$as_ac_var=no"
12013 rm -f core conftest.err conftest.$ac_objext \
12014 conftest$ac_exeext conftest.$ac_ext
12016 ac_res=`eval echo '${'$as_ac_var'}'`
12017 { echo "$as_me:$LINENO: result: $ac_res" >&5
12018 echo "${ECHO_T}$ac_res" >&6; }
12019 if test `eval echo '${'$as_ac_var'}'` = yes; then
12020 cat >>confdefs.h <<_ACEOF
12021 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12029 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12030 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12043 if test "$GCC" != "yes" && test "$ICC" != "yes"
12045 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12046 echo "$as_me: error: gcc|icc required but not found" >&2;}
12047 { (exit 1); exit 1; }; }
12050 if test "$GXX" != "yes" && test "$IXX" != "yes"
12052 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12053 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12054 { (exit 1); exit 1; }; }
12057 if test "$GCC" = "yes"
12059 cat >conftest.$ac_ext <<_ACEOF
12060 #if !defined(__GNUC__) || __GNUC__ < 3
12061 #error Unsupported GCC version
12065 rm -f conftest.$ac_objext
12066 if { (ac_try="$ac_compile"
12067 case "(($ac_try" in
12068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12069 *) ac_try_echo=$ac_try;;
12071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12072 (eval "$ac_compile") 2>conftest.er1
12074 grep -v '^ *+' conftest.er1 >conftest.err
12076 cat conftest.err >&5
12077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12078 (exit $ac_status); } &&
12079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12080 { (case "(($ac_try" in
12081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12082 *) ac_try_echo=$ac_try;;
12084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12085 (eval "$ac_try") 2>&5
12087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088 (exit $ac_status); }; } &&
12089 { ac_try='test -s conftest.$ac_objext'
12090 { (case "(($ac_try" in
12091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12092 *) ac_try_echo=$ac_try;;
12094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12095 (eval "$ac_try") 2>&5
12097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12098 (exit $ac_status); }; }; then
12101 echo "$as_me: failed program was:" >&5
12102 sed 's/^/| /' conftest.$ac_ext >&5
12104 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12105 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12106 { (exit 1); exit 1; }; }
12109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12112 if test -z "$llvm_cv_gnu_make_command"
12114 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12115 echo "$as_me: error: GNU Make required but not found" >&2;}
12116 { (exit 1); exit 1; }; }
12119 { echo "$as_me:$LINENO: result: ok" >&5
12120 echo "${ECHO_T}ok" >&6; }
12122 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12123 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12124 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12126 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12128 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12130 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12131 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
12135 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12136 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12137 if test "${ac_cv_lib_m_sin+set}" = set; then
12138 echo $ECHO_N "(cached) $ECHO_C" >&6
12140 ac_check_lib_save_LIBS=$LIBS
12142 cat >conftest.$ac_ext <<_ACEOF
12145 cat confdefs.h >>conftest.$ac_ext
12146 cat >>conftest.$ac_ext <<_ACEOF
12147 /* end confdefs.h. */
12149 /* Override any GCC internal prototype to avoid an error.
12150 Use char because int might match the return type of a GCC
12151 builtin and then its argument prototype would still apply. */
12164 rm -f conftest.$ac_objext conftest$ac_exeext
12165 if { (ac_try="$ac_link"
12166 case "(($ac_try" in
12167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12168 *) ac_try_echo=$ac_try;;
12170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12171 (eval "$ac_link") 2>conftest.er1
12173 grep -v '^ *+' conftest.er1 >conftest.err
12175 cat conftest.err >&5
12176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177 (exit $ac_status); } &&
12178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12179 { (case "(($ac_try" in
12180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12181 *) ac_try_echo=$ac_try;;
12183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12184 (eval "$ac_try") 2>&5
12186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187 (exit $ac_status); }; } &&
12188 { ac_try='test -s conftest$ac_exeext'
12189 { (case "(($ac_try" in
12190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12191 *) ac_try_echo=$ac_try;;
12193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12194 (eval "$ac_try") 2>&5
12196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12197 (exit $ac_status); }; }; then
12198 ac_cv_lib_m_sin=yes
12200 echo "$as_me: failed program was:" >&5
12201 sed 's/^/| /' conftest.$ac_ext >&5
12206 rm -f core conftest.err conftest.$ac_objext \
12207 conftest$ac_exeext conftest.$ac_ext
12208 LIBS=$ac_check_lib_save_LIBS
12210 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12211 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12212 if test $ac_cv_lib_m_sin = yes; then
12213 cat >>confdefs.h <<_ACEOF
12214 #define HAVE_LIBM 1
12221 if test "$llvm_cv_os_type" = "MingW" ; then
12223 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12224 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12225 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12226 echo $ECHO_N "(cached) $ECHO_C" >&6
12228 ac_check_lib_save_LIBS=$LIBS
12229 LIBS="-limagehlp $LIBS"
12230 cat >conftest.$ac_ext <<_ACEOF
12233 cat confdefs.h >>conftest.$ac_ext
12234 cat >>conftest.$ac_ext <<_ACEOF
12235 /* end confdefs.h. */
12246 rm -f conftest.$ac_objext conftest$ac_exeext
12247 if { (ac_try="$ac_link"
12248 case "(($ac_try" in
12249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12250 *) ac_try_echo=$ac_try;;
12252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12253 (eval "$ac_link") 2>conftest.er1
12255 grep -v '^ *+' conftest.er1 >conftest.err
12257 cat conftest.err >&5
12258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12259 (exit $ac_status); } &&
12260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12261 { (case "(($ac_try" in
12262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12263 *) ac_try_echo=$ac_try;;
12265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12266 (eval "$ac_try") 2>&5
12268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269 (exit $ac_status); }; } &&
12270 { ac_try='test -s conftest$ac_exeext'
12271 { (case "(($ac_try" in
12272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12273 *) ac_try_echo=$ac_try;;
12275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12276 (eval "$ac_try") 2>&5
12278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279 (exit $ac_status); }; }; then
12280 ac_cv_lib_imagehlp_main=yes
12282 echo "$as_me: failed program was:" >&5
12283 sed 's/^/| /' conftest.$ac_ext >&5
12285 ac_cv_lib_imagehlp_main=no
12288 rm -f core conftest.err conftest.$ac_objext \
12289 conftest$ac_exeext conftest.$ac_ext
12290 LIBS=$ac_check_lib_save_LIBS
12292 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12293 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12294 if test $ac_cv_lib_imagehlp_main = yes; then
12295 cat >>confdefs.h <<_ACEOF
12296 #define HAVE_LIBIMAGEHLP 1
12299 LIBS="-limagehlp $LIBS"
12304 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12305 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12306 if test "${ac_cv_lib_psapi_main+set}" = set; then
12307 echo $ECHO_N "(cached) $ECHO_C" >&6
12309 ac_check_lib_save_LIBS=$LIBS
12310 LIBS="-lpsapi $LIBS"
12311 cat >conftest.$ac_ext <<_ACEOF
12314 cat confdefs.h >>conftest.$ac_ext
12315 cat >>conftest.$ac_ext <<_ACEOF
12316 /* end confdefs.h. */
12327 rm -f conftest.$ac_objext conftest$ac_exeext
12328 if { (ac_try="$ac_link"
12329 case "(($ac_try" in
12330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12331 *) ac_try_echo=$ac_try;;
12333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12334 (eval "$ac_link") 2>conftest.er1
12336 grep -v '^ *+' conftest.er1 >conftest.err
12338 cat conftest.err >&5
12339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12340 (exit $ac_status); } &&
12341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12342 { (case "(($ac_try" in
12343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12344 *) ac_try_echo=$ac_try;;
12346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12347 (eval "$ac_try") 2>&5
12349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350 (exit $ac_status); }; } &&
12351 { ac_try='test -s conftest$ac_exeext'
12352 { (case "(($ac_try" in
12353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12354 *) ac_try_echo=$ac_try;;
12356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12357 (eval "$ac_try") 2>&5
12359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360 (exit $ac_status); }; }; then
12361 ac_cv_lib_psapi_main=yes
12363 echo "$as_me: failed program was:" >&5
12364 sed 's/^/| /' conftest.$ac_ext >&5
12366 ac_cv_lib_psapi_main=no
12369 rm -f core conftest.err conftest.$ac_objext \
12370 conftest$ac_exeext conftest.$ac_ext
12371 LIBS=$ac_check_lib_save_LIBS
12373 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12374 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12375 if test $ac_cv_lib_psapi_main = yes; then
12376 cat >>confdefs.h <<_ACEOF
12377 #define HAVE_LIBPSAPI 1
12380 LIBS="-lpsapi $LIBS"
12386 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12387 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12388 if test "${ac_cv_search_dlopen+set}" = set; then
12389 echo $ECHO_N "(cached) $ECHO_C" >&6
12391 ac_func_search_save_LIBS=$LIBS
12392 cat >conftest.$ac_ext <<_ACEOF
12395 cat confdefs.h >>conftest.$ac_ext
12396 cat >>conftest.$ac_ext <<_ACEOF
12397 /* end confdefs.h. */
12399 /* Override any GCC internal prototype to avoid an error.
12400 Use char because int might match the return type of a GCC
12401 builtin and then its argument prototype would still apply. */
12414 for ac_lib in '' dl; do
12415 if test -z "$ac_lib"; then
12416 ac_res="none required"
12419 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12421 rm -f conftest.$ac_objext conftest$ac_exeext
12422 if { (ac_try="$ac_link"
12423 case "(($ac_try" in
12424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12425 *) ac_try_echo=$ac_try;;
12427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12428 (eval "$ac_link") 2>conftest.er1
12430 grep -v '^ *+' conftest.er1 >conftest.err
12432 cat conftest.err >&5
12433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434 (exit $ac_status); } &&
12435 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12436 { (case "(($ac_try" in
12437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12438 *) ac_try_echo=$ac_try;;
12440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12441 (eval "$ac_try") 2>&5
12443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444 (exit $ac_status); }; } &&
12445 { ac_try='test -s conftest$ac_exeext'
12446 { (case "(($ac_try" in
12447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12448 *) ac_try_echo=$ac_try;;
12450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12451 (eval "$ac_try") 2>&5
12453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12454 (exit $ac_status); }; }; then
12455 ac_cv_search_dlopen=$ac_res
12457 echo "$as_me: failed program was:" >&5
12458 sed 's/^/| /' conftest.$ac_ext >&5
12463 rm -f core conftest.err conftest.$ac_objext \
12465 if test "${ac_cv_search_dlopen+set}" = set; then
12469 if test "${ac_cv_search_dlopen+set}" = set; then
12472 ac_cv_search_dlopen=no
12474 rm conftest.$ac_ext
12475 LIBS=$ac_func_search_save_LIBS
12477 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12478 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12479 ac_res=$ac_cv_search_dlopen
12480 if test "$ac_res" != no; then
12481 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12483 cat >>confdefs.h <<\_ACEOF
12484 #define HAVE_DLOPEN 1
12488 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12489 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12493 if test "$llvm_cv_enable_libffi" = "yes" ; then
12494 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12495 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12496 if test "${ac_cv_search_ffi_call+set}" = set; then
12497 echo $ECHO_N "(cached) $ECHO_C" >&6
12499 ac_func_search_save_LIBS=$LIBS
12500 cat >conftest.$ac_ext <<_ACEOF
12503 cat confdefs.h >>conftest.$ac_ext
12504 cat >>conftest.$ac_ext <<_ACEOF
12505 /* end confdefs.h. */
12507 /* Override any GCC internal prototype to avoid an error.
12508 Use char because int might match the return type of a GCC
12509 builtin and then its argument prototype would still apply. */
12517 return ffi_call ();
12522 for ac_lib in '' ffi; do
12523 if test -z "$ac_lib"; then
12524 ac_res="none required"
12527 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12529 rm -f conftest.$ac_objext conftest$ac_exeext
12530 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
12538 grep -v '^ *+' conftest.er1 >conftest.err
12540 cat conftest.err >&5
12541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542 (exit $ac_status); } &&
12543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12544 { (case "(($ac_try" in
12545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12546 *) ac_try_echo=$ac_try;;
12548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12549 (eval "$ac_try") 2>&5
12551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552 (exit $ac_status); }; } &&
12553 { ac_try='test -s conftest$ac_exeext'
12554 { (case "(($ac_try" in
12555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12556 *) ac_try_echo=$ac_try;;
12558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12559 (eval "$ac_try") 2>&5
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); }; }; then
12563 ac_cv_search_ffi_call=$ac_res
12565 echo "$as_me: failed program was:" >&5
12566 sed 's/^/| /' conftest.$ac_ext >&5
12571 rm -f core conftest.err conftest.$ac_objext \
12573 if test "${ac_cv_search_ffi_call+set}" = set; then
12577 if test "${ac_cv_search_ffi_call+set}" = set; then
12580 ac_cv_search_ffi_call=no
12582 rm conftest.$ac_ext
12583 LIBS=$ac_func_search_save_LIBS
12585 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12586 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12587 ac_res=$ac_cv_search_ffi_call
12588 if test "$ac_res" != no; then
12589 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12591 cat >>confdefs.h <<\_ACEOF
12592 #define HAVE_FFI_CALL 1
12596 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12597 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12598 { (exit 1); exit 1; }; }
12603 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12604 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12605 if test "${ac_cv_search_mallinfo+set}" = set; then
12606 echo $ECHO_N "(cached) $ECHO_C" >&6
12608 ac_func_search_save_LIBS=$LIBS
12609 cat >conftest.$ac_ext <<_ACEOF
12612 cat confdefs.h >>conftest.$ac_ext
12613 cat >>conftest.$ac_ext <<_ACEOF
12614 /* end confdefs.h. */
12616 /* Override any GCC internal prototype to avoid an error.
12617 Use char because int might match the return type of a GCC
12618 builtin and then its argument prototype would still apply. */
12626 return mallinfo ();
12631 for ac_lib in '' malloc; do
12632 if test -z "$ac_lib"; then
12633 ac_res="none required"
12636 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12638 rm -f conftest.$ac_objext conftest$ac_exeext
12639 if { (ac_try="$ac_link"
12640 case "(($ac_try" in
12641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12642 *) ac_try_echo=$ac_try;;
12644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12645 (eval "$ac_link") 2>conftest.er1
12647 grep -v '^ *+' conftest.er1 >conftest.err
12649 cat conftest.err >&5
12650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651 (exit $ac_status); } &&
12652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12653 { (case "(($ac_try" in
12654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12655 *) ac_try_echo=$ac_try;;
12657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12658 (eval "$ac_try") 2>&5
12660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661 (exit $ac_status); }; } &&
12662 { ac_try='test -s conftest$ac_exeext'
12663 { (case "(($ac_try" in
12664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12665 *) ac_try_echo=$ac_try;;
12667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12668 (eval "$ac_try") 2>&5
12670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671 (exit $ac_status); }; }; then
12672 ac_cv_search_mallinfo=$ac_res
12674 echo "$as_me: failed program was:" >&5
12675 sed 's/^/| /' conftest.$ac_ext >&5
12680 rm -f core conftest.err conftest.$ac_objext \
12682 if test "${ac_cv_search_mallinfo+set}" = set; then
12686 if test "${ac_cv_search_mallinfo+set}" = set; then
12689 ac_cv_search_mallinfo=no
12691 rm conftest.$ac_ext
12692 LIBS=$ac_func_search_save_LIBS
12694 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12695 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12696 ac_res=$ac_cv_search_mallinfo
12697 if test "$ac_res" != no; then
12698 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12700 cat >>confdefs.h <<\_ACEOF
12701 #define HAVE_MALLINFO 1
12707 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12709 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12710 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12711 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12712 echo $ECHO_N "(cached) $ECHO_C" >&6
12714 ac_check_lib_save_LIBS=$LIBS
12715 LIBS="-lpthread $LIBS"
12716 cat >conftest.$ac_ext <<_ACEOF
12719 cat confdefs.h >>conftest.$ac_ext
12720 cat >>conftest.$ac_ext <<_ACEOF
12721 /* end confdefs.h. */
12723 /* Override any GCC internal prototype to avoid an error.
12724 Use char because int might match the return type of a GCC
12725 builtin and then its argument prototype would still apply. */
12729 char pthread_mutex_init ();
12733 return pthread_mutex_init ();
12738 rm -f conftest.$ac_objext conftest$ac_exeext
12739 if { (ac_try="$ac_link"
12740 case "(($ac_try" in
12741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12742 *) ac_try_echo=$ac_try;;
12744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12745 (eval "$ac_link") 2>conftest.er1
12747 grep -v '^ *+' conftest.er1 >conftest.err
12749 cat conftest.err >&5
12750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751 (exit $ac_status); } &&
12752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12753 { (case "(($ac_try" in
12754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12755 *) ac_try_echo=$ac_try;;
12757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12758 (eval "$ac_try") 2>&5
12760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761 (exit $ac_status); }; } &&
12762 { ac_try='test -s conftest$ac_exeext'
12763 { (case "(($ac_try" in
12764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12765 *) ac_try_echo=$ac_try;;
12767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12768 (eval "$ac_try") 2>&5
12770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771 (exit $ac_status); }; }; then
12772 ac_cv_lib_pthread_pthread_mutex_init=yes
12774 echo "$as_me: failed program was:" >&5
12775 sed 's/^/| /' conftest.$ac_ext >&5
12777 ac_cv_lib_pthread_pthread_mutex_init=no
12780 rm -f core conftest.err conftest.$ac_objext \
12781 conftest$ac_exeext conftest.$ac_ext
12782 LIBS=$ac_check_lib_save_LIBS
12784 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12785 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12786 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12787 cat >>confdefs.h <<_ACEOF
12788 #define HAVE_LIBPTHREAD 1
12791 LIBS="-lpthread $LIBS"
12795 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12796 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12797 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12798 echo $ECHO_N "(cached) $ECHO_C" >&6
12800 ac_func_search_save_LIBS=$LIBS
12801 cat >conftest.$ac_ext <<_ACEOF
12804 cat confdefs.h >>conftest.$ac_ext
12805 cat >>conftest.$ac_ext <<_ACEOF
12806 /* end confdefs.h. */
12808 /* Override any GCC internal prototype to avoid an error.
12809 Use char because int might match the return type of a GCC
12810 builtin and then its argument prototype would still apply. */
12814 char pthread_mutex_lock ();
12818 return pthread_mutex_lock ();
12823 for ac_lib in '' pthread; do
12824 if test -z "$ac_lib"; then
12825 ac_res="none required"
12828 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12830 rm -f conftest.$ac_objext conftest$ac_exeext
12831 if { (ac_try="$ac_link"
12832 case "(($ac_try" in
12833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12834 *) ac_try_echo=$ac_try;;
12836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12837 (eval "$ac_link") 2>conftest.er1
12839 grep -v '^ *+' conftest.er1 >conftest.err
12841 cat conftest.err >&5
12842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12843 (exit $ac_status); } &&
12844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12845 { (case "(($ac_try" in
12846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12847 *) ac_try_echo=$ac_try;;
12849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12850 (eval "$ac_try") 2>&5
12852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853 (exit $ac_status); }; } &&
12854 { ac_try='test -s conftest$ac_exeext'
12855 { (case "(($ac_try" in
12856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12857 *) ac_try_echo=$ac_try;;
12859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12860 (eval "$ac_try") 2>&5
12862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12863 (exit $ac_status); }; }; then
12864 ac_cv_search_pthread_mutex_lock=$ac_res
12866 echo "$as_me: failed program was:" >&5
12867 sed 's/^/| /' conftest.$ac_ext >&5
12872 rm -f core conftest.err conftest.$ac_objext \
12874 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12878 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12881 ac_cv_search_pthread_mutex_lock=no
12883 rm conftest.$ac_ext
12884 LIBS=$ac_func_search_save_LIBS
12886 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12887 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12888 ac_res=$ac_cv_search_pthread_mutex_lock
12889 if test "$ac_res" != no; then
12890 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12892 cat >>confdefs.h <<\_ACEOF
12893 #define HAVE_PTHREAD_MUTEX_LOCK 1
12898 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12899 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12900 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12901 echo $ECHO_N "(cached) $ECHO_C" >&6
12903 ac_func_search_save_LIBS=$LIBS
12904 cat >conftest.$ac_ext <<_ACEOF
12907 cat confdefs.h >>conftest.$ac_ext
12908 cat >>conftest.$ac_ext <<_ACEOF
12909 /* end confdefs.h. */
12911 /* Override any GCC internal prototype to avoid an error.
12912 Use char because int might match the return type of a GCC
12913 builtin and then its argument prototype would still apply. */
12917 char pthread_rwlock_init ();
12921 return pthread_rwlock_init ();
12926 for ac_lib in '' pthread; do
12927 if test -z "$ac_lib"; then
12928 ac_res="none required"
12931 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12933 rm -f conftest.$ac_objext conftest$ac_exeext
12934 if { (ac_try="$ac_link"
12935 case "(($ac_try" in
12936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12937 *) ac_try_echo=$ac_try;;
12939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12940 (eval "$ac_link") 2>conftest.er1
12942 grep -v '^ *+' conftest.er1 >conftest.err
12944 cat conftest.err >&5
12945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946 (exit $ac_status); } &&
12947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12948 { (case "(($ac_try" in
12949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12950 *) ac_try_echo=$ac_try;;
12952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12953 (eval "$ac_try") 2>&5
12955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12956 (exit $ac_status); }; } &&
12957 { ac_try='test -s conftest$ac_exeext'
12958 { (case "(($ac_try" in
12959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12960 *) ac_try_echo=$ac_try;;
12962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12963 (eval "$ac_try") 2>&5
12965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966 (exit $ac_status); }; }; then
12967 ac_cv_search_pthread_rwlock_init=$ac_res
12969 echo "$as_me: failed program was:" >&5
12970 sed 's/^/| /' conftest.$ac_ext >&5
12975 rm -f core conftest.err conftest.$ac_objext \
12977 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12981 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12984 ac_cv_search_pthread_rwlock_init=no
12986 rm conftest.$ac_ext
12987 LIBS=$ac_func_search_save_LIBS
12989 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12990 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12991 ac_res=$ac_cv_search_pthread_rwlock_init
12992 if test "$ac_res" != no; then
12993 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12995 cat >>confdefs.h <<\_ACEOF
12996 #define HAVE_PTHREAD_RWLOCK_INIT 1
13001 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13002 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13003 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13004 echo $ECHO_N "(cached) $ECHO_C" >&6
13006 ac_func_search_save_LIBS=$LIBS
13007 cat >conftest.$ac_ext <<_ACEOF
13010 cat confdefs.h >>conftest.$ac_ext
13011 cat >>conftest.$ac_ext <<_ACEOF
13012 /* end confdefs.h. */
13014 /* Override any GCC internal prototype to avoid an error.
13015 Use char because int might match the return type of a GCC
13016 builtin and then its argument prototype would still apply. */
13020 char pthread_getspecific ();
13024 return pthread_getspecific ();
13029 for ac_lib in '' pthread; do
13030 if test -z "$ac_lib"; then
13031 ac_res="none required"
13034 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13036 rm -f conftest.$ac_objext conftest$ac_exeext
13037 if { (ac_try="$ac_link"
13038 case "(($ac_try" in
13039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13040 *) ac_try_echo=$ac_try;;
13042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13043 (eval "$ac_link") 2>conftest.er1
13045 grep -v '^ *+' conftest.er1 >conftest.err
13047 cat conftest.err >&5
13048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13049 (exit $ac_status); } &&
13050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13051 { (case "(($ac_try" in
13052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13053 *) ac_try_echo=$ac_try;;
13055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13056 (eval "$ac_try") 2>&5
13058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059 (exit $ac_status); }; } &&
13060 { ac_try='test -s conftest$ac_exeext'
13061 { (case "(($ac_try" in
13062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13063 *) ac_try_echo=$ac_try;;
13065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13066 (eval "$ac_try") 2>&5
13068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069 (exit $ac_status); }; }; then
13070 ac_cv_search_pthread_getspecific=$ac_res
13072 echo "$as_me: failed program was:" >&5
13073 sed 's/^/| /' conftest.$ac_ext >&5
13078 rm -f core conftest.err conftest.$ac_objext \
13080 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13084 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13087 ac_cv_search_pthread_getspecific=no
13089 rm conftest.$ac_ext
13090 LIBS=$ac_func_search_save_LIBS
13092 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13093 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13094 ac_res=$ac_cv_search_pthread_getspecific
13095 if test "$ac_res" != no; then
13096 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13098 cat >>confdefs.h <<\_ACEOF
13099 #define HAVE_PTHREAD_GETSPECIFIC 1
13107 # Check whether --with-udis86 was given.
13108 if test "${with_udis86+set}" = set; then
13109 withval=$with_udis86;
13114 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13117 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13118 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13119 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13120 echo $ECHO_N "(cached) $ECHO_C" >&6
13122 ac_check_lib_save_LIBS=$LIBS
13123 LIBS="-ludis86 $LIBS"
13124 cat >conftest.$ac_ext <<_ACEOF
13127 cat confdefs.h >>conftest.$ac_ext
13128 cat >>conftest.$ac_ext <<_ACEOF
13129 /* end confdefs.h. */
13131 /* Override any GCC internal prototype to avoid an error.
13132 Use char because int might match the return type of a GCC
13133 builtin and then its argument prototype would still apply. */
13146 rm -f conftest.$ac_objext conftest$ac_exeext
13147 if { (ac_try="$ac_link"
13148 case "(($ac_try" in
13149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13150 *) ac_try_echo=$ac_try;;
13152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13153 (eval "$ac_link") 2>conftest.er1
13155 grep -v '^ *+' conftest.er1 >conftest.err
13157 cat conftest.err >&5
13158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159 (exit $ac_status); } &&
13160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13161 { (case "(($ac_try" in
13162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13163 *) ac_try_echo=$ac_try;;
13165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13166 (eval "$ac_try") 2>&5
13168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13169 (exit $ac_status); }; } &&
13170 { ac_try='test -s conftest$ac_exeext'
13171 { (case "(($ac_try" in
13172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13173 *) ac_try_echo=$ac_try;;
13175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13176 (eval "$ac_try") 2>&5
13178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13179 (exit $ac_status); }; }; then
13180 ac_cv_lib_udis86_ud_init=yes
13182 echo "$as_me: failed program was:" >&5
13183 sed 's/^/| /' conftest.$ac_ext >&5
13185 ac_cv_lib_udis86_ud_init=no
13188 rm -f core conftest.err conftest.$ac_objext \
13189 conftest$ac_exeext conftest.$ac_ext
13190 LIBS=$ac_check_lib_save_LIBS
13192 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13193 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13194 if test $ac_cv_lib_udis86_ud_init = yes; then
13195 cat >>confdefs.h <<_ACEOF
13196 #define HAVE_LIBUDIS86 1
13199 LIBS="-ludis86 $LIBS"
13203 echo "Error! You need to have libudis86 around."
13215 cat >>confdefs.h <<_ACEOF
13216 #define USE_UDIS86 $USE_UDIS86
13221 # Check whether --with-oprofile was given.
13222 if test "${with_oprofile+set}" = set; then
13223 withval=$with_oprofile;
13227 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13228 no) llvm_cv_oppath=
13231 *) llvm_cv_oppath="${withval}/lib/oprofile"
13232 CPPFLAGS="-I${withval}/include";;
13234 if test -n "$llvm_cv_oppath" ; then
13235 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13236 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13237 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13238 if test "${ac_cv_search_bfd_init+set}" = set; then
13239 echo $ECHO_N "(cached) $ECHO_C" >&6
13241 ac_func_search_save_LIBS=$LIBS
13242 cat >conftest.$ac_ext <<_ACEOF
13245 cat confdefs.h >>conftest.$ac_ext
13246 cat >>conftest.$ac_ext <<_ACEOF
13247 /* end confdefs.h. */
13249 /* Override any GCC internal prototype to avoid an error.
13250 Use char because int might match the return type of a GCC
13251 builtin and then its argument prototype would still apply. */
13259 return bfd_init ();
13264 for ac_lib in '' bfd; do
13265 if test -z "$ac_lib"; then
13266 ac_res="none required"
13269 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13271 rm -f conftest.$ac_objext conftest$ac_exeext
13272 if { (ac_try="$ac_link"
13273 case "(($ac_try" in
13274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13275 *) ac_try_echo=$ac_try;;
13277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13278 (eval "$ac_link") 2>conftest.er1
13280 grep -v '^ *+' conftest.er1 >conftest.err
13282 cat conftest.err >&5
13283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13284 (exit $ac_status); } &&
13285 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13286 { (case "(($ac_try" in
13287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13288 *) ac_try_echo=$ac_try;;
13290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13291 (eval "$ac_try") 2>&5
13293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13294 (exit $ac_status); }; } &&
13295 { ac_try='test -s conftest$ac_exeext'
13296 { (case "(($ac_try" in
13297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13298 *) ac_try_echo=$ac_try;;
13300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13301 (eval "$ac_try") 2>&5
13303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304 (exit $ac_status); }; }; then
13305 ac_cv_search_bfd_init=$ac_res
13307 echo "$as_me: failed program was:" >&5
13308 sed 's/^/| /' conftest.$ac_ext >&5
13313 rm -f core conftest.err conftest.$ac_objext \
13315 if test "${ac_cv_search_bfd_init+set}" = set; then
13319 if test "${ac_cv_search_bfd_init+set}" = set; then
13322 ac_cv_search_bfd_init=no
13324 rm conftest.$ac_ext
13325 LIBS=$ac_func_search_save_LIBS
13327 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13328 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13329 ac_res=$ac_cv_search_bfd_init
13330 if test "$ac_res" != no; then
13331 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13335 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13336 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13337 if test "${ac_cv_search_op_open_agent+set}" = set; then
13338 echo $ECHO_N "(cached) $ECHO_C" >&6
13340 ac_func_search_save_LIBS=$LIBS
13341 cat >conftest.$ac_ext <<_ACEOF
13344 cat confdefs.h >>conftest.$ac_ext
13345 cat >>conftest.$ac_ext <<_ACEOF
13346 /* end confdefs.h. */
13348 /* Override any GCC internal prototype to avoid an error.
13349 Use char because int might match the return type of a GCC
13350 builtin and then its argument prototype would still apply. */
13354 char op_open_agent ();
13358 return op_open_agent ();
13363 for ac_lib in '' opagent; do
13364 if test -z "$ac_lib"; then
13365 ac_res="none required"
13368 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13370 rm -f conftest.$ac_objext conftest$ac_exeext
13371 if { (ac_try="$ac_link"
13372 case "(($ac_try" in
13373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13374 *) ac_try_echo=$ac_try;;
13376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13377 (eval "$ac_link") 2>conftest.er1
13379 grep -v '^ *+' conftest.er1 >conftest.err
13381 cat conftest.err >&5
13382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13383 (exit $ac_status); } &&
13384 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13385 { (case "(($ac_try" in
13386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13387 *) ac_try_echo=$ac_try;;
13389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13390 (eval "$ac_try") 2>&5
13392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13393 (exit $ac_status); }; } &&
13394 { ac_try='test -s conftest$ac_exeext'
13395 { (case "(($ac_try" in
13396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13397 *) ac_try_echo=$ac_try;;
13399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13400 (eval "$ac_try") 2>&5
13402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13403 (exit $ac_status); }; }; then
13404 ac_cv_search_op_open_agent=$ac_res
13406 echo "$as_me: failed program was:" >&5
13407 sed 's/^/| /' conftest.$ac_ext >&5
13412 rm -f core conftest.err conftest.$ac_objext \
13414 if test "${ac_cv_search_op_open_agent+set}" = set; then
13418 if test "${ac_cv_search_op_open_agent+set}" = set; then
13421 ac_cv_search_op_open_agent=no
13423 rm conftest.$ac_ext
13424 LIBS=$ac_func_search_save_LIBS
13426 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13427 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13428 ac_res=$ac_cv_search_op_open_agent
13429 if test "$ac_res" != no; then
13430 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13434 echo "Error! You need to have libopagent around."
13439 if test "${ac_cv_header_opagent_h+set}" = set; then
13440 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13441 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13442 if test "${ac_cv_header_opagent_h+set}" = set; then
13443 echo $ECHO_N "(cached) $ECHO_C" >&6
13445 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13446 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13448 # Is the header compilable?
13449 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13450 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13451 cat >conftest.$ac_ext <<_ACEOF
13454 cat confdefs.h >>conftest.$ac_ext
13455 cat >>conftest.$ac_ext <<_ACEOF
13456 /* end confdefs.h. */
13457 $ac_includes_default
13458 #include <opagent.h>
13460 rm -f conftest.$ac_objext
13461 if { (ac_try="$ac_compile"
13462 case "(($ac_try" in
13463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13464 *) ac_try_echo=$ac_try;;
13466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13467 (eval "$ac_compile") 2>conftest.er1
13469 grep -v '^ *+' conftest.er1 >conftest.err
13471 cat conftest.err >&5
13472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473 (exit $ac_status); } &&
13474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13475 { (case "(($ac_try" in
13476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13477 *) ac_try_echo=$ac_try;;
13479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13480 (eval "$ac_try") 2>&5
13482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13483 (exit $ac_status); }; } &&
13484 { ac_try='test -s conftest.$ac_objext'
13485 { (case "(($ac_try" in
13486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13487 *) ac_try_echo=$ac_try;;
13489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13490 (eval "$ac_try") 2>&5
13492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13493 (exit $ac_status); }; }; then
13494 ac_header_compiler=yes
13496 echo "$as_me: failed program was:" >&5
13497 sed 's/^/| /' conftest.$ac_ext >&5
13499 ac_header_compiler=no
13502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13503 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13504 echo "${ECHO_T}$ac_header_compiler" >&6; }
13506 # Is the header present?
13507 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13508 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13509 cat >conftest.$ac_ext <<_ACEOF
13512 cat confdefs.h >>conftest.$ac_ext
13513 cat >>conftest.$ac_ext <<_ACEOF
13514 /* end confdefs.h. */
13515 #include <opagent.h>
13517 if { (ac_try="$ac_cpp conftest.$ac_ext"
13518 case "(($ac_try" in
13519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13520 *) ac_try_echo=$ac_try;;
13522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13523 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13525 grep -v '^ *+' conftest.er1 >conftest.err
13527 cat conftest.err >&5
13528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13529 (exit $ac_status); } >/dev/null; then
13530 if test -s conftest.err; then
13531 ac_cpp_err=$ac_c_preproc_warn_flag
13532 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13539 if test -z "$ac_cpp_err"; then
13540 ac_header_preproc=yes
13542 echo "$as_me: failed program was:" >&5
13543 sed 's/^/| /' conftest.$ac_ext >&5
13545 ac_header_preproc=no
13548 rm -f conftest.err conftest.$ac_ext
13549 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13550 echo "${ECHO_T}$ac_header_preproc" >&6; }
13552 # So? What about this header?
13553 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13555 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13556 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13557 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13558 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13559 ac_header_preproc=yes
13562 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13563 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13564 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13565 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13566 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13567 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13568 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13569 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13570 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13571 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13572 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13573 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13575 ## ------------------------------ ##
13576 ## Report this to bugs@yourdomain ##
13577 ## ------------------------------ ##
13579 ) | sed "s/^/$as_me: WARNING: /" >&2
13582 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13583 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13584 if test "${ac_cv_header_opagent_h+set}" = set; then
13585 echo $ECHO_N "(cached) $ECHO_C" >&6
13587 ac_cv_header_opagent_h=$ac_header_preproc
13589 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13590 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13593 if test $ac_cv_header_opagent_h = yes; then
13597 echo "Error! You need to have opagent.h around."
13613 cat >>confdefs.h <<_ACEOF
13614 #define USE_OPROFILE $USE_OPROFILE
13624 ac_header_dirent=no
13625 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13626 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13627 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13628 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13629 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13630 echo $ECHO_N "(cached) $ECHO_C" >&6
13632 cat >conftest.$ac_ext <<_ACEOF
13635 cat confdefs.h >>conftest.$ac_ext
13636 cat >>conftest.$ac_ext <<_ACEOF
13637 /* end confdefs.h. */
13638 #include <sys/types.h>
13650 rm -f conftest.$ac_objext
13651 if { (ac_try="$ac_compile"
13652 case "(($ac_try" in
13653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13654 *) ac_try_echo=$ac_try;;
13656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13657 (eval "$ac_compile") 2>conftest.er1
13659 grep -v '^ *+' conftest.er1 >conftest.err
13661 cat conftest.err >&5
13662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663 (exit $ac_status); } &&
13664 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13665 { (case "(($ac_try" in
13666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13667 *) ac_try_echo=$ac_try;;
13669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13670 (eval "$ac_try") 2>&5
13672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13673 (exit $ac_status); }; } &&
13674 { ac_try='test -s conftest.$ac_objext'
13675 { (case "(($ac_try" in
13676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13677 *) ac_try_echo=$ac_try;;
13679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13680 (eval "$ac_try") 2>&5
13682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13683 (exit $ac_status); }; }; then
13684 eval "$as_ac_Header=yes"
13686 echo "$as_me: failed program was:" >&5
13687 sed 's/^/| /' conftest.$ac_ext >&5
13689 eval "$as_ac_Header=no"
13692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13694 ac_res=`eval echo '${'$as_ac_Header'}'`
13695 { echo "$as_me:$LINENO: result: $ac_res" >&5
13696 echo "${ECHO_T}$ac_res" >&6; }
13697 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13698 cat >>confdefs.h <<_ACEOF
13699 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13702 ac_header_dirent=$ac_hdr; break
13706 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13707 if test $ac_header_dirent = dirent.h; then
13708 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13709 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13710 if test "${ac_cv_search_opendir+set}" = set; then
13711 echo $ECHO_N "(cached) $ECHO_C" >&6
13713 ac_func_search_save_LIBS=$LIBS
13714 cat >conftest.$ac_ext <<_ACEOF
13717 cat confdefs.h >>conftest.$ac_ext
13718 cat >>conftest.$ac_ext <<_ACEOF
13719 /* end confdefs.h. */
13721 /* Override any GCC internal prototype to avoid an error.
13722 Use char because int might match the return type of a GCC
13723 builtin and then its argument prototype would still apply. */
13736 for ac_lib in '' dir; do
13737 if test -z "$ac_lib"; then
13738 ac_res="none required"
13741 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13743 rm -f conftest.$ac_objext conftest$ac_exeext
13744 if { (ac_try="$ac_link"
13745 case "(($ac_try" in
13746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13747 *) ac_try_echo=$ac_try;;
13749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13750 (eval "$ac_link") 2>conftest.er1
13752 grep -v '^ *+' conftest.er1 >conftest.err
13754 cat conftest.err >&5
13755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13756 (exit $ac_status); } &&
13757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13758 { (case "(($ac_try" in
13759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13760 *) ac_try_echo=$ac_try;;
13762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13763 (eval "$ac_try") 2>&5
13765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766 (exit $ac_status); }; } &&
13767 { ac_try='test -s conftest$ac_exeext'
13768 { (case "(($ac_try" in
13769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13770 *) ac_try_echo=$ac_try;;
13772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13773 (eval "$ac_try") 2>&5
13775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776 (exit $ac_status); }; }; then
13777 ac_cv_search_opendir=$ac_res
13779 echo "$as_me: failed program was:" >&5
13780 sed 's/^/| /' conftest.$ac_ext >&5
13785 rm -f core conftest.err conftest.$ac_objext \
13787 if test "${ac_cv_search_opendir+set}" = set; then
13791 if test "${ac_cv_search_opendir+set}" = set; then
13794 ac_cv_search_opendir=no
13796 rm conftest.$ac_ext
13797 LIBS=$ac_func_search_save_LIBS
13799 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13800 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13801 ac_res=$ac_cv_search_opendir
13802 if test "$ac_res" != no; then
13803 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13808 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13809 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13810 if test "${ac_cv_search_opendir+set}" = set; then
13811 echo $ECHO_N "(cached) $ECHO_C" >&6
13813 ac_func_search_save_LIBS=$LIBS
13814 cat >conftest.$ac_ext <<_ACEOF
13817 cat confdefs.h >>conftest.$ac_ext
13818 cat >>conftest.$ac_ext <<_ACEOF
13819 /* end confdefs.h. */
13821 /* Override any GCC internal prototype to avoid an error.
13822 Use char because int might match the return type of a GCC
13823 builtin and then its argument prototype would still apply. */
13836 for ac_lib in '' x; do
13837 if test -z "$ac_lib"; then
13838 ac_res="none required"
13841 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13843 rm -f conftest.$ac_objext conftest$ac_exeext
13844 if { (ac_try="$ac_link"
13845 case "(($ac_try" in
13846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13847 *) ac_try_echo=$ac_try;;
13849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13850 (eval "$ac_link") 2>conftest.er1
13852 grep -v '^ *+' conftest.er1 >conftest.err
13854 cat conftest.err >&5
13855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13856 (exit $ac_status); } &&
13857 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13858 { (case "(($ac_try" in
13859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13860 *) ac_try_echo=$ac_try;;
13862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13863 (eval "$ac_try") 2>&5
13865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13866 (exit $ac_status); }; } &&
13867 { ac_try='test -s conftest$ac_exeext'
13868 { (case "(($ac_try" in
13869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13870 *) ac_try_echo=$ac_try;;
13872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13873 (eval "$ac_try") 2>&5
13875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13876 (exit $ac_status); }; }; then
13877 ac_cv_search_opendir=$ac_res
13879 echo "$as_me: failed program was:" >&5
13880 sed 's/^/| /' conftest.$ac_ext >&5
13885 rm -f core conftest.err conftest.$ac_objext \
13887 if test "${ac_cv_search_opendir+set}" = set; then
13891 if test "${ac_cv_search_opendir+set}" = set; then
13894 ac_cv_search_opendir=no
13896 rm conftest.$ac_ext
13897 LIBS=$ac_func_search_save_LIBS
13899 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13900 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13901 ac_res=$ac_cv_search_opendir
13902 if test "$ac_res" != no; then
13903 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13909 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
13910 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
13911 if test "${ac_cv_header_mmap_anon+set}" = set; then
13912 echo $ECHO_N "(cached) $ECHO_C" >&6
13915 ac_cpp='$CPP $CPPFLAGS'
13916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13920 cat >conftest.$ac_ext <<_ACEOF
13923 cat confdefs.h >>conftest.$ac_ext
13924 cat >>conftest.$ac_ext <<_ACEOF
13925 /* end confdefs.h. */
13926 #include <sys/mman.h>
13927 #include <unistd.h>
13932 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
13937 rm -f conftest.$ac_objext
13938 if { (ac_try="$ac_compile"
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_compile") 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_objext'
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_header_mmap_anon=yes
13973 echo "$as_me: failed program was:" >&5
13974 sed 's/^/| /' conftest.$ac_ext >&5
13976 ac_cv_header_mmap_anon=no
13979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13981 ac_cpp='$CPP $CPPFLAGS'
13982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13988 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
13989 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
13990 if test "$ac_cv_header_mmap_anon" = yes; then
13992 cat >>confdefs.h <<\_ACEOF
13993 #define HAVE_MMAP_ANONYMOUS 1
13998 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
13999 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14000 if test "${ac_cv_header_stat_broken+set}" = set; then
14001 echo $ECHO_N "(cached) $ECHO_C" >&6
14003 cat >conftest.$ac_ext <<_ACEOF
14006 cat confdefs.h >>conftest.$ac_ext
14007 cat >>conftest.$ac_ext <<_ACEOF
14008 /* end confdefs.h. */
14009 #include <sys/types.h>
14010 #include <sys/stat.h>
14012 #if defined S_ISBLK && defined S_IFDIR
14013 # if S_ISBLK (S_IFDIR)
14018 #if defined S_ISBLK && defined S_IFCHR
14019 # if S_ISBLK (S_IFCHR)
14024 #if defined S_ISLNK && defined S_IFREG
14025 # if S_ISLNK (S_IFREG)
14030 #if defined S_ISSOCK && defined S_IFREG
14031 # if S_ISSOCK (S_IFREG)
14037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14038 $EGREP "You lose" >/dev/null 2>&1; then
14039 ac_cv_header_stat_broken=yes
14041 ac_cv_header_stat_broken=no
14046 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14047 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14048 if test $ac_cv_header_stat_broken = yes; then
14050 cat >>confdefs.h <<\_ACEOF
14051 #define STAT_MACROS_BROKEN 1
14056 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14057 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14058 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14059 echo $ECHO_N "(cached) $ECHO_C" >&6
14061 cat >conftest.$ac_ext <<_ACEOF
14064 cat confdefs.h >>conftest.$ac_ext
14065 cat >>conftest.$ac_ext <<_ACEOF
14066 /* end confdefs.h. */
14067 #include <sys/types.h>
14068 #include <sys/wait.h>
14069 #ifndef WEXITSTATUS
14070 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14073 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14081 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14086 rm -f conftest.$ac_objext
14087 if { (ac_try="$ac_compile"
14088 case "(($ac_try" in
14089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14090 *) ac_try_echo=$ac_try;;
14092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14093 (eval "$ac_compile") 2>conftest.er1
14095 grep -v '^ *+' conftest.er1 >conftest.err
14097 cat conftest.err >&5
14098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14099 (exit $ac_status); } &&
14100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14101 { (case "(($ac_try" in
14102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14103 *) ac_try_echo=$ac_try;;
14105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14106 (eval "$ac_try") 2>&5
14108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14109 (exit $ac_status); }; } &&
14110 { ac_try='test -s conftest.$ac_objext'
14111 { (case "(($ac_try" in
14112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14113 *) ac_try_echo=$ac_try;;
14115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14116 (eval "$ac_try") 2>&5
14118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14119 (exit $ac_status); }; }; then
14120 ac_cv_header_sys_wait_h=yes
14122 echo "$as_me: failed program was:" >&5
14123 sed 's/^/| /' conftest.$ac_ext >&5
14125 ac_cv_header_sys_wait_h=no
14128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14130 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14131 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14132 if test $ac_cv_header_sys_wait_h = yes; then
14134 cat >>confdefs.h <<\_ACEOF
14135 #define HAVE_SYS_WAIT_H 1
14140 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14141 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14142 if test "${ac_cv_header_time+set}" = set; then
14143 echo $ECHO_N "(cached) $ECHO_C" >&6
14145 cat >conftest.$ac_ext <<_ACEOF
14148 cat confdefs.h >>conftest.$ac_ext
14149 cat >>conftest.$ac_ext <<_ACEOF
14150 /* end confdefs.h. */
14151 #include <sys/types.h>
14152 #include <sys/time.h>
14158 if ((struct tm *) 0)
14164 rm -f conftest.$ac_objext
14165 if { (ac_try="$ac_compile"
14166 case "(($ac_try" in
14167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14168 *) ac_try_echo=$ac_try;;
14170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14171 (eval "$ac_compile") 2>conftest.er1
14173 grep -v '^ *+' conftest.er1 >conftest.err
14175 cat conftest.err >&5
14176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14177 (exit $ac_status); } &&
14178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14179 { (case "(($ac_try" in
14180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14181 *) ac_try_echo=$ac_try;;
14183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14184 (eval "$ac_try") 2>&5
14186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14187 (exit $ac_status); }; } &&
14188 { ac_try='test -s conftest.$ac_objext'
14189 { (case "(($ac_try" in
14190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14191 *) ac_try_echo=$ac_try;;
14193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14194 (eval "$ac_try") 2>&5
14196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14197 (exit $ac_status); }; }; then
14198 ac_cv_header_time=yes
14200 echo "$as_me: failed program was:" >&5
14201 sed 's/^/| /' conftest.$ac_ext >&5
14203 ac_cv_header_time=no
14206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14208 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14209 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14210 if test $ac_cv_header_time = yes; then
14212 cat >>confdefs.h <<\_ACEOF
14213 #define TIME_WITH_SYS_TIME 1
14225 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14227 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14229 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14232 echo $ECHO_N "(cached) $ECHO_C" >&6
14234 ac_res=`eval echo '${'$as_ac_Header'}'`
14235 { echo "$as_me:$LINENO: result: $ac_res" >&5
14236 echo "${ECHO_T}$ac_res" >&6; }
14238 # Is the header compilable?
14239 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14240 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14241 cat >conftest.$ac_ext <<_ACEOF
14244 cat confdefs.h >>conftest.$ac_ext
14245 cat >>conftest.$ac_ext <<_ACEOF
14246 /* end confdefs.h. */
14247 $ac_includes_default
14248 #include <$ac_header>
14250 rm -f conftest.$ac_objext
14251 if { (ac_try="$ac_compile"
14252 case "(($ac_try" in
14253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14254 *) ac_try_echo=$ac_try;;
14256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14257 (eval "$ac_compile") 2>conftest.er1
14259 grep -v '^ *+' conftest.er1 >conftest.err
14261 cat conftest.err >&5
14262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14263 (exit $ac_status); } &&
14264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14265 { (case "(($ac_try" in
14266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14267 *) ac_try_echo=$ac_try;;
14269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14270 (eval "$ac_try") 2>&5
14272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14273 (exit $ac_status); }; } &&
14274 { ac_try='test -s conftest.$ac_objext'
14275 { (case "(($ac_try" in
14276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14277 *) ac_try_echo=$ac_try;;
14279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14280 (eval "$ac_try") 2>&5
14282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14283 (exit $ac_status); }; }; then
14284 ac_header_compiler=yes
14286 echo "$as_me: failed program was:" >&5
14287 sed 's/^/| /' conftest.$ac_ext >&5
14289 ac_header_compiler=no
14292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14293 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14294 echo "${ECHO_T}$ac_header_compiler" >&6; }
14296 # Is the header present?
14297 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14298 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14299 cat >conftest.$ac_ext <<_ACEOF
14302 cat confdefs.h >>conftest.$ac_ext
14303 cat >>conftest.$ac_ext <<_ACEOF
14304 /* end confdefs.h. */
14305 #include <$ac_header>
14307 if { (ac_try="$ac_cpp conftest.$ac_ext"
14308 case "(($ac_try" in
14309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14310 *) ac_try_echo=$ac_try;;
14312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14313 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14315 grep -v '^ *+' conftest.er1 >conftest.err
14317 cat conftest.err >&5
14318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319 (exit $ac_status); } >/dev/null; then
14320 if test -s conftest.err; then
14321 ac_cpp_err=$ac_c_preproc_warn_flag
14322 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14329 if test -z "$ac_cpp_err"; then
14330 ac_header_preproc=yes
14332 echo "$as_me: failed program was:" >&5
14333 sed 's/^/| /' conftest.$ac_ext >&5
14335 ac_header_preproc=no
14338 rm -f conftest.err conftest.$ac_ext
14339 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14340 echo "${ECHO_T}$ac_header_preproc" >&6; }
14342 # So? What about this header?
14343 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14345 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14346 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14347 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14348 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14349 ac_header_preproc=yes
14352 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14353 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14354 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14355 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14356 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14357 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14358 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14359 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14360 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14361 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14362 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14363 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14365 ## ------------------------------ ##
14366 ## Report this to bugs@yourdomain ##
14367 ## ------------------------------ ##
14369 ) | sed "s/^/$as_me: WARNING: /" >&2
14372 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14374 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14375 echo $ECHO_N "(cached) $ECHO_C" >&6
14377 eval "$as_ac_Header=\$ac_header_preproc"
14379 ac_res=`eval echo '${'$as_ac_Header'}'`
14380 { echo "$as_me:$LINENO: result: $ac_res" >&5
14381 echo "${ECHO_T}$ac_res" >&6; }
14384 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14385 cat >>confdefs.h <<_ACEOF
14386 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14399 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14401 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14402 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14403 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14404 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14405 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14406 echo $ECHO_N "(cached) $ECHO_C" >&6
14408 ac_res=`eval echo '${'$as_ac_Header'}'`
14409 { echo "$as_me:$LINENO: result: $ac_res" >&5
14410 echo "${ECHO_T}$ac_res" >&6; }
14412 # Is the header compilable?
14413 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14414 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14415 cat >conftest.$ac_ext <<_ACEOF
14418 cat confdefs.h >>conftest.$ac_ext
14419 cat >>conftest.$ac_ext <<_ACEOF
14420 /* end confdefs.h. */
14421 $ac_includes_default
14422 #include <$ac_header>
14424 rm -f conftest.$ac_objext
14425 if { (ac_try="$ac_compile"
14426 case "(($ac_try" in
14427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14428 *) ac_try_echo=$ac_try;;
14430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14431 (eval "$ac_compile") 2>conftest.er1
14433 grep -v '^ *+' conftest.er1 >conftest.err
14435 cat conftest.err >&5
14436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14437 (exit $ac_status); } &&
14438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14439 { (case "(($ac_try" in
14440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14441 *) ac_try_echo=$ac_try;;
14443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14444 (eval "$ac_try") 2>&5
14446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14447 (exit $ac_status); }; } &&
14448 { ac_try='test -s conftest.$ac_objext'
14449 { (case "(($ac_try" in
14450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14451 *) ac_try_echo=$ac_try;;
14453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14454 (eval "$ac_try") 2>&5
14456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457 (exit $ac_status); }; }; then
14458 ac_header_compiler=yes
14460 echo "$as_me: failed program was:" >&5
14461 sed 's/^/| /' conftest.$ac_ext >&5
14463 ac_header_compiler=no
14466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14467 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14468 echo "${ECHO_T}$ac_header_compiler" >&6; }
14470 # Is the header present?
14471 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14472 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14473 cat >conftest.$ac_ext <<_ACEOF
14476 cat confdefs.h >>conftest.$ac_ext
14477 cat >>conftest.$ac_ext <<_ACEOF
14478 /* end confdefs.h. */
14479 #include <$ac_header>
14481 if { (ac_try="$ac_cpp conftest.$ac_ext"
14482 case "(($ac_try" in
14483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14484 *) ac_try_echo=$ac_try;;
14486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14487 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14489 grep -v '^ *+' conftest.er1 >conftest.err
14491 cat conftest.err >&5
14492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493 (exit $ac_status); } >/dev/null; then
14494 if test -s conftest.err; then
14495 ac_cpp_err=$ac_c_preproc_warn_flag
14496 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14503 if test -z "$ac_cpp_err"; then
14504 ac_header_preproc=yes
14506 echo "$as_me: failed program was:" >&5
14507 sed 's/^/| /' conftest.$ac_ext >&5
14509 ac_header_preproc=no
14512 rm -f conftest.err conftest.$ac_ext
14513 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14514 echo "${ECHO_T}$ac_header_preproc" >&6; }
14516 # So? What about this header?
14517 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14519 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14520 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14521 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14522 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14523 ac_header_preproc=yes
14526 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14527 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14528 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14529 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14530 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14531 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14532 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14533 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14534 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14535 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14536 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14537 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14539 ## ------------------------------ ##
14540 ## Report this to bugs@yourdomain ##
14541 ## ------------------------------ ##
14543 ) | sed "s/^/$as_me: WARNING: /" >&2
14546 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14548 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14549 echo $ECHO_N "(cached) $ECHO_C" >&6
14551 eval "$as_ac_Header=\$ac_header_preproc"
14553 ac_res=`eval echo '${'$as_ac_Header'}'`
14554 { echo "$as_me:$LINENO: result: $ac_res" >&5
14555 echo "${ECHO_T}$ac_res" >&6; }
14558 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14559 cat >>confdefs.h <<_ACEOF
14560 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14569 for ac_header in utime.h windows.h
14571 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14572 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14573 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14575 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14576 echo $ECHO_N "(cached) $ECHO_C" >&6
14578 ac_res=`eval echo '${'$as_ac_Header'}'`
14579 { echo "$as_me:$LINENO: result: $ac_res" >&5
14580 echo "${ECHO_T}$ac_res" >&6; }
14582 # Is the header compilable?
14583 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14584 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14585 cat >conftest.$ac_ext <<_ACEOF
14588 cat confdefs.h >>conftest.$ac_ext
14589 cat >>conftest.$ac_ext <<_ACEOF
14590 /* end confdefs.h. */
14591 $ac_includes_default
14592 #include <$ac_header>
14594 rm -f conftest.$ac_objext
14595 if { (ac_try="$ac_compile"
14596 case "(($ac_try" in
14597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14598 *) ac_try_echo=$ac_try;;
14600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14601 (eval "$ac_compile") 2>conftest.er1
14603 grep -v '^ *+' conftest.er1 >conftest.err
14605 cat conftest.err >&5
14606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14607 (exit $ac_status); } &&
14608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14609 { (case "(($ac_try" in
14610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14611 *) ac_try_echo=$ac_try;;
14613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14614 (eval "$ac_try") 2>&5
14616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14617 (exit $ac_status); }; } &&
14618 { ac_try='test -s conftest.$ac_objext'
14619 { (case "(($ac_try" in
14620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14621 *) ac_try_echo=$ac_try;;
14623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14624 (eval "$ac_try") 2>&5
14626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627 (exit $ac_status); }; }; then
14628 ac_header_compiler=yes
14630 echo "$as_me: failed program was:" >&5
14631 sed 's/^/| /' conftest.$ac_ext >&5
14633 ac_header_compiler=no
14636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14637 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14638 echo "${ECHO_T}$ac_header_compiler" >&6; }
14640 # Is the header present?
14641 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14642 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14643 cat >conftest.$ac_ext <<_ACEOF
14646 cat confdefs.h >>conftest.$ac_ext
14647 cat >>conftest.$ac_ext <<_ACEOF
14648 /* end confdefs.h. */
14649 #include <$ac_header>
14651 if { (ac_try="$ac_cpp conftest.$ac_ext"
14652 case "(($ac_try" in
14653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14654 *) ac_try_echo=$ac_try;;
14656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14657 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14659 grep -v '^ *+' conftest.er1 >conftest.err
14661 cat conftest.err >&5
14662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14663 (exit $ac_status); } >/dev/null; then
14664 if test -s conftest.err; then
14665 ac_cpp_err=$ac_c_preproc_warn_flag
14666 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14673 if test -z "$ac_cpp_err"; then
14674 ac_header_preproc=yes
14676 echo "$as_me: failed program was:" >&5
14677 sed 's/^/| /' conftest.$ac_ext >&5
14679 ac_header_preproc=no
14682 rm -f conftest.err conftest.$ac_ext
14683 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14684 echo "${ECHO_T}$ac_header_preproc" >&6; }
14686 # So? What about this header?
14687 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14689 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14690 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14691 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14692 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14693 ac_header_preproc=yes
14696 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14697 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14698 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14699 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14700 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14701 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14702 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14703 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14704 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14705 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14706 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14707 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14709 ## ------------------------------ ##
14710 ## Report this to bugs@yourdomain ##
14711 ## ------------------------------ ##
14713 ) | sed "s/^/$as_me: WARNING: /" >&2
14716 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14718 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14719 echo $ECHO_N "(cached) $ECHO_C" >&6
14721 eval "$as_ac_Header=\$ac_header_preproc"
14723 ac_res=`eval echo '${'$as_ac_Header'}'`
14724 { echo "$as_me:$LINENO: result: $ac_res" >&5
14725 echo "${ECHO_T}$ac_res" >&6; }
14728 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14729 cat >>confdefs.h <<_ACEOF
14730 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14742 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14744 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14745 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14746 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14747 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14748 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14749 echo $ECHO_N "(cached) $ECHO_C" >&6
14751 ac_res=`eval echo '${'$as_ac_Header'}'`
14752 { echo "$as_me:$LINENO: result: $ac_res" >&5
14753 echo "${ECHO_T}$ac_res" >&6; }
14755 # Is the header compilable?
14756 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14757 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14758 cat >conftest.$ac_ext <<_ACEOF
14761 cat confdefs.h >>conftest.$ac_ext
14762 cat >>conftest.$ac_ext <<_ACEOF
14763 /* end confdefs.h. */
14764 $ac_includes_default
14765 #include <$ac_header>
14767 rm -f conftest.$ac_objext
14768 if { (ac_try="$ac_compile"
14769 case "(($ac_try" in
14770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14771 *) ac_try_echo=$ac_try;;
14773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14774 (eval "$ac_compile") 2>conftest.er1
14776 grep -v '^ *+' conftest.er1 >conftest.err
14778 cat conftest.err >&5
14779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14780 (exit $ac_status); } &&
14781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14782 { (case "(($ac_try" in
14783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14784 *) ac_try_echo=$ac_try;;
14786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14787 (eval "$ac_try") 2>&5
14789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14790 (exit $ac_status); }; } &&
14791 { ac_try='test -s conftest.$ac_objext'
14792 { (case "(($ac_try" in
14793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14794 *) ac_try_echo=$ac_try;;
14796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14797 (eval "$ac_try") 2>&5
14799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800 (exit $ac_status); }; }; then
14801 ac_header_compiler=yes
14803 echo "$as_me: failed program was:" >&5
14804 sed 's/^/| /' conftest.$ac_ext >&5
14806 ac_header_compiler=no
14809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14810 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14811 echo "${ECHO_T}$ac_header_compiler" >&6; }
14813 # Is the header present?
14814 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14815 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14816 cat >conftest.$ac_ext <<_ACEOF
14819 cat confdefs.h >>conftest.$ac_ext
14820 cat >>conftest.$ac_ext <<_ACEOF
14821 /* end confdefs.h. */
14822 #include <$ac_header>
14824 if { (ac_try="$ac_cpp conftest.$ac_ext"
14825 case "(($ac_try" in
14826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14827 *) ac_try_echo=$ac_try;;
14829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14830 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14832 grep -v '^ *+' conftest.er1 >conftest.err
14834 cat conftest.err >&5
14835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14836 (exit $ac_status); } >/dev/null; then
14837 if test -s conftest.err; then
14838 ac_cpp_err=$ac_c_preproc_warn_flag
14839 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14846 if test -z "$ac_cpp_err"; then
14847 ac_header_preproc=yes
14849 echo "$as_me: failed program was:" >&5
14850 sed 's/^/| /' conftest.$ac_ext >&5
14852 ac_header_preproc=no
14855 rm -f conftest.err conftest.$ac_ext
14856 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14857 echo "${ECHO_T}$ac_header_preproc" >&6; }
14859 # So? What about this header?
14860 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14862 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14863 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14864 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14865 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14866 ac_header_preproc=yes
14869 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14870 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14871 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14872 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14873 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14874 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14875 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14876 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14878 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14879 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14880 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14882 ## ------------------------------ ##
14883 ## Report this to bugs@yourdomain ##
14884 ## ------------------------------ ##
14886 ) | sed "s/^/$as_me: WARNING: /" >&2
14889 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14890 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14891 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14892 echo $ECHO_N "(cached) $ECHO_C" >&6
14894 eval "$as_ac_Header=\$ac_header_preproc"
14896 ac_res=`eval echo '${'$as_ac_Header'}'`
14897 { echo "$as_me:$LINENO: result: $ac_res" >&5
14898 echo "${ECHO_T}$ac_res" >&6; }
14901 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14902 cat >>confdefs.h <<_ACEOF
14903 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14914 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
14916 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14917 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14918 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14919 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14920 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14921 echo $ECHO_N "(cached) $ECHO_C" >&6
14923 ac_res=`eval echo '${'$as_ac_Header'}'`
14924 { echo "$as_me:$LINENO: result: $ac_res" >&5
14925 echo "${ECHO_T}$ac_res" >&6; }
14927 # Is the header compilable?
14928 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14929 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14930 cat >conftest.$ac_ext <<_ACEOF
14933 cat confdefs.h >>conftest.$ac_ext
14934 cat >>conftest.$ac_ext <<_ACEOF
14935 /* end confdefs.h. */
14936 $ac_includes_default
14937 #include <$ac_header>
14939 rm -f conftest.$ac_objext
14940 if { (ac_try="$ac_compile"
14941 case "(($ac_try" in
14942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14943 *) ac_try_echo=$ac_try;;
14945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14946 (eval "$ac_compile") 2>conftest.er1
14948 grep -v '^ *+' conftest.er1 >conftest.err
14950 cat conftest.err >&5
14951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14952 (exit $ac_status); } &&
14953 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14954 { (case "(($ac_try" in
14955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14956 *) ac_try_echo=$ac_try;;
14958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14959 (eval "$ac_try") 2>&5
14961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14962 (exit $ac_status); }; } &&
14963 { ac_try='test -s conftest.$ac_objext'
14964 { (case "(($ac_try" in
14965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14966 *) ac_try_echo=$ac_try;;
14968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14969 (eval "$ac_try") 2>&5
14971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14972 (exit $ac_status); }; }; then
14973 ac_header_compiler=yes
14975 echo "$as_me: failed program was:" >&5
14976 sed 's/^/| /' conftest.$ac_ext >&5
14978 ac_header_compiler=no
14981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14982 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14983 echo "${ECHO_T}$ac_header_compiler" >&6; }
14985 # Is the header present?
14986 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14987 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14988 cat >conftest.$ac_ext <<_ACEOF
14991 cat confdefs.h >>conftest.$ac_ext
14992 cat >>conftest.$ac_ext <<_ACEOF
14993 /* end confdefs.h. */
14994 #include <$ac_header>
14996 if { (ac_try="$ac_cpp conftest.$ac_ext"
14997 case "(($ac_try" in
14998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14999 *) ac_try_echo=$ac_try;;
15001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15002 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15004 grep -v '^ *+' conftest.er1 >conftest.err
15006 cat conftest.err >&5
15007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15008 (exit $ac_status); } >/dev/null; then
15009 if test -s conftest.err; then
15010 ac_cpp_err=$ac_c_preproc_warn_flag
15011 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15018 if test -z "$ac_cpp_err"; then
15019 ac_header_preproc=yes
15021 echo "$as_me: failed program was:" >&5
15022 sed 's/^/| /' conftest.$ac_ext >&5
15024 ac_header_preproc=no
15027 rm -f conftest.err conftest.$ac_ext
15028 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15029 echo "${ECHO_T}$ac_header_preproc" >&6; }
15031 # So? What about this header?
15032 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15034 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15035 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15036 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15037 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15038 ac_header_preproc=yes
15041 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15042 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15043 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15044 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15045 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15046 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15047 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15048 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15049 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15050 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15051 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15052 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15054 ## ------------------------------ ##
15055 ## Report this to bugs@yourdomain ##
15056 ## ------------------------------ ##
15058 ) | sed "s/^/$as_me: WARNING: /" >&2
15061 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15062 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15063 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15064 echo $ECHO_N "(cached) $ECHO_C" >&6
15066 eval "$as_ac_Header=\$ac_header_preproc"
15068 ac_res=`eval echo '${'$as_ac_Header'}'`
15069 { echo "$as_me:$LINENO: result: $ac_res" >&5
15070 echo "${ECHO_T}$ac_res" >&6; }
15073 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15074 cat >>confdefs.h <<_ACEOF
15075 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15083 for ac_header in valgrind/valgrind.h
15085 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15087 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15088 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15089 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15090 echo $ECHO_N "(cached) $ECHO_C" >&6
15092 ac_res=`eval echo '${'$as_ac_Header'}'`
15093 { echo "$as_me:$LINENO: result: $ac_res" >&5
15094 echo "${ECHO_T}$ac_res" >&6; }
15096 # Is the header compilable?
15097 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15098 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15099 cat >conftest.$ac_ext <<_ACEOF
15102 cat confdefs.h >>conftest.$ac_ext
15103 cat >>conftest.$ac_ext <<_ACEOF
15104 /* end confdefs.h. */
15105 $ac_includes_default
15106 #include <$ac_header>
15108 rm -f conftest.$ac_objext
15109 if { (ac_try="$ac_compile"
15110 case "(($ac_try" in
15111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15112 *) ac_try_echo=$ac_try;;
15114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15115 (eval "$ac_compile") 2>conftest.er1
15117 grep -v '^ *+' conftest.er1 >conftest.err
15119 cat conftest.err >&5
15120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15121 (exit $ac_status); } &&
15122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15123 { (case "(($ac_try" in
15124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15125 *) ac_try_echo=$ac_try;;
15127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15128 (eval "$ac_try") 2>&5
15130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15131 (exit $ac_status); }; } &&
15132 { ac_try='test -s conftest.$ac_objext'
15133 { (case "(($ac_try" in
15134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15135 *) ac_try_echo=$ac_try;;
15137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15138 (eval "$ac_try") 2>&5
15140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15141 (exit $ac_status); }; }; then
15142 ac_header_compiler=yes
15144 echo "$as_me: failed program was:" >&5
15145 sed 's/^/| /' conftest.$ac_ext >&5
15147 ac_header_compiler=no
15150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15151 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15152 echo "${ECHO_T}$ac_header_compiler" >&6; }
15154 # Is the header present?
15155 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15156 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15157 cat >conftest.$ac_ext <<_ACEOF
15160 cat confdefs.h >>conftest.$ac_ext
15161 cat >>conftest.$ac_ext <<_ACEOF
15162 /* end confdefs.h. */
15163 #include <$ac_header>
15165 if { (ac_try="$ac_cpp conftest.$ac_ext"
15166 case "(($ac_try" in
15167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15168 *) ac_try_echo=$ac_try;;
15170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15171 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15173 grep -v '^ *+' conftest.er1 >conftest.err
15175 cat conftest.err >&5
15176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15177 (exit $ac_status); } >/dev/null; then
15178 if test -s conftest.err; then
15179 ac_cpp_err=$ac_c_preproc_warn_flag
15180 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15187 if test -z "$ac_cpp_err"; then
15188 ac_header_preproc=yes
15190 echo "$as_me: failed program was:" >&5
15191 sed 's/^/| /' conftest.$ac_ext >&5
15193 ac_header_preproc=no
15196 rm -f conftest.err conftest.$ac_ext
15197 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15198 echo "${ECHO_T}$ac_header_preproc" >&6; }
15200 # So? What about this header?
15201 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15203 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15204 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15205 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15206 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15207 ac_header_preproc=yes
15210 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15211 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15212 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15213 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15214 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15215 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15216 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15217 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15218 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15219 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15220 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15221 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15223 ## ------------------------------ ##
15224 ## Report this to bugs@yourdomain ##
15225 ## ------------------------------ ##
15227 ) | sed "s/^/$as_me: WARNING: /" >&2
15230 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15233 echo $ECHO_N "(cached) $ECHO_C" >&6
15235 eval "$as_ac_Header=\$ac_header_preproc"
15237 ac_res=`eval echo '${'$as_ac_Header'}'`
15238 { echo "$as_me:$LINENO: result: $ac_res" >&5
15239 echo "${ECHO_T}$ac_res" >&6; }
15242 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15243 cat >>confdefs.h <<_ACEOF
15244 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15252 for ac_header in fenv.h
15254 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15255 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15256 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15259 echo $ECHO_N "(cached) $ECHO_C" >&6
15261 ac_res=`eval echo '${'$as_ac_Header'}'`
15262 { echo "$as_me:$LINENO: result: $ac_res" >&5
15263 echo "${ECHO_T}$ac_res" >&6; }
15265 # Is the header compilable?
15266 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15267 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15268 cat >conftest.$ac_ext <<_ACEOF
15271 cat confdefs.h >>conftest.$ac_ext
15272 cat >>conftest.$ac_ext <<_ACEOF
15273 /* end confdefs.h. */
15274 $ac_includes_default
15275 #include <$ac_header>
15277 rm -f conftest.$ac_objext
15278 if { (ac_try="$ac_compile"
15279 case "(($ac_try" in
15280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15281 *) ac_try_echo=$ac_try;;
15283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15284 (eval "$ac_compile") 2>conftest.er1
15286 grep -v '^ *+' conftest.er1 >conftest.err
15288 cat conftest.err >&5
15289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15290 (exit $ac_status); } &&
15291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15292 { (case "(($ac_try" in
15293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15294 *) ac_try_echo=$ac_try;;
15296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15297 (eval "$ac_try") 2>&5
15299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15300 (exit $ac_status); }; } &&
15301 { ac_try='test -s conftest.$ac_objext'
15302 { (case "(($ac_try" in
15303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15304 *) ac_try_echo=$ac_try;;
15306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15307 (eval "$ac_try") 2>&5
15309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15310 (exit $ac_status); }; }; then
15311 ac_header_compiler=yes
15313 echo "$as_me: failed program was:" >&5
15314 sed 's/^/| /' conftest.$ac_ext >&5
15316 ac_header_compiler=no
15319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15320 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15321 echo "${ECHO_T}$ac_header_compiler" >&6; }
15323 # Is the header present?
15324 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15325 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15326 cat >conftest.$ac_ext <<_ACEOF
15329 cat confdefs.h >>conftest.$ac_ext
15330 cat >>conftest.$ac_ext <<_ACEOF
15331 /* end confdefs.h. */
15332 #include <$ac_header>
15334 if { (ac_try="$ac_cpp conftest.$ac_ext"
15335 case "(($ac_try" in
15336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15337 *) ac_try_echo=$ac_try;;
15339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15340 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15342 grep -v '^ *+' conftest.er1 >conftest.err
15344 cat conftest.err >&5
15345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15346 (exit $ac_status); } >/dev/null; then
15347 if test -s conftest.err; then
15348 ac_cpp_err=$ac_c_preproc_warn_flag
15349 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15356 if test -z "$ac_cpp_err"; then
15357 ac_header_preproc=yes
15359 echo "$as_me: failed program was:" >&5
15360 sed 's/^/| /' conftest.$ac_ext >&5
15362 ac_header_preproc=no
15365 rm -f conftest.err conftest.$ac_ext
15366 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15367 echo "${ECHO_T}$ac_header_preproc" >&6; }
15369 # So? What about this header?
15370 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15372 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15373 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15374 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15375 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15376 ac_header_preproc=yes
15379 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15380 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15381 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15382 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15383 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15384 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15385 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15386 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15387 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15388 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15389 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15390 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15392 ## ------------------------------ ##
15393 ## Report this to bugs@yourdomain ##
15394 ## ------------------------------ ##
15396 ) | sed "s/^/$as_me: WARNING: /" >&2
15399 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15401 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15402 echo $ECHO_N "(cached) $ECHO_C" >&6
15404 eval "$as_ac_Header=\$ac_header_preproc"
15406 ac_res=`eval echo '${'$as_ac_Header'}'`
15407 { echo "$as_me:$LINENO: result: $ac_res" >&5
15408 echo "${ECHO_T}$ac_res" >&6; }
15411 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15412 cat >>confdefs.h <<_ACEOF
15413 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15420 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15422 for ac_header in pthread.h
15424 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15425 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15426 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15428 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15429 echo $ECHO_N "(cached) $ECHO_C" >&6
15431 ac_res=`eval echo '${'$as_ac_Header'}'`
15432 { echo "$as_me:$LINENO: result: $ac_res" >&5
15433 echo "${ECHO_T}$ac_res" >&6; }
15435 # Is the header compilable?
15436 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15437 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15438 cat >conftest.$ac_ext <<_ACEOF
15441 cat confdefs.h >>conftest.$ac_ext
15442 cat >>conftest.$ac_ext <<_ACEOF
15443 /* end confdefs.h. */
15444 $ac_includes_default
15445 #include <$ac_header>
15447 rm -f conftest.$ac_objext
15448 if { (ac_try="$ac_compile"
15449 case "(($ac_try" in
15450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15451 *) ac_try_echo=$ac_try;;
15453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15454 (eval "$ac_compile") 2>conftest.er1
15456 grep -v '^ *+' conftest.er1 >conftest.err
15458 cat conftest.err >&5
15459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15460 (exit $ac_status); } &&
15461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15462 { (case "(($ac_try" in
15463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15464 *) ac_try_echo=$ac_try;;
15466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15467 (eval "$ac_try") 2>&5
15469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15470 (exit $ac_status); }; } &&
15471 { ac_try='test -s conftest.$ac_objext'
15472 { (case "(($ac_try" in
15473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15474 *) ac_try_echo=$ac_try;;
15476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15477 (eval "$ac_try") 2>&5
15479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15480 (exit $ac_status); }; }; then
15481 ac_header_compiler=yes
15483 echo "$as_me: failed program was:" >&5
15484 sed 's/^/| /' conftest.$ac_ext >&5
15486 ac_header_compiler=no
15489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15490 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15491 echo "${ECHO_T}$ac_header_compiler" >&6; }
15493 # Is the header present?
15494 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15495 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15496 cat >conftest.$ac_ext <<_ACEOF
15499 cat confdefs.h >>conftest.$ac_ext
15500 cat >>conftest.$ac_ext <<_ACEOF
15501 /* end confdefs.h. */
15502 #include <$ac_header>
15504 if { (ac_try="$ac_cpp conftest.$ac_ext"
15505 case "(($ac_try" in
15506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15507 *) ac_try_echo=$ac_try;;
15509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15510 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15512 grep -v '^ *+' conftest.er1 >conftest.err
15514 cat conftest.err >&5
15515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15516 (exit $ac_status); } >/dev/null; then
15517 if test -s conftest.err; then
15518 ac_cpp_err=$ac_c_preproc_warn_flag
15519 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15526 if test -z "$ac_cpp_err"; then
15527 ac_header_preproc=yes
15529 echo "$as_me: failed program was:" >&5
15530 sed 's/^/| /' conftest.$ac_ext >&5
15532 ac_header_preproc=no
15535 rm -f conftest.err conftest.$ac_ext
15536 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15537 echo "${ECHO_T}$ac_header_preproc" >&6; }
15539 # So? What about this header?
15540 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15542 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15543 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15544 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15545 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15546 ac_header_preproc=yes
15549 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15550 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15551 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15552 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15553 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15554 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15555 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15556 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15557 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15558 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15559 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15560 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15562 ## ------------------------------ ##
15563 ## Report this to bugs@yourdomain ##
15564 ## ------------------------------ ##
15566 ) | sed "s/^/$as_me: WARNING: /" >&2
15569 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15571 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15572 echo $ECHO_N "(cached) $ECHO_C" >&6
15574 eval "$as_ac_Header=\$ac_header_preproc"
15576 ac_res=`eval echo '${'$as_ac_Header'}'`
15577 { echo "$as_me:$LINENO: result: $ac_res" >&5
15578 echo "${ECHO_T}$ac_res" >&6; }
15581 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15582 cat >>confdefs.h <<_ACEOF
15583 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15599 if test "$llvm_cv_enable_libffi" = "yes" ; then
15602 for ac_header in ffi.h ffi/ffi.h
15604 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15605 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15606 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15607 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15608 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15609 echo $ECHO_N "(cached) $ECHO_C" >&6
15611 ac_res=`eval echo '${'$as_ac_Header'}'`
15612 { echo "$as_me:$LINENO: result: $ac_res" >&5
15613 echo "${ECHO_T}$ac_res" >&6; }
15615 # Is the header compilable?
15616 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15617 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15618 cat >conftest.$ac_ext <<_ACEOF
15621 cat confdefs.h >>conftest.$ac_ext
15622 cat >>conftest.$ac_ext <<_ACEOF
15623 /* end confdefs.h. */
15624 $ac_includes_default
15625 #include <$ac_header>
15627 rm -f conftest.$ac_objext
15628 if { (ac_try="$ac_compile"
15629 case "(($ac_try" in
15630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15631 *) ac_try_echo=$ac_try;;
15633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15634 (eval "$ac_compile") 2>conftest.er1
15636 grep -v '^ *+' conftest.er1 >conftest.err
15638 cat conftest.err >&5
15639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15640 (exit $ac_status); } &&
15641 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15642 { (case "(($ac_try" in
15643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15644 *) ac_try_echo=$ac_try;;
15646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15647 (eval "$ac_try") 2>&5
15649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15650 (exit $ac_status); }; } &&
15651 { ac_try='test -s conftest.$ac_objext'
15652 { (case "(($ac_try" in
15653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15654 *) ac_try_echo=$ac_try;;
15656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15657 (eval "$ac_try") 2>&5
15659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15660 (exit $ac_status); }; }; then
15661 ac_header_compiler=yes
15663 echo "$as_me: failed program was:" >&5
15664 sed 's/^/| /' conftest.$ac_ext >&5
15666 ac_header_compiler=no
15669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15670 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15671 echo "${ECHO_T}$ac_header_compiler" >&6; }
15673 # Is the header present?
15674 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15675 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15676 cat >conftest.$ac_ext <<_ACEOF
15679 cat confdefs.h >>conftest.$ac_ext
15680 cat >>conftest.$ac_ext <<_ACEOF
15681 /* end confdefs.h. */
15682 #include <$ac_header>
15684 if { (ac_try="$ac_cpp conftest.$ac_ext"
15685 case "(($ac_try" in
15686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15687 *) ac_try_echo=$ac_try;;
15689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15690 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15692 grep -v '^ *+' conftest.er1 >conftest.err
15694 cat conftest.err >&5
15695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15696 (exit $ac_status); } >/dev/null; then
15697 if test -s conftest.err; then
15698 ac_cpp_err=$ac_c_preproc_warn_flag
15699 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15706 if test -z "$ac_cpp_err"; then
15707 ac_header_preproc=yes
15709 echo "$as_me: failed program was:" >&5
15710 sed 's/^/| /' conftest.$ac_ext >&5
15712 ac_header_preproc=no
15715 rm -f conftest.err conftest.$ac_ext
15716 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15717 echo "${ECHO_T}$ac_header_preproc" >&6; }
15719 # So? What about this header?
15720 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15722 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15723 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15724 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15725 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15726 ac_header_preproc=yes
15729 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15730 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15731 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15732 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15733 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15734 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15735 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15736 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15737 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15738 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15739 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15740 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15742 ## ------------------------------ ##
15743 ## Report this to bugs@yourdomain ##
15744 ## ------------------------------ ##
15746 ) | sed "s/^/$as_me: WARNING: /" >&2
15749 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15750 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15751 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15752 echo $ECHO_N "(cached) $ECHO_C" >&6
15754 eval "$as_ac_Header=\$ac_header_preproc"
15756 ac_res=`eval echo '${'$as_ac_Header'}'`
15757 { echo "$as_me:$LINENO: result: $ac_res" >&5
15758 echo "${ECHO_T}$ac_res" >&6; }
15761 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15762 cat >>confdefs.h <<_ACEOF
15763 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15773 for ac_header in CrashReporterClient.h
15775 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15776 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15777 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15779 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15780 echo $ECHO_N "(cached) $ECHO_C" >&6
15782 ac_res=`eval echo '${'$as_ac_Header'}'`
15783 { echo "$as_me:$LINENO: result: $ac_res" >&5
15784 echo "${ECHO_T}$ac_res" >&6; }
15786 # Is the header compilable?
15787 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15788 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15789 cat >conftest.$ac_ext <<_ACEOF
15792 cat confdefs.h >>conftest.$ac_ext
15793 cat >>conftest.$ac_ext <<_ACEOF
15794 /* end confdefs.h. */
15795 $ac_includes_default
15796 #include <$ac_header>
15798 rm -f conftest.$ac_objext
15799 if { (ac_try="$ac_compile"
15800 case "(($ac_try" in
15801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15802 *) ac_try_echo=$ac_try;;
15804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15805 (eval "$ac_compile") 2>conftest.er1
15807 grep -v '^ *+' conftest.er1 >conftest.err
15809 cat conftest.err >&5
15810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15811 (exit $ac_status); } &&
15812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15813 { (case "(($ac_try" in
15814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15815 *) ac_try_echo=$ac_try;;
15817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15818 (eval "$ac_try") 2>&5
15820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15821 (exit $ac_status); }; } &&
15822 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
15830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15831 (exit $ac_status); }; }; then
15832 ac_header_compiler=yes
15834 echo "$as_me: failed program was:" >&5
15835 sed 's/^/| /' conftest.$ac_ext >&5
15837 ac_header_compiler=no
15840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15841 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15842 echo "${ECHO_T}$ac_header_compiler" >&6; }
15844 # Is the header present?
15845 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15846 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15847 cat >conftest.$ac_ext <<_ACEOF
15850 cat confdefs.h >>conftest.$ac_ext
15851 cat >>conftest.$ac_ext <<_ACEOF
15852 /* end confdefs.h. */
15853 #include <$ac_header>
15855 if { (ac_try="$ac_cpp conftest.$ac_ext"
15856 case "(($ac_try" in
15857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15858 *) ac_try_echo=$ac_try;;
15860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15861 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15863 grep -v '^ *+' conftest.er1 >conftest.err
15865 cat conftest.err >&5
15866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867 (exit $ac_status); } >/dev/null; then
15868 if test -s conftest.err; then
15869 ac_cpp_err=$ac_c_preproc_warn_flag
15870 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15877 if test -z "$ac_cpp_err"; then
15878 ac_header_preproc=yes
15880 echo "$as_me: failed program was:" >&5
15881 sed 's/^/| /' conftest.$ac_ext >&5
15883 ac_header_preproc=no
15886 rm -f conftest.err conftest.$ac_ext
15887 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15888 echo "${ECHO_T}$ac_header_preproc" >&6; }
15890 # So? What about this header?
15891 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15893 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15894 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15895 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15896 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15897 ac_header_preproc=yes
15900 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15901 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15902 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15903 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15904 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15905 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15906 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15907 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15909 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15910 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15911 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15913 ## ------------------------------ ##
15914 ## Report this to bugs@yourdomain ##
15915 ## ------------------------------ ##
15917 ) | sed "s/^/$as_me: WARNING: /" >&2
15920 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15921 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15922 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15923 echo $ECHO_N "(cached) $ECHO_C" >&6
15925 eval "$as_ac_Header=\$ac_header_preproc"
15927 ac_res=`eval echo '${'$as_ac_Header'}'`
15928 { echo "$as_me:$LINENO: result: $ac_res" >&5
15929 echo "${ECHO_T}$ac_res" >&6; }
15932 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15933 cat >>confdefs.h <<_ACEOF
15934 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15942 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
15943 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
15944 cat >conftest.$ac_ext <<_ACEOF
15947 cat confdefs.h >>conftest.$ac_ext
15948 cat >>conftest.$ac_ext <<_ACEOF
15949 /* end confdefs.h. */
15950 extern const char *__crashreporter_info__;
15952 __crashreporter_info__ = "test";
15957 rm -f conftest.$ac_objext conftest$ac_exeext
15958 if { (ac_try="$ac_link"
15959 case "(($ac_try" in
15960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15961 *) ac_try_echo=$ac_try;;
15963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15964 (eval "$ac_link") 2>conftest.er1
15966 grep -v '^ *+' conftest.er1 >conftest.err
15968 cat conftest.err >&5
15969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15970 (exit $ac_status); } &&
15971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15972 { (case "(($ac_try" in
15973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15974 *) ac_try_echo=$ac_try;;
15976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15977 (eval "$ac_try") 2>&5
15979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15980 (exit $ac_status); }; } &&
15981 { ac_try='test -s conftest$ac_exeext'
15982 { (case "(($ac_try" in
15983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15984 *) ac_try_echo=$ac_try;;
15986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15987 (eval "$ac_try") 2>&5
15989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15990 (exit $ac_status); }; }; then
15991 { echo "$as_me:$LINENO: result: yes" >&5
15992 echo "${ECHO_T}yes" >&6; }
15994 cat >>confdefs.h <<\_ACEOF
15995 #define HAVE_CRASHREPORTER_INFO 1
15999 echo "$as_me: failed program was:" >&5
16000 sed 's/^/| /' conftest.$ac_ext >&5
16002 { echo "$as_me:$LINENO: result: no" >&5
16003 echo "${ECHO_T}no" >&6; }
16005 cat >>confdefs.h <<\_ACEOF
16006 #define HAVE_CRASHREPORTER_INFO 0
16011 rm -f core conftest.err conftest.$ac_objext \
16012 conftest$ac_exeext conftest.$ac_ext
16017 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16018 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16019 if test "${ac_cv_huge_val_sanity+set}" = set; then
16020 echo $ECHO_N "(cached) $ECHO_C" >&6
16024 ac_cpp='$CXXCPP $CPPFLAGS'
16025 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16026 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16027 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16029 ac_save_CXXFLAGS=$CXXFLAGS
16031 if test "$cross_compiling" = yes; then
16032 ac_cv_huge_val_sanity=yes
16034 cat >conftest.$ac_ext <<_ACEOF
16037 cat confdefs.h >>conftest.$ac_ext
16038 cat >>conftest.$ac_ext <<_ACEOF
16039 /* end confdefs.h. */
16044 double x = HUGE_VAL; return x != x;
16049 rm -f conftest$ac_exeext
16050 if { (ac_try="$ac_link"
16051 case "(($ac_try" in
16052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16053 *) ac_try_echo=$ac_try;;
16055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16056 (eval "$ac_link") 2>&5
16058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16059 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16060 { (case "(($ac_try" in
16061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16062 *) ac_try_echo=$ac_try;;
16064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16065 (eval "$ac_try") 2>&5
16067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16068 (exit $ac_status); }; }; then
16069 ac_cv_huge_val_sanity=yes
16071 echo "$as_me: program exited with status $ac_status" >&5
16072 echo "$as_me: failed program was:" >&5
16073 sed 's/^/| /' conftest.$ac_ext >&5
16075 ( exit $ac_status )
16076 ac_cv_huge_val_sanity=no
16078 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16082 CXXFLAGS=$ac_save_CXXFLAGS
16084 ac_cpp='$CPP $CPPFLAGS'
16085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16091 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16092 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16093 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16096 { echo "$as_me:$LINENO: checking for pid_t" >&5
16097 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16098 if test "${ac_cv_type_pid_t+set}" = set; then
16099 echo $ECHO_N "(cached) $ECHO_C" >&6
16101 cat >conftest.$ac_ext <<_ACEOF
16104 cat confdefs.h >>conftest.$ac_ext
16105 cat >>conftest.$ac_ext <<_ACEOF
16106 /* end confdefs.h. */
16107 $ac_includes_default
16108 typedef pid_t ac__type_new_;
16112 if ((ac__type_new_ *) 0)
16114 if (sizeof (ac__type_new_))
16120 rm -f conftest.$ac_objext
16121 if { (ac_try="$ac_compile"
16122 case "(($ac_try" in
16123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16124 *) ac_try_echo=$ac_try;;
16126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16127 (eval "$ac_compile") 2>conftest.er1
16129 grep -v '^ *+' conftest.er1 >conftest.err
16131 cat conftest.err >&5
16132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16133 (exit $ac_status); } &&
16134 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16135 { (case "(($ac_try" in
16136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16137 *) ac_try_echo=$ac_try;;
16139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16140 (eval "$ac_try") 2>&5
16142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16143 (exit $ac_status); }; } &&
16144 { ac_try='test -s conftest.$ac_objext'
16145 { (case "(($ac_try" in
16146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16147 *) ac_try_echo=$ac_try;;
16149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16150 (eval "$ac_try") 2>&5
16152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16153 (exit $ac_status); }; }; then
16154 ac_cv_type_pid_t=yes
16156 echo "$as_me: failed program was:" >&5
16157 sed 's/^/| /' conftest.$ac_ext >&5
16159 ac_cv_type_pid_t=no
16162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16164 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16165 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16166 if test $ac_cv_type_pid_t = yes; then
16170 cat >>confdefs.h <<_ACEOF
16176 { echo "$as_me:$LINENO: checking for size_t" >&5
16177 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16178 if test "${ac_cv_type_size_t+set}" = set; then
16179 echo $ECHO_N "(cached) $ECHO_C" >&6
16181 cat >conftest.$ac_ext <<_ACEOF
16184 cat confdefs.h >>conftest.$ac_ext
16185 cat >>conftest.$ac_ext <<_ACEOF
16186 /* end confdefs.h. */
16187 $ac_includes_default
16188 typedef size_t ac__type_new_;
16192 if ((ac__type_new_ *) 0)
16194 if (sizeof (ac__type_new_))
16200 rm -f conftest.$ac_objext
16201 if { (ac_try="$ac_compile"
16202 case "(($ac_try" in
16203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16204 *) ac_try_echo=$ac_try;;
16206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16207 (eval "$ac_compile") 2>conftest.er1
16209 grep -v '^ *+' conftest.er1 >conftest.err
16211 cat conftest.err >&5
16212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16213 (exit $ac_status); } &&
16214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16215 { (case "(($ac_try" in
16216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16217 *) ac_try_echo=$ac_try;;
16219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16220 (eval "$ac_try") 2>&5
16222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16223 (exit $ac_status); }; } &&
16224 { ac_try='test -s conftest.$ac_objext'
16225 { (case "(($ac_try" in
16226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16227 *) ac_try_echo=$ac_try;;
16229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16230 (eval "$ac_try") 2>&5
16232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16233 (exit $ac_status); }; }; then
16234 ac_cv_type_size_t=yes
16236 echo "$as_me: failed program was:" >&5
16237 sed 's/^/| /' conftest.$ac_ext >&5
16239 ac_cv_type_size_t=no
16242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16244 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16245 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16246 if test $ac_cv_type_size_t = yes; then
16250 cat >>confdefs.h <<_ACEOF
16251 #define size_t unsigned int
16257 cat >>confdefs.h <<_ACEOF
16258 #define RETSIGTYPE void
16261 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16262 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16263 if test "${ac_cv_struct_tm+set}" = set; then
16264 echo $ECHO_N "(cached) $ECHO_C" >&6
16266 cat >conftest.$ac_ext <<_ACEOF
16269 cat confdefs.h >>conftest.$ac_ext
16270 cat >>conftest.$ac_ext <<_ACEOF
16271 /* end confdefs.h. */
16272 #include <sys/types.h>
16278 struct tm *tp; tp->tm_sec;
16283 rm -f conftest.$ac_objext
16284 if { (ac_try="$ac_compile"
16285 case "(($ac_try" in
16286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16287 *) ac_try_echo=$ac_try;;
16289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16290 (eval "$ac_compile") 2>conftest.er1
16292 grep -v '^ *+' conftest.er1 >conftest.err
16294 cat conftest.err >&5
16295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16296 (exit $ac_status); } &&
16297 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16298 { (case "(($ac_try" in
16299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16300 *) ac_try_echo=$ac_try;;
16302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16303 (eval "$ac_try") 2>&5
16305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16306 (exit $ac_status); }; } &&
16307 { ac_try='test -s conftest.$ac_objext'
16308 { (case "(($ac_try" in
16309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16310 *) ac_try_echo=$ac_try;;
16312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16313 (eval "$ac_try") 2>&5
16315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16316 (exit $ac_status); }; }; then
16317 ac_cv_struct_tm=time.h
16319 echo "$as_me: failed program was:" >&5
16320 sed 's/^/| /' conftest.$ac_ext >&5
16322 ac_cv_struct_tm=sys/time.h
16325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16327 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16328 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16329 if test $ac_cv_struct_tm = sys/time.h; then
16331 cat >>confdefs.h <<\_ACEOF
16332 #define TM_IN_SYS_TIME 1
16337 { echo "$as_me:$LINENO: checking for int64_t" >&5
16338 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16339 if test "${ac_cv_type_int64_t+set}" = set; then
16340 echo $ECHO_N "(cached) $ECHO_C" >&6
16342 cat >conftest.$ac_ext <<_ACEOF
16345 cat confdefs.h >>conftest.$ac_ext
16346 cat >>conftest.$ac_ext <<_ACEOF
16347 /* end confdefs.h. */
16348 $ac_includes_default
16349 typedef int64_t ac__type_new_;
16353 if ((ac__type_new_ *) 0)
16355 if (sizeof (ac__type_new_))
16361 rm -f conftest.$ac_objext
16362 if { (ac_try="$ac_compile"
16363 case "(($ac_try" in
16364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16365 *) ac_try_echo=$ac_try;;
16367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16368 (eval "$ac_compile") 2>conftest.er1
16370 grep -v '^ *+' conftest.er1 >conftest.err
16372 cat conftest.err >&5
16373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16374 (exit $ac_status); } &&
16375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16376 { (case "(($ac_try" in
16377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16378 *) ac_try_echo=$ac_try;;
16380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16381 (eval "$ac_try") 2>&5
16383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16384 (exit $ac_status); }; } &&
16385 { ac_try='test -s conftest.$ac_objext'
16386 { (case "(($ac_try" in
16387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16388 *) ac_try_echo=$ac_try;;
16390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16391 (eval "$ac_try") 2>&5
16393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16394 (exit $ac_status); }; }; then
16395 ac_cv_type_int64_t=yes
16397 echo "$as_me: failed program was:" >&5
16398 sed 's/^/| /' conftest.$ac_ext >&5
16400 ac_cv_type_int64_t=no
16403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16405 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16406 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16407 if test $ac_cv_type_int64_t = yes; then
16409 cat >>confdefs.h <<_ACEOF
16410 #define HAVE_INT64_T 1
16415 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16416 echo "$as_me: error: Type int64_t required but not found" >&2;}
16417 { (exit 1); exit 1; }; }
16420 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16421 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16422 if test "${ac_cv_type_uint64_t+set}" = set; then
16423 echo $ECHO_N "(cached) $ECHO_C" >&6
16425 cat >conftest.$ac_ext <<_ACEOF
16428 cat confdefs.h >>conftest.$ac_ext
16429 cat >>conftest.$ac_ext <<_ACEOF
16430 /* end confdefs.h. */
16431 $ac_includes_default
16432 typedef uint64_t ac__type_new_;
16436 if ((ac__type_new_ *) 0)
16438 if (sizeof (ac__type_new_))
16444 rm -f conftest.$ac_objext
16445 if { (ac_try="$ac_compile"
16446 case "(($ac_try" in
16447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16448 *) ac_try_echo=$ac_try;;
16450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16451 (eval "$ac_compile") 2>conftest.er1
16453 grep -v '^ *+' conftest.er1 >conftest.err
16455 cat conftest.err >&5
16456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16457 (exit $ac_status); } &&
16458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16459 { (case "(($ac_try" in
16460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16461 *) ac_try_echo=$ac_try;;
16463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16464 (eval "$ac_try") 2>&5
16466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16467 (exit $ac_status); }; } &&
16468 { ac_try='test -s conftest.$ac_objext'
16469 { (case "(($ac_try" in
16470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16471 *) ac_try_echo=$ac_try;;
16473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16474 (eval "$ac_try") 2>&5
16476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477 (exit $ac_status); }; }; then
16478 ac_cv_type_uint64_t=yes
16480 echo "$as_me: failed program was:" >&5
16481 sed 's/^/| /' conftest.$ac_ext >&5
16483 ac_cv_type_uint64_t=no
16486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16488 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16489 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16490 if test $ac_cv_type_uint64_t = yes; then
16492 cat >>confdefs.h <<_ACEOF
16493 #define HAVE_UINT64_T 1
16498 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16499 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16500 if test "${ac_cv_type_u_int64_t+set}" = set; then
16501 echo $ECHO_N "(cached) $ECHO_C" >&6
16503 cat >conftest.$ac_ext <<_ACEOF
16506 cat confdefs.h >>conftest.$ac_ext
16507 cat >>conftest.$ac_ext <<_ACEOF
16508 /* end confdefs.h. */
16509 $ac_includes_default
16510 typedef u_int64_t ac__type_new_;
16514 if ((ac__type_new_ *) 0)
16516 if (sizeof (ac__type_new_))
16522 rm -f conftest.$ac_objext
16523 if { (ac_try="$ac_compile"
16524 case "(($ac_try" in
16525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16526 *) ac_try_echo=$ac_try;;
16528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16529 (eval "$ac_compile") 2>conftest.er1
16531 grep -v '^ *+' conftest.er1 >conftest.err
16533 cat conftest.err >&5
16534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16535 (exit $ac_status); } &&
16536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16537 { (case "(($ac_try" in
16538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16539 *) ac_try_echo=$ac_try;;
16541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16542 (eval "$ac_try") 2>&5
16544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16545 (exit $ac_status); }; } &&
16546 { ac_try='test -s conftest.$ac_objext'
16547 { (case "(($ac_try" in
16548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16549 *) ac_try_echo=$ac_try;;
16551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16552 (eval "$ac_try") 2>&5
16554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16555 (exit $ac_status); }; }; then
16556 ac_cv_type_u_int64_t=yes
16558 echo "$as_me: failed program was:" >&5
16559 sed 's/^/| /' conftest.$ac_ext >&5
16561 ac_cv_type_u_int64_t=no
16564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16566 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16567 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16568 if test $ac_cv_type_u_int64_t = yes; then
16570 cat >>confdefs.h <<_ACEOF
16571 #define HAVE_U_INT64_T 1
16576 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16577 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16578 { (exit 1); exit 1; }; }
16592 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16594 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16595 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16596 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16597 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16598 echo $ECHO_N "(cached) $ECHO_C" >&6
16600 cat >conftest.$ac_ext <<_ACEOF
16603 cat confdefs.h >>conftest.$ac_ext
16604 cat >>conftest.$ac_ext <<_ACEOF
16605 /* end confdefs.h. */
16606 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16607 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16608 #define $ac_func innocuous_$ac_func
16610 /* System header to define __stub macros and hopefully few prototypes,
16611 which can conflict with char $ac_func (); below.
16612 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16613 <limits.h> exists even on freestanding compilers. */
16616 # include <limits.h>
16618 # include <assert.h>
16623 /* Override any GCC internal prototype to avoid an error.
16624 Use char because int might match the return type of a GCC
16625 builtin and then its argument prototype would still apply. */
16630 /* The GNU C library defines this for functions which it implements
16631 to always fail with ENOSYS. Some functions are actually named
16632 something starting with __ and the normal name is an alias. */
16633 #if defined __stub_$ac_func || defined __stub___$ac_func
16640 return $ac_func ();
16645 rm -f conftest.$ac_objext conftest$ac_exeext
16646 if { (ac_try="$ac_link"
16647 case "(($ac_try" in
16648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16649 *) ac_try_echo=$ac_try;;
16651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16652 (eval "$ac_link") 2>conftest.er1
16654 grep -v '^ *+' conftest.er1 >conftest.err
16656 cat conftest.err >&5
16657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16658 (exit $ac_status); } &&
16659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16660 { (case "(($ac_try" in
16661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16662 *) ac_try_echo=$ac_try;;
16664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16665 (eval "$ac_try") 2>&5
16667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16668 (exit $ac_status); }; } &&
16669 { ac_try='test -s conftest$ac_exeext'
16670 { (case "(($ac_try" in
16671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16672 *) ac_try_echo=$ac_try;;
16674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16675 (eval "$ac_try") 2>&5
16677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16678 (exit $ac_status); }; }; then
16679 eval "$as_ac_var=yes"
16681 echo "$as_me: failed program was:" >&5
16682 sed 's/^/| /' conftest.$ac_ext >&5
16684 eval "$as_ac_var=no"
16687 rm -f core conftest.err conftest.$ac_objext \
16688 conftest$ac_exeext conftest.$ac_ext
16690 ac_res=`eval echo '${'$as_ac_var'}'`
16691 { echo "$as_me:$LINENO: result: $ac_res" >&5
16692 echo "${ECHO_T}$ac_res" >&6; }
16693 if test `eval echo '${'$as_ac_var'}'` = yes; then
16694 cat >>confdefs.h <<_ACEOF
16695 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16705 for ac_func in powf fmodf strtof round
16707 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16708 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16709 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16710 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16711 echo $ECHO_N "(cached) $ECHO_C" >&6
16713 cat >conftest.$ac_ext <<_ACEOF
16716 cat confdefs.h >>conftest.$ac_ext
16717 cat >>conftest.$ac_ext <<_ACEOF
16718 /* end confdefs.h. */
16719 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16720 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16721 #define $ac_func innocuous_$ac_func
16723 /* System header to define __stub macros and hopefully few prototypes,
16724 which can conflict with char $ac_func (); below.
16725 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16726 <limits.h> exists even on freestanding compilers. */
16729 # include <limits.h>
16731 # include <assert.h>
16736 /* Override any GCC internal prototype to avoid an error.
16737 Use char because int might match the return type of a GCC
16738 builtin and then its argument prototype would still apply. */
16743 /* The GNU C library defines this for functions which it implements
16744 to always fail with ENOSYS. Some functions are actually named
16745 something starting with __ and the normal name is an alias. */
16746 #if defined __stub_$ac_func || defined __stub___$ac_func
16753 return $ac_func ();
16758 rm -f conftest.$ac_objext conftest$ac_exeext
16759 if { (ac_try="$ac_link"
16760 case "(($ac_try" in
16761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16762 *) ac_try_echo=$ac_try;;
16764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16765 (eval "$ac_link") 2>conftest.er1
16767 grep -v '^ *+' conftest.er1 >conftest.err
16769 cat conftest.err >&5
16770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16771 (exit $ac_status); } &&
16772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16773 { (case "(($ac_try" in
16774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16775 *) ac_try_echo=$ac_try;;
16777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16778 (eval "$ac_try") 2>&5
16780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16781 (exit $ac_status); }; } &&
16782 { ac_try='test -s conftest$ac_exeext'
16783 { (case "(($ac_try" in
16784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16785 *) ac_try_echo=$ac_try;;
16787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16788 (eval "$ac_try") 2>&5
16790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791 (exit $ac_status); }; }; then
16792 eval "$as_ac_var=yes"
16794 echo "$as_me: failed program was:" >&5
16795 sed 's/^/| /' conftest.$ac_ext >&5
16797 eval "$as_ac_var=no"
16800 rm -f core conftest.err conftest.$ac_objext \
16801 conftest$ac_exeext conftest.$ac_ext
16803 ac_res=`eval echo '${'$as_ac_var'}'`
16804 { echo "$as_me:$LINENO: result: $ac_res" >&5
16805 echo "${ECHO_T}$ac_res" >&6; }
16806 if test `eval echo '${'$as_ac_var'}'` = yes; then
16807 cat >>confdefs.h <<_ACEOF
16808 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16819 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16821 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16822 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16823 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16824 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16825 echo $ECHO_N "(cached) $ECHO_C" >&6
16827 cat >conftest.$ac_ext <<_ACEOF
16830 cat confdefs.h >>conftest.$ac_ext
16831 cat >>conftest.$ac_ext <<_ACEOF
16832 /* end confdefs.h. */
16833 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16834 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16835 #define $ac_func innocuous_$ac_func
16837 /* System header to define __stub macros and hopefully few prototypes,
16838 which can conflict with char $ac_func (); below.
16839 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16840 <limits.h> exists even on freestanding compilers. */
16843 # include <limits.h>
16845 # include <assert.h>
16850 /* Override any GCC internal prototype to avoid an error.
16851 Use char because int might match the return type of a GCC
16852 builtin and then its argument prototype would still apply. */
16857 /* The GNU C library defines this for functions which it implements
16858 to always fail with ENOSYS. Some functions are actually named
16859 something starting with __ and the normal name is an alias. */
16860 #if defined __stub_$ac_func || defined __stub___$ac_func
16867 return $ac_func ();
16872 rm -f conftest.$ac_objext conftest$ac_exeext
16873 if { (ac_try="$ac_link"
16874 case "(($ac_try" in
16875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16876 *) ac_try_echo=$ac_try;;
16878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16879 (eval "$ac_link") 2>conftest.er1
16881 grep -v '^ *+' conftest.er1 >conftest.err
16883 cat conftest.err >&5
16884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16885 (exit $ac_status); } &&
16886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16887 { (case "(($ac_try" in
16888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16889 *) ac_try_echo=$ac_try;;
16891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16892 (eval "$ac_try") 2>&5
16894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16895 (exit $ac_status); }; } &&
16896 { ac_try='test -s conftest$ac_exeext'
16897 { (case "(($ac_try" in
16898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16899 *) ac_try_echo=$ac_try;;
16901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16902 (eval "$ac_try") 2>&5
16904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16905 (exit $ac_status); }; }; then
16906 eval "$as_ac_var=yes"
16908 echo "$as_me: failed program was:" >&5
16909 sed 's/^/| /' conftest.$ac_ext >&5
16911 eval "$as_ac_var=no"
16914 rm -f core conftest.err conftest.$ac_objext \
16915 conftest$ac_exeext conftest.$ac_ext
16917 ac_res=`eval echo '${'$as_ac_var'}'`
16918 { echo "$as_me:$LINENO: result: $ac_res" >&5
16919 echo "${ECHO_T}$ac_res" >&6; }
16920 if test `eval echo '${'$as_ac_var'}'` = yes; then
16921 cat >>confdefs.h <<_ACEOF
16922 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16931 for ac_func in isatty mkdtemp mkstemp
16933 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16934 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16935 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16936 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16937 echo $ECHO_N "(cached) $ECHO_C" >&6
16939 cat >conftest.$ac_ext <<_ACEOF
16942 cat confdefs.h >>conftest.$ac_ext
16943 cat >>conftest.$ac_ext <<_ACEOF
16944 /* end confdefs.h. */
16945 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16946 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16947 #define $ac_func innocuous_$ac_func
16949 /* System header to define __stub macros and hopefully few prototypes,
16950 which can conflict with char $ac_func (); below.
16951 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16952 <limits.h> exists even on freestanding compilers. */
16955 # include <limits.h>
16957 # include <assert.h>
16962 /* Override any GCC internal prototype to avoid an error.
16963 Use char because int might match the return type of a GCC
16964 builtin and then its argument prototype would still apply. */
16969 /* The GNU C library defines this for functions which it implements
16970 to always fail with ENOSYS. Some functions are actually named
16971 something starting with __ and the normal name is an alias. */
16972 #if defined __stub_$ac_func || defined __stub___$ac_func
16979 return $ac_func ();
16984 rm -f conftest.$ac_objext conftest$ac_exeext
16985 if { (ac_try="$ac_link"
16986 case "(($ac_try" in
16987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16988 *) ac_try_echo=$ac_try;;
16990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16991 (eval "$ac_link") 2>conftest.er1
16993 grep -v '^ *+' conftest.er1 >conftest.err
16995 cat conftest.err >&5
16996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16997 (exit $ac_status); } &&
16998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16999 { (case "(($ac_try" in
17000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17001 *) ac_try_echo=$ac_try;;
17003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17004 (eval "$ac_try") 2>&5
17006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17007 (exit $ac_status); }; } &&
17008 { ac_try='test -s conftest$ac_exeext'
17009 { (case "(($ac_try" in
17010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17011 *) ac_try_echo=$ac_try;;
17013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17014 (eval "$ac_try") 2>&5
17016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17017 (exit $ac_status); }; }; then
17018 eval "$as_ac_var=yes"
17020 echo "$as_me: failed program was:" >&5
17021 sed 's/^/| /' conftest.$ac_ext >&5
17023 eval "$as_ac_var=no"
17026 rm -f core conftest.err conftest.$ac_objext \
17027 conftest$ac_exeext conftest.$ac_ext
17029 ac_res=`eval echo '${'$as_ac_var'}'`
17030 { echo "$as_me:$LINENO: result: $ac_res" >&5
17031 echo "${ECHO_T}$ac_res" >&6; }
17032 if test `eval echo '${'$as_ac_var'}'` = yes; then
17033 cat >>confdefs.h <<_ACEOF
17034 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17046 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
17048 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17049 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17050 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17051 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17052 echo $ECHO_N "(cached) $ECHO_C" >&6
17054 cat >conftest.$ac_ext <<_ACEOF
17057 cat confdefs.h >>conftest.$ac_ext
17058 cat >>conftest.$ac_ext <<_ACEOF
17059 /* end confdefs.h. */
17060 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17061 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17062 #define $ac_func innocuous_$ac_func
17064 /* System header to define __stub macros and hopefully few prototypes,
17065 which can conflict with char $ac_func (); below.
17066 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17067 <limits.h> exists even on freestanding compilers. */
17070 # include <limits.h>
17072 # include <assert.h>
17077 /* Override any GCC internal prototype to avoid an error.
17078 Use char because int might match the return type of a GCC
17079 builtin and then its argument prototype would still apply. */
17084 /* The GNU C library defines this for functions which it implements
17085 to always fail with ENOSYS. Some functions are actually named
17086 something starting with __ and the normal name is an alias. */
17087 #if defined __stub_$ac_func || defined __stub___$ac_func
17094 return $ac_func ();
17099 rm -f conftest.$ac_objext conftest$ac_exeext
17100 if { (ac_try="$ac_link"
17101 case "(($ac_try" in
17102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17103 *) ac_try_echo=$ac_try;;
17105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17106 (eval "$ac_link") 2>conftest.er1
17108 grep -v '^ *+' conftest.er1 >conftest.err
17110 cat conftest.err >&5
17111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17112 (exit $ac_status); } &&
17113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17114 { (case "(($ac_try" in
17115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17116 *) ac_try_echo=$ac_try;;
17118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17119 (eval "$ac_try") 2>&5
17121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17122 (exit $ac_status); }; } &&
17123 { ac_try='test -s conftest$ac_exeext'
17124 { (case "(($ac_try" in
17125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17126 *) ac_try_echo=$ac_try;;
17128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17129 (eval "$ac_try") 2>&5
17131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17132 (exit $ac_status); }; }; then
17133 eval "$as_ac_var=yes"
17135 echo "$as_me: failed program was:" >&5
17136 sed 's/^/| /' conftest.$ac_ext >&5
17138 eval "$as_ac_var=no"
17141 rm -f core conftest.err conftest.$ac_objext \
17142 conftest$ac_exeext conftest.$ac_ext
17144 ac_res=`eval echo '${'$as_ac_var'}'`
17145 { echo "$as_me:$LINENO: result: $ac_res" >&5
17146 echo "${ECHO_T}$ac_res" >&6; }
17147 if test `eval echo '${'$as_ac_var'}'` = yes; then
17148 cat >>confdefs.h <<_ACEOF
17149 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17158 for ac_func in strerror strerror_r setenv
17160 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17161 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17162 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17163 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17164 echo $ECHO_N "(cached) $ECHO_C" >&6
17166 cat >conftest.$ac_ext <<_ACEOF
17169 cat confdefs.h >>conftest.$ac_ext
17170 cat >>conftest.$ac_ext <<_ACEOF
17171 /* end confdefs.h. */
17172 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17173 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17174 #define $ac_func innocuous_$ac_func
17176 /* System header to define __stub macros and hopefully few prototypes,
17177 which can conflict with char $ac_func (); below.
17178 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17179 <limits.h> exists even on freestanding compilers. */
17182 # include <limits.h>
17184 # include <assert.h>
17189 /* Override any GCC internal prototype to avoid an error.
17190 Use char because int might match the return type of a GCC
17191 builtin and then its argument prototype would still apply. */
17196 /* The GNU C library defines this for functions which it implements
17197 to always fail with ENOSYS. Some functions are actually named
17198 something starting with __ and the normal name is an alias. */
17199 #if defined __stub_$ac_func || defined __stub___$ac_func
17206 return $ac_func ();
17211 rm -f conftest.$ac_objext conftest$ac_exeext
17212 if { (ac_try="$ac_link"
17213 case "(($ac_try" in
17214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17215 *) ac_try_echo=$ac_try;;
17217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17218 (eval "$ac_link") 2>conftest.er1
17220 grep -v '^ *+' conftest.er1 >conftest.err
17222 cat conftest.err >&5
17223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17224 (exit $ac_status); } &&
17225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17226 { (case "(($ac_try" in
17227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17228 *) ac_try_echo=$ac_try;;
17230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17231 (eval "$ac_try") 2>&5
17233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17234 (exit $ac_status); }; } &&
17235 { ac_try='test -s conftest$ac_exeext'
17236 { (case "(($ac_try" in
17237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17238 *) ac_try_echo=$ac_try;;
17240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17241 (eval "$ac_try") 2>&5
17243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17244 (exit $ac_status); }; }; then
17245 eval "$as_ac_var=yes"
17247 echo "$as_me: failed program was:" >&5
17248 sed 's/^/| /' conftest.$ac_ext >&5
17250 eval "$as_ac_var=no"
17253 rm -f core conftest.err conftest.$ac_objext \
17254 conftest$ac_exeext conftest.$ac_ext
17256 ac_res=`eval echo '${'$as_ac_var'}'`
17257 { echo "$as_me:$LINENO: result: $ac_res" >&5
17258 echo "${ECHO_T}$ac_res" >&6; }
17259 if test `eval echo '${'$as_ac_var'}'` = yes; then
17260 cat >>confdefs.h <<_ACEOF
17261 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17271 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17273 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17274 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17275 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17276 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17277 echo $ECHO_N "(cached) $ECHO_C" >&6
17279 cat >conftest.$ac_ext <<_ACEOF
17282 cat confdefs.h >>conftest.$ac_ext
17283 cat >>conftest.$ac_ext <<_ACEOF
17284 /* end confdefs.h. */
17285 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17286 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17287 #define $ac_func innocuous_$ac_func
17289 /* System header to define __stub macros and hopefully few prototypes,
17290 which can conflict with char $ac_func (); below.
17291 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17292 <limits.h> exists even on freestanding compilers. */
17295 # include <limits.h>
17297 # include <assert.h>
17302 /* Override any GCC internal prototype to avoid an error.
17303 Use char because int might match the return type of a GCC
17304 builtin and then its argument prototype would still apply. */
17309 /* The GNU C library defines this for functions which it implements
17310 to always fail with ENOSYS. Some functions are actually named
17311 something starting with __ and the normal name is an alias. */
17312 #if defined __stub_$ac_func || defined __stub___$ac_func
17319 return $ac_func ();
17324 rm -f conftest.$ac_objext conftest$ac_exeext
17325 if { (ac_try="$ac_link"
17326 case "(($ac_try" in
17327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17328 *) ac_try_echo=$ac_try;;
17330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17331 (eval "$ac_link") 2>conftest.er1
17333 grep -v '^ *+' conftest.er1 >conftest.err
17335 cat conftest.err >&5
17336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17337 (exit $ac_status); } &&
17338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17339 { (case "(($ac_try" in
17340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17341 *) ac_try_echo=$ac_try;;
17343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17344 (eval "$ac_try") 2>&5
17346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17347 (exit $ac_status); }; } &&
17348 { ac_try='test -s conftest$ac_exeext'
17349 { (case "(($ac_try" in
17350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17351 *) ac_try_echo=$ac_try;;
17353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17354 (eval "$ac_try") 2>&5
17356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17357 (exit $ac_status); }; }; then
17358 eval "$as_ac_var=yes"
17360 echo "$as_me: failed program was:" >&5
17361 sed 's/^/| /' conftest.$ac_ext >&5
17363 eval "$as_ac_var=no"
17366 rm -f core conftest.err conftest.$ac_objext \
17367 conftest$ac_exeext conftest.$ac_ext
17369 ac_res=`eval echo '${'$as_ac_var'}'`
17370 { echo "$as_me:$LINENO: result: $ac_res" >&5
17371 echo "${ECHO_T}$ac_res" >&6; }
17372 if test `eval echo '${'$as_ac_var'}'` = yes; then
17373 cat >>confdefs.h <<_ACEOF
17374 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17385 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17387 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17388 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17389 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17390 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17391 echo $ECHO_N "(cached) $ECHO_C" >&6
17393 cat >conftest.$ac_ext <<_ACEOF
17396 cat confdefs.h >>conftest.$ac_ext
17397 cat >>conftest.$ac_ext <<_ACEOF
17398 /* end confdefs.h. */
17399 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17400 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17401 #define $ac_func innocuous_$ac_func
17403 /* System header to define __stub macros and hopefully few prototypes,
17404 which can conflict with char $ac_func (); below.
17405 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17406 <limits.h> exists even on freestanding compilers. */
17409 # include <limits.h>
17411 # include <assert.h>
17416 /* Override any GCC internal prototype to avoid an error.
17417 Use char because int might match the return type of a GCC
17418 builtin and then its argument prototype would still apply. */
17423 /* The GNU C library defines this for functions which it implements
17424 to always fail with ENOSYS. Some functions are actually named
17425 something starting with __ and the normal name is an alias. */
17426 #if defined __stub_$ac_func || defined __stub___$ac_func
17433 return $ac_func ();
17438 rm -f conftest.$ac_objext conftest$ac_exeext
17439 if { (ac_try="$ac_link"
17440 case "(($ac_try" in
17441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17442 *) ac_try_echo=$ac_try;;
17444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17445 (eval "$ac_link") 2>conftest.er1
17447 grep -v '^ *+' conftest.er1 >conftest.err
17449 cat conftest.err >&5
17450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17451 (exit $ac_status); } &&
17452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17453 { (case "(($ac_try" in
17454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17455 *) ac_try_echo=$ac_try;;
17457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17458 (eval "$ac_try") 2>&5
17460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17461 (exit $ac_status); }; } &&
17462 { ac_try='test -s conftest$ac_exeext'
17463 { (case "(($ac_try" in
17464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17465 *) ac_try_echo=$ac_try;;
17467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17468 (eval "$ac_try") 2>&5
17470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17471 (exit $ac_status); }; }; then
17472 eval "$as_ac_var=yes"
17474 echo "$as_me: failed program was:" >&5
17475 sed 's/^/| /' conftest.$ac_ext >&5
17477 eval "$as_ac_var=no"
17480 rm -f core conftest.err conftest.$ac_objext \
17481 conftest$ac_exeext conftest.$ac_ext
17483 ac_res=`eval echo '${'$as_ac_var'}'`
17484 { echo "$as_me:$LINENO: result: $ac_res" >&5
17485 echo "${ECHO_T}$ac_res" >&6; }
17486 if test `eval echo '${'$as_ac_var'}'` = yes; then
17487 cat >>confdefs.h <<_ACEOF
17488 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17494 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17495 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17496 if test "${llvm_cv_c_printf_a+set}" = set; then
17497 echo $ECHO_N "(cached) $ECHO_C" >&6
17500 ac_cpp='$CPP $CPPFLAGS'
17501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17505 if test "$cross_compiling" = yes; then
17506 llvmac_cv_c_printf_a=no
17508 cat >conftest.$ac_ext <<_ACEOF
17512 cat confdefs.h >>conftest.$ac_ext
17513 cat >>conftest.$ac_ext <<_ACEOF
17514 /* end confdefs.h. */
17517 #include <stdlib.h>
17523 volatile double A, B;
17527 sprintf(Buffer, "%a", A);
17531 if (A != 0x1.999999999999ap-4)
17538 rm -f conftest$ac_exeext
17539 if { (ac_try="$ac_link"
17540 case "(($ac_try" in
17541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17542 *) ac_try_echo=$ac_try;;
17544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17545 (eval "$ac_link") 2>&5
17547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17548 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17549 { (case "(($ac_try" in
17550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17551 *) ac_try_echo=$ac_try;;
17553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17554 (eval "$ac_try") 2>&5
17556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17557 (exit $ac_status); }; }; then
17558 llvm_cv_c_printf_a=yes
17560 echo "$as_me: program exited with status $ac_status" >&5
17561 echo "$as_me: failed program was:" >&5
17562 sed 's/^/| /' conftest.$ac_ext >&5
17564 ( exit $ac_status )
17565 llvmac_cv_c_printf_a=no
17567 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17572 ac_cpp='$CPP $CPPFLAGS'
17573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17578 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17579 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17580 if test "$llvm_cv_c_printf_a" = "yes"; then
17582 cat >>confdefs.h <<\_ACEOF
17583 #define HAVE_PRINTF_A 1
17589 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17590 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17591 if test "${ac_cv_func_rand48+set}" = set; then
17592 echo $ECHO_N "(cached) $ECHO_C" >&6
17595 ac_cpp='$CXXCPP $CPPFLAGS'
17596 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17597 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17598 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17600 cat >conftest.$ac_ext <<_ACEOF
17603 cat confdefs.h >>conftest.$ac_ext
17604 cat >>conftest.$ac_ext <<_ACEOF
17605 /* end confdefs.h. */
17606 #include <stdlib.h>
17610 srand48(0);lrand48();drand48();
17615 rm -f conftest.$ac_objext
17616 if { (ac_try="$ac_compile"
17617 case "(($ac_try" in
17618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17619 *) ac_try_echo=$ac_try;;
17621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17622 (eval "$ac_compile") 2>conftest.er1
17624 grep -v '^ *+' conftest.er1 >conftest.err
17626 cat conftest.err >&5
17627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17628 (exit $ac_status); } &&
17629 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17630 { (case "(($ac_try" in
17631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17632 *) ac_try_echo=$ac_try;;
17634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17635 (eval "$ac_try") 2>&5
17637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17638 (exit $ac_status); }; } &&
17639 { ac_try='test -s conftest.$ac_objext'
17640 { (case "(($ac_try" in
17641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17642 *) ac_try_echo=$ac_try;;
17644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17645 (eval "$ac_try") 2>&5
17647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17648 (exit $ac_status); }; }; then
17649 ac_cv_func_rand48=yes
17651 echo "$as_me: failed program was:" >&5
17652 sed 's/^/| /' conftest.$ac_ext >&5
17654 ac_cv_func_rand48=no
17657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17659 ac_cpp='$CPP $CPPFLAGS'
17660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17665 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17666 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17668 if test "$ac_cv_func_rand48" = "yes" ; then
17670 cat >>confdefs.h <<\_ACEOF
17671 #define HAVE_RAND48 1
17677 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17678 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17679 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17680 echo $ECHO_N "(cached) $ECHO_C" >&6
17682 cat >conftest.$ac_ext <<_ACEOF
17685 cat confdefs.h >>conftest.$ac_ext
17686 cat >>conftest.$ac_ext <<_ACEOF
17687 /* end confdefs.h. */
17688 $ac_includes_default
17693 char *p = (char *) strerror_s;
17701 rm -f conftest.$ac_objext
17702 if { (ac_try="$ac_compile"
17703 case "(($ac_try" in
17704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17705 *) ac_try_echo=$ac_try;;
17707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17708 (eval "$ac_compile") 2>conftest.er1
17710 grep -v '^ *+' conftest.er1 >conftest.err
17712 cat conftest.err >&5
17713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714 (exit $ac_status); } &&
17715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17716 { (case "(($ac_try" in
17717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17718 *) ac_try_echo=$ac_try;;
17720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17721 (eval "$ac_try") 2>&5
17723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724 (exit $ac_status); }; } &&
17725 { ac_try='test -s conftest.$ac_objext'
17726 { (case "(($ac_try" in
17727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17728 *) ac_try_echo=$ac_try;;
17730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17731 (eval "$ac_try") 2>&5
17733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17734 (exit $ac_status); }; }; then
17735 ac_cv_have_decl_strerror_s=yes
17737 echo "$as_me: failed program was:" >&5
17738 sed 's/^/| /' conftest.$ac_ext >&5
17740 ac_cv_have_decl_strerror_s=no
17743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17745 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17746 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17747 if test $ac_cv_have_decl_strerror_s = yes; then
17749 cat >>confdefs.h <<_ACEOF
17750 #define HAVE_DECL_STRERROR_S 1
17755 cat >>confdefs.h <<_ACEOF
17756 #define HAVE_DECL_STRERROR_S 0
17764 if test "$llvm_cv_os_type" = "MingW" ; then
17765 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17766 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17767 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17768 echo $ECHO_N "(cached) $ECHO_C" >&6
17770 ac_check_lib_save_LIBS=$LIBS
17772 cat >conftest.$ac_ext <<_ACEOF
17775 cat confdefs.h >>conftest.$ac_ext
17776 cat >>conftest.$ac_ext <<_ACEOF
17777 /* end confdefs.h. */
17779 /* Override any GCC internal prototype to avoid an error.
17780 Use char because int might match the return type of a GCC
17781 builtin and then its argument prototype would still apply. */
17794 rm -f conftest.$ac_objext conftest$ac_exeext
17795 if { (ac_try="$ac_link"
17796 case "(($ac_try" in
17797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17798 *) ac_try_echo=$ac_try;;
17800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17801 (eval "$ac_link") 2>conftest.er1
17803 grep -v '^ *+' conftest.er1 >conftest.err
17805 cat conftest.err >&5
17806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17807 (exit $ac_status); } &&
17808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17809 { (case "(($ac_try" in
17810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17811 *) ac_try_echo=$ac_try;;
17813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17814 (eval "$ac_try") 2>&5
17816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17817 (exit $ac_status); }; } &&
17818 { ac_try='test -s conftest$ac_exeext'
17819 { (case "(($ac_try" in
17820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17821 *) ac_try_echo=$ac_try;;
17823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17824 (eval "$ac_try") 2>&5
17826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827 (exit $ac_status); }; }; then
17828 ac_cv_lib_gcc__alloca=yes
17830 echo "$as_me: failed program was:" >&5
17831 sed 's/^/| /' conftest.$ac_ext >&5
17833 ac_cv_lib_gcc__alloca=no
17836 rm -f core conftest.err conftest.$ac_objext \
17837 conftest$ac_exeext conftest.$ac_ext
17838 LIBS=$ac_check_lib_save_LIBS
17840 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17841 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17842 if test $ac_cv_lib_gcc__alloca = yes; then
17844 cat >>confdefs.h <<\_ACEOF
17845 #define HAVE__ALLOCA 1
17850 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17851 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17852 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17853 echo $ECHO_N "(cached) $ECHO_C" >&6
17855 ac_check_lib_save_LIBS=$LIBS
17857 cat >conftest.$ac_ext <<_ACEOF
17860 cat confdefs.h >>conftest.$ac_ext
17861 cat >>conftest.$ac_ext <<_ACEOF
17862 /* end confdefs.h. */
17864 /* Override any GCC internal prototype to avoid an error.
17865 Use char because int might match the return type of a GCC
17866 builtin and then its argument prototype would still apply. */
17874 return __alloca ();
17879 rm -f conftest.$ac_objext conftest$ac_exeext
17880 if { (ac_try="$ac_link"
17881 case "(($ac_try" in
17882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17883 *) ac_try_echo=$ac_try;;
17885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17886 (eval "$ac_link") 2>conftest.er1
17888 grep -v '^ *+' conftest.er1 >conftest.err
17890 cat conftest.err >&5
17891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17892 (exit $ac_status); } &&
17893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17894 { (case "(($ac_try" in
17895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17896 *) ac_try_echo=$ac_try;;
17898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17899 (eval "$ac_try") 2>&5
17901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17902 (exit $ac_status); }; } &&
17903 { ac_try='test -s conftest$ac_exeext'
17904 { (case "(($ac_try" in
17905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17906 *) ac_try_echo=$ac_try;;
17908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17909 (eval "$ac_try") 2>&5
17911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17912 (exit $ac_status); }; }; then
17913 ac_cv_lib_gcc___alloca=yes
17915 echo "$as_me: failed program was:" >&5
17916 sed 's/^/| /' conftest.$ac_ext >&5
17918 ac_cv_lib_gcc___alloca=no
17921 rm -f core conftest.err conftest.$ac_objext \
17922 conftest$ac_exeext conftest.$ac_ext
17923 LIBS=$ac_check_lib_save_LIBS
17925 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
17926 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
17927 if test $ac_cv_lib_gcc___alloca = yes; then
17929 cat >>confdefs.h <<\_ACEOF
17930 #define HAVE___ALLOCA 1
17935 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
17936 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
17937 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
17938 echo $ECHO_N "(cached) $ECHO_C" >&6
17940 ac_check_lib_save_LIBS=$LIBS
17942 cat >conftest.$ac_ext <<_ACEOF
17945 cat confdefs.h >>conftest.$ac_ext
17946 cat >>conftest.$ac_ext <<_ACEOF
17947 /* end confdefs.h. */
17949 /* Override any GCC internal prototype to avoid an error.
17950 Use char because int might match the return type of a GCC
17951 builtin and then its argument prototype would still apply. */
17959 return __chkstk ();
17964 rm -f conftest.$ac_objext conftest$ac_exeext
17965 if { (ac_try="$ac_link"
17966 case "(($ac_try" in
17967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17968 *) ac_try_echo=$ac_try;;
17970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17971 (eval "$ac_link") 2>conftest.er1
17973 grep -v '^ *+' conftest.er1 >conftest.err
17975 cat conftest.err >&5
17976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17977 (exit $ac_status); } &&
17978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17979 { (case "(($ac_try" in
17980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17981 *) ac_try_echo=$ac_try;;
17983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17984 (eval "$ac_try") 2>&5
17986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17987 (exit $ac_status); }; } &&
17988 { ac_try='test -s conftest$ac_exeext'
17989 { (case "(($ac_try" in
17990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17991 *) ac_try_echo=$ac_try;;
17993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17994 (eval "$ac_try") 2>&5
17996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17997 (exit $ac_status); }; }; then
17998 ac_cv_lib_gcc___chkstk=yes
18000 echo "$as_me: failed program was:" >&5
18001 sed 's/^/| /' conftest.$ac_ext >&5
18003 ac_cv_lib_gcc___chkstk=no
18006 rm -f core conftest.err conftest.$ac_objext \
18007 conftest$ac_exeext conftest.$ac_ext
18008 LIBS=$ac_check_lib_save_LIBS
18010 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18011 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18012 if test $ac_cv_lib_gcc___chkstk = yes; then
18014 cat >>confdefs.h <<\_ACEOF
18015 #define HAVE___CHKSTK 1
18020 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18021 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18022 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18023 echo $ECHO_N "(cached) $ECHO_C" >&6
18025 ac_check_lib_save_LIBS=$LIBS
18027 cat >conftest.$ac_ext <<_ACEOF
18030 cat confdefs.h >>conftest.$ac_ext
18031 cat >>conftest.$ac_ext <<_ACEOF
18032 /* end confdefs.h. */
18034 /* Override any GCC internal prototype to avoid an error.
18035 Use char because int might match the return type of a GCC
18036 builtin and then its argument prototype would still apply. */
18044 return ___chkstk ();
18049 rm -f conftest.$ac_objext conftest$ac_exeext
18050 if { (ac_try="$ac_link"
18051 case "(($ac_try" in
18052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18053 *) ac_try_echo=$ac_try;;
18055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18056 (eval "$ac_link") 2>conftest.er1
18058 grep -v '^ *+' conftest.er1 >conftest.err
18060 cat conftest.err >&5
18061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18062 (exit $ac_status); } &&
18063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18064 { (case "(($ac_try" in
18065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18066 *) ac_try_echo=$ac_try;;
18068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18069 (eval "$ac_try") 2>&5
18071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18072 (exit $ac_status); }; } &&
18073 { ac_try='test -s conftest$ac_exeext'
18074 { (case "(($ac_try" in
18075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18076 *) ac_try_echo=$ac_try;;
18078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18079 (eval "$ac_try") 2>&5
18081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18082 (exit $ac_status); }; }; then
18083 ac_cv_lib_gcc____chkstk=yes
18085 echo "$as_me: failed program was:" >&5
18086 sed 's/^/| /' conftest.$ac_ext >&5
18088 ac_cv_lib_gcc____chkstk=no
18091 rm -f core conftest.err conftest.$ac_objext \
18092 conftest$ac_exeext conftest.$ac_ext
18093 LIBS=$ac_check_lib_save_LIBS
18095 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18096 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18097 if test $ac_cv_lib_gcc____chkstk = yes; then
18099 cat >>confdefs.h <<\_ACEOF
18100 #define HAVE____CHKSTK 1
18106 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18107 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18108 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18109 echo $ECHO_N "(cached) $ECHO_C" >&6
18111 ac_check_lib_save_LIBS=$LIBS
18113 cat >conftest.$ac_ext <<_ACEOF
18116 cat confdefs.h >>conftest.$ac_ext
18117 cat >>conftest.$ac_ext <<_ACEOF
18118 /* end confdefs.h. */
18120 /* Override any GCC internal prototype to avoid an error.
18121 Use char because int might match the return type of a GCC
18122 builtin and then its argument prototype would still apply. */
18130 return __ashldi3 ();
18135 rm -f conftest.$ac_objext conftest$ac_exeext
18136 if { (ac_try="$ac_link"
18137 case "(($ac_try" in
18138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18139 *) ac_try_echo=$ac_try;;
18141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18142 (eval "$ac_link") 2>conftest.er1
18144 grep -v '^ *+' conftest.er1 >conftest.err
18146 cat conftest.err >&5
18147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18148 (exit $ac_status); } &&
18149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18150 { (case "(($ac_try" in
18151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18152 *) ac_try_echo=$ac_try;;
18154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18155 (eval "$ac_try") 2>&5
18157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18158 (exit $ac_status); }; } &&
18159 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
18167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18168 (exit $ac_status); }; }; then
18169 ac_cv_lib_gcc___ashldi3=yes
18171 echo "$as_me: failed program was:" >&5
18172 sed 's/^/| /' conftest.$ac_ext >&5
18174 ac_cv_lib_gcc___ashldi3=no
18177 rm -f core conftest.err conftest.$ac_objext \
18178 conftest$ac_exeext conftest.$ac_ext
18179 LIBS=$ac_check_lib_save_LIBS
18181 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18182 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18183 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18185 cat >>confdefs.h <<\_ACEOF
18186 #define HAVE___ASHLDI3 1
18191 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18192 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18193 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18194 echo $ECHO_N "(cached) $ECHO_C" >&6
18196 ac_check_lib_save_LIBS=$LIBS
18198 cat >conftest.$ac_ext <<_ACEOF
18201 cat confdefs.h >>conftest.$ac_ext
18202 cat >>conftest.$ac_ext <<_ACEOF
18203 /* end confdefs.h. */
18205 /* Override any GCC internal prototype to avoid an error.
18206 Use char because int might match the return type of a GCC
18207 builtin and then its argument prototype would still apply. */
18215 return __ashrdi3 ();
18220 rm -f conftest.$ac_objext conftest$ac_exeext
18221 if { (ac_try="$ac_link"
18222 case "(($ac_try" in
18223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18224 *) ac_try_echo=$ac_try;;
18226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18227 (eval "$ac_link") 2>conftest.er1
18229 grep -v '^ *+' conftest.er1 >conftest.err
18231 cat conftest.err >&5
18232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18233 (exit $ac_status); } &&
18234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18235 { (case "(($ac_try" in
18236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18237 *) ac_try_echo=$ac_try;;
18239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18240 (eval "$ac_try") 2>&5
18242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18243 (exit $ac_status); }; } &&
18244 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
18252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18253 (exit $ac_status); }; }; then
18254 ac_cv_lib_gcc___ashrdi3=yes
18256 echo "$as_me: failed program was:" >&5
18257 sed 's/^/| /' conftest.$ac_ext >&5
18259 ac_cv_lib_gcc___ashrdi3=no
18262 rm -f core conftest.err conftest.$ac_objext \
18263 conftest$ac_exeext conftest.$ac_ext
18264 LIBS=$ac_check_lib_save_LIBS
18266 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18267 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18268 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18270 cat >>confdefs.h <<\_ACEOF
18271 #define HAVE___ASHRDI3 1
18276 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18277 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18278 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18279 echo $ECHO_N "(cached) $ECHO_C" >&6
18281 ac_check_lib_save_LIBS=$LIBS
18283 cat >conftest.$ac_ext <<_ACEOF
18286 cat confdefs.h >>conftest.$ac_ext
18287 cat >>conftest.$ac_ext <<_ACEOF
18288 /* end confdefs.h. */
18290 /* Override any GCC internal prototype to avoid an error.
18291 Use char because int might match the return type of a GCC
18292 builtin and then its argument prototype would still apply. */
18300 return __divdi3 ();
18305 rm -f conftest.$ac_objext conftest$ac_exeext
18306 if { (ac_try="$ac_link"
18307 case "(($ac_try" in
18308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18309 *) ac_try_echo=$ac_try;;
18311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18312 (eval "$ac_link") 2>conftest.er1
18314 grep -v '^ *+' conftest.er1 >conftest.err
18316 cat conftest.err >&5
18317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18318 (exit $ac_status); } &&
18319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18320 { (case "(($ac_try" in
18321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18322 *) ac_try_echo=$ac_try;;
18324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18325 (eval "$ac_try") 2>&5
18327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18328 (exit $ac_status); }; } &&
18329 { ac_try='test -s conftest$ac_exeext'
18330 { (case "(($ac_try" in
18331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18332 *) ac_try_echo=$ac_try;;
18334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18335 (eval "$ac_try") 2>&5
18337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18338 (exit $ac_status); }; }; then
18339 ac_cv_lib_gcc___divdi3=yes
18341 echo "$as_me: failed program was:" >&5
18342 sed 's/^/| /' conftest.$ac_ext >&5
18344 ac_cv_lib_gcc___divdi3=no
18347 rm -f core conftest.err conftest.$ac_objext \
18348 conftest$ac_exeext conftest.$ac_ext
18349 LIBS=$ac_check_lib_save_LIBS
18351 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18352 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18353 if test $ac_cv_lib_gcc___divdi3 = yes; then
18355 cat >>confdefs.h <<\_ACEOF
18356 #define HAVE___DIVDI3 1
18361 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18362 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18363 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18364 echo $ECHO_N "(cached) $ECHO_C" >&6
18366 ac_check_lib_save_LIBS=$LIBS
18368 cat >conftest.$ac_ext <<_ACEOF
18371 cat confdefs.h >>conftest.$ac_ext
18372 cat >>conftest.$ac_ext <<_ACEOF
18373 /* end confdefs.h. */
18375 /* Override any GCC internal prototype to avoid an error.
18376 Use char because int might match the return type of a GCC
18377 builtin and then its argument prototype would still apply. */
18385 return __fixdfdi ();
18390 rm -f conftest.$ac_objext conftest$ac_exeext
18391 if { (ac_try="$ac_link"
18392 case "(($ac_try" in
18393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18394 *) ac_try_echo=$ac_try;;
18396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18397 (eval "$ac_link") 2>conftest.er1
18399 grep -v '^ *+' conftest.er1 >conftest.err
18401 cat conftest.err >&5
18402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18403 (exit $ac_status); } &&
18404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18405 { (case "(($ac_try" in
18406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18407 *) ac_try_echo=$ac_try;;
18409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18410 (eval "$ac_try") 2>&5
18412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18413 (exit $ac_status); }; } &&
18414 { ac_try='test -s conftest$ac_exeext'
18415 { (case "(($ac_try" in
18416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18417 *) ac_try_echo=$ac_try;;
18419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18420 (eval "$ac_try") 2>&5
18422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18423 (exit $ac_status); }; }; then
18424 ac_cv_lib_gcc___fixdfdi=yes
18426 echo "$as_me: failed program was:" >&5
18427 sed 's/^/| /' conftest.$ac_ext >&5
18429 ac_cv_lib_gcc___fixdfdi=no
18432 rm -f core conftest.err conftest.$ac_objext \
18433 conftest$ac_exeext conftest.$ac_ext
18434 LIBS=$ac_check_lib_save_LIBS
18436 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18437 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18438 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18440 cat >>confdefs.h <<\_ACEOF
18441 #define HAVE___FIXDFDI 1
18446 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18447 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18448 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18449 echo $ECHO_N "(cached) $ECHO_C" >&6
18451 ac_check_lib_save_LIBS=$LIBS
18453 cat >conftest.$ac_ext <<_ACEOF
18456 cat confdefs.h >>conftest.$ac_ext
18457 cat >>conftest.$ac_ext <<_ACEOF
18458 /* end confdefs.h. */
18460 /* Override any GCC internal prototype to avoid an error.
18461 Use char because int might match the return type of a GCC
18462 builtin and then its argument prototype would still apply. */
18470 return __fixsfdi ();
18475 rm -f conftest.$ac_objext conftest$ac_exeext
18476 if { (ac_try="$ac_link"
18477 case "(($ac_try" in
18478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18479 *) ac_try_echo=$ac_try;;
18481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18482 (eval "$ac_link") 2>conftest.er1
18484 grep -v '^ *+' conftest.er1 >conftest.err
18486 cat conftest.err >&5
18487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18488 (exit $ac_status); } &&
18489 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18490 { (case "(($ac_try" in
18491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18492 *) ac_try_echo=$ac_try;;
18494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18495 (eval "$ac_try") 2>&5
18497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18498 (exit $ac_status); }; } &&
18499 { ac_try='test -s conftest$ac_exeext'
18500 { (case "(($ac_try" in
18501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18502 *) ac_try_echo=$ac_try;;
18504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18505 (eval "$ac_try") 2>&5
18507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18508 (exit $ac_status); }; }; then
18509 ac_cv_lib_gcc___fixsfdi=yes
18511 echo "$as_me: failed program was:" >&5
18512 sed 's/^/| /' conftest.$ac_ext >&5
18514 ac_cv_lib_gcc___fixsfdi=no
18517 rm -f core conftest.err conftest.$ac_objext \
18518 conftest$ac_exeext conftest.$ac_ext
18519 LIBS=$ac_check_lib_save_LIBS
18521 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18522 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18523 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18525 cat >>confdefs.h <<\_ACEOF
18526 #define HAVE___FIXSFDI 1
18531 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18532 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18533 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18534 echo $ECHO_N "(cached) $ECHO_C" >&6
18536 ac_check_lib_save_LIBS=$LIBS
18538 cat >conftest.$ac_ext <<_ACEOF
18541 cat confdefs.h >>conftest.$ac_ext
18542 cat >>conftest.$ac_ext <<_ACEOF
18543 /* end confdefs.h. */
18545 /* Override any GCC internal prototype to avoid an error.
18546 Use char because int might match the return type of a GCC
18547 builtin and then its argument prototype would still apply. */
18551 char __floatdidf ();
18555 return __floatdidf ();
18560 rm -f conftest.$ac_objext conftest$ac_exeext
18561 if { (ac_try="$ac_link"
18562 case "(($ac_try" in
18563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18564 *) ac_try_echo=$ac_try;;
18566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18567 (eval "$ac_link") 2>conftest.er1
18569 grep -v '^ *+' conftest.er1 >conftest.err
18571 cat conftest.err >&5
18572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18573 (exit $ac_status); } &&
18574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18575 { (case "(($ac_try" in
18576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18577 *) ac_try_echo=$ac_try;;
18579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18580 (eval "$ac_try") 2>&5
18582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18583 (exit $ac_status); }; } &&
18584 { ac_try='test -s conftest$ac_exeext'
18585 { (case "(($ac_try" in
18586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18587 *) ac_try_echo=$ac_try;;
18589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18590 (eval "$ac_try") 2>&5
18592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18593 (exit $ac_status); }; }; then
18594 ac_cv_lib_gcc___floatdidf=yes
18596 echo "$as_me: failed program was:" >&5
18597 sed 's/^/| /' conftest.$ac_ext >&5
18599 ac_cv_lib_gcc___floatdidf=no
18602 rm -f core conftest.err conftest.$ac_objext \
18603 conftest$ac_exeext conftest.$ac_ext
18604 LIBS=$ac_check_lib_save_LIBS
18606 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18607 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18608 if test $ac_cv_lib_gcc___floatdidf = yes; then
18610 cat >>confdefs.h <<\_ACEOF
18611 #define HAVE___FLOATDIDF 1
18616 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18617 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18618 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18619 echo $ECHO_N "(cached) $ECHO_C" >&6
18621 ac_check_lib_save_LIBS=$LIBS
18623 cat >conftest.$ac_ext <<_ACEOF
18626 cat confdefs.h >>conftest.$ac_ext
18627 cat >>conftest.$ac_ext <<_ACEOF
18628 /* end confdefs.h. */
18630 /* Override any GCC internal prototype to avoid an error.
18631 Use char because int might match the return type of a GCC
18632 builtin and then its argument prototype would still apply. */
18640 return __lshrdi3 ();
18645 rm -f conftest.$ac_objext conftest$ac_exeext
18646 if { (ac_try="$ac_link"
18647 case "(($ac_try" in
18648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18649 *) ac_try_echo=$ac_try;;
18651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18652 (eval "$ac_link") 2>conftest.er1
18654 grep -v '^ *+' conftest.er1 >conftest.err
18656 cat conftest.err >&5
18657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18658 (exit $ac_status); } &&
18659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18660 { (case "(($ac_try" in
18661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18662 *) ac_try_echo=$ac_try;;
18664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18665 (eval "$ac_try") 2>&5
18667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18668 (exit $ac_status); }; } &&
18669 { ac_try='test -s conftest$ac_exeext'
18670 { (case "(($ac_try" in
18671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18672 *) ac_try_echo=$ac_try;;
18674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18675 (eval "$ac_try") 2>&5
18677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18678 (exit $ac_status); }; }; then
18679 ac_cv_lib_gcc___lshrdi3=yes
18681 echo "$as_me: failed program was:" >&5
18682 sed 's/^/| /' conftest.$ac_ext >&5
18684 ac_cv_lib_gcc___lshrdi3=no
18687 rm -f core conftest.err conftest.$ac_objext \
18688 conftest$ac_exeext conftest.$ac_ext
18689 LIBS=$ac_check_lib_save_LIBS
18691 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18692 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18693 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18695 cat >>confdefs.h <<\_ACEOF
18696 #define HAVE___LSHRDI3 1
18701 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18702 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18703 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18704 echo $ECHO_N "(cached) $ECHO_C" >&6
18706 ac_check_lib_save_LIBS=$LIBS
18708 cat >conftest.$ac_ext <<_ACEOF
18711 cat confdefs.h >>conftest.$ac_ext
18712 cat >>conftest.$ac_ext <<_ACEOF
18713 /* end confdefs.h. */
18715 /* Override any GCC internal prototype to avoid an error.
18716 Use char because int might match the return type of a GCC
18717 builtin and then its argument prototype would still apply. */
18725 return __moddi3 ();
18730 rm -f conftest.$ac_objext conftest$ac_exeext
18731 if { (ac_try="$ac_link"
18732 case "(($ac_try" in
18733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18734 *) ac_try_echo=$ac_try;;
18736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18737 (eval "$ac_link") 2>conftest.er1
18739 grep -v '^ *+' conftest.er1 >conftest.err
18741 cat conftest.err >&5
18742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18743 (exit $ac_status); } &&
18744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18745 { (case "(($ac_try" in
18746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18747 *) ac_try_echo=$ac_try;;
18749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18750 (eval "$ac_try") 2>&5
18752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18753 (exit $ac_status); }; } &&
18754 { ac_try='test -s conftest$ac_exeext'
18755 { (case "(($ac_try" in
18756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18757 *) ac_try_echo=$ac_try;;
18759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18760 (eval "$ac_try") 2>&5
18762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18763 (exit $ac_status); }; }; then
18764 ac_cv_lib_gcc___moddi3=yes
18766 echo "$as_me: failed program was:" >&5
18767 sed 's/^/| /' conftest.$ac_ext >&5
18769 ac_cv_lib_gcc___moddi3=no
18772 rm -f core conftest.err conftest.$ac_objext \
18773 conftest$ac_exeext conftest.$ac_ext
18774 LIBS=$ac_check_lib_save_LIBS
18776 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18777 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18778 if test $ac_cv_lib_gcc___moddi3 = yes; then
18780 cat >>confdefs.h <<\_ACEOF
18781 #define HAVE___MODDI3 1
18786 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18787 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18788 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18789 echo $ECHO_N "(cached) $ECHO_C" >&6
18791 ac_check_lib_save_LIBS=$LIBS
18793 cat >conftest.$ac_ext <<_ACEOF
18796 cat confdefs.h >>conftest.$ac_ext
18797 cat >>conftest.$ac_ext <<_ACEOF
18798 /* end confdefs.h. */
18800 /* Override any GCC internal prototype to avoid an error.
18801 Use char because int might match the return type of a GCC
18802 builtin and then its argument prototype would still apply. */
18810 return __udivdi3 ();
18815 rm -f conftest.$ac_objext conftest$ac_exeext
18816 if { (ac_try="$ac_link"
18817 case "(($ac_try" in
18818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18819 *) ac_try_echo=$ac_try;;
18821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18822 (eval "$ac_link") 2>conftest.er1
18824 grep -v '^ *+' conftest.er1 >conftest.err
18826 cat conftest.err >&5
18827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18828 (exit $ac_status); } &&
18829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18830 { (case "(($ac_try" in
18831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18832 *) ac_try_echo=$ac_try;;
18834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18835 (eval "$ac_try") 2>&5
18837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18838 (exit $ac_status); }; } &&
18839 { ac_try='test -s conftest$ac_exeext'
18840 { (case "(($ac_try" in
18841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18842 *) ac_try_echo=$ac_try;;
18844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18845 (eval "$ac_try") 2>&5
18847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18848 (exit $ac_status); }; }; then
18849 ac_cv_lib_gcc___udivdi3=yes
18851 echo "$as_me: failed program was:" >&5
18852 sed 's/^/| /' conftest.$ac_ext >&5
18854 ac_cv_lib_gcc___udivdi3=no
18857 rm -f core conftest.err conftest.$ac_objext \
18858 conftest$ac_exeext conftest.$ac_ext
18859 LIBS=$ac_check_lib_save_LIBS
18861 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18862 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18863 if test $ac_cv_lib_gcc___udivdi3 = yes; then
18865 cat >>confdefs.h <<\_ACEOF
18866 #define HAVE___UDIVDI3 1
18871 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18872 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18873 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18874 echo $ECHO_N "(cached) $ECHO_C" >&6
18876 ac_check_lib_save_LIBS=$LIBS
18878 cat >conftest.$ac_ext <<_ACEOF
18881 cat confdefs.h >>conftest.$ac_ext
18882 cat >>conftest.$ac_ext <<_ACEOF
18883 /* end confdefs.h. */
18885 /* Override any GCC internal prototype to avoid an error.
18886 Use char because int might match the return type of a GCC
18887 builtin and then its argument prototype would still apply. */
18895 return __umoddi3 ();
18900 rm -f conftest.$ac_objext conftest$ac_exeext
18901 if { (ac_try="$ac_link"
18902 case "(($ac_try" in
18903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18904 *) ac_try_echo=$ac_try;;
18906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18907 (eval "$ac_link") 2>conftest.er1
18909 grep -v '^ *+' conftest.er1 >conftest.err
18911 cat conftest.err >&5
18912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18913 (exit $ac_status); } &&
18914 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18915 { (case "(($ac_try" in
18916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18917 *) ac_try_echo=$ac_try;;
18919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18920 (eval "$ac_try") 2>&5
18922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18923 (exit $ac_status); }; } &&
18924 { ac_try='test -s conftest$ac_exeext'
18925 { (case "(($ac_try" in
18926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18927 *) ac_try_echo=$ac_try;;
18929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18930 (eval "$ac_try") 2>&5
18932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18933 (exit $ac_status); }; }; then
18934 ac_cv_lib_gcc___umoddi3=yes
18936 echo "$as_me: failed program was:" >&5
18937 sed 's/^/| /' conftest.$ac_ext >&5
18939 ac_cv_lib_gcc___umoddi3=no
18942 rm -f core conftest.err conftest.$ac_objext \
18943 conftest$ac_exeext conftest.$ac_ext
18944 LIBS=$ac_check_lib_save_LIBS
18946 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
18947 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
18948 if test $ac_cv_lib_gcc___umoddi3 = yes; then
18950 cat >>confdefs.h <<\_ACEOF
18951 #define HAVE___UMODDI3 1
18957 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
18958 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
18959 if test "${ac_cv_lib_gcc___main+set}" = set; then
18960 echo $ECHO_N "(cached) $ECHO_C" >&6
18962 ac_check_lib_save_LIBS=$LIBS
18964 cat >conftest.$ac_ext <<_ACEOF
18967 cat confdefs.h >>conftest.$ac_ext
18968 cat >>conftest.$ac_ext <<_ACEOF
18969 /* end confdefs.h. */
18971 /* Override any GCC internal prototype to avoid an error.
18972 Use char because int might match the return type of a GCC
18973 builtin and then its argument prototype would still apply. */
18986 rm -f conftest.$ac_objext conftest$ac_exeext
18987 if { (ac_try="$ac_link"
18988 case "(($ac_try" in
18989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18990 *) ac_try_echo=$ac_try;;
18992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18993 (eval "$ac_link") 2>conftest.er1
18995 grep -v '^ *+' conftest.er1 >conftest.err
18997 cat conftest.err >&5
18998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18999 (exit $ac_status); } &&
19000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19001 { (case "(($ac_try" in
19002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19003 *) ac_try_echo=$ac_try;;
19005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19006 (eval "$ac_try") 2>&5
19008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19009 (exit $ac_status); }; } &&
19010 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
19018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19019 (exit $ac_status); }; }; then
19020 ac_cv_lib_gcc___main=yes
19022 echo "$as_me: failed program was:" >&5
19023 sed 's/^/| /' conftest.$ac_ext >&5
19025 ac_cv_lib_gcc___main=no
19028 rm -f core conftest.err conftest.$ac_objext \
19029 conftest$ac_exeext conftest.$ac_ext
19030 LIBS=$ac_check_lib_save_LIBS
19032 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19033 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19034 if test $ac_cv_lib_gcc___main = yes; then
19036 cat >>confdefs.h <<\_ACEOF
19037 #define HAVE___MAIN 1
19042 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19043 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19044 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19045 echo $ECHO_N "(cached) $ECHO_C" >&6
19047 ac_check_lib_save_LIBS=$LIBS
19049 cat >conftest.$ac_ext <<_ACEOF
19052 cat confdefs.h >>conftest.$ac_ext
19053 cat >>conftest.$ac_ext <<_ACEOF
19054 /* end confdefs.h. */
19056 /* Override any GCC internal prototype to avoid an error.
19057 Use char because int might match the return type of a GCC
19058 builtin and then its argument prototype would still apply. */
19066 return __cmpdi2 ();
19071 rm -f conftest.$ac_objext conftest$ac_exeext
19072 if { (ac_try="$ac_link"
19073 case "(($ac_try" in
19074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19075 *) ac_try_echo=$ac_try;;
19077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19078 (eval "$ac_link") 2>conftest.er1
19080 grep -v '^ *+' conftest.er1 >conftest.err
19082 cat conftest.err >&5
19083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19084 (exit $ac_status); } &&
19085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19086 { (case "(($ac_try" in
19087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19088 *) ac_try_echo=$ac_try;;
19090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19091 (eval "$ac_try") 2>&5
19093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19094 (exit $ac_status); }; } &&
19095 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
19103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19104 (exit $ac_status); }; }; then
19105 ac_cv_lib_gcc___cmpdi2=yes
19107 echo "$as_me: failed program was:" >&5
19108 sed 's/^/| /' conftest.$ac_ext >&5
19110 ac_cv_lib_gcc___cmpdi2=no
19113 rm -f core conftest.err conftest.$ac_objext \
19114 conftest$ac_exeext conftest.$ac_ext
19115 LIBS=$ac_check_lib_save_LIBS
19117 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19118 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19119 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19121 cat >>confdefs.h <<\_ACEOF
19122 #define HAVE___CMPDI2 1
19129 if test "$llvm_cv_os_type" = "MingW" ; then
19130 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19131 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19132 cat >conftest.$ac_ext <<_ACEOF
19133 #include <windows.h>
19134 #include <imagehlp.h>
19135 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19136 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19138 rm -f conftest.$ac_objext
19139 if { (ac_try="$ac_compile"
19140 case "(($ac_try" in
19141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19142 *) ac_try_echo=$ac_try;;
19144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19145 (eval "$ac_compile") 2>conftest.er1
19147 grep -v '^ *+' conftest.er1 >conftest.err
19149 cat conftest.err >&5
19150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19151 (exit $ac_status); } &&
19152 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19153 { (case "(($ac_try" in
19154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19155 *) ac_try_echo=$ac_try;;
19157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19158 (eval "$ac_try") 2>&5
19160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19161 (exit $ac_status); }; } &&
19162 { ac_try='test -s conftest.$ac_objext'
19163 { (case "(($ac_try" in
19164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19165 *) ac_try_echo=$ac_try;;
19167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19168 (eval "$ac_try") 2>&5
19170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19171 (exit $ac_status); }; }; then
19173 { echo "$as_me:$LINENO: result: yes" >&5
19174 echo "${ECHO_T}yes" >&6; }
19175 llvm_cv_win32_elmcb_pcstr="PCSTR"
19178 echo "$as_me: failed program was:" >&5
19179 sed 's/^/| /' conftest.$ac_ext >&5
19182 { echo "$as_me:$LINENO: result: no" >&5
19183 echo "${ECHO_T}no" >&6; }
19184 llvm_cv_win32_elmcb_pcstr="PSTR"
19188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19190 cat >>confdefs.h <<_ACEOF
19191 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19197 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19198 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19199 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19200 echo $ECHO_N "(cached) $ECHO_C" >&6
19203 ac_cpp='$CXXCPP $CPPFLAGS'
19204 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19205 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19206 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19208 cat >conftest.$ac_ext <<_ACEOF
19211 cat confdefs.h >>conftest.$ac_ext
19212 cat >>conftest.$ac_ext <<_ACEOF
19213 /* end confdefs.h. */
19223 rm -f conftest.$ac_objext
19224 if { (ac_try="$ac_compile"
19225 case "(($ac_try" in
19226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19227 *) ac_try_echo=$ac_try;;
19229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19230 (eval "$ac_compile") 2>conftest.er1
19232 grep -v '^ *+' conftest.er1 >conftest.err
19234 cat conftest.err >&5
19235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19236 (exit $ac_status); } &&
19237 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19238 { (case "(($ac_try" in
19239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19240 *) ac_try_echo=$ac_try;;
19242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19243 (eval "$ac_try") 2>&5
19245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19246 (exit $ac_status); }; } &&
19247 { ac_try='test -s conftest.$ac_objext'
19248 { (case "(($ac_try" in
19249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19250 *) ac_try_echo=$ac_try;;
19252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19253 (eval "$ac_try") 2>&5
19255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19256 (exit $ac_status); }; }; then
19257 ac_cv_func_isnan_in_math_h=yes
19259 echo "$as_me: failed program was:" >&5
19260 sed 's/^/| /' conftest.$ac_ext >&5
19262 ac_cv_func_isnan_in_math_h=no
19265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19267 ac_cpp='$CPP $CPPFLAGS'
19268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19273 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19274 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19277 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19279 cat >>confdefs.h <<\_ACEOF
19280 #define HAVE_ISNAN_IN_MATH_H 1
19285 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19286 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19287 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19288 echo $ECHO_N "(cached) $ECHO_C" >&6
19291 ac_cpp='$CXXCPP $CPPFLAGS'
19292 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19293 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19294 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19296 cat >conftest.$ac_ext <<_ACEOF
19299 cat confdefs.h >>conftest.$ac_ext
19300 cat >>conftest.$ac_ext <<_ACEOF
19301 /* end confdefs.h. */
19311 rm -f conftest.$ac_objext
19312 if { (ac_try="$ac_compile"
19313 case "(($ac_try" in
19314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19315 *) ac_try_echo=$ac_try;;
19317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19318 (eval "$ac_compile") 2>conftest.er1
19320 grep -v '^ *+' conftest.er1 >conftest.err
19322 cat conftest.err >&5
19323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19324 (exit $ac_status); } &&
19325 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19326 { (case "(($ac_try" in
19327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19328 *) ac_try_echo=$ac_try;;
19330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19331 (eval "$ac_try") 2>&5
19333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19334 (exit $ac_status); }; } &&
19335 { ac_try='test -s conftest.$ac_objext'
19336 { (case "(($ac_try" in
19337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19338 *) ac_try_echo=$ac_try;;
19340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19341 (eval "$ac_try") 2>&5
19343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19344 (exit $ac_status); }; }; then
19345 ac_cv_func_isnan_in_cmath=yes
19347 echo "$as_me: failed program was:" >&5
19348 sed 's/^/| /' conftest.$ac_ext >&5
19350 ac_cv_func_isnan_in_cmath=no
19353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19355 ac_cpp='$CPP $CPPFLAGS'
19356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19361 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19362 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19364 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19366 cat >>confdefs.h <<\_ACEOF
19367 #define HAVE_ISNAN_IN_CMATH 1
19372 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19373 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19374 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19375 echo $ECHO_N "(cached) $ECHO_C" >&6
19378 ac_cpp='$CXXCPP $CPPFLAGS'
19379 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19380 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19381 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19383 cat >conftest.$ac_ext <<_ACEOF
19386 cat confdefs.h >>conftest.$ac_ext
19387 cat >>conftest.$ac_ext <<_ACEOF
19388 /* end confdefs.h. */
19393 float f; std::isnan(f);
19398 rm -f conftest.$ac_objext
19399 if { (ac_try="$ac_compile"
19400 case "(($ac_try" in
19401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19402 *) ac_try_echo=$ac_try;;
19404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19405 (eval "$ac_compile") 2>conftest.er1
19407 grep -v '^ *+' conftest.er1 >conftest.err
19409 cat conftest.err >&5
19410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19411 (exit $ac_status); } &&
19412 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19413 { (case "(($ac_try" in
19414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19415 *) ac_try_echo=$ac_try;;
19417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19418 (eval "$ac_try") 2>&5
19420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19421 (exit $ac_status); }; } &&
19422 { ac_try='test -s conftest.$ac_objext'
19423 { (case "(($ac_try" in
19424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19425 *) ac_try_echo=$ac_try;;
19427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19428 (eval "$ac_try") 2>&5
19430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431 (exit $ac_status); }; }; then
19432 ac_cv_func_std_isnan_in_cmath=yes
19434 echo "$as_me: failed program was:" >&5
19435 sed 's/^/| /' conftest.$ac_ext >&5
19437 ac_cv_func_std_isnan_in_cmath=no
19440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19442 ac_cpp='$CPP $CPPFLAGS'
19443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19448 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19449 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19451 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19453 cat >>confdefs.h <<\_ACEOF
19454 #define HAVE_STD_ISNAN_IN_CMATH 1
19460 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19461 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19462 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19463 echo $ECHO_N "(cached) $ECHO_C" >&6
19466 ac_cpp='$CXXCPP $CPPFLAGS'
19467 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19468 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19469 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19471 cat >conftest.$ac_ext <<_ACEOF
19474 cat confdefs.h >>conftest.$ac_ext
19475 cat >>conftest.$ac_ext <<_ACEOF
19476 /* end confdefs.h. */
19486 rm -f conftest.$ac_objext
19487 if { (ac_try="$ac_compile"
19488 case "(($ac_try" in
19489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19490 *) ac_try_echo=$ac_try;;
19492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19493 (eval "$ac_compile") 2>conftest.er1
19495 grep -v '^ *+' conftest.er1 >conftest.err
19497 cat conftest.err >&5
19498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19499 (exit $ac_status); } &&
19500 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19501 { (case "(($ac_try" in
19502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19503 *) ac_try_echo=$ac_try;;
19505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19506 (eval "$ac_try") 2>&5
19508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19509 (exit $ac_status); }; } &&
19510 { ac_try='test -s conftest.$ac_objext'
19511 { (case "(($ac_try" in
19512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19513 *) ac_try_echo=$ac_try;;
19515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19516 (eval "$ac_try") 2>&5
19518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19519 (exit $ac_status); }; }; then
19520 ac_cv_func_isinf_in_math_h=yes
19522 echo "$as_me: failed program was:" >&5
19523 sed 's/^/| /' conftest.$ac_ext >&5
19525 ac_cv_func_isinf_in_math_h=no
19528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19530 ac_cpp='$CPP $CPPFLAGS'
19531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19536 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19537 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19539 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19541 cat >>confdefs.h <<\_ACEOF
19542 #define HAVE_ISINF_IN_MATH_H 1
19547 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19548 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19549 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19550 echo $ECHO_N "(cached) $ECHO_C" >&6
19553 ac_cpp='$CXXCPP $CPPFLAGS'
19554 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19555 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19556 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19558 cat >conftest.$ac_ext <<_ACEOF
19561 cat confdefs.h >>conftest.$ac_ext
19562 cat >>conftest.$ac_ext <<_ACEOF
19563 /* end confdefs.h. */
19573 rm -f conftest.$ac_objext
19574 if { (ac_try="$ac_compile"
19575 case "(($ac_try" in
19576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19577 *) ac_try_echo=$ac_try;;
19579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19580 (eval "$ac_compile") 2>conftest.er1
19582 grep -v '^ *+' conftest.er1 >conftest.err
19584 cat conftest.err >&5
19585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19586 (exit $ac_status); } &&
19587 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19588 { (case "(($ac_try" in
19589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19590 *) ac_try_echo=$ac_try;;
19592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19593 (eval "$ac_try") 2>&5
19595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19596 (exit $ac_status); }; } &&
19597 { ac_try='test -s conftest.$ac_objext'
19598 { (case "(($ac_try" in
19599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19600 *) ac_try_echo=$ac_try;;
19602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19603 (eval "$ac_try") 2>&5
19605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19606 (exit $ac_status); }; }; then
19607 ac_cv_func_isinf_in_cmath=yes
19609 echo "$as_me: failed program was:" >&5
19610 sed 's/^/| /' conftest.$ac_ext >&5
19612 ac_cv_func_isinf_in_cmath=no
19615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19617 ac_cpp='$CPP $CPPFLAGS'
19618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19623 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19624 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19626 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19628 cat >>confdefs.h <<\_ACEOF
19629 #define HAVE_ISINF_IN_CMATH 1
19634 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19635 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19636 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19637 echo $ECHO_N "(cached) $ECHO_C" >&6
19640 ac_cpp='$CXXCPP $CPPFLAGS'
19641 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19642 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19643 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19645 cat >conftest.$ac_ext <<_ACEOF
19648 cat confdefs.h >>conftest.$ac_ext
19649 cat >>conftest.$ac_ext <<_ACEOF
19650 /* end confdefs.h. */
19655 float f; std::isinf(f)}
19660 rm -f conftest.$ac_objext
19661 if { (ac_try="$ac_compile"
19662 case "(($ac_try" in
19663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19664 *) ac_try_echo=$ac_try;;
19666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19667 (eval "$ac_compile") 2>conftest.er1
19669 grep -v '^ *+' conftest.er1 >conftest.err
19671 cat conftest.err >&5
19672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673 (exit $ac_status); } &&
19674 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19675 { (case "(($ac_try" in
19676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19677 *) ac_try_echo=$ac_try;;
19679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19680 (eval "$ac_try") 2>&5
19682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19683 (exit $ac_status); }; } &&
19684 { ac_try='test -s conftest.$ac_objext'
19685 { (case "(($ac_try" in
19686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19687 *) ac_try_echo=$ac_try;;
19689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19690 (eval "$ac_try") 2>&5
19692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19693 (exit $ac_status); }; }; then
19694 ac_cv_func_std_isinf_in_cmath=yes
19696 echo "$as_me: failed program was:" >&5
19697 sed 's/^/| /' conftest.$ac_ext >&5
19699 ac_cv_func_std_isinf_in_cmath=no
19702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19704 ac_cpp='$CPP $CPPFLAGS'
19705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19710 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19711 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19713 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19715 cat >>confdefs.h <<\_ACEOF
19716 #define HAVE_STD_ISINF_IN_CMATH 1
19721 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19722 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19723 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19724 echo $ECHO_N "(cached) $ECHO_C" >&6
19727 ac_cpp='$CXXCPP $CPPFLAGS'
19728 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19729 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19730 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19732 cat >conftest.$ac_ext <<_ACEOF
19735 cat confdefs.h >>conftest.$ac_ext
19736 cat >>conftest.$ac_ext <<_ACEOF
19737 /* end confdefs.h. */
19738 #include <ieeefp.h>
19742 float f; finite(f);
19747 rm -f conftest.$ac_objext
19748 if { (ac_try="$ac_compile"
19749 case "(($ac_try" in
19750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19751 *) ac_try_echo=$ac_try;;
19753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19754 (eval "$ac_compile") 2>conftest.er1
19756 grep -v '^ *+' conftest.er1 >conftest.err
19758 cat conftest.err >&5
19759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19760 (exit $ac_status); } &&
19761 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19762 { (case "(($ac_try" in
19763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19764 *) ac_try_echo=$ac_try;;
19766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19767 (eval "$ac_try") 2>&5
19769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19770 (exit $ac_status); }; } &&
19771 { ac_try='test -s conftest.$ac_objext'
19772 { (case "(($ac_try" in
19773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19774 *) ac_try_echo=$ac_try;;
19776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19777 (eval "$ac_try") 2>&5
19779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19780 (exit $ac_status); }; }; then
19781 ac_cv_func_finite_in_ieeefp_h=yes
19783 echo "$as_me: failed program was:" >&5
19784 sed 's/^/| /' conftest.$ac_ext >&5
19786 ac_cv_func_finite_in_ieeefp_h=no
19789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19791 ac_cpp='$CPP $CPPFLAGS'
19792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19797 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19798 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19800 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19802 cat >>confdefs.h <<\_ACEOF
19803 #define HAVE_FINITE_IN_IEEEFP_H 1
19810 if test "$llvm_cv_platform_type" = "Unix" ; then
19813 for ac_header in stdlib.h unistd.h
19815 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19816 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19817 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19818 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19819 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19820 echo $ECHO_N "(cached) $ECHO_C" >&6
19822 ac_res=`eval echo '${'$as_ac_Header'}'`
19823 { echo "$as_me:$LINENO: result: $ac_res" >&5
19824 echo "${ECHO_T}$ac_res" >&6; }
19826 # Is the header compilable?
19827 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19828 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19829 cat >conftest.$ac_ext <<_ACEOF
19832 cat confdefs.h >>conftest.$ac_ext
19833 cat >>conftest.$ac_ext <<_ACEOF
19834 /* end confdefs.h. */
19835 $ac_includes_default
19836 #include <$ac_header>
19838 rm -f conftest.$ac_objext
19839 if { (ac_try="$ac_compile"
19840 case "(($ac_try" in
19841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19842 *) ac_try_echo=$ac_try;;
19844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19845 (eval "$ac_compile") 2>conftest.er1
19847 grep -v '^ *+' conftest.er1 >conftest.err
19849 cat conftest.err >&5
19850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19851 (exit $ac_status); } &&
19852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19853 { (case "(($ac_try" in
19854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19855 *) ac_try_echo=$ac_try;;
19857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19858 (eval "$ac_try") 2>&5
19860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19861 (exit $ac_status); }; } &&
19862 { ac_try='test -s conftest.$ac_objext'
19863 { (case "(($ac_try" in
19864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19865 *) ac_try_echo=$ac_try;;
19867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19868 (eval "$ac_try") 2>&5
19870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19871 (exit $ac_status); }; }; then
19872 ac_header_compiler=yes
19874 echo "$as_me: failed program was:" >&5
19875 sed 's/^/| /' conftest.$ac_ext >&5
19877 ac_header_compiler=no
19880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19881 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19882 echo "${ECHO_T}$ac_header_compiler" >&6; }
19884 # Is the header present?
19885 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19886 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19887 cat >conftest.$ac_ext <<_ACEOF
19890 cat confdefs.h >>conftest.$ac_ext
19891 cat >>conftest.$ac_ext <<_ACEOF
19892 /* end confdefs.h. */
19893 #include <$ac_header>
19895 if { (ac_try="$ac_cpp conftest.$ac_ext"
19896 case "(($ac_try" in
19897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19898 *) ac_try_echo=$ac_try;;
19900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19901 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19903 grep -v '^ *+' conftest.er1 >conftest.err
19905 cat conftest.err >&5
19906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19907 (exit $ac_status); } >/dev/null; then
19908 if test -s conftest.err; then
19909 ac_cpp_err=$ac_c_preproc_warn_flag
19910 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19917 if test -z "$ac_cpp_err"; then
19918 ac_header_preproc=yes
19920 echo "$as_me: failed program was:" >&5
19921 sed 's/^/| /' conftest.$ac_ext >&5
19923 ac_header_preproc=no
19926 rm -f conftest.err conftest.$ac_ext
19927 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19928 echo "${ECHO_T}$ac_header_preproc" >&6; }
19930 # So? What about this header?
19931 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19933 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19934 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19935 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19936 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19937 ac_header_preproc=yes
19940 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19941 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19942 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19943 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19944 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19945 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19946 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19947 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19948 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19949 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19950 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19951 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19953 ## ------------------------------ ##
19954 ## Report this to bugs@yourdomain ##
19955 ## ------------------------------ ##
19957 ) | sed "s/^/$as_me: WARNING: /" >&2
19960 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19961 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19962 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19963 echo $ECHO_N "(cached) $ECHO_C" >&6
19965 eval "$as_ac_Header=\$ac_header_preproc"
19967 ac_res=`eval echo '${'$as_ac_Header'}'`
19968 { echo "$as_me:$LINENO: result: $ac_res" >&5
19969 echo "${ECHO_T}$ac_res" >&6; }
19972 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19973 cat >>confdefs.h <<_ACEOF
19974 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19982 for ac_func in getpagesize
19984 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19985 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19986 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19987 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19988 echo $ECHO_N "(cached) $ECHO_C" >&6
19990 cat >conftest.$ac_ext <<_ACEOF
19993 cat confdefs.h >>conftest.$ac_ext
19994 cat >>conftest.$ac_ext <<_ACEOF
19995 /* end confdefs.h. */
19996 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19997 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19998 #define $ac_func innocuous_$ac_func
20000 /* System header to define __stub macros and hopefully few prototypes,
20001 which can conflict with char $ac_func (); below.
20002 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20003 <limits.h> exists even on freestanding compilers. */
20006 # include <limits.h>
20008 # include <assert.h>
20013 /* Override any GCC internal prototype to avoid an error.
20014 Use char because int might match the return type of a GCC
20015 builtin and then its argument prototype would still apply. */
20020 /* The GNU C library defines this for functions which it implements
20021 to always fail with ENOSYS. Some functions are actually named
20022 something starting with __ and the normal name is an alias. */
20023 #if defined __stub_$ac_func || defined __stub___$ac_func
20030 return $ac_func ();
20035 rm -f conftest.$ac_objext conftest$ac_exeext
20036 if { (ac_try="$ac_link"
20037 case "(($ac_try" in
20038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20039 *) ac_try_echo=$ac_try;;
20041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20042 (eval "$ac_link") 2>conftest.er1
20044 grep -v '^ *+' conftest.er1 >conftest.err
20046 cat conftest.err >&5
20047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20048 (exit $ac_status); } &&
20049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20050 { (case "(($ac_try" in
20051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20052 *) ac_try_echo=$ac_try;;
20054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20055 (eval "$ac_try") 2>&5
20057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20058 (exit $ac_status); }; } &&
20059 { ac_try='test -s conftest$ac_exeext'
20060 { (case "(($ac_try" in
20061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20062 *) ac_try_echo=$ac_try;;
20064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20065 (eval "$ac_try") 2>&5
20067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20068 (exit $ac_status); }; }; then
20069 eval "$as_ac_var=yes"
20071 echo "$as_me: failed program was:" >&5
20072 sed 's/^/| /' conftest.$ac_ext >&5
20074 eval "$as_ac_var=no"
20077 rm -f core conftest.err conftest.$ac_objext \
20078 conftest$ac_exeext conftest.$ac_ext
20080 ac_res=`eval echo '${'$as_ac_var'}'`
20081 { echo "$as_me:$LINENO: result: $ac_res" >&5
20082 echo "${ECHO_T}$ac_res" >&6; }
20083 if test `eval echo '${'$as_ac_var'}'` = yes; then
20084 cat >>confdefs.h <<_ACEOF
20085 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20091 { echo "$as_me:$LINENO: checking for working mmap" >&5
20092 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20093 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20094 echo $ECHO_N "(cached) $ECHO_C" >&6
20096 if test "$cross_compiling" = yes; then
20097 ac_cv_func_mmap_fixed_mapped=no
20099 cat >conftest.$ac_ext <<_ACEOF
20102 cat confdefs.h >>conftest.$ac_ext
20103 cat >>conftest.$ac_ext <<_ACEOF
20104 /* end confdefs.h. */
20105 $ac_includes_default
20106 /* malloc might have been renamed as rpl_malloc. */
20109 /* Thanks to Mike Haertel and Jim Avera for this test.
20110 Here is a matrix of mmap possibilities:
20111 mmap private not fixed
20112 mmap private fixed at somewhere currently unmapped
20113 mmap private fixed at somewhere already mapped
20114 mmap shared not fixed
20115 mmap shared fixed at somewhere currently unmapped
20116 mmap shared fixed at somewhere already mapped
20117 For private mappings, we should verify that changes cannot be read()
20118 back from the file, nor mmap's back from the file at a different
20119 address. (There have been systems where private was not correctly
20120 implemented like the infamous i386 svr4.0, and systems where the
20121 VM page cache was not coherent with the file system buffer cache
20122 like early versions of FreeBSD and possibly contemporary NetBSD.)
20123 For shared mappings, we should conversely verify that changes get
20124 propagated back to all the places they're supposed to be.
20126 Grep wants private fixed already mapped.
20127 The main things grep needs to know about mmap are:
20128 * does it exist and is it safe to write into the mmap'd area
20129 * how to use it (BSD variants) */
20132 #include <sys/mman.h>
20134 #if !STDC_HEADERS && !HAVE_STDLIB_H
20138 /* This mess was copied from the GNU getpagesize.h. */
20139 #if !HAVE_GETPAGESIZE
20140 /* Assume that all systems that can run configure have sys/param.h. */
20141 # if !HAVE_SYS_PARAM_H
20142 # define HAVE_SYS_PARAM_H 1
20145 # ifdef _SC_PAGESIZE
20146 # define getpagesize() sysconf(_SC_PAGESIZE)
20147 # else /* no _SC_PAGESIZE */
20148 # if HAVE_SYS_PARAM_H
20149 # include <sys/param.h>
20150 # ifdef EXEC_PAGESIZE
20151 # define getpagesize() EXEC_PAGESIZE
20152 # else /* no EXEC_PAGESIZE */
20154 # define getpagesize() NBPG * CLSIZE
20157 # endif /* no CLSIZE */
20158 # else /* no NBPG */
20160 # define getpagesize() NBPC
20161 # else /* no NBPC */
20163 # define getpagesize() PAGESIZE
20164 # endif /* PAGESIZE */
20165 # endif /* no NBPC */
20166 # endif /* no NBPG */
20167 # endif /* no EXEC_PAGESIZE */
20168 # else /* no HAVE_SYS_PARAM_H */
20169 # define getpagesize() 8192 /* punt totally */
20170 # endif /* no HAVE_SYS_PARAM_H */
20171 # endif /* no _SC_PAGESIZE */
20173 #endif /* no HAVE_GETPAGESIZE */
20178 char *data, *data2, *data3;
20182 pagesize = getpagesize ();
20184 /* First, make a file with some known garbage in it. */
20185 data = (char *) malloc (pagesize);
20188 for (i = 0; i < pagesize; ++i)
20189 *(data + i) = rand ();
20191 fd = creat ("conftest.mmap", 0600);
20194 if (write (fd, data, pagesize) != pagesize)
20198 /* Next, try to mmap the file at a fixed address which already has
20199 something else allocated at it. If we can, also make sure that
20200 we see the same garbage. */
20201 fd = open ("conftest.mmap", O_RDWR);
20204 data2 = (char *) malloc (2 * pagesize);
20207 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20208 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20209 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20211 for (i = 0; i < pagesize; ++i)
20212 if (*(data + i) != *(data2 + i))
20215 /* Finally, make sure that changes to the mapped area do not
20216 percolate back to the file as seen by read(). (This is a bug on
20217 some variants of i386 svr4.0.) */
20218 for (i = 0; i < pagesize; ++i)
20219 *(data2 + i) = *(data2 + i) + 1;
20220 data3 = (char *) malloc (pagesize);
20223 if (read (fd, data3, pagesize) != pagesize)
20225 for (i = 0; i < pagesize; ++i)
20226 if (*(data + i) != *(data3 + i))
20232 rm -f conftest$ac_exeext
20233 if { (ac_try="$ac_link"
20234 case "(($ac_try" in
20235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20236 *) ac_try_echo=$ac_try;;
20238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20239 (eval "$ac_link") 2>&5
20241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20243 { (case "(($ac_try" in
20244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20245 *) ac_try_echo=$ac_try;;
20247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20248 (eval "$ac_try") 2>&5
20250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20251 (exit $ac_status); }; }; then
20252 ac_cv_func_mmap_fixed_mapped=yes
20254 echo "$as_me: program exited with status $ac_status" >&5
20255 echo "$as_me: failed program was:" >&5
20256 sed 's/^/| /' conftest.$ac_ext >&5
20258 ( exit $ac_status )
20259 ac_cv_func_mmap_fixed_mapped=no
20261 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20266 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20267 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20268 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20270 cat >>confdefs.h <<\_ACEOF
20271 #define HAVE_MMAP 1
20275 rm -f conftest.mmap
20277 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20278 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20279 if test "${ac_cv_func_mmap_file+set}" = set; then
20280 echo $ECHO_N "(cached) $ECHO_C" >&6
20283 ac_cpp='$CPP $CPPFLAGS'
20284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20288 if test "$cross_compiling" = yes; then
20289 ac_cv_func_mmap_file=no
20291 cat >conftest.$ac_ext <<_ACEOF
20295 cat confdefs.h >>conftest.$ac_ext
20296 cat >>conftest.$ac_ext <<_ACEOF
20297 /* end confdefs.h. */
20299 #include <sys/types.h>
20300 #include <sys/mman.h>
20308 fd = creat ("foo",0777);
20309 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20311 return (fd != (int) MAP_FAILED);
20316 rm -f conftest$ac_exeext
20317 if { (ac_try="$ac_link"
20318 case "(($ac_try" in
20319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20320 *) ac_try_echo=$ac_try;;
20322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20323 (eval "$ac_link") 2>&5
20325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20326 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20327 { (case "(($ac_try" in
20328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20329 *) ac_try_echo=$ac_try;;
20331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20332 (eval "$ac_try") 2>&5
20334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20335 (exit $ac_status); }; }; then
20336 ac_cv_func_mmap_file=yes
20338 echo "$as_me: program exited with status $ac_status" >&5
20339 echo "$as_me: failed program was:" >&5
20340 sed 's/^/| /' conftest.$ac_ext >&5
20342 ( exit $ac_status )
20343 ac_cv_func_mmap_file=no
20345 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20350 ac_cpp='$CPP $CPPFLAGS'
20351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20357 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20358 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20359 if test "$ac_cv_func_mmap_file" = yes; then
20361 cat >>confdefs.h <<\_ACEOF
20362 #define HAVE_MMAP_FILE
20369 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20370 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20371 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20372 echo $ECHO_N "(cached) $ECHO_C" >&6
20374 if test "$llvm_cv_os_type" = "Interix" ; then
20375 ac_cv_need_dev_zero_for_mmap=yes
20377 ac_cv_need_dev_zero_for_mmap=no
20381 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20382 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20383 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20385 cat >>confdefs.h <<\_ACEOF
20386 #define NEED_DEV_ZERO_FOR_MMAP 1
20391 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20393 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20394 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20396 if test "$ac_cv_func_mmap_file" = "no"
20398 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20399 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20403 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20404 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20406 ac_cpp='$CXXCPP $CPPFLAGS'
20407 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20408 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20409 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20411 cat >conftest.$ac_ext <<_ACEOF
20414 cat confdefs.h >>conftest.$ac_ext
20415 cat >>conftest.$ac_ext <<_ACEOF
20416 /* end confdefs.h. */
20418 volatile unsigned long val = 1;
20419 __sync_synchronize();
20420 __sync_val_compare_and_swap(&val, 1, 0);
20421 __sync_add_and_fetch(&val, 1);
20422 __sync_sub_and_fetch(&val, 1);
20427 rm -f conftest.$ac_objext conftest$ac_exeext
20428 if { (ac_try="$ac_link"
20429 case "(($ac_try" in
20430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20431 *) ac_try_echo=$ac_try;;
20433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20434 (eval "$ac_link") 2>conftest.er1
20436 grep -v '^ *+' conftest.er1 >conftest.err
20438 cat conftest.err >&5
20439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20440 (exit $ac_status); } &&
20441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20442 { (case "(($ac_try" in
20443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20444 *) ac_try_echo=$ac_try;;
20446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20447 (eval "$ac_try") 2>&5
20449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20450 (exit $ac_status); }; } &&
20451 { ac_try='test -s conftest$ac_exeext'
20452 { (case "(($ac_try" in
20453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20454 *) ac_try_echo=$ac_try;;
20456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20457 (eval "$ac_try") 2>&5
20459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20460 (exit $ac_status); }; }; then
20462 ac_cpp='$CPP $CPPFLAGS'
20463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20467 { echo "$as_me:$LINENO: result: yes" >&5
20468 echo "${ECHO_T}yes" >&6; }
20470 cat >>confdefs.h <<\_ACEOF
20471 #define LLVM_HAS_ATOMICS 1
20475 echo "$as_me: failed program was:" >&5
20476 sed 's/^/| /' conftest.$ac_ext >&5
20478 { echo "$as_me:$LINENO: result: no" >&5
20479 echo "${ECHO_T}no" >&6; }
20481 cat >>confdefs.h <<\_ACEOF
20482 #define LLVM_HAS_ATOMICS 0
20485 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20486 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20489 rm -f core conftest.err conftest.$ac_objext \
20490 conftest$ac_exeext conftest.$ac_ext
20493 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20494 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20495 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20496 if test "${llvm_cv_linux_mixed+set}" = set; then
20497 echo $ECHO_N "(cached) $ECHO_C" >&6
20500 ac_cpp='$CPP $CPPFLAGS'
20501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20505 cat >conftest.$ac_ext <<_ACEOF
20508 cat confdefs.h >>conftest.$ac_ext
20509 cat >>conftest.$ac_ext <<_ACEOF
20510 /* end confdefs.h. */
20512 error: Not x86-64 even if uname says so!
20523 rm -f conftest.$ac_objext
20524 if { (ac_try="$ac_compile"
20525 case "(($ac_try" in
20526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20527 *) ac_try_echo=$ac_try;;
20529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20530 (eval "$ac_compile") 2>conftest.er1
20532 grep -v '^ *+' conftest.er1 >conftest.err
20534 cat conftest.err >&5
20535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20536 (exit $ac_status); } &&
20537 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20538 { (case "(($ac_try" in
20539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20540 *) ac_try_echo=$ac_try;;
20542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20543 (eval "$ac_try") 2>&5
20545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20546 (exit $ac_status); }; } &&
20547 { ac_try='test -s conftest.$ac_objext'
20548 { (case "(($ac_try" in
20549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20550 *) ac_try_echo=$ac_try;;
20552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20553 (eval "$ac_try") 2>&5
20555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20556 (exit $ac_status); }; }; then
20557 llvm_cv_linux_mixed=no
20559 echo "$as_me: failed program was:" >&5
20560 sed 's/^/| /' conftest.$ac_ext >&5
20562 llvm_cv_linux_mixed=yes
20565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20567 ac_cpp='$CPP $CPPFLAGS'
20568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20574 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20575 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20577 if test "$llvm_cv_linux_mixed" = "yes"; then
20578 llvm_cv_target_arch="x86"
20584 for ac_func in __dso_handle
20586 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20587 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20588 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20589 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20590 echo $ECHO_N "(cached) $ECHO_C" >&6
20592 cat >conftest.$ac_ext <<_ACEOF
20595 cat confdefs.h >>conftest.$ac_ext
20596 cat >>conftest.$ac_ext <<_ACEOF
20597 /* end confdefs.h. */
20598 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20599 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20600 #define $ac_func innocuous_$ac_func
20602 /* System header to define __stub macros and hopefully few prototypes,
20603 which can conflict with char $ac_func (); below.
20604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20605 <limits.h> exists even on freestanding compilers. */
20608 # include <limits.h>
20610 # include <assert.h>
20615 /* Override any GCC internal prototype to avoid an error.
20616 Use char because int might match the return type of a GCC
20617 builtin and then its argument prototype would still apply. */
20622 /* The GNU C library defines this for functions which it implements
20623 to always fail with ENOSYS. Some functions are actually named
20624 something starting with __ and the normal name is an alias. */
20625 #if defined __stub_$ac_func || defined __stub___$ac_func
20632 return $ac_func ();
20637 rm -f conftest.$ac_objext conftest$ac_exeext
20638 if { (ac_try="$ac_link"
20639 case "(($ac_try" in
20640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20641 *) ac_try_echo=$ac_try;;
20643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20644 (eval "$ac_link") 2>conftest.er1
20646 grep -v '^ *+' conftest.er1 >conftest.err
20648 cat conftest.err >&5
20649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20650 (exit $ac_status); } &&
20651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20652 { (case "(($ac_try" in
20653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20654 *) ac_try_echo=$ac_try;;
20656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20657 (eval "$ac_try") 2>&5
20659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20660 (exit $ac_status); }; } &&
20661 { ac_try='test -s conftest$ac_exeext'
20662 { (case "(($ac_try" in
20663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20664 *) ac_try_echo=$ac_try;;
20666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20667 (eval "$ac_try") 2>&5
20669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20670 (exit $ac_status); }; }; then
20671 eval "$as_ac_var=yes"
20673 echo "$as_me: failed program was:" >&5
20674 sed 's/^/| /' conftest.$ac_ext >&5
20676 eval "$as_ac_var=no"
20679 rm -f core conftest.err conftest.$ac_objext \
20680 conftest$ac_exeext conftest.$ac_ext
20682 ac_res=`eval echo '${'$as_ac_var'}'`
20683 { echo "$as_me:$LINENO: result: $ac_res" >&5
20684 echo "${ECHO_T}$ac_res" >&6; }
20685 if test `eval echo '${'$as_ac_var'}'` = yes; then
20686 cat >>confdefs.h <<_ACEOF
20687 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20694 SHLIBEXT=$libltdl_cv_shlibext
20697 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20700 # Translate the various configuration directories and other basic
20701 # information into substitutions that will end up in Makefile.config.in
20702 # that these configured values can be used by the makefiles
20703 if test "${prefix}" = "NONE" ; then
20704 prefix="/usr/local"
20706 eval LLVM_PREFIX="${prefix}";
20707 eval LLVM_BINDIR="${prefix}/bin";
20708 eval LLVM_LIBDIR="${prefix}/lib";
20709 eval LLVM_DATADIR="${prefix}/share/llvm";
20710 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20711 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20712 eval LLVM_INCLUDEDIR="${prefix}/include";
20713 eval LLVM_INFODIR="${prefix}/info";
20714 eval LLVM_MANDIR="${prefix}/man";
20715 LLVM_CONFIGTIME=`date`
20727 # Place the various directores into the config.h file as #defines so that we
20728 # can know about the installation paths within LLVM.
20730 cat >>confdefs.h <<_ACEOF
20731 #define LLVM_PREFIX "$LLVM_PREFIX"
20735 cat >>confdefs.h <<_ACEOF
20736 #define LLVM_BINDIR "$LLVM_BINDIR"
20740 cat >>confdefs.h <<_ACEOF
20741 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20745 cat >>confdefs.h <<_ACEOF
20746 #define LLVM_DATADIR "$LLVM_DATADIR"
20750 cat >>confdefs.h <<_ACEOF
20751 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20755 cat >>confdefs.h <<_ACEOF
20756 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20760 cat >>confdefs.h <<_ACEOF
20761 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20765 cat >>confdefs.h <<_ACEOF
20766 #define LLVM_INFODIR "$LLVM_INFODIR"
20770 cat >>confdefs.h <<_ACEOF
20771 #define LLVM_MANDIR "$LLVM_MANDIR"
20775 cat >>confdefs.h <<_ACEOF
20776 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20780 cat >>confdefs.h <<_ACEOF
20781 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
20785 # Determine which bindings to build.
20786 if test "$BINDINGS_TO_BUILD" = auto ; then
20787 BINDINGS_TO_BUILD=""
20788 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20789 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20792 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20795 # This isn't really configurey, but it avoids having to repeat the list in
20800 # Do any work necessary to ensure that bindings have what they need.
20801 binding_prereqs_failed=0
20802 for a_binding in $BINDINGS_TO_BUILD ; do
20803 case "$a_binding" in
20805 if test "x$OCAMLC" = x ; then
20806 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20807 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20808 binding_prereqs_failed=1
20810 if test "x$OCAMLDEP" = x ; then
20811 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20812 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20813 binding_prereqs_failed=1
20815 if test "x$OCAMLOPT" = x ; then
20816 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20817 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20819 if test "x$with_ocaml_libdir" != xauto ; then
20820 OCAML_LIBDIR=$with_ocaml_libdir
20823 ocaml_stdlib="`"$OCAMLC" -where`"
20824 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20826 # ocaml stdlib is beneath our prefix; use stdlib
20827 OCAML_LIBDIR=$ocaml_stdlib
20830 # ocaml stdlib is outside our prefix; use libdir/ocaml
20831 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20838 if test "$binding_prereqs_failed" = 1 ; then
20839 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20840 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20841 { (exit 1); exit 1; }; }
20844 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20845 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20846 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20847 echo $ECHO_N "(cached) $ECHO_C" >&6
20850 ac_cpp='$CXXCPP $CPPFLAGS'
20851 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20852 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20853 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20855 oldcxxflags="$CXXFLAGS"
20856 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20857 cat >conftest.$ac_ext <<_ACEOF
20860 cat confdefs.h >>conftest.$ac_ext
20861 cat >>conftest.$ac_ext <<_ACEOF
20862 /* end confdefs.h. */
20872 rm -f conftest.$ac_objext
20873 if { (ac_try="$ac_compile"
20874 case "(($ac_try" in
20875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20876 *) ac_try_echo=$ac_try;;
20878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20879 (eval "$ac_compile") 2>conftest.er1
20881 grep -v '^ *+' conftest.er1 >conftest.err
20883 cat conftest.err >&5
20884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20885 (exit $ac_status); } &&
20886 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20887 { (case "(($ac_try" in
20888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20889 *) ac_try_echo=$ac_try;;
20891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20892 (eval "$ac_try") 2>&5
20894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20895 (exit $ac_status); }; } &&
20896 { ac_try='test -s conftest.$ac_objext'
20897 { (case "(($ac_try" in
20898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20899 *) ac_try_echo=$ac_try;;
20901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20902 (eval "$ac_try") 2>&5
20904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20905 (exit $ac_status); }; }; then
20906 llvm_cv_cxx_visibility_inlines_hidden=yes
20908 echo "$as_me: failed program was:" >&5
20909 sed 's/^/| /' conftest.$ac_ext >&5
20911 llvm_cv_cxx_visibility_inlines_hidden=no
20914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20915 CXXFLAGS="$oldcxxflags"
20917 ac_cpp='$CPP $CPPFLAGS'
20918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20924 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20925 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20926 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20927 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20930 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20935 if test "$llvm_cv_link_use_r" = "yes" ; then
20942 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20943 RDYNAMIC="-Wl,-export-dynamic"
20951 ac_config_files="$ac_config_files Makefile.common"
20953 ac_config_files="$ac_config_files Makefile.llvm.config"
20956 ac_config_commands="$ac_config_commands Makefile"
20959 ac_config_commands="$ac_config_commands lib/Makefile"
20962 ac_config_commands="$ac_config_commands lib/sample/Makefile"
20965 ac_config_commands="$ac_config_commands tools/Makefile"
20968 ac_config_commands="$ac_config_commands tools/sample/Makefile"
20972 cat >confcache <<\_ACEOF
20973 # This file is a shell script that caches the results of configure
20974 # tests run on this system so they can be shared between configure
20975 # scripts and configure runs, see configure's option --config-cache.
20976 # It is not useful on other systems. If it contains results you don't
20977 # want to keep, you may remove or edit it.
20979 # config.status only pays attention to the cache file if you give it
20980 # the --recheck option to rerun configure.
20982 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20983 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20984 # following values.
20988 # The following way of writing the cache mishandles newlines in values,
20989 # but we know of no workaround that is simple, portable, and efficient.
20990 # So, we kill variables containing newlines.
20991 # Ultrix sh set writes to stderr and can't be redirected directly,
20992 # and sets the high bit in the cache file unless we assign to the vars.
20994 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20995 eval ac_val=\$$ac_var
20999 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21000 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21003 _ | IFS | as_nl) ;; #(
21004 *) $as_unset $ac_var ;;
21010 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21011 *${as_nl}ac_space=\ *)
21012 # `set' does not quote correctly, so add quotes (double-quote
21013 # substitution turns \\\\ into \\, and sed turns \\ into \).
21016 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21019 # `set' quotes correctly as required by POSIX, so do not add quotes.
21020 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21029 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21031 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21033 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21034 if test -w "$cache_file"; then
21035 test "x$cache_file" != "x/dev/null" &&
21036 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21037 echo "$as_me: updating cache $cache_file" >&6;}
21038 cat confcache >$cache_file
21040 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21041 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21046 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21047 # Let make expand exec_prefix.
21048 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21050 # Transform confdefs.h into DEFS.
21051 # Protect against shell expansion while executing Makefile rules.
21052 # Protect against Makefile macro expansion.
21054 # If the first sed substitution is executed (which looks for macros that
21055 # take arguments), then branch to the quote section. Otherwise,
21056 # look for a macro that doesn't take arguments.
21060 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
21062 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
21066 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
21079 DEFS=`sed -n "$ac_script" confdefs.h`
21084 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21085 # 1. Remove the extension, and $U if already installed.
21086 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21087 ac_i=`echo "$ac_i" | sed "$ac_script"`
21088 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21089 # will be set to the directory where LIBOBJS objects are built.
21090 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21091 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21093 LIBOBJS=$ac_libobjs
21095 LTLIBOBJS=$ac_ltlibobjs
21098 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21099 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21100 Usually this means the macro was only invoked conditionally." >&5
21101 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21102 Usually this means the macro was only invoked conditionally." >&2;}
21103 { (exit 1); exit 1; }; }
21105 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21106 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21107 Usually this means the macro was only invoked conditionally." >&5
21108 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21109 Usually this means the macro was only invoked conditionally." >&2;}
21110 { (exit 1); exit 1; }; }
21113 : ${CONFIG_STATUS=./config.status}
21114 ac_clean_files_save=$ac_clean_files
21115 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21116 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21117 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21118 cat >$CONFIG_STATUS <<_ACEOF
21120 # Generated by $as_me.
21121 # Run this file to recreate the current configuration.
21122 # Compiler output produced by configure, useful for debugging
21123 # configure, is in config.log if it exists.
21126 ac_cs_recheck=false
21128 SHELL=\${CONFIG_SHELL-$SHELL}
21131 cat >>$CONFIG_STATUS <<\_ACEOF
21132 ## --------------------- ##
21133 ## M4sh Initialization. ##
21134 ## --------------------- ##
21136 # Be Bourne compatible
21137 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21140 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21141 # is contrary to our usage. Disable this feature.
21142 alias -g '${1+"$@"}'='"$@"'
21143 setopt NO_GLOB_SUBST
21145 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21147 BIN_SH=xpg4; export BIN_SH # for Tru64
21148 DUALCASE=1; export DUALCASE # for MKS sh
21152 # Avoid depending upon Character Ranges.
21153 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21154 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21155 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21156 as_cr_digits='0123456789'
21157 as_cr_alnum=$as_cr_Letters$as_cr_digits
21159 # The user is always right.
21160 if test "${PATH_SEPARATOR+set}" != set; then
21161 echo "#! /bin/sh" >conf$$.sh
21162 echo "exit 0" >>conf$$.sh
21164 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21172 # Support unset when possible.
21173 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21181 # We need space, tab and new line, in precisely that order. Quoting is
21182 # there to prevent editors from complaining about space-tab.
21183 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21184 # splitting by setting IFS to empty value.)
21189 # Find who we are. Look in the path if we contain no directory separator.
21191 *[\\/]* ) as_myself=$0 ;;
21192 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21193 for as_dir in $PATH
21196 test -z "$as_dir" && as_dir=.
21197 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21203 # We did not find ourselves, most probably we were run as `sh COMMAND'
21204 # in which case we are not to be found in the path.
21205 if test "x$as_myself" = x; then
21208 if test ! -f "$as_myself"; then
21209 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21210 { (exit 1); exit 1; }
21213 # Work around bugs in pre-3.0 UWIN ksh.
21214 for as_var in ENV MAIL MAILPATH
21215 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21223 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21224 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21225 LC_TELEPHONE LC_TIME
21227 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21228 eval $as_var=C; export $as_var
21230 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21234 # Required to use basename.
21235 if expr a : '\(a\)' >/dev/null 2>&1 &&
21236 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21242 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21243 as_basename=basename
21249 # Name of the executable.
21250 as_me=`$as_basename -- "$0" ||
21251 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21252 X"$0" : 'X\(//\)$' \| \
21253 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21255 sed '/^.*\/\([^/][^/]*\)\/*$/{
21274 as_lineno_1=$LINENO
21275 as_lineno_2=$LINENO
21276 test "x$as_lineno_1" != "x$as_lineno_2" &&
21277 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21279 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21280 # uniformly replaced by the line number. The first 'sed' inserts a
21281 # line-number line after each line using $LINENO; the second 'sed'
21282 # does the real work. The second script uses 'N' to pair each
21283 # line-number line with the line containing $LINENO, and appends
21284 # trailing '-' during substitution so that $LINENO is not a special
21285 # case at line end.
21286 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21287 # scripts with optimization help from Paolo Bonzini. Blame Lee
21288 # E. McMahon (1931-1989) for sed's syntax. :-)
21300 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21303 ' >$as_me.lineno &&
21304 chmod +x "$as_me.lineno" ||
21305 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21306 { (exit 1); exit 1; }; }
21308 # Don't try to exec as it changes $[0], causing all sort of problems
21309 # (the dirname of $[0] is not the place where we might find the
21310 # original and so on. Autoconf is especially sensitive to this).
21311 . "./$as_me.lineno"
21312 # Exit status is that of the last command.
21317 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21323 ECHO_C= ECHO_N= ECHO_T=
21324 case `echo -n x` in
21326 case `echo 'x\c'` in
21327 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21334 if expr a : '\(a\)' >/dev/null 2>&1 &&
21335 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21341 rm -f conf$$ conf$$.exe conf$$.file
21342 if test -d conf$$.dir; then
21343 rm -f conf$$.dir/conf$$.file
21349 if ln -s conf$$.file conf$$ 2>/dev/null; then
21351 # ... but there are two gotchas:
21352 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21353 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21354 # In both cases, we have to default to `cp -p'.
21355 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21357 elif ln conf$$.file conf$$ 2>/dev/null; then
21362 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21363 rmdir conf$$.dir 2>/dev/null
21365 if mkdir -p . 2>/dev/null; then
21368 test -d ./-p && rmdir ./-p
21372 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21373 # systems may use methods other than mode bits to determine executability.
21374 cat >conf$$.file <<_ASEOF
21378 chmod +x conf$$.file
21379 if test -x conf$$.file >/dev/null 2>&1; then
21380 as_executable_p="test -x"
21386 # Sed expression to map a string onto a valid CPP name.
21387 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21389 # Sed expression to map a string onto a valid variable name.
21390 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21395 # Save the log message, to keep $[0] and so on meaningful, and to
21396 # report actual input values of CONFIG_FILES etc. instead of their
21397 # values after options handling.
21399 This file was extended by [SAMPLE] $as_me [x.xx], which was
21400 generated by GNU Autoconf 2.60. Invocation command line was
21402 CONFIG_FILES = $CONFIG_FILES
21403 CONFIG_HEADERS = $CONFIG_HEADERS
21404 CONFIG_LINKS = $CONFIG_LINKS
21405 CONFIG_COMMANDS = $CONFIG_COMMANDS
21408 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21413 cat >>$CONFIG_STATUS <<_ACEOF
21414 # Files that config.status was made for.
21415 config_files="$ac_config_files"
21416 config_commands="$ac_config_commands"
21420 cat >>$CONFIG_STATUS <<\_ACEOF
21422 \`$as_me' instantiates files from templates according to the
21423 current configuration.
21425 Usage: $0 [OPTIONS] [FILE]...
21427 -h, --help print this help, then exit
21428 -V, --version print version number, then exit
21429 -q, --quiet do not print progress messages
21430 -d, --debug don't remove temporary files
21431 --recheck update $as_me by reconfiguring in the same conditions
21432 --file=FILE[:TEMPLATE]
21433 instantiate the configuration file FILE
21435 Configuration files:
21438 Configuration commands:
21441 Report bugs to <bug-autoconf@gnu.org>."
21444 cat >>$CONFIG_STATUS <<_ACEOF
21446 [SAMPLE] config.status [x.xx]
21447 configured by $0, generated by GNU Autoconf 2.60,
21448 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21450 Copyright (C) 2006 Free Software Foundation, Inc.
21451 This config.status script is free software; the Free Software Foundation
21452 gives unlimited permission to copy, distribute and modify it."
21459 cat >>$CONFIG_STATUS <<\_ACEOF
21460 # If no file are specified by the user, then we need to provide default
21461 # value. By we need to know if files were specified by the user.
21467 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21468 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21479 # Handling of the options.
21480 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21482 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21483 echo "$ac_cs_version"; exit ;;
21484 --debug | --debu | --deb | --de | --d | -d )
21486 --file | --fil | --fi | --f )
21488 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21489 ac_need_defaults=false;;
21490 --he | --h | --help | --hel | -h )
21491 echo "$ac_cs_usage"; exit ;;
21492 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21493 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21496 # This is an error.
21497 -*) { echo "$as_me: error: unrecognized option: $1
21498 Try \`$0 --help' for more information." >&2
21499 { (exit 1); exit 1; }; } ;;
21501 *) ac_config_targets="$ac_config_targets $1"
21502 ac_need_defaults=false ;;
21508 ac_configure_extra_args=
21510 if $ac_cs_silent; then
21512 ac_configure_extra_args="$ac_configure_extra_args --silent"
21516 cat >>$CONFIG_STATUS <<_ACEOF
21517 if \$ac_cs_recheck; then
21518 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21519 CONFIG_SHELL=$SHELL
21520 export CONFIG_SHELL
21521 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21525 cat >>$CONFIG_STATUS <<\_ACEOF
21529 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21530 ## Running $as_me. ##
21536 cat >>$CONFIG_STATUS <<_ACEOF
21540 llvm_src="${LLVM_SRC}"
21544 cat >>$CONFIG_STATUS <<\_ACEOF
21546 # Handling of arguments.
21547 for ac_config_target in $ac_config_targets
21549 case $ac_config_target in
21550 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21551 "Makefile.common") CONFIG_FILES="$CONFIG_FILES Makefile.common" ;;
21552 "Makefile.llvm.config") CONFIG_FILES="$CONFIG_FILES Makefile.llvm.config" ;;
21553 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21554 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21555 "lib/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/sample/Makefile" ;;
21556 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21557 "tools/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/sample/Makefile" ;;
21559 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21560 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21561 { (exit 1); exit 1; }; };;
21566 # If the user did not use the arguments to specify the items to instantiate,
21567 # then the envvar interface is used. Set only those that are not.
21568 # We use the long form for the default assignment because of an extremely
21569 # bizarre bug on SunOS 4.1.3.
21570 if $ac_need_defaults; then
21571 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21572 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21575 # Have a temporary directory for convenience. Make it in the build tree
21576 # simply because there is no reason against having it here, and in addition,
21577 # creating and moving files from /tmp can sometimes cause problems.
21578 # Hook for its removal unless debugging.
21579 # Note that there is a small window in which the directory will not be cleaned:
21580 # after its creation but before its name has been assigned to `$tmp'.
21584 trap 'exit_status=$?
21585 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21587 trap '{ (exit 1); exit 1; }' 1 2 13 15
21589 # Create a (secure) tmp directory for tmp files.
21592 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21593 test -n "$tmp" && test -d "$tmp"
21596 tmp=./conf$$-$RANDOM
21597 (umask 077 && mkdir "$tmp")
21600 echo "$me: cannot create a temporary directory in ." >&2
21601 { (exit 1); exit 1; }
21605 # Set up the sed scripts for CONFIG_FILES section.
21608 # No need to generate the scripts if there are no CONFIG_FILES.
21609 # This happens for instance when ./config.status config.h
21610 if test -n "$CONFIG_FILES"; then
21617 for ac_last_try in false false false false false :; do
21618 cat >conf$$subs.sed <<_ACEOF
21619 SHELL!$SHELL$ac_delim
21620 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21621 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21622 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21623 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21624 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21625 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21626 exec_prefix!$exec_prefix$ac_delim
21627 prefix!$prefix$ac_delim
21628 program_transform_name!$program_transform_name$ac_delim
21629 bindir!$bindir$ac_delim
21630 sbindir!$sbindir$ac_delim
21631 libexecdir!$libexecdir$ac_delim
21632 datarootdir!$datarootdir$ac_delim
21633 datadir!$datadir$ac_delim
21634 sysconfdir!$sysconfdir$ac_delim
21635 sharedstatedir!$sharedstatedir$ac_delim
21636 localstatedir!$localstatedir$ac_delim
21637 includedir!$includedir$ac_delim
21638 oldincludedir!$oldincludedir$ac_delim
21639 docdir!$docdir$ac_delim
21640 infodir!$infodir$ac_delim
21641 htmldir!$htmldir$ac_delim
21642 dvidir!$dvidir$ac_delim
21643 pdfdir!$pdfdir$ac_delim
21644 psdir!$psdir$ac_delim
21645 libdir!$libdir$ac_delim
21646 localedir!$localedir$ac_delim
21647 mandir!$mandir$ac_delim
21648 DEFS!$DEFS$ac_delim
21649 ECHO_C!$ECHO_C$ac_delim
21650 ECHO_N!$ECHO_N$ac_delim
21651 ECHO_T!$ECHO_T$ac_delim
21652 LIBS!$LIBS$ac_delim
21653 build_alias!$build_alias$ac_delim
21654 host_alias!$host_alias$ac_delim
21655 target_alias!$target_alias$ac_delim
21656 LLVM_SRC!$LLVM_SRC$ac_delim
21657 LLVM_OBJ!$LLVM_OBJ$ac_delim
21658 LLVM_VERSION!$LLVM_VERSION$ac_delim
21660 CFLAGS!$CFLAGS$ac_delim
21661 LDFLAGS!$LDFLAGS$ac_delim
21662 CPPFLAGS!$CPPFLAGS$ac_delim
21663 ac_ct_CC!$ac_ct_CC$ac_delim
21664 EXEEXT!$EXEEXT$ac_delim
21665 OBJEXT!$OBJEXT$ac_delim
21667 CXXFLAGS!$CXXFLAGS$ac_delim
21668 ac_ct_CXX!$ac_ct_CXX$ac_delim
21670 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21671 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21672 subdirs!$subdirs$ac_delim
21673 build!$build$ac_delim
21674 build_cpu!$build_cpu$ac_delim
21675 build_vendor!$build_vendor$ac_delim
21676 build_os!$build_os$ac_delim
21677 host!$host$ac_delim
21678 host_cpu!$host_cpu$ac_delim
21679 host_vendor!$host_vendor$ac_delim
21680 host_os!$host_os$ac_delim
21681 target!$target$ac_delim
21682 target_cpu!$target_cpu$ac_delim
21683 target_vendor!$target_vendor$ac_delim
21684 target_os!$target_os$ac_delim
21686 HOST_OS!$HOST_OS$ac_delim
21687 TARGET_OS!$TARGET_OS$ac_delim
21688 LINKALL!$LINKALL$ac_delim
21689 NOLINKALL!$NOLINKALL$ac_delim
21690 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21691 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21692 ARCH!$ARCH$ac_delim
21693 ENDIAN!$ENDIAN$ac_delim
21694 GREP!$GREP$ac_delim
21695 EGREP!$EGREP$ac_delim
21696 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21697 BUILD_CC!$BUILD_CC$ac_delim
21698 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21699 BUILD_CXX!$BUILD_CXX$ac_delim
21700 CVSBUILD!$CVSBUILD$ac_delim
21701 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21702 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21703 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21704 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21705 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21706 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21707 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21709 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21710 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21711 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21712 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21713 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21714 ENABLE_PIC!$ENABLE_PIC$ac_delim
21715 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21718 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21720 elif $ac_last_try; then
21721 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21722 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21723 { (exit 1); exit 1; }; }
21725 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21729 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21730 if test -n "$ac_eof"; then
21731 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21732 ac_eof=`expr $ac_eof + 1`
21735 cat >>$CONFIG_STATUS <<_ACEOF
21736 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21737 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21740 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21741 s/^/s,@/; s/!/@,|#_!!_#|/
21744 s/'"$ac_delim"'$/,g/; t
21746 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21747 ' >>$CONFIG_STATUS <conf$$subs.sed
21748 rm -f conf$$subs.sed
21749 cat >>$CONFIG_STATUS <<_ACEOF
21755 for ac_last_try in false false false false false :; do
21756 cat >conf$$subs.sed <<_ACEOF
21757 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21758 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21759 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21760 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21761 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21762 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21763 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21764 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21765 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21766 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21767 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21768 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21770 ifGNUmake!$ifGNUmake$ac_delim
21771 LN_S!$LN_S$ac_delim
21774 DATE!$DATE$ac_delim
21775 FIND!$FIND$ac_delim
21776 MKDIR!$MKDIR$ac_delim
21778 RANLIB!$RANLIB$ac_delim
21783 BINPWD!$BINPWD$ac_delim
21784 GRAPHVIZ!$GRAPHVIZ$ac_delim
21787 NEATO!$NEATO$ac_delim
21788 TWOPI!$TWOPI$ac_delim
21789 CIRCO!$CIRCO$ac_delim
21791 DOTTY!$DOTTY$ac_delim
21792 XDOT_PY!$XDOT_PY$ac_delim
21793 PERL!$PERL$ac_delim
21794 HAVE_PERL!$HAVE_PERL$ac_delim
21795 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21796 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21797 INSTALL_DATA!$INSTALL_DATA$ac_delim
21798 BZIP2!$BZIP2$ac_delim
21800 DOXYGEN!$DOXYGEN$ac_delim
21801 GROFF!$GROFF$ac_delim
21802 GZIPBIN!$GZIPBIN$ac_delim
21803 POD2HTML!$POD2HTML$ac_delim
21804 POD2MAN!$POD2MAN$ac_delim
21805 PDFROFF!$PDFROFF$ac_delim
21806 RUNTEST!$RUNTEST$ac_delim
21807 TCLSH!$TCLSH$ac_delim
21809 OCAMLC!$OCAMLC$ac_delim
21810 OCAMLOPT!$OCAMLOPT$ac_delim
21811 OCAMLDEP!$OCAMLDEP$ac_delim
21812 OCAMLDOC!$OCAMLDOC$ac_delim
21814 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21815 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21816 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21817 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21818 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21819 LIBADD_DL!$LIBADD_DL$ac_delim
21820 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21821 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21822 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
21823 USE_UDIS86!$USE_UDIS86$ac_delim
21824 USE_OPROFILE!$USE_OPROFILE$ac_delim
21825 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21826 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21827 MMAP_FILE!$MMAP_FILE$ac_delim
21828 SHLIBEXT!$SHLIBEXT$ac_delim
21829 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21830 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21831 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21832 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21833 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21834 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21835 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21836 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21837 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21838 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21839 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21840 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21841 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21842 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21843 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21844 RPATH!$RPATH$ac_delim
21845 RDYNAMIC!$RDYNAMIC$ac_delim
21846 LIBOBJS!$LIBOBJS$ac_delim
21847 LTLIBOBJS!$LTLIBOBJS$ac_delim
21850 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
21852 elif $ac_last_try; then
21853 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21854 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21855 { (exit 1); exit 1; }; }
21857 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21861 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21862 if test -n "$ac_eof"; then
21863 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21864 ac_eof=`expr $ac_eof + 1`
21867 cat >>$CONFIG_STATUS <<_ACEOF
21868 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21869 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21872 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21873 s/^/s,@/; s/!/@,|#_!!_#|/
21876 s/'"$ac_delim"'$/,g/; t
21878 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21879 ' >>$CONFIG_STATUS <conf$$subs.sed
21880 rm -f conf$$subs.sed
21881 cat >>$CONFIG_STATUS <<_ACEOF
21888 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21889 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21890 # trailing colons and then remove the whole line if VPATH becomes empty
21891 # (actually we leave an empty line to preserve line numbers).
21892 if test "x$srcdir" = x.; then
21893 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21894 s/:*\$(srcdir):*/:/
21895 s/:*\${srcdir}:*/:/
21897 s/^\([^=]*=[ ]*\):*/\1/
21903 cat >>$CONFIG_STATUS <<\_ACEOF
21904 fi # test -n "$CONFIG_FILES"
21907 for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
21910 :[FHLC]) ac_mode=$ac_tag; continue;;
21912 case $ac_mode$ac_tag in
21914 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21915 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21916 { (exit 1); exit 1; }; };;
21917 :[FH]-) ac_tag=-:-;;
21918 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21935 -) ac_f="$tmp/stdin";;
21936 *) # Look for the file first in the build tree, then in the source tree
21937 # (if the path is not absolute). The absolute path cannot be DOS-style,
21938 # because $ac_f cannot contain `:'.
21942 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21944 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21945 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21946 { (exit 1); exit 1; }; };;
21948 ac_file_inputs="$ac_file_inputs $ac_f"
21951 # Let's still pretend it is `configure' which instantiates (i.e., don't
21952 # use $as_me), people would be surprised to read:
21953 # /* config.h. Generated by config.status. */
21954 configure_input="Generated from "`IFS=:
21955 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21956 if test x"$ac_file" != x-; then
21957 configure_input="$ac_file. $configure_input"
21958 { echo "$as_me:$LINENO: creating $ac_file" >&5
21959 echo "$as_me: creating $ac_file" >&6;}
21963 *:-:* | *:-) cat >"$tmp/stdin";;
21968 ac_dir=`$as_dirname -- "$ac_file" ||
21969 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21970 X"$ac_file" : 'X\(//\)[^/]' \| \
21971 X"$ac_file" : 'X\(//\)$' \| \
21972 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21974 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21978 /^X\(\/\/\)[^/].*/{
21993 -*) as_dir=./$as_dir;;
21995 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21999 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22000 *) as_qdir=$as_dir;;
22002 as_dirs="'$as_qdir' $as_dirs"
22003 as_dir=`$as_dirname -- "$as_dir" ||
22004 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22005 X"$as_dir" : 'X\(//\)[^/]' \| \
22006 X"$as_dir" : 'X\(//\)$' \| \
22007 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22009 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22013 /^X\(\/\/\)[^/].*/{
22026 test -d "$as_dir" && break
22028 test -z "$as_dirs" || eval "mkdir $as_dirs"
22029 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22030 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22031 { (exit 1); exit 1; }; }; }
22035 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22037 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22038 # A ".." for each directory in $ac_dir_suffix.
22039 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22040 case $ac_top_builddir_sub in
22041 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22042 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22045 ac_abs_top_builddir=$ac_pwd
22046 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22047 # for backward compatibility:
22048 ac_top_builddir=$ac_top_build_prefix
22051 .) # We are building in place.
22053 ac_top_srcdir=$ac_top_builddir_sub
22054 ac_abs_top_srcdir=$ac_pwd ;;
22055 [\\/]* | ?:[\\/]* ) # Absolute name.
22056 ac_srcdir=$srcdir$ac_dir_suffix;
22057 ac_top_srcdir=$srcdir
22058 ac_abs_top_srcdir=$srcdir ;;
22059 *) # Relative name.
22060 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22061 ac_top_srcdir=$ac_top_build_prefix$srcdir
22062 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22064 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22074 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22075 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22079 cat >>$CONFIG_STATUS <<\_ACEOF
22080 # If the template does not know about datarootdir, expand it.
22081 # FIXME: This hack should be removed a few years after 2.60.
22082 ac_datarootdir_hack=; ac_datarootdir_seen=
22084 case `sed -n '/datarootdir/ {
22093 ' $ac_file_inputs` in
22094 *datarootdir*) ac_datarootdir_seen=yes;;
22095 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22096 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22097 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22099 cat >>$CONFIG_STATUS <<_ACEOF
22100 ac_datarootdir_hack='
22101 s&@datadir@&$datadir&g
22102 s&@docdir@&$docdir&g
22103 s&@infodir@&$infodir&g
22104 s&@localedir@&$localedir&g
22105 s&@mandir@&$mandir&g
22106 s&\\\${datarootdir}&$datarootdir&g' ;;
22110 # Neutralize VPATH when `$srcdir' = `.'.
22111 # Shell code in configure.ac might set extrasub.
22112 # FIXME: do we really want to maintain this feature?
22113 cat >>$CONFIG_STATUS <<_ACEOF
22117 cat >>$CONFIG_STATUS <<\_ACEOF
22119 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22120 s&@configure_input@&$configure_input&;t t
22121 s&@top_builddir@&$ac_top_builddir_sub&;t t
22122 s&@srcdir@&$ac_srcdir&;t t
22123 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22124 s&@top_srcdir@&$ac_top_srcdir&;t t
22125 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22126 s&@builddir@&$ac_builddir&;t t
22127 s&@abs_builddir@&$ac_abs_builddir&;t t
22128 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22129 s&@INSTALL@&$ac_INSTALL&;t t
22130 $ac_datarootdir_hack
22131 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22133 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22134 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22135 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22136 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22137 which seems to be undefined. Please make sure it is defined." >&5
22138 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22139 which seems to be undefined. Please make sure it is defined." >&2;}
22143 -) cat "$tmp/out"; rm -f "$tmp/out";;
22144 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22149 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22150 echo "$as_me: executing $ac_file commands" >&6;}
22155 case $ac_file$ac_mode in
22156 "Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
22157 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22158 "lib/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
22159 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22160 "lib/sample/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname lib/sample/Makefile`
22161 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/sample/Makefile lib/sample/Makefile ;;
22162 "tools/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
22163 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22164 "tools/sample/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname tools/sample/Makefile`
22165 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/sample/Makefile tools/sample/Makefile ;;
22171 { (exit 0); exit 0; }
22173 chmod +x $CONFIG_STATUS
22174 ac_clean_files=$ac_clean_files_save
22177 # configure is writing to config.log, and then calls config.status.
22178 # config.status does its own redirection, appending to config.log.
22179 # Unfortunately, on DOS this fails, as config.log is still kept open
22180 # by configure, so config.status won't be able to write to it; its
22181 # output is simply discarded. So we exec the FD to /dev/null,
22182 # effectively closing config.log, so it can be properly (re)opened and
22183 # appended to by config.status. When coming back to configure, we
22184 # need to make the FD available again.
22185 if test "$no_create" != yes; then
22187 ac_config_status_args=
22188 test "$silent" = yes &&
22189 ac_config_status_args="$ac_config_status_args --quiet"
22191 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22193 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22194 # would make configure fail if this is the last instruction.
22195 $ac_cs_success || { (exit 1); exit 1; }
22199 # CONFIG_SUBDIRS section.
22201 if test "$no_recursion" != yes; then
22203 # Remove --cache-file and --srcdir arguments so they do not pile up.
22204 ac_sub_configure_args=
22206 eval "set x $ac_configure_args"
22210 if test -n "$ac_prev"; then
22215 -cache-file | --cache-file | --cache-fil | --cache-fi \
22216 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22217 ac_prev=cache_file ;;
22218 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22219 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22222 --config-cache | -C)
22224 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22226 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22228 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22230 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22234 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22236 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22240 # Always prepend --prefix to ensure using the same prefix
22241 # in subdir configurations.
22242 ac_arg="--prefix=$prefix"
22244 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22246 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22249 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22251 # Do not complain, so a configure script can configure whichever
22252 # parts of a large source tree are present.
22253 test -d "$srcdir/$ac_dir" || continue
22255 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22256 echo "$as_me:$LINENO: $ac_msg" >&5
22260 -*) as_dir=./$as_dir;;
22262 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22266 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22267 *) as_qdir=$as_dir;;
22269 as_dirs="'$as_qdir' $as_dirs"
22270 as_dir=`$as_dirname -- "$as_dir" ||
22271 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22272 X"$as_dir" : 'X\(//\)[^/]' \| \
22273 X"$as_dir" : 'X\(//\)$' \| \
22274 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22280 /^X\(\/\/\)[^/].*/{
22293 test -d "$as_dir" && break
22295 test -z "$as_dirs" || eval "mkdir $as_dirs"
22296 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22297 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22298 { (exit 1); exit 1; }; }; }
22302 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22304 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22305 # A ".." for each directory in $ac_dir_suffix.
22306 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22307 case $ac_top_builddir_sub in
22308 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22309 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22312 ac_abs_top_builddir=$ac_pwd
22313 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22314 # for backward compatibility:
22315 ac_top_builddir=$ac_top_build_prefix
22318 .) # We are building in place.
22320 ac_top_srcdir=$ac_top_builddir_sub
22321 ac_abs_top_srcdir=$ac_pwd ;;
22322 [\\/]* | ?:[\\/]* ) # Absolute name.
22323 ac_srcdir=$srcdir$ac_dir_suffix;
22324 ac_top_srcdir=$srcdir
22325 ac_abs_top_srcdir=$srcdir ;;
22326 *) # Relative name.
22327 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22328 ac_top_srcdir=$ac_top_build_prefix$srcdir
22329 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22331 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22336 # Check for guested configure; otherwise get Cygnus style configure.
22337 if test -f "$ac_srcdir/configure.gnu"; then
22338 ac_sub_configure=$ac_srcdir/configure.gnu
22339 elif test -f "$ac_srcdir/configure"; then
22340 ac_sub_configure=$ac_srcdir/configure
22341 elif test -f "$ac_srcdir/configure.in"; then
22342 # This should be Cygnus configure.
22343 ac_sub_configure=$ac_aux_dir/configure
22345 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22346 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22350 # The recursion is here.
22351 if test -n "$ac_sub_configure"; then
22352 # Make the cache file name correct relative to the subdirectory.
22353 case $cache_file in
22354 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22355 *) # Relative name.
22356 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22359 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22360 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22361 # The eval makes quoting arguments work.
22362 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22363 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22364 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22365 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22366 { (exit 1); exit 1; }; }