2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for [SAMPLE] [x.xx].
5 # Report bugs to <bugs@yourdomain>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
24 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
26 BIN_SH=xpg4; export BIN_SH # for Tru64
27 DUALCASE=1; export DUALCASE # for MKS sh
31 # Avoid depending upon Character Ranges.
32 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35 as_cr_digits='0123456789'
36 as_cr_alnum=$as_cr_Letters$as_cr_digits
38 # The user is always right.
39 if test "${PATH_SEPARATOR+set}" != set; then
40 echo "#! /bin/sh" >conf$$.sh
41 echo "exit 0" >>conf$$.sh
43 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
51 # Support unset when possible.
52 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
60 # We need space, tab and new line, in precisely that order. Quoting is
61 # there to prevent editors from complaining about space-tab.
62 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
63 # splitting by setting IFS to empty value.)
68 # Find who we are. Look in the path if we contain no directory separator.
70 *[\\/]* ) as_myself=$0 ;;
71 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
75 test -z "$as_dir" && as_dir=.
76 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82 # We did not find ourselves, most probably we were run as `sh COMMAND'
83 # in which case we are not to be found in the path.
84 if test "x$as_myself" = x; then
87 if test ! -f "$as_myself"; then
88 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
92 # Work around bugs in pre-3.0 UWIN ksh.
93 for as_var in ENV MAIL MAILPATH
94 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
102 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
103 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
107 eval $as_var=C; export $as_var
109 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 # Required to use basename.
114 if expr a : '\(a\)' >/dev/null 2>&1 &&
115 test "X`expr 00001 : '.*\(...\)'`" = X001; then
121 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
128 # Name of the executable.
129 as_me=`$as_basename -- "$0" ||
130 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
131 X"$0" : 'X\(//\)$' \| \
132 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
134 sed '/^.*\/\([^/][^/]*\)\/*$/{
152 if test "x$CONFIG_SHELL" = x; then
153 if (eval ":") 2>/dev/null; then
159 if test $as_have_required = yes && (eval ":
169 as_func_ret_success () {
172 as_func_ret_failure () {
177 if as_func_success; then
181 echo as_func_success failed.
184 if as_func_failure; then
186 echo as_func_failure succeeded.
189 if as_func_ret_success; then
193 echo as_func_ret_success failed.
196 if as_func_ret_failure; then
198 echo as_func_ret_failure succeeded.
201 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 echo positional parameters were not saved.
208 test \$exitcode = 0) || { (exit 1); exit 1; }
213 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
214 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
215 ") 2> /dev/null; then
219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
226 for as_base in sh bash ksh sh5; do
227 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
234 for as_shell in $as_candidate_shells $SHELL; do
235 # Try only shells that exist, to save several forks.
236 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
237 { ("$as_shell") 2> /dev/null <<\_ASEOF
238 # Be Bourne compatible
239 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
243 # is contrary to our usage. Disable this feature.
244 alias -g '${1+"$@"}'='"$@"'
247 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
249 BIN_SH=xpg4; export BIN_SH # for Tru64
250 DUALCASE=1; export DUALCASE # for MKS sh
255 CONFIG_SHELL=$as_shell
257 if { "$as_shell" 2> /dev/null <<\_ASEOF
258 # Be Bourne compatible
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
269 BIN_SH=xpg4; export BIN_SH # for Tru64
270 DUALCASE=1; export DUALCASE # for MKS sh
282 as_func_ret_success () {
285 as_func_ret_failure () {
290 if as_func_success; then
294 echo as_func_success failed.
297 if as_func_failure; then
299 echo as_func_failure succeeded.
302 if as_func_ret_success; then
306 echo as_func_ret_success failed.
309 if as_func_ret_failure; then
311 echo as_func_ret_failure succeeded.
314 if ( set x; as_func_ret_success y && test x = "$1" ); then
318 echo positional parameters were not saved.
321 test $exitcode = 0) || { (exit 1); exit 1; }
326 test "x$as_lineno_1" != "x$as_lineno_2" &&
327 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
338 if test "x$CONFIG_SHELL" != x; then
339 for as_var in BASH_ENV ENV
340 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
347 if test $as_have_required = no; then
348 echo This script requires a shell more modern than all the
349 echo shells that I found on your system. Please install a
350 echo modern shell, or manually run the script under such a
351 echo shell if you do have one.
352 { (exit 1); exit 1; }
362 (eval "as_func_return () {
371 as_func_ret_success () {
374 as_func_ret_failure () {
379 if as_func_success; then
383 echo as_func_success failed.
386 if as_func_failure; then
388 echo as_func_failure succeeded.
391 if as_func_ret_success; then
395 echo as_func_ret_success failed.
398 if as_func_ret_failure; then
400 echo as_func_ret_failure succeeded.
403 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
407 echo positional parameters were not saved.
410 test \$exitcode = 0") || {
411 echo No shell found that supports shell functions.
412 echo Please tell autoconf@gnu.org about your system,
413 echo including any error possibly output before this
421 test "x$as_lineno_1" != "x$as_lineno_2" &&
422 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
424 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
425 # uniformly replaced by the line number. The first 'sed' inserts a
426 # line-number line after each line using $LINENO; the second 'sed'
427 # does the real work. The second script uses 'N' to pair each
428 # line-number line with the line containing $LINENO, and appends
429 # trailing '-' during substitution so that $LINENO is not a special
431 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
432 # scripts with optimization help from Paolo Bonzini. Blame Lee
433 # E. McMahon (1931-1989) for sed's syntax. :-)
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 chmod +x "$as_me.lineno" ||
450 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
451 { (exit 1); exit 1; }; }
453 # Don't try to exec as it changes $[0], causing all sort of problems
454 # (the dirname of $[0] is not the place where we might find the
455 # original and so on. Autoconf is especially sensitive to this).
457 # Exit status is that of the last command.
462 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
468 ECHO_C= ECHO_N= ECHO_T=
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 if expr a : '\(a\)' >/dev/null 2>&1 &&
480 test "X`expr 00001 : '.*\(...\)'`" = X001; then
486 rm -f conf$$ conf$$.exe conf$$.file
487 if test -d conf$$.dir; then
488 rm -f conf$$.dir/conf$$.file
494 if ln -s conf$$.file conf$$ 2>/dev/null; then
496 # ... but there are two gotchas:
497 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
498 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
499 # In both cases, we have to default to `cp -p'.
500 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
502 elif ln conf$$.file conf$$ 2>/dev/null; then
507 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508 rmdir conf$$.dir 2>/dev/null
510 if mkdir -p . 2>/dev/null; then
513 test -d ./-p && rmdir ./-p
517 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
518 # systems may use methods other than mode bits to determine executability.
519 cat >conf$$.file <<_ASEOF
524 if test -x conf$$.file >/dev/null 2>&1; then
525 as_executable_p="test -x"
531 # Sed expression to map a string onto a valid CPP name.
532 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
534 # Sed expression to map a string onto a valid variable name.
535 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539 exec 7<&0 </dev/null 6>&1
542 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
543 # so uname gets run too.
544 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
549 ac_default_prefix=/usr/local
551 ac_config_libobj_dir=.
557 SHELL=${CONFIG_SHELL-/bin/sh}
559 # Identity of this package.
560 PACKAGE_NAME='[SAMPLE]'
561 PACKAGE_TARNAME='--sample--'
562 PACKAGE_VERSION='[x.xx]'
563 PACKAGE_STRING='[SAMPLE] [x.xx]'
564 PACKAGE_BUGREPORT='bugs@yourdomain'
566 ac_unique_file=""Makefile.common.in""
567 # Factoring default headers for most tests.
568 ac_includes_default="\
571 # include <sys/types.h>
574 # include <sys/stat.h>
585 # if !STDC_HEADERS && HAVE_MEMORY_H
591 # include <strings.h>
594 # include <inttypes.h>
612 program_transform_name
691 ENABLE_EXPENSIVE_CHECKS
708 LLVM_ENUM_ASM_PRINTERS
709 LLVM_ENUM_ASM_PARSERS
710 LLVM_ENUM_DISASSEMBLERS
758 HAVE_LINK_VERSION_SCRIPT
761 CONVENIENCE_LTDL_TRUE
762 CONVENIENCE_LTDL_FALSE
765 NO_MISSING_FIELD_INITIALIZERS
766 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-libcpp Use libc++ if available (default is NO)
1380 --enable-cxx11 Use c++11 if available (default is NO)
1381 --enable-optimized Compile with optimizations enabled (default is NO)
1382 --enable-profiling Compile with profiling enabled (default is NO)
1383 --enable-assertions Compile with assertion checks enabled (default is
1385 --enable-werror Compile with -Werror enabled (default is NO)
1386 --enable-expensive-checks
1387 Compile with expensive debug checks enabled (default
1389 --enable-debug-runtime Build runtime libs with debug symbols (default is
1391 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1392 optimization is on and YES if it's off)
1393 --enable-jit Enable Just In Time Compiling (default is YES)
1394 --enable-docs Build documents (default is YES)
1395 --enable-doxygen Build doxygen documentation (default is NO)
1396 --enable-threads Use threads if available (default is YES)
1397 --enable-pthreads Use pthreads if available (default is YES)
1398 --enable-zlib Use zlib for compression/decompression if available
1400 --enable-pic Build LLVM with Position Independent Code (default
1402 --enable-shared Build a shared library and link tools against it
1404 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1405 Win32 DLL (default is YES)
1406 --enable-timestamps Enable embedding timestamp information in build
1408 --enable-targets Build specific host targets: all or
1409 target1,target2,... Valid targets are: host, x86,
1410 x86_64, sparc, powerpc, arm, aarch64, mips, hexagon,
1411 xcore, msp430, nvptx, systemz, r600, and cpp
1413 --enable-bindings Build specific language bindings:
1414 all,auto,none,{binding-name} (default=auto)
1415 --enable-terminfo Query the terminfo database if available (default is
1417 --enable-libffi Check for the presence of libffi (default is NO)
1418 --enable-ltdl-install install libltdl
1421 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1422 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1423 --with-llvmsrc Location of LLVM Source Code
1424 --with-llvmobj Location of LLVM Object Code
1425 --with-optimize-option Select the compiler options to use for optimized
1427 --with-extra-options Specify additional options to compile LLVM with
1428 --with-extra-ld-options Specify additional options to link LLVM with
1429 --with-ocaml-libdir Specify install location for ocaml bindings (default
1431 --with-clang-resource-dir
1432 Relative directory from the Clang binary for
1434 --with-c-include-dirs Colon separated list of directories clang will
1436 --with-gcc-toolchain Directory where gcc is installed.
1437 --with-binutils-include Specify path to binutils/include/ containing
1438 plugin-api.h file for gold plugin.
1439 --with-bug-report-url Specify the URL where bug reports should be
1440 submitted (default=http://llvm.org/bugs/)
1441 --with-tclinclude directory where tcl headers are
1442 --with-udis86=<path> Use udis86 external x86 disassembler library
1443 --with-oprofile=<prefix>
1444 Tell OProfile >= 0.9.4 how to symbolize JIT output
1446 Some influential environment variables:
1447 CC C compiler command
1448 CFLAGS C compiler flags
1449 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1450 nonstandard directory <lib dir>
1451 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1452 you have headers in a nonstandard directory <include dir>
1453 CXX C++ compiler command
1454 CXXFLAGS C++ compiler flags
1457 Use these variables to override the choices made by `configure' or to help
1458 it to find libraries and programs with nonstandard names/locations.
1460 Report bugs to <bugs@yourdomain>.
1465 if test "$ac_init_help" = "recursive"; then
1466 # If there are subdirs, report their specific --help.
1467 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1468 test -d "$ac_dir" || continue
1472 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1474 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1475 # A ".." for each directory in $ac_dir_suffix.
1476 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1477 case $ac_top_builddir_sub in
1478 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1479 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1482 ac_abs_top_builddir=$ac_pwd
1483 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1484 # for backward compatibility:
1485 ac_top_builddir=$ac_top_build_prefix
1488 .) # We are building in place.
1490 ac_top_srcdir=$ac_top_builddir_sub
1491 ac_abs_top_srcdir=$ac_pwd ;;
1492 [\\/]* | ?:[\\/]* ) # Absolute name.
1493 ac_srcdir=$srcdir$ac_dir_suffix;
1494 ac_top_srcdir=$srcdir
1495 ac_abs_top_srcdir=$srcdir ;;
1497 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1498 ac_top_srcdir=$ac_top_build_prefix$srcdir
1499 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1501 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1503 cd "$ac_dir" || { ac_status=$?; continue; }
1504 # Check for guested configure.
1505 if test -f "$ac_srcdir/configure.gnu"; then
1507 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1508 elif test -f "$ac_srcdir/configure"; then
1510 $SHELL "$ac_srcdir/configure" --help=recursive
1512 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1514 cd "$ac_pwd" || { ac_status=$?; break; }
1518 test -n "$ac_init_help" && exit $ac_status
1519 if $ac_init_version; then
1521 [SAMPLE] configure [x.xx]
1522 generated by GNU Autoconf 2.60
1524 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1525 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1526 This configure script is free software; the Free Software Foundation
1527 gives unlimited permission to copy, distribute and modify it.
1531 cat >config.log <<_ACEOF
1532 This file contains any messages produced by compilers while
1533 running configure, to aid debugging if configure makes a mistake.
1535 It was created by [SAMPLE] $as_me [x.xx], which was
1536 generated by GNU Autoconf 2.60. Invocation command line was
1548 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1549 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1550 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1551 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1552 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1554 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1555 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1557 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1558 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1559 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1560 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1561 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1562 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1563 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1571 test -z "$as_dir" && as_dir=.
1572 echo "PATH: $as_dir"
1588 # Keep a trace of the command line.
1589 # Strip out --no-create and --no-recursion so they do not pile up.
1590 # Strip out --silent because we don't want to record it for future runs.
1591 # Also quote any args containing shell meta-characters.
1592 # Make two passes to allow for proper duplicate-argument suppression.
1596 ac_must_keep_next=false
1602 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1603 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1604 | -silent | --silent | --silen | --sile | --sil)
1607 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1610 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1612 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1613 if test $ac_must_keep_next = true; then
1614 ac_must_keep_next=false # Got value, back to normal.
1617 *=* | --config-cache | -C | -disable-* | --disable-* \
1618 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1619 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1620 | -with-* | --with-* | -without-* | --without-* | --x)
1621 case "$ac_configure_args0 " in
1622 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1625 -* ) ac_must_keep_next=true ;;
1628 ac_configure_args="$ac_configure_args '$ac_arg'"
1633 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1634 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1636 # When interrupted or exit'd, cleanup temporary files, and complete
1637 # config.log. We remove comments because anyway the quotes in there
1638 # would cause problems or look ugly.
1639 # WARNING: Use '\'' to represent an apostrophe within the trap.
1640 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1641 trap 'exit_status=$?
1642 # Save into config.log some information that might help in debugging.
1647 ## ---------------- ##
1648 ## Cache variables. ##
1649 ## ---------------- ##
1652 # The following way of writing the cache mishandles newlines in values,
1654 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1655 eval ac_val=\$$ac_var
1659 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1660 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1663 _ | IFS | as_nl) ;; #(
1664 *) $as_unset $ac_var ;;
1669 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1670 *${as_nl}ac_space=\ *)
1672 "s/'\''/'\''\\\\'\'''\''/g;
1673 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1676 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1684 ## ----------------- ##
1685 ## Output variables. ##
1686 ## ----------------- ##
1689 for ac_var in $ac_subst_vars
1691 eval ac_val=\$$ac_var
1693 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1695 echo "$ac_var='\''$ac_val'\''"
1699 if test -n "$ac_subst_files"; then
1701 ## ------------------- ##
1702 ## File substitutions. ##
1703 ## ------------------- ##
1706 for ac_var in $ac_subst_files
1708 eval ac_val=\$$ac_var
1710 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1712 echo "$ac_var='\''$ac_val'\''"
1717 if test -s confdefs.h; then
1727 test "$ac_signal" != 0 &&
1728 echo "$as_me: caught signal $ac_signal"
1729 echo "$as_me: exit $exit_status"
1731 rm -f core *.core core.conftest.* &&
1732 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1735 for ac_signal in 1 2 13 15; do
1736 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1740 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1741 rm -f -r conftest* confdefs.h
1743 # Predefined preprocessor variables.
1745 cat >>confdefs.h <<_ACEOF
1746 #define PACKAGE_NAME "$PACKAGE_NAME"
1750 cat >>confdefs.h <<_ACEOF
1751 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1755 cat >>confdefs.h <<_ACEOF
1756 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1760 cat >>confdefs.h <<_ACEOF
1761 #define PACKAGE_STRING "$PACKAGE_STRING"
1765 cat >>confdefs.h <<_ACEOF
1766 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1770 # Let the site file select an alternate cache file if it wants to.
1771 # Prefer explicitly selected file to automatically selected ones.
1772 if test -n "$CONFIG_SITE"; then
1773 set x "$CONFIG_SITE"
1774 elif test "x$prefix" != xNONE; then
1775 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1777 set x "$ac_default_prefix/share/config.site" \
1778 "$ac_default_prefix/etc/config.site"
1783 if test -r "$ac_site_file"; then
1784 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1785 echo "$as_me: loading site script $ac_site_file" >&6;}
1786 sed 's/^/| /' "$ac_site_file" >&5
1791 if test -r "$cache_file"; then
1792 # Some versions of bash will fail to source /dev/null (special
1793 # files actually), so we avoid doing that.
1794 if test -f "$cache_file"; then
1795 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1796 echo "$as_me: loading cache $cache_file" >&6;}
1798 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1799 *) . "./$cache_file";;
1803 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1804 echo "$as_me: creating cache $cache_file" >&6;}
1808 # Check that the precious variables saved in the cache have kept the same
1810 ac_cache_corrupted=false
1811 for ac_var in $ac_precious_vars; do
1812 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1813 eval ac_new_set=\$ac_env_${ac_var}_set
1814 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1815 eval ac_new_val=\$ac_env_${ac_var}_value
1816 case $ac_old_set,$ac_new_set in
1818 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1819 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1820 ac_cache_corrupted=: ;;
1822 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1823 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1824 ac_cache_corrupted=: ;;
1827 if test "x$ac_old_val" != "x$ac_new_val"; then
1828 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1829 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1830 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1831 echo "$as_me: former value: $ac_old_val" >&2;}
1832 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1833 echo "$as_me: current value: $ac_new_val" >&2;}
1834 ac_cache_corrupted=:
1837 # Pass precious variables to config.status.
1838 if test "$ac_new_set" = set; then
1840 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1841 *) ac_arg=$ac_var=$ac_new_val ;;
1843 case " $ac_configure_args " in
1844 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1845 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1849 if $ac_cache_corrupted; then
1850 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1851 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1852 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1853 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1854 { (exit 1); exit 1; }; }
1882 ac_cpp='$CPP $CPPFLAGS'
1883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1889 LLVM_SRC_ROOT="../.."
1890 LLVM_OBJ_ROOT="../.."
1892 LLVM_ABS_SRC_ROOT="`cd $srcdir ; cd $LLVM_SRC_ROOT ; pwd`"
1893 LLVM_ABS_OBJ_ROOT="`cd $LLVM_OBJ_ROOT ; pwd`"
1896 # Check whether --with-llvmsrc was given.
1897 if test "${with_llvmsrc+set}" = set; then
1898 withval=$with_llvmsrc; llvm_src="$withval"
1900 llvm_src="$LLVM_ABS_SRC_ROOT"
1906 # Check whether --with-llvmobj was given.
1907 if test "${with_llvmobj+set}" = set; then
1908 withval=$with_llvmobj; llvm_obj="$withval"
1910 llvm_obj="$LLVM_ABS_OBJ_ROOT"
1915 ac_config_commands="$ac_config_commands setup"
1919 { echo "$as_me:$LINENO: checking llvm-config" >&5
1920 echo $ECHO_N "checking llvm-config... $ECHO_C" >&6; }
1921 llvm_config_path="`ls -1 $llvm_obj/*/bin/llvm-config 2> /dev/null | head -1`"
1922 if ! test -f "$llvm_config_path" ; then
1923 llvm_config_path="no"
1925 { echo "$as_me:$LINENO: result: $llvm_config_path" >&5
1926 echo "${ECHO_T}$llvm_config_path" >&6; }
1928 { echo "$as_me:$LINENO: checking LLVM package version" >&5
1929 echo $ECHO_N "checking LLVM package version... $ECHO_C" >&6; }
1930 if test "$llvm_config_path" != no ; then
1931 llvm_package_version=`$llvm_config_path --version`
1933 llvm_package_version="unknown";
1935 { echo "$as_me:$LINENO: result: $llvm_package_version" >&5
1936 echo "${ECHO_T}$llvm_package_version" >&6; }
1937 LLVM_VERSION=$llvm_package_version
1943 for ac_dir in autoconf "$srcdir"/autoconf; do
1944 if test -f "$ac_dir/install-sh"; then
1946 ac_install_sh="$ac_aux_dir/install-sh -c"
1948 elif test -f "$ac_dir/install.sh"; then
1950 ac_install_sh="$ac_aux_dir/install.sh -c"
1952 elif test -f "$ac_dir/shtool"; then
1954 ac_install_sh="$ac_aux_dir/shtool install -c"
1958 if test -z "$ac_aux_dir"; then
1959 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1960 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1961 { (exit 1); exit 1; }; }
1964 # These three variables are undocumented and unsupported,
1965 # and are intended to be withdrawn in a future Autoconf release.
1966 # They can cause serious problems if a builder's source tree is in a directory
1967 # whose full name contains unusual characters.
1968 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1969 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1970 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1976 ac_cpp='$CPP $CPPFLAGS'
1977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1980 if test -n "$ac_tool_prefix"; then
1981 for ac_prog in clang llvm-gcc gcc
1983 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1984 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1985 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1987 if test "${ac_cv_prog_CC+set}" = set; then
1988 echo $ECHO_N "(cached) $ECHO_C" >&6
1990 if test -n "$CC"; then
1991 ac_cv_prog_CC="$CC" # Let the user override the test.
1993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1997 test -z "$as_dir" && as_dir=.
1998 for ac_exec_ext in '' $ac_executable_extensions; do
1999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2000 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2011 if test -n "$CC"; then
2012 { echo "$as_me:$LINENO: result: $CC" >&5
2013 echo "${ECHO_T}$CC" >&6; }
2015 { echo "$as_me:$LINENO: result: no" >&5
2016 echo "${ECHO_T}no" >&6; }
2020 test -n "$CC" && break
2023 if test -z "$CC"; then
2025 for ac_prog in clang llvm-gcc gcc
2027 # Extract the first word of "$ac_prog", so it can be a program name with args.
2028 set dummy $ac_prog; ac_word=$2
2029 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2031 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2032 echo $ECHO_N "(cached) $ECHO_C" >&6
2034 if test -n "$ac_ct_CC"; then
2035 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2041 test -z "$as_dir" && as_dir=.
2042 for ac_exec_ext in '' $ac_executable_extensions; do
2043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2044 ac_cv_prog_ac_ct_CC="$ac_prog"
2045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2054 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2055 if test -n "$ac_ct_CC"; then
2056 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2057 echo "${ECHO_T}$ac_ct_CC" >&6; }
2059 { echo "$as_me:$LINENO: result: no" >&5
2060 echo "${ECHO_T}no" >&6; }
2064 test -n "$ac_ct_CC" && break
2067 if test "x$ac_ct_CC" = x; then
2070 case $cross_compiling:$ac_tool_warned in
2072 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2073 whose name does not start with the host triplet. If you think this
2074 configuration is useful to you, please write to autoconf@gnu.org." >&5
2075 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2076 whose name does not start with the host triplet. If you think this
2077 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2078 ac_tool_warned=yes ;;
2085 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2086 See \`config.log' for more details." >&5
2087 echo "$as_me: error: no acceptable C compiler found in \$PATH
2088 See \`config.log' for more details." >&2;}
2089 { (exit 1); exit 1; }; }
2091 # Provide some information about the compiler.
2092 echo "$as_me:$LINENO: checking for C compiler version" >&5
2093 ac_compiler=`set X $ac_compile; echo $2`
2094 { (ac_try="$ac_compiler --version >&5"
2096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2097 *) ac_try_echo=$ac_try;;
2099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2100 (eval "$ac_compiler --version >&5") 2>&5
2102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2103 (exit $ac_status); }
2104 { (ac_try="$ac_compiler -v >&5"
2106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2107 *) ac_try_echo=$ac_try;;
2109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2110 (eval "$ac_compiler -v >&5") 2>&5
2112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2113 (exit $ac_status); }
2114 { (ac_try="$ac_compiler -V >&5"
2116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2117 *) ac_try_echo=$ac_try;;
2119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2120 (eval "$ac_compiler -V >&5") 2>&5
2122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2123 (exit $ac_status); }
2125 cat >conftest.$ac_ext <<_ACEOF
2128 cat confdefs.h >>conftest.$ac_ext
2129 cat >>conftest.$ac_ext <<_ACEOF
2130 /* end confdefs.h. */
2140 ac_clean_files_save=$ac_clean_files
2141 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2142 # Try to create an executable without -o first, disregard a.out.
2143 # It will help us diagnose broken compilers, and finding out an intuition
2145 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2146 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2147 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2149 # List of possible output files, starting from the most likely.
2150 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2151 # only as a last resort. b.out is created by i960 compilers.
2152 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2154 # The IRIX 6 linker writes into existing files which may not be
2155 # executable, retaining their permissions. Remove them first so a
2156 # subsequent execution test works.
2158 for ac_file in $ac_files
2161 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2162 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2167 if { (ac_try="$ac_link_default"
2169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2170 *) ac_try_echo=$ac_try;;
2172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2173 (eval "$ac_link_default") 2>&5
2175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176 (exit $ac_status); }; then
2177 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2178 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2179 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2180 # so that the user can short-circuit this test for compilers unknown to
2182 for ac_file in $ac_files
2184 test -f "$ac_file" || continue
2186 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2189 # We found the default executable, but exeext='' is most
2193 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2195 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2197 # We set ac_cv_exeext here because the later test for it is not
2198 # safe: cross compilers may not add the suffix if given an `-o'
2199 # argument, so we may need to know it at that point already.
2200 # Even if this section looks crufty: it has the advantage of
2207 test "$ac_cv_exeext" = no && ac_cv_exeext=
2210 echo "$as_me: failed program was:" >&5
2211 sed 's/^/| /' conftest.$ac_ext >&5
2213 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2214 See \`config.log' for more details." >&5
2215 echo "$as_me: error: C compiler cannot create executables
2216 See \`config.log' for more details." >&2;}
2217 { (exit 77); exit 77; }; }
2220 ac_exeext=$ac_cv_exeext
2221 { echo "$as_me:$LINENO: result: $ac_file" >&5
2222 echo "${ECHO_T}$ac_file" >&6; }
2224 # Check that the compiler produces executables we can run. If not, either
2225 # the compiler is broken, or we cross compile.
2226 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2227 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2228 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2229 # If not cross compiling, check that we can run a simple program.
2230 if test "$cross_compiling" != yes; then
2231 if { ac_try='./$ac_file'
2232 { (case "(($ac_try" in
2233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2234 *) ac_try_echo=$ac_try;;
2236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2237 (eval "$ac_try") 2>&5
2239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240 (exit $ac_status); }; }; then
2243 if test "$cross_compiling" = maybe; then
2246 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2247 If you meant to cross compile, use \`--host'.
2248 See \`config.log' for more details." >&5
2249 echo "$as_me: error: cannot run C compiled programs.
2250 If you meant to cross compile, use \`--host'.
2251 See \`config.log' for more details." >&2;}
2252 { (exit 1); exit 1; }; }
2256 { echo "$as_me:$LINENO: result: yes" >&5
2257 echo "${ECHO_T}yes" >&6; }
2259 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2260 ac_clean_files=$ac_clean_files_save
2261 # Check that the compiler produces executables we can run. If not, either
2262 # the compiler is broken, or we cross compile.
2263 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2264 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2265 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2266 echo "${ECHO_T}$cross_compiling" >&6; }
2268 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2269 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2270 if { (ac_try="$ac_link"
2272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2273 *) ac_try_echo=$ac_try;;
2275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2276 (eval "$ac_link") 2>&5
2278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279 (exit $ac_status); }; then
2280 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2281 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2282 # work properly (i.e., refer to `conftest.exe'), while it won't with
2284 for ac_file in conftest.exe conftest conftest.*; do
2285 test -f "$ac_file" || continue
2287 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2288 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2294 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2295 See \`config.log' for more details." >&5
2296 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2297 See \`config.log' for more details." >&2;}
2298 { (exit 1); exit 1; }; }
2301 rm -f conftest$ac_cv_exeext
2302 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2303 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2305 rm -f conftest.$ac_ext
2306 EXEEXT=$ac_cv_exeext
2308 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2309 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2310 if test "${ac_cv_objext+set}" = set; then
2311 echo $ECHO_N "(cached) $ECHO_C" >&6
2313 cat >conftest.$ac_ext <<_ACEOF
2316 cat confdefs.h >>conftest.$ac_ext
2317 cat >>conftest.$ac_ext <<_ACEOF
2318 /* end confdefs.h. */
2328 rm -f conftest.o conftest.obj
2329 if { (ac_try="$ac_compile"
2331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2332 *) ac_try_echo=$ac_try;;
2334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2335 (eval "$ac_compile") 2>&5
2337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338 (exit $ac_status); }; then
2339 for ac_file in conftest.o conftest.obj conftest.*; do
2340 test -f "$ac_file" || continue;
2342 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2343 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2348 echo "$as_me: failed program was:" >&5
2349 sed 's/^/| /' conftest.$ac_ext >&5
2351 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2352 See \`config.log' for more details." >&5
2353 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2354 See \`config.log' for more details." >&2;}
2355 { (exit 1); exit 1; }; }
2358 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2360 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2361 echo "${ECHO_T}$ac_cv_objext" >&6; }
2362 OBJEXT=$ac_cv_objext
2364 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2365 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2366 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2367 echo $ECHO_N "(cached) $ECHO_C" >&6
2369 cat >conftest.$ac_ext <<_ACEOF
2372 cat confdefs.h >>conftest.$ac_ext
2373 cat >>conftest.$ac_ext <<_ACEOF
2374 /* end confdefs.h. */
2387 rm -f conftest.$ac_objext
2388 if { (ac_try="$ac_compile"
2390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2391 *) ac_try_echo=$ac_try;;
2393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2394 (eval "$ac_compile") 2>conftest.er1
2396 grep -v '^ *+' conftest.er1 >conftest.err
2398 cat conftest.err >&5
2399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400 (exit $ac_status); } &&
2401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2402 { (case "(($ac_try" in
2403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2404 *) ac_try_echo=$ac_try;;
2406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2407 (eval "$ac_try") 2>&5
2409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410 (exit $ac_status); }; } &&
2411 { ac_try='test -s conftest.$ac_objext'
2412 { (case "(($ac_try" in
2413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2414 *) ac_try_echo=$ac_try;;
2416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2417 (eval "$ac_try") 2>&5
2419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420 (exit $ac_status); }; }; then
2423 echo "$as_me: failed program was:" >&5
2424 sed 's/^/| /' conftest.$ac_ext >&5
2429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2430 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2433 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2434 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2435 GCC=`test $ac_compiler_gnu = yes && echo yes`
2436 ac_test_CFLAGS=${CFLAGS+set}
2437 ac_save_CFLAGS=$CFLAGS
2438 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2439 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2440 if test "${ac_cv_prog_cc_g+set}" = set; then
2441 echo $ECHO_N "(cached) $ECHO_C" >&6
2443 ac_save_c_werror_flag=$ac_c_werror_flag
2444 ac_c_werror_flag=yes
2447 cat >conftest.$ac_ext <<_ACEOF
2450 cat confdefs.h >>conftest.$ac_ext
2451 cat >>conftest.$ac_ext <<_ACEOF
2452 /* end confdefs.h. */
2462 rm -f conftest.$ac_objext
2463 if { (ac_try="$ac_compile"
2465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2466 *) ac_try_echo=$ac_try;;
2468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2469 (eval "$ac_compile") 2>conftest.er1
2471 grep -v '^ *+' conftest.er1 >conftest.err
2473 cat conftest.err >&5
2474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475 (exit $ac_status); } &&
2476 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2477 { (case "(($ac_try" in
2478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2479 *) ac_try_echo=$ac_try;;
2481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2482 (eval "$ac_try") 2>&5
2484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485 (exit $ac_status); }; } &&
2486 { ac_try='test -s conftest.$ac_objext'
2487 { (case "(($ac_try" in
2488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2489 *) ac_try_echo=$ac_try;;
2491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2492 (eval "$ac_try") 2>&5
2494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495 (exit $ac_status); }; }; then
2498 echo "$as_me: failed program was:" >&5
2499 sed 's/^/| /' conftest.$ac_ext >&5
2502 cat >conftest.$ac_ext <<_ACEOF
2505 cat confdefs.h >>conftest.$ac_ext
2506 cat >>conftest.$ac_ext <<_ACEOF
2507 /* end confdefs.h. */
2517 rm -f conftest.$ac_objext
2518 if { (ac_try="$ac_compile"
2520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2521 *) ac_try_echo=$ac_try;;
2523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2524 (eval "$ac_compile") 2>conftest.er1
2526 grep -v '^ *+' conftest.er1 >conftest.err
2528 cat conftest.err >&5
2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530 (exit $ac_status); } &&
2531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2532 { (case "(($ac_try" in
2533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2534 *) ac_try_echo=$ac_try;;
2536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2537 (eval "$ac_try") 2>&5
2539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540 (exit $ac_status); }; } &&
2541 { ac_try='test -s conftest.$ac_objext'
2542 { (case "(($ac_try" in
2543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2544 *) ac_try_echo=$ac_try;;
2546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2547 (eval "$ac_try") 2>&5
2549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550 (exit $ac_status); }; }; then
2553 echo "$as_me: failed program was:" >&5
2554 sed 's/^/| /' conftest.$ac_ext >&5
2556 ac_c_werror_flag=$ac_save_c_werror_flag
2558 cat >conftest.$ac_ext <<_ACEOF
2561 cat confdefs.h >>conftest.$ac_ext
2562 cat >>conftest.$ac_ext <<_ACEOF
2563 /* end confdefs.h. */
2573 rm -f conftest.$ac_objext
2574 if { (ac_try="$ac_compile"
2576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2577 *) ac_try_echo=$ac_try;;
2579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2580 (eval "$ac_compile") 2>conftest.er1
2582 grep -v '^ *+' conftest.er1 >conftest.err
2584 cat conftest.err >&5
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); } &&
2587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2588 { (case "(($ac_try" in
2589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2590 *) ac_try_echo=$ac_try;;
2592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2593 (eval "$ac_try") 2>&5
2595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596 (exit $ac_status); }; } &&
2597 { ac_try='test -s conftest.$ac_objext'
2598 { (case "(($ac_try" in
2599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2600 *) ac_try_echo=$ac_try;;
2602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2603 (eval "$ac_try") 2>&5
2605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606 (exit $ac_status); }; }; then
2609 echo "$as_me: failed program was:" >&5
2610 sed 's/^/| /' conftest.$ac_ext >&5
2615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2622 ac_c_werror_flag=$ac_save_c_werror_flag
2624 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2625 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2626 if test "$ac_test_CFLAGS" = set; then
2627 CFLAGS=$ac_save_CFLAGS
2628 elif test $ac_cv_prog_cc_g = yes; then
2629 if test "$GCC" = yes; then
2635 if test "$GCC" = yes; then
2641 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2642 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2643 if test "${ac_cv_prog_cc_c89+set}" = set; then
2644 echo $ECHO_N "(cached) $ECHO_C" >&6
2646 ac_cv_prog_cc_c89=no
2648 cat >conftest.$ac_ext <<_ACEOF
2651 cat confdefs.h >>conftest.$ac_ext
2652 cat >>conftest.$ac_ext <<_ACEOF
2653 /* end confdefs.h. */
2656 #include <sys/types.h>
2657 #include <sys/stat.h>
2658 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2659 struct buf { int x; };
2660 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2661 static char *e (p, i)
2667 static char *f (char * (*g) (char **, int), char **p, ...)
2672 s = g (p, va_arg (v,int));
2677 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2678 function prototypes and stuff, but not '\xHH' hex character constants.
2679 These don't provoke an error unfortunately, instead are silently treated
2680 as 'x'. The following induces an error, until -std is added to get
2681 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2682 array size at least. It's necessary to write '\x00'==0 to get something
2683 that's true only with -std. */
2684 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2686 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2687 inside strings and character constants. */
2689 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2691 int test (int i, double x);
2692 struct s1 {int (*f) (int a);};
2693 struct s2 {int (*f) (double a);};
2694 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2700 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2705 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2706 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2708 CC="$ac_save_CC $ac_arg"
2709 rm -f conftest.$ac_objext
2710 if { (ac_try="$ac_compile"
2712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2713 *) ac_try_echo=$ac_try;;
2715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2716 (eval "$ac_compile") 2>conftest.er1
2718 grep -v '^ *+' conftest.er1 >conftest.err
2720 cat conftest.err >&5
2721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722 (exit $ac_status); } &&
2723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2724 { (case "(($ac_try" in
2725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2726 *) ac_try_echo=$ac_try;;
2728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2729 (eval "$ac_try") 2>&5
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); }; } &&
2733 { ac_try='test -s conftest.$ac_objext'
2734 { (case "(($ac_try" in
2735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2736 *) ac_try_echo=$ac_try;;
2738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2739 (eval "$ac_try") 2>&5
2741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742 (exit $ac_status); }; }; then
2743 ac_cv_prog_cc_c89=$ac_arg
2745 echo "$as_me: failed program was:" >&5
2746 sed 's/^/| /' conftest.$ac_ext >&5
2751 rm -f core conftest.err conftest.$ac_objext
2752 test "x$ac_cv_prog_cc_c89" != "xno" && break
2754 rm -f conftest.$ac_ext
2759 case "x$ac_cv_prog_cc_c89" in
2761 { echo "$as_me:$LINENO: result: none needed" >&5
2762 echo "${ECHO_T}none needed" >&6; } ;;
2764 { echo "$as_me:$LINENO: result: unsupported" >&5
2765 echo "${ECHO_T}unsupported" >&6; } ;;
2767 CC="$CC $ac_cv_prog_cc_c89"
2768 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2769 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2774 ac_cpp='$CPP $CPPFLAGS'
2775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2780 ac_cpp='$CXXCPP $CPPFLAGS'
2781 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2782 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2783 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2784 if test -z "$CXX"; then
2785 if test -n "$CCC"; then
2788 if test -n "$ac_tool_prefix"; then
2789 for ac_prog in clang++ llvm-g++ g++
2791 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2792 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2793 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2795 if test "${ac_cv_prog_CXX+set}" = set; then
2796 echo $ECHO_N "(cached) $ECHO_C" >&6
2798 if test -n "$CXX"; then
2799 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2805 test -z "$as_dir" && as_dir=.
2806 for ac_exec_ext in '' $ac_executable_extensions; do
2807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2808 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2819 if test -n "$CXX"; then
2820 { echo "$as_me:$LINENO: result: $CXX" >&5
2821 echo "${ECHO_T}$CXX" >&6; }
2823 { echo "$as_me:$LINENO: result: no" >&5
2824 echo "${ECHO_T}no" >&6; }
2828 test -n "$CXX" && break
2831 if test -z "$CXX"; then
2833 for ac_prog in clang++ llvm-g++ g++
2835 # Extract the first word of "$ac_prog", so it can be a program name with args.
2836 set dummy $ac_prog; ac_word=$2
2837 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2839 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2840 echo $ECHO_N "(cached) $ECHO_C" >&6
2842 if test -n "$ac_ct_CXX"; then
2843 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2849 test -z "$as_dir" && as_dir=.
2850 for ac_exec_ext in '' $ac_executable_extensions; do
2851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2852 ac_cv_prog_ac_ct_CXX="$ac_prog"
2853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2862 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2863 if test -n "$ac_ct_CXX"; then
2864 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2865 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2867 { echo "$as_me:$LINENO: result: no" >&5
2868 echo "${ECHO_T}no" >&6; }
2872 test -n "$ac_ct_CXX" && break
2875 if test "x$ac_ct_CXX" = x; then
2878 case $cross_compiling:$ac_tool_warned in
2880 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2881 whose name does not start with the host triplet. If you think this
2882 configuration is useful to you, please write to autoconf@gnu.org." >&5
2883 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2884 whose name does not start with the host triplet. If you think this
2885 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2886 ac_tool_warned=yes ;;
2894 # Provide some information about the compiler.
2895 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2896 ac_compiler=`set X $ac_compile; echo $2`
2897 { (ac_try="$ac_compiler --version >&5"
2899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2900 *) ac_try_echo=$ac_try;;
2902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2903 (eval "$ac_compiler --version >&5") 2>&5
2905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906 (exit $ac_status); }
2907 { (ac_try="$ac_compiler -v >&5"
2909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2910 *) ac_try_echo=$ac_try;;
2912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2913 (eval "$ac_compiler -v >&5") 2>&5
2915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916 (exit $ac_status); }
2917 { (ac_try="$ac_compiler -V >&5"
2919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2920 *) ac_try_echo=$ac_try;;
2922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2923 (eval "$ac_compiler -V >&5") 2>&5
2925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926 (exit $ac_status); }
2928 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2929 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2930 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2931 echo $ECHO_N "(cached) $ECHO_C" >&6
2933 cat >conftest.$ac_ext <<_ACEOF
2936 cat confdefs.h >>conftest.$ac_ext
2937 cat >>conftest.$ac_ext <<_ACEOF
2938 /* end confdefs.h. */
2951 rm -f conftest.$ac_objext
2952 if { (ac_try="$ac_compile"
2954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2955 *) ac_try_echo=$ac_try;;
2957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2958 (eval "$ac_compile") 2>conftest.er1
2960 grep -v '^ *+' conftest.er1 >conftest.err
2962 cat conftest.err >&5
2963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964 (exit $ac_status); } &&
2965 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2966 { (case "(($ac_try" in
2967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2968 *) ac_try_echo=$ac_try;;
2970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2971 (eval "$ac_try") 2>&5
2973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974 (exit $ac_status); }; } &&
2975 { ac_try='test -s conftest.$ac_objext'
2976 { (case "(($ac_try" in
2977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2978 *) ac_try_echo=$ac_try;;
2980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2981 (eval "$ac_try") 2>&5
2983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984 (exit $ac_status); }; }; then
2987 echo "$as_me: failed program was:" >&5
2988 sed 's/^/| /' conftest.$ac_ext >&5
2993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2994 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2997 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2998 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2999 GXX=`test $ac_compiler_gnu = yes && echo yes`
3000 ac_test_CXXFLAGS=${CXXFLAGS+set}
3001 ac_save_CXXFLAGS=$CXXFLAGS
3002 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3003 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3004 if test "${ac_cv_prog_cxx_g+set}" = set; then
3005 echo $ECHO_N "(cached) $ECHO_C" >&6
3007 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3008 ac_cxx_werror_flag=yes
3011 cat >conftest.$ac_ext <<_ACEOF
3014 cat confdefs.h >>conftest.$ac_ext
3015 cat >>conftest.$ac_ext <<_ACEOF
3016 /* end confdefs.h. */
3026 rm -f conftest.$ac_objext
3027 if { (ac_try="$ac_compile"
3029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3030 *) ac_try_echo=$ac_try;;
3032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3033 (eval "$ac_compile") 2>conftest.er1
3035 grep -v '^ *+' conftest.er1 >conftest.err
3037 cat conftest.err >&5
3038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039 (exit $ac_status); } &&
3040 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3041 { (case "(($ac_try" in
3042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3043 *) ac_try_echo=$ac_try;;
3045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3046 (eval "$ac_try") 2>&5
3048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049 (exit $ac_status); }; } &&
3050 { ac_try='test -s conftest.$ac_objext'
3051 { (case "(($ac_try" in
3052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3053 *) ac_try_echo=$ac_try;;
3055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3056 (eval "$ac_try") 2>&5
3058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059 (exit $ac_status); }; }; then
3060 ac_cv_prog_cxx_g=yes
3062 echo "$as_me: failed program was:" >&5
3063 sed 's/^/| /' conftest.$ac_ext >&5
3066 cat >conftest.$ac_ext <<_ACEOF
3069 cat confdefs.h >>conftest.$ac_ext
3070 cat >>conftest.$ac_ext <<_ACEOF
3071 /* end confdefs.h. */
3081 rm -f conftest.$ac_objext
3082 if { (ac_try="$ac_compile"
3084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3085 *) ac_try_echo=$ac_try;;
3087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3088 (eval "$ac_compile") 2>conftest.er1
3090 grep -v '^ *+' conftest.er1 >conftest.err
3092 cat conftest.err >&5
3093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094 (exit $ac_status); } &&
3095 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3096 { (case "(($ac_try" in
3097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098 *) ac_try_echo=$ac_try;;
3100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3101 (eval "$ac_try") 2>&5
3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104 (exit $ac_status); }; } &&
3105 { ac_try='test -s conftest.$ac_objext'
3106 { (case "(($ac_try" in
3107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3108 *) ac_try_echo=$ac_try;;
3110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3111 (eval "$ac_try") 2>&5
3113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114 (exit $ac_status); }; }; then
3117 echo "$as_me: failed program was:" >&5
3118 sed 's/^/| /' conftest.$ac_ext >&5
3120 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3122 cat >conftest.$ac_ext <<_ACEOF
3125 cat confdefs.h >>conftest.$ac_ext
3126 cat >>conftest.$ac_ext <<_ACEOF
3127 /* end confdefs.h. */
3137 rm -f conftest.$ac_objext
3138 if { (ac_try="$ac_compile"
3140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141 *) ac_try_echo=$ac_try;;
3143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3144 (eval "$ac_compile") 2>conftest.er1
3146 grep -v '^ *+' conftest.er1 >conftest.err
3148 cat conftest.err >&5
3149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150 (exit $ac_status); } &&
3151 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3152 { (case "(($ac_try" in
3153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3154 *) ac_try_echo=$ac_try;;
3156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3157 (eval "$ac_try") 2>&5
3159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160 (exit $ac_status); }; } &&
3161 { ac_try='test -s conftest.$ac_objext'
3162 { (case "(($ac_try" in
3163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3164 *) ac_try_echo=$ac_try;;
3166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3167 (eval "$ac_try") 2>&5
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); }; }; then
3171 ac_cv_prog_cxx_g=yes
3173 echo "$as_me: failed program was:" >&5
3174 sed 's/^/| /' conftest.$ac_ext >&5
3179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3186 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3188 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3189 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3190 if test "$ac_test_CXXFLAGS" = set; then
3191 CXXFLAGS=$ac_save_CXXFLAGS
3192 elif test $ac_cv_prog_cxx_g = yes; then
3193 if test "$GXX" = yes; then
3199 if test "$GXX" = yes; then
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
3212 ac_cpp='$CPP $CPPFLAGS'
3213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3216 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3217 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3218 # On Suns, sometimes $CPP names a directory.
3219 if test -n "$CPP" && test -d "$CPP"; then
3222 if test -z "$CPP"; then
3223 if test "${ac_cv_prog_CPP+set}" = set; then
3224 echo $ECHO_N "(cached) $ECHO_C" >&6
3226 # Double quotes because CPP needs to be expanded
3227 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3230 for ac_c_preproc_warn_flag in '' yes
3232 # Use a header file that comes with gcc, so configuring glibc
3233 # with a fresh cross-compiler works.
3234 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3235 # <limits.h> exists even on freestanding compilers.
3236 # On the NeXT, cc -E runs the code through the compiler's parser,
3237 # not just through cpp. "Syntax error" is here to catch this case.
3238 cat >conftest.$ac_ext <<_ACEOF
3241 cat confdefs.h >>conftest.$ac_ext
3242 cat >>conftest.$ac_ext <<_ACEOF
3243 /* end confdefs.h. */
3245 # include <limits.h>
3247 # include <assert.h>
3251 if { (ac_try="$ac_cpp conftest.$ac_ext"
3253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3254 *) ac_try_echo=$ac_try;;
3256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3257 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3259 grep -v '^ *+' conftest.er1 >conftest.err
3261 cat conftest.err >&5
3262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263 (exit $ac_status); } >/dev/null; then
3264 if test -s conftest.err; then
3265 ac_cpp_err=$ac_c_preproc_warn_flag
3266 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3273 if test -z "$ac_cpp_err"; then
3276 echo "$as_me: failed program was:" >&5
3277 sed 's/^/| /' conftest.$ac_ext >&5
3279 # Broken: fails on valid input.
3283 rm -f conftest.err conftest.$ac_ext
3285 # OK, works on sane cases. Now check whether nonexistent headers
3286 # can be detected and how.
3287 cat >conftest.$ac_ext <<_ACEOF
3290 cat confdefs.h >>conftest.$ac_ext
3291 cat >>conftest.$ac_ext <<_ACEOF
3292 /* end confdefs.h. */
3293 #include <ac_nonexistent.h>
3295 if { (ac_try="$ac_cpp conftest.$ac_ext"
3297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3298 *) ac_try_echo=$ac_try;;
3300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3301 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3303 grep -v '^ *+' conftest.er1 >conftest.err
3305 cat conftest.err >&5
3306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307 (exit $ac_status); } >/dev/null; then
3308 if test -s conftest.err; then
3309 ac_cpp_err=$ac_c_preproc_warn_flag
3310 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3317 if test -z "$ac_cpp_err"; then
3318 # Broken: success on invalid input.
3321 echo "$as_me: failed program was:" >&5
3322 sed 's/^/| /' conftest.$ac_ext >&5
3324 # Passes both tests.
3329 rm -f conftest.err conftest.$ac_ext
3332 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3333 rm -f conftest.err conftest.$ac_ext
3334 if $ac_preproc_ok; then
3346 { echo "$as_me:$LINENO: result: $CPP" >&5
3347 echo "${ECHO_T}$CPP" >&6; }
3349 for ac_c_preproc_warn_flag in '' yes
3351 # Use a header file that comes with gcc, so configuring glibc
3352 # with a fresh cross-compiler works.
3353 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3354 # <limits.h> exists even on freestanding compilers.
3355 # On the NeXT, cc -E runs the code through the compiler's parser,
3356 # not just through cpp. "Syntax error" is here to catch this case.
3357 cat >conftest.$ac_ext <<_ACEOF
3360 cat confdefs.h >>conftest.$ac_ext
3361 cat >>conftest.$ac_ext <<_ACEOF
3362 /* end confdefs.h. */
3364 # include <limits.h>
3366 # include <assert.h>
3370 if { (ac_try="$ac_cpp conftest.$ac_ext"
3372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3373 *) ac_try_echo=$ac_try;;
3375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3376 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3378 grep -v '^ *+' conftest.er1 >conftest.err
3380 cat conftest.err >&5
3381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382 (exit $ac_status); } >/dev/null; then
3383 if test -s conftest.err; then
3384 ac_cpp_err=$ac_c_preproc_warn_flag
3385 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3392 if test -z "$ac_cpp_err"; then
3395 echo "$as_me: failed program was:" >&5
3396 sed 's/^/| /' conftest.$ac_ext >&5
3398 # Broken: fails on valid input.
3402 rm -f conftest.err conftest.$ac_ext
3404 # OK, works on sane cases. Now check whether nonexistent headers
3405 # can be detected and how.
3406 cat >conftest.$ac_ext <<_ACEOF
3409 cat confdefs.h >>conftest.$ac_ext
3410 cat >>conftest.$ac_ext <<_ACEOF
3411 /* end confdefs.h. */
3412 #include <ac_nonexistent.h>
3414 if { (ac_try="$ac_cpp conftest.$ac_ext"
3416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3417 *) ac_try_echo=$ac_try;;
3419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3420 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3422 grep -v '^ *+' conftest.er1 >conftest.err
3424 cat conftest.err >&5
3425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426 (exit $ac_status); } >/dev/null; then
3427 if test -s conftest.err; then
3428 ac_cpp_err=$ac_c_preproc_warn_flag
3429 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3436 if test -z "$ac_cpp_err"; then
3437 # Broken: success on invalid input.
3440 echo "$as_me: failed program was:" >&5
3441 sed 's/^/| /' conftest.$ac_ext >&5
3443 # Passes both tests.
3448 rm -f conftest.err conftest.$ac_ext
3451 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3452 rm -f conftest.err conftest.$ac_ext
3453 if $ac_preproc_ok; then
3456 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3457 See \`config.log' for more details." >&5
3458 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3459 See \`config.log' for more details." >&2;}
3460 { (exit 1); exit 1; }; }
3464 ac_cpp='$CPP $CPPFLAGS'
3465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3472 # Check whether --enable-polly was given.
3473 if test "${enable_polly+set}" = set; then
3474 enableval=$enable_polly;
3479 case "$enableval" in
3484 default) ENABLE_POLLY=1
3486 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3487 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3488 { (exit 1); exit 1; }; } ;;
3492 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3495 subdirs="$subdirs tools/polly"
3500 # Make sure we can run config.sub.
3501 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3502 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3503 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3504 { (exit 1); exit 1; }; }
3506 { echo "$as_me:$LINENO: checking build system type" >&5
3507 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3508 if test "${ac_cv_build+set}" = set; then
3509 echo $ECHO_N "(cached) $ECHO_C" >&6
3511 ac_build_alias=$build_alias
3512 test "x$ac_build_alias" = x &&
3513 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3514 test "x$ac_build_alias" = x &&
3515 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3516 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3517 { (exit 1); exit 1; }; }
3518 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3519 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3520 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3521 { (exit 1); exit 1; }; }
3524 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3525 echo "${ECHO_T}$ac_cv_build" >&6; }
3526 case $ac_cv_build in
3528 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3529 echo "$as_me: error: invalid value of canonical build" >&2;}
3530 { (exit 1); exit 1; }; };;
3533 ac_save_IFS=$IFS; IFS='-'
3539 # Remember, the first character of IFS is used to create $*,
3540 # except with old shells:
3543 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3546 { echo "$as_me:$LINENO: checking host system type" >&5
3547 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3548 if test "${ac_cv_host+set}" = set; then
3549 echo $ECHO_N "(cached) $ECHO_C" >&6
3551 if test "x$host_alias" = x; then
3552 ac_cv_host=$ac_cv_build
3554 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3555 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3556 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3557 { (exit 1); exit 1; }; }
3561 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3562 echo "${ECHO_T}$ac_cv_host" >&6; }
3565 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3566 echo "$as_me: error: invalid value of canonical host" >&2;}
3567 { (exit 1); exit 1; }; };;
3570 ac_save_IFS=$IFS; IFS='-'
3576 # Remember, the first character of IFS is used to create $*,
3577 # except with old shells:
3580 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3583 { echo "$as_me:$LINENO: checking target system type" >&5
3584 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3585 if test "${ac_cv_target+set}" = set; then
3586 echo $ECHO_N "(cached) $ECHO_C" >&6
3588 if test "x$target_alias" = x; then
3589 ac_cv_target=$ac_cv_host
3591 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3592 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3593 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3594 { (exit 1); exit 1; }; }
3598 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3599 echo "${ECHO_T}$ac_cv_target" >&6; }
3600 case $ac_cv_target in
3602 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3603 echo "$as_me: error: invalid value of canonical target" >&2;}
3604 { (exit 1); exit 1; }; };;
3606 target=$ac_cv_target
3607 ac_save_IFS=$IFS; IFS='-'
3613 # Remember, the first character of IFS is used to create $*,
3614 # except with old shells:
3617 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3620 # The aliases save the names the user supplied, while $host etc.
3621 # will get canonicalized.
3622 test -n "$target_alias" &&
3623 test "$program_prefix$program_suffix$program_transform_name" = \
3625 program_prefix=${target_alias}-
3627 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3628 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3629 if test "${llvm_cv_os_type+set}" = set; then
3630 echo $ECHO_N "(cached) $ECHO_C" >&6
3634 llvm_cv_link_all_option="-Wl,--whole-archive"
3635 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3636 llvm_cv_os_type="AIX"
3637 llvm_cv_platform_type="Unix" ;;
3639 llvm_cv_link_all_option="-Wl,--whole-archive"
3640 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3641 llvm_cv_os_type="IRIX"
3642 llvm_cv_platform_type="Unix" ;;
3644 llvm_cv_link_all_option="-Wl,--whole-archive"
3645 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3646 llvm_cv_os_type="Cygwin"
3647 llvm_cv_platform_type="Unix" ;;
3649 llvm_cv_link_all_option="-Wl,-all_load"
3650 llvm_cv_no_link_all_option="-Wl,-noall_load"
3651 llvm_cv_os_type="Darwin"
3652 llvm_cv_platform_type="Unix" ;;
3654 llvm_cv_link_all_option="-Wl,-all_load"
3655 llvm_cv_no_link_all_option="-Wl,-noall_load"
3656 llvm_cv_os_type="Minix"
3657 llvm_cv_platform_type="Unix" ;;
3658 *-*-freebsd* | *-*-kfreebsd-gnu)
3659 llvm_cv_link_all_option="-Wl,--whole-archive"
3660 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3661 llvm_cv_os_type="FreeBSD"
3662 llvm_cv_platform_type="Unix" ;;
3664 llvm_cv_link_all_option="-Wl,--whole-archive"
3665 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3666 llvm_cv_os_type="OpenBSD"
3667 llvm_cv_platform_type="Unix" ;;
3669 llvm_cv_link_all_option="-Wl,--whole-archive"
3670 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3671 llvm_cv_os_type="NetBSD"
3672 llvm_cv_platform_type="Unix" ;;
3674 llvm_cv_link_all_option="-Wl,--whole-archive"
3675 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3676 llvm_cv_os_type="DragonFly"
3677 llvm_cv_platform_type="Unix" ;;
3679 llvm_cv_link_all_option="-Wl,--whole-archive"
3680 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3681 llvm_cv_os_type="HP-UX"
3682 llvm_cv_platform_type="Unix" ;;
3684 llvm_cv_link_all_option="-Wl,--whole-archive"
3685 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3686 llvm_cv_os_type="Interix"
3687 llvm_cv_platform_type="Unix" ;;
3689 llvm_cv_link_all_option="-Wl,--whole-archive"
3690 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3691 llvm_cv_os_type="Linux"
3692 llvm_cv_platform_type="Unix" ;;
3694 llvm_cv_link_all_option="-Wl,--whole-archive"
3695 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3696 llvm_cv_os_type="GNU"
3697 llvm_cv_platform_type="Unix" ;;
3699 llvm_cv_link_all_option="-Wl,-z,allextract"
3700 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3701 llvm_cv_os_type="SunOS"
3702 llvm_cv_platform_type="Unix" ;;
3704 llvm_cv_link_all_option="-Wl,-z,allextract"
3705 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3706 llvm_cv_os_type="AuroraUX"
3707 llvm_cv_platform_type="Unix" ;;
3709 llvm_cv_link_all_option="-Wl,--whole-archive"
3710 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3711 llvm_cv_os_type="Win32"
3712 llvm_cv_platform_type="Win32" ;;
3714 llvm_cv_link_all_option="-Wl,--whole-archive"
3715 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3716 llvm_cv_os_type="MingW"
3717 llvm_cv_platform_type="Win32" ;;
3719 llvm_cv_link_all_option="-Wl,--whole-archive"
3720 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3721 llvm_cv_os_type="Haiku"
3722 llvm_cv_platform_type="Unix" ;;
3724 llvm_cv_link_all_option="-Wl,--whole-archive"
3725 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3726 llvm_cv_os_type="Freestanding"
3727 llvm_cv_platform_type="Unix" ;;
3729 llvm_cv_link_all_option="-Wl,--whole-archive"
3730 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3731 llvm_cv_os_type="Freestanding"
3732 llvm_cv_platform_type="Unix" ;;
3734 llvm_cv_link_all_option=""
3735 llvm_cv_no_link_all_option=""
3736 llvm_cv_os_type="Unknown"
3737 llvm_cv_platform_type="Unknown" ;;
3740 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3741 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3743 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3744 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3745 if test "${llvm_cv_target_os_type+set}" = set; then
3746 echo $ECHO_N "(cached) $ECHO_C" >&6
3750 llvm_cv_target_os_type="AIX" ;;
3752 llvm_cv_target_os_type="IRIX" ;;
3754 llvm_cv_target_os_type="Cygwin" ;;
3756 llvm_cv_target_os_type="Darwin" ;;
3758 llvm_cv_target_os_type="Minix" ;;
3759 *-*-freebsd* | *-*-kfreebsd-gnu)
3760 llvm_cv_target_os_type="FreeBSD" ;;
3762 llvm_cv_target_os_type="OpenBSD" ;;
3764 llvm_cv_target_os_type="NetBSD" ;;
3766 llvm_cv_target_os_type="DragonFly" ;;
3768 llvm_cv_target_os_type="HP-UX" ;;
3770 llvm_cv_target_os_type="Interix" ;;
3772 llvm_cv_target_os_type="Linux" ;;
3774 llvm_cv_target_os_type="GNU" ;;
3776 llvm_cv_target_os_type="SunOS" ;;
3778 llvm_cv_target_os_type="AuroraUX" ;;
3780 llvm_cv_target_os_type="Win32" ;;
3782 llvm_cv_target_os_type="MingW" ;;
3784 llvm_cv_target_os_type="Haiku" ;;
3786 llvm_cv_target_os_type="RTEMS" ;;
3788 llvm_cv_target_os_type="NativeClient" ;;
3790 llvm_cv_target_os_type="Freestanding" ;;
3792 llvm_cv_target_os_type="Unknown" ;;
3795 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3796 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3798 if test "$llvm_cv_os_type" = "Unknown" ; then
3799 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3800 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3801 { (exit 1); exit 1; }; }
3806 HOST_OS=$llvm_cv_os_type
3808 TARGET_OS=$llvm_cv_target_os_type
3811 LINKALL=$llvm_cv_link_all_option
3813 NOLINKALL=$llvm_cv_no_link_all_option
3816 case $llvm_cv_platform_type in
3819 cat >>confdefs.h <<\_ACEOF
3820 #define LLVM_ON_UNIX 1
3830 cat >>confdefs.h <<\_ACEOF
3831 #define LLVM_ON_WIN32 1
3841 { echo "$as_me:$LINENO: checking target architecture" >&5
3842 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3843 if test "${llvm_cv_target_arch+set}" = set; then
3844 echo $ECHO_N "(cached) $ECHO_C" >&6
3847 i?86-*) llvm_cv_target_arch="x86" ;;
3848 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3849 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3850 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
3851 arm*-*) llvm_cv_target_arch="ARM" ;;
3852 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
3853 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
3854 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
3855 xcore-*) llvm_cv_target_arch="XCore" ;;
3856 msp430-*) llvm_cv_target_arch="MSP430" ;;
3857 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
3858 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
3859 s390x-*) llvm_cv_target_arch="SystemZ" ;;
3860 *) llvm_cv_target_arch="Unknown" ;;
3863 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3864 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3866 if test "$llvm_cv_target_arch" = "Unknown" ; then
3867 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3868 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3871 # Determine the LLVM native architecture for the target
3872 case "$llvm_cv_target_arch" in
3873 x86) LLVM_NATIVE_ARCH="X86" ;;
3874 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3875 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3878 ARCH=$llvm_cv_target_arch
3883 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3884 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3885 if test "${ac_cv_path_GREP+set}" = set; then
3886 echo $ECHO_N "(cached) $ECHO_C" >&6
3888 # Extract the first word of "grep ggrep" to use in msg output
3889 if test -z "$GREP"; then
3890 set dummy grep ggrep; ac_prog_name=$2
3891 if test "${ac_cv_path_GREP+set}" = set; then
3892 echo $ECHO_N "(cached) $ECHO_C" >&6
3894 ac_path_GREP_found=false
3895 # Loop through the user's path and test for each of PROGNAME-LIST
3896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3897 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3900 test -z "$as_dir" && as_dir=.
3901 for ac_prog in grep ggrep; do
3902 for ac_exec_ext in '' $ac_executable_extensions; do
3903 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3904 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3905 # Check for GNU ac_path_GREP and select it if it is found.
3906 # Check for GNU $ac_path_GREP
3907 case `"$ac_path_GREP" --version 2>&1` in
3909 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3912 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3915 cat "conftest.in" "conftest.in" >"conftest.tmp"
3916 mv "conftest.tmp" "conftest.in"
3917 cp "conftest.in" "conftest.nl"
3918 echo 'GREP' >> "conftest.nl"
3919 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3920 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3921 ac_count=`expr $ac_count + 1`
3922 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3923 # Best one so far, save it but keep looking for a better one
3924 ac_cv_path_GREP="$ac_path_GREP"
3925 ac_path_GREP_max=$ac_count
3927 # 10*(2^10) chars as input seems more than enough
3928 test $ac_count -gt 10 && break
3930 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3934 $ac_path_GREP_found && break 3
3944 GREP="$ac_cv_path_GREP"
3945 if test -z "$GREP"; then
3946 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3947 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3948 { (exit 1); exit 1; }; }
3952 ac_cv_path_GREP=$GREP
3957 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3958 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3959 GREP="$ac_cv_path_GREP"
3962 { echo "$as_me:$LINENO: checking for egrep" >&5
3963 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3964 if test "${ac_cv_path_EGREP+set}" = set; then
3965 echo $ECHO_N "(cached) $ECHO_C" >&6
3967 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3968 then ac_cv_path_EGREP="$GREP -E"
3970 # Extract the first word of "egrep" to use in msg output
3971 if test -z "$EGREP"; then
3972 set dummy egrep; ac_prog_name=$2
3973 if test "${ac_cv_path_EGREP+set}" = set; then
3974 echo $ECHO_N "(cached) $ECHO_C" >&6
3976 ac_path_EGREP_found=false
3977 # Loop through the user's path and test for each of PROGNAME-LIST
3978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3979 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3982 test -z "$as_dir" && as_dir=.
3983 for ac_prog in egrep; do
3984 for ac_exec_ext in '' $ac_executable_extensions; do
3985 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3986 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3987 # Check for GNU ac_path_EGREP and select it if it is found.
3988 # Check for GNU $ac_path_EGREP
3989 case `"$ac_path_EGREP" --version 2>&1` in
3991 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3994 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3997 cat "conftest.in" "conftest.in" >"conftest.tmp"
3998 mv "conftest.tmp" "conftest.in"
3999 cp "conftest.in" "conftest.nl"
4000 echo 'EGREP' >> "conftest.nl"
4001 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4002 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4003 ac_count=`expr $ac_count + 1`
4004 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4005 # Best one so far, save it but keep looking for a better one
4006 ac_cv_path_EGREP="$ac_path_EGREP"
4007 ac_path_EGREP_max=$ac_count
4009 # 10*(2^10) chars as input seems more than enough
4010 test $ac_count -gt 10 && break
4012 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4016 $ac_path_EGREP_found && break 3
4026 EGREP="$ac_cv_path_EGREP"
4027 if test -z "$EGREP"; then
4028 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4029 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4030 { (exit 1); exit 1; }; }
4034 ac_cv_path_EGREP=$EGREP
4040 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4041 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4042 EGREP="$ac_cv_path_EGREP"
4045 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4046 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4047 if test "${ac_cv_header_stdc+set}" = set; then
4048 echo $ECHO_N "(cached) $ECHO_C" >&6
4050 cat >conftest.$ac_ext <<_ACEOF
4053 cat confdefs.h >>conftest.$ac_ext
4054 cat >>conftest.$ac_ext <<_ACEOF
4055 /* end confdefs.h. */
4069 rm -f conftest.$ac_objext
4070 if { (ac_try="$ac_compile"
4072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4073 *) ac_try_echo=$ac_try;;
4075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4076 (eval "$ac_compile") 2>conftest.er1
4078 grep -v '^ *+' conftest.er1 >conftest.err
4080 cat conftest.err >&5
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); } &&
4083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4084 { (case "(($ac_try" in
4085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4086 *) ac_try_echo=$ac_try;;
4088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4089 (eval "$ac_try") 2>&5
4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); }; } &&
4093 { ac_try='test -s conftest.$ac_objext'
4094 { (case "(($ac_try" in
4095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4096 *) ac_try_echo=$ac_try;;
4098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4099 (eval "$ac_try") 2>&5
4101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102 (exit $ac_status); }; }; then
4103 ac_cv_header_stdc=yes
4105 echo "$as_me: failed program was:" >&5
4106 sed 's/^/| /' conftest.$ac_ext >&5
4108 ac_cv_header_stdc=no
4111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4113 if test $ac_cv_header_stdc = yes; then
4114 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4115 cat >conftest.$ac_ext <<_ACEOF
4118 cat confdefs.h >>conftest.$ac_ext
4119 cat >>conftest.$ac_ext <<_ACEOF
4120 /* end confdefs.h. */
4124 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4125 $EGREP "memchr" >/dev/null 2>&1; then
4128 ac_cv_header_stdc=no
4134 if test $ac_cv_header_stdc = yes; then
4135 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4136 cat >conftest.$ac_ext <<_ACEOF
4139 cat confdefs.h >>conftest.$ac_ext
4140 cat >>conftest.$ac_ext <<_ACEOF
4141 /* end confdefs.h. */
4145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4146 $EGREP "free" >/dev/null 2>&1; then
4149 ac_cv_header_stdc=no
4155 if test $ac_cv_header_stdc = yes; then
4156 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4157 if test "$cross_compiling" = yes; then
4160 cat >conftest.$ac_ext <<_ACEOF
4163 cat confdefs.h >>conftest.$ac_ext
4164 cat >>conftest.$ac_ext <<_ACEOF
4165 /* end confdefs.h. */
4168 #if ((' ' & 0x0FF) == 0x020)
4169 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4170 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4172 # define ISLOWER(c) \
4173 (('a' <= (c) && (c) <= 'i') \
4174 || ('j' <= (c) && (c) <= 'r') \
4175 || ('s' <= (c) && (c) <= 'z'))
4176 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4179 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4184 for (i = 0; i < 256; i++)
4185 if (XOR (islower (i), ISLOWER (i))
4186 || toupper (i) != TOUPPER (i))
4191 rm -f conftest$ac_exeext
4192 if { (ac_try="$ac_link"
4194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4195 *) ac_try_echo=$ac_try;;
4197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4198 (eval "$ac_link") 2>&5
4200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4202 { (case "(($ac_try" in
4203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4204 *) ac_try_echo=$ac_try;;
4206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4207 (eval "$ac_try") 2>&5
4209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210 (exit $ac_status); }; }; then
4213 echo "$as_me: program exited with status $ac_status" >&5
4214 echo "$as_me: failed program was:" >&5
4215 sed 's/^/| /' conftest.$ac_ext >&5
4218 ac_cv_header_stdc=no
4220 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4226 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4227 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4228 if test $ac_cv_header_stdc = yes; then
4230 cat >>confdefs.h <<\_ACEOF
4231 #define STDC_HEADERS 1
4236 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4246 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4247 inttypes.h stdint.h unistd.h
4249 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4250 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4251 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4253 echo $ECHO_N "(cached) $ECHO_C" >&6
4255 cat >conftest.$ac_ext <<_ACEOF
4258 cat confdefs.h >>conftest.$ac_ext
4259 cat >>conftest.$ac_ext <<_ACEOF
4260 /* end confdefs.h. */
4261 $ac_includes_default
4263 #include <$ac_header>
4265 rm -f conftest.$ac_objext
4266 if { (ac_try="$ac_compile"
4268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4269 *) ac_try_echo=$ac_try;;
4271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4272 (eval "$ac_compile") 2>conftest.er1
4274 grep -v '^ *+' conftest.er1 >conftest.err
4276 cat conftest.err >&5
4277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278 (exit $ac_status); } &&
4279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4280 { (case "(($ac_try" in
4281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4282 *) ac_try_echo=$ac_try;;
4284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4285 (eval "$ac_try") 2>&5
4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288 (exit $ac_status); }; } &&
4289 { ac_try='test -s conftest.$ac_objext'
4290 { (case "(($ac_try" in
4291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4292 *) ac_try_echo=$ac_try;;
4294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4295 (eval "$ac_try") 2>&5
4297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298 (exit $ac_status); }; }; then
4299 eval "$as_ac_Header=yes"
4301 echo "$as_me: failed program was:" >&5
4302 sed 's/^/| /' conftest.$ac_ext >&5
4304 eval "$as_ac_Header=no"
4307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4309 ac_res=`eval echo '${'$as_ac_Header'}'`
4310 { echo "$as_me:$LINENO: result: $ac_res" >&5
4311 echo "${ECHO_T}$ac_res" >&6; }
4312 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4313 cat >>confdefs.h <<_ACEOF
4314 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4322 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4323 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4324 if test "${ac_cv_c_bigendian+set}" = set; then
4325 echo $ECHO_N "(cached) $ECHO_C" >&6
4327 # See if sys/param.h defines the BYTE_ORDER macro.
4328 cat >conftest.$ac_ext <<_ACEOF
4331 cat confdefs.h >>conftest.$ac_ext
4332 cat >>conftest.$ac_ext <<_ACEOF
4333 /* end confdefs.h. */
4334 #include <sys/types.h>
4335 #include <sys/param.h>
4340 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4348 rm -f conftest.$ac_objext
4349 if { (ac_try="$ac_compile"
4351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4352 *) ac_try_echo=$ac_try;;
4354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4355 (eval "$ac_compile") 2>conftest.er1
4357 grep -v '^ *+' conftest.er1 >conftest.err
4359 cat conftest.err >&5
4360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361 (exit $ac_status); } &&
4362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4363 { (case "(($ac_try" in
4364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4365 *) ac_try_echo=$ac_try;;
4367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4368 (eval "$ac_try") 2>&5
4370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371 (exit $ac_status); }; } &&
4372 { ac_try='test -s conftest.$ac_objext'
4373 { (case "(($ac_try" in
4374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4375 *) ac_try_echo=$ac_try;;
4377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4378 (eval "$ac_try") 2>&5
4380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381 (exit $ac_status); }; }; then
4382 # It does; now see whether it defined to BIG_ENDIAN or not.
4383 cat >conftest.$ac_ext <<_ACEOF
4386 cat confdefs.h >>conftest.$ac_ext
4387 cat >>conftest.$ac_ext <<_ACEOF
4388 /* end confdefs.h. */
4389 #include <sys/types.h>
4390 #include <sys/param.h>
4395 #if BYTE_ORDER != BIG_ENDIAN
4403 rm -f conftest.$ac_objext
4404 if { (ac_try="$ac_compile"
4406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4407 *) ac_try_echo=$ac_try;;
4409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4410 (eval "$ac_compile") 2>conftest.er1
4412 grep -v '^ *+' conftest.er1 >conftest.err
4414 cat conftest.err >&5
4415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416 (exit $ac_status); } &&
4417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4418 { (case "(($ac_try" in
4419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4420 *) ac_try_echo=$ac_try;;
4422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4423 (eval "$ac_try") 2>&5
4425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426 (exit $ac_status); }; } &&
4427 { ac_try='test -s conftest.$ac_objext'
4428 { (case "(($ac_try" in
4429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4430 *) ac_try_echo=$ac_try;;
4432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4433 (eval "$ac_try") 2>&5
4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436 (exit $ac_status); }; }; then
4437 ac_cv_c_bigendian=yes
4439 echo "$as_me: failed program was:" >&5
4440 sed 's/^/| /' conftest.$ac_ext >&5
4442 ac_cv_c_bigendian=no
4445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4447 echo "$as_me: failed program was:" >&5
4448 sed 's/^/| /' conftest.$ac_ext >&5
4450 # It does not; compile a test program.
4451 if test "$cross_compiling" = yes; then
4452 # try to guess the endianness by grepping values into an object file
4453 ac_cv_c_bigendian=unknown
4454 cat >conftest.$ac_ext <<_ACEOF
4457 cat confdefs.h >>conftest.$ac_ext
4458 cat >>conftest.$ac_ext <<_ACEOF
4459 /* end confdefs.h. */
4460 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4461 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4462 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4463 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4464 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4465 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4469 _ascii (); _ebcdic ();
4474 rm -f conftest.$ac_objext
4475 if { (ac_try="$ac_compile"
4477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4478 *) ac_try_echo=$ac_try;;
4480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4481 (eval "$ac_compile") 2>conftest.er1
4483 grep -v '^ *+' conftest.er1 >conftest.err
4485 cat conftest.err >&5
4486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487 (exit $ac_status); } &&
4488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4489 { (case "(($ac_try" in
4490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4491 *) ac_try_echo=$ac_try;;
4493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4494 (eval "$ac_try") 2>&5
4496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497 (exit $ac_status); }; } &&
4498 { ac_try='test -s conftest.$ac_objext'
4499 { (case "(($ac_try" in
4500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4501 *) ac_try_echo=$ac_try;;
4503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4504 (eval "$ac_try") 2>&5
4506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507 (exit $ac_status); }; }; then
4508 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4509 ac_cv_c_bigendian=yes
4511 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4512 if test "$ac_cv_c_bigendian" = unknown; then
4513 ac_cv_c_bigendian=no
4515 # finding both strings is unlikely to happen, but who knows?
4516 ac_cv_c_bigendian=unknown
4520 echo "$as_me: failed program was:" >&5
4521 sed 's/^/| /' conftest.$ac_ext >&5
4526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4528 cat >conftest.$ac_ext <<_ACEOF
4531 cat confdefs.h >>conftest.$ac_ext
4532 cat >>conftest.$ac_ext <<_ACEOF
4533 /* end confdefs.h. */
4534 $ac_includes_default
4539 /* Are we little or big endian? From Harbison&Steele. */
4543 char c[sizeof (long int)];
4546 return u.c[sizeof (long int) - 1] == 1;
4552 rm -f conftest$ac_exeext
4553 if { (ac_try="$ac_link"
4555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4556 *) ac_try_echo=$ac_try;;
4558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4559 (eval "$ac_link") 2>&5
4561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4563 { (case "(($ac_try" in
4564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4565 *) ac_try_echo=$ac_try;;
4567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4568 (eval "$ac_try") 2>&5
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); }; }; then
4572 ac_cv_c_bigendian=no
4574 echo "$as_me: program exited with status $ac_status" >&5
4575 echo "$as_me: failed program was:" >&5
4576 sed 's/^/| /' conftest.$ac_ext >&5
4579 ac_cv_c_bigendian=yes
4581 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4589 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4590 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4591 case $ac_cv_c_bigendian in
4599 { { echo "$as_me:$LINENO: error: unknown endianness
4600 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4601 echo "$as_me: error: unknown endianness
4602 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4603 { (exit 1); exit 1; }; } ;;
4607 if test "$cross_compiling" = yes; then
4608 LLVM_CROSS_COMPILING=1
4611 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4612 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4613 if test "${ac_cv_build_exeext+set}" = set; then
4614 echo $ECHO_N "(cached) $ECHO_C" >&6
4616 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4617 ac_cv_build_exeext=.exe
4619 ac_build_prefix=${build_alias}-
4621 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4622 set dummy ${ac_build_prefix}gcc; ac_word=$2
4623 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4625 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4626 echo $ECHO_N "(cached) $ECHO_C" >&6
4628 if test -n "$BUILD_CC"; then
4629 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4635 test -z "$as_dir" && as_dir=.
4636 for ac_exec_ext in '' $ac_executable_extensions; do
4637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4638 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4648 BUILD_CC=$ac_cv_prog_BUILD_CC
4649 if test -n "$BUILD_CC"; then
4650 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4651 echo "${ECHO_T}$BUILD_CC" >&6; }
4653 { echo "$as_me:$LINENO: result: no" >&5
4654 echo "${ECHO_T}no" >&6; }
4658 if test -z "$BUILD_CC"; then
4659 # Extract the first word of "gcc", so it can be a program name with args.
4660 set dummy gcc; ac_word=$2
4661 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4663 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4664 echo $ECHO_N "(cached) $ECHO_C" >&6
4666 if test -n "$BUILD_CC"; then
4667 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4673 test -z "$as_dir" && as_dir=.
4674 for ac_exec_ext in '' $ac_executable_extensions; do
4675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4676 ac_cv_prog_BUILD_CC="gcc"
4677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4686 BUILD_CC=$ac_cv_prog_BUILD_CC
4687 if test -n "$BUILD_CC"; then
4688 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4689 echo "${ECHO_T}$BUILD_CC" >&6; }
4691 { echo "$as_me:$LINENO: result: no" >&5
4692 echo "${ECHO_T}no" >&6; }
4696 if test -z "$BUILD_CC"; then
4697 # Extract the first word of "cc", so it can be a program name with args.
4698 set dummy cc; ac_word=$2
4699 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4701 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4702 echo $ECHO_N "(cached) $ECHO_C" >&6
4704 if test -n "$BUILD_CC"; then
4705 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4712 test -z "$as_dir" && as_dir=.
4713 for ac_exec_ext in '' $ac_executable_extensions; do
4714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4715 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4716 ac_prog_rejected=yes
4719 ac_cv_prog_BUILD_CC="cc"
4720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4727 if test $ac_prog_rejected = yes; then
4728 # We found a bogon in the path, so make sure we never use it.
4729 set dummy $ac_cv_prog_BUILD_CC
4731 if test $# != 0; then
4732 # We chose a different compiler from the bogus one.
4733 # However, it has the same basename, so the bogon will be chosen
4734 # first if we set BUILD_CC to just the basename; use the full file name.
4736 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4741 BUILD_CC=$ac_cv_prog_BUILD_CC
4742 if test -n "$BUILD_CC"; then
4743 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4744 echo "${ECHO_T}$BUILD_CC" >&6; }
4746 { echo "$as_me:$LINENO: result: no" >&5
4747 echo "${ECHO_T}no" >&6; }
4753 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4754 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4755 { (exit 1); exit 1; }; }
4756 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4758 echo 'int main () { return 0; }' > conftest.$ac_ext
4760 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4761 (eval $ac_build_link) 2>&5
4763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764 (exit $ac_status); }; then
4765 for file in conftest.*; do
4767 *.c | *.o | *.obj | *.dSYM) ;;
4768 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4772 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4773 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4774 { (exit 1); exit 1; }; }
4777 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4782 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4783 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4784 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4785 ac_build_exeext=$BUILD_EXEEXT
4787 ac_build_prefix=${build_alias}-
4788 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4789 set dummy ${ac_build_prefix}g++; ac_word=$2
4790 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4792 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4793 echo $ECHO_N "(cached) $ECHO_C" >&6
4795 if test -n "$BUILD_CXX"; then
4796 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4802 test -z "$as_dir" && as_dir=.
4803 for ac_exec_ext in '' $ac_executable_extensions; do
4804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4805 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4815 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4816 if test -n "$BUILD_CXX"; then
4817 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4818 echo "${ECHO_T}$BUILD_CXX" >&6; }
4820 { echo "$as_me:$LINENO: result: no" >&5
4821 echo "${ECHO_T}no" >&6; }
4825 if test -z "$BUILD_CXX"; then
4826 # Extract the first word of "g++", so it can be a program name with args.
4827 set dummy g++; ac_word=$2
4828 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4830 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4831 echo $ECHO_N "(cached) $ECHO_C" >&6
4833 if test -n "$BUILD_CXX"; then
4834 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4840 test -z "$as_dir" && as_dir=.
4841 for ac_exec_ext in '' $ac_executable_extensions; do
4842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4843 ac_cv_prog_BUILD_CXX="g++"
4844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4853 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4854 if test -n "$BUILD_CXX"; then
4855 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4856 echo "${ECHO_T}$BUILD_CXX" >&6; }
4858 { echo "$as_me:$LINENO: result: no" >&5
4859 echo "${ECHO_T}no" >&6; }
4863 if test -z "$BUILD_CXX"; then
4864 # Extract the first word of "c++", so it can be a program name with args.
4865 set dummy c++; ac_word=$2
4866 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4868 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4869 echo $ECHO_N "(cached) $ECHO_C" >&6
4871 if test -n "$BUILD_CXX"; then
4872 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4879 test -z "$as_dir" && as_dir=.
4880 for ac_exec_ext in '' $ac_executable_extensions; do
4881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4882 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4883 ac_prog_rejected=yes
4886 ac_cv_prog_BUILD_CXX="c++"
4887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4894 if test $ac_prog_rejected = yes; then
4895 # We found a bogon in the path, so make sure we never use it.
4896 set dummy $ac_cv_prog_BUILD_CXX
4898 if test $# != 0; then
4899 # We chose a different compiler from the bogus one.
4900 # However, it has the same basename, so the bogon will be chosen
4901 # first if we set BUILD_CXX to just the basename; use the full file name.
4903 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4908 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4909 if test -n "$BUILD_CXX"; then
4910 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4911 echo "${ECHO_T}$BUILD_CXX" >&6; }
4913 { echo "$as_me:$LINENO: result: no" >&5
4914 echo "${ECHO_T}no" >&6; }
4921 LLVM_CROSS_COMPILING=0
4925 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4936 # Check whether --enable-libcpp was given.
4937 if test "${enable_libcpp+set}" = set; then
4938 enableval=$enable_libcpp;
4943 case "$enableval" in
4944 yes) ENABLE_LIBCPP=1
4948 default) ENABLE_LIBCPP=0
4950 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4951 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4952 { (exit 1); exit 1; }; } ;;
4955 # Check whether --enable-cxx11 was given.
4956 if test "${enable_cxx11+set}" = set; then
4957 enableval=$enable_cxx11;
4962 case "$enableval" in
4967 default) ENABLE_CXX11=0
4969 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
4970 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
4971 { (exit 1); exit 1; }; } ;;
4974 # Check whether --enable-optimized was given.
4975 if test "${enable_optimized+set}" = set; then
4976 enableval=$enable_optimized;
4981 if test ${enableval} = "no" ; then
4985 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4989 # Check whether --enable-profiling was given.
4990 if test "${enable_profiling+set}" = set; then
4991 enableval=$enable_profiling;
4996 if test ${enableval} = "no" ; then
5000 ENABLE_PROFILING=ENABLE_PROFILING=1
5004 # Check whether --enable-assertions was given.
5005 if test "${enable_assertions+set}" = set; then
5006 enableval=$enable_assertions;
5011 if test ${enableval} = "yes" ; then
5015 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5019 # Check whether --enable-werror was given.
5020 if test "${enable_werror+set}" = set; then
5021 enableval=$enable_werror;
5026 case "$enableval" in
5027 yes) ENABLE_WERROR=1
5031 default) ENABLE_WERROR=0
5033 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5034 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5035 { (exit 1); exit 1; }; } ;;
5038 # Check whether --enable-expensive-checks was given.
5039 if test "${enable_expensive_checks+set}" = set; then
5040 enableval=$enable_expensive_checks;
5045 if test ${enableval} = "yes" ; then
5046 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5048 EXPENSIVE_CHECKS=yes
5051 ENABLE_EXPENSIVE_CHECKS=
5057 # Check whether --enable-debug-runtime was given.
5058 if test "${enable_debug_runtime+set}" = set; then
5059 enableval=$enable_debug_runtime;
5064 if test ${enableval} = "no" ; then
5068 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5072 # Check whether --enable-debug-symbols was given.
5073 if test "${enable_debug_symbols+set}" = set; then
5074 enableval=$enable_debug_symbols;
5079 if test ${enableval} = "no" ; then
5083 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5087 # Check whether --enable-jit was given.
5088 if test "${enable_jit+set}" = set; then
5089 enableval=$enable_jit;
5094 if test ${enableval} = "no"
5099 case "$llvm_cv_target_arch" in
5100 x86) TARGET_HAS_JIT=1
5102 Sparc) TARGET_HAS_JIT=0
5104 PowerPC) TARGET_HAS_JIT=1
5106 x86_64) TARGET_HAS_JIT=1
5108 ARM) TARGET_HAS_JIT=1
5110 AArch64) TARGET_HAS_JIT=0
5112 Mips) TARGET_HAS_JIT=1
5114 XCore) TARGET_HAS_JIT=0
5116 MSP430) TARGET_HAS_JIT=0
5118 Hexagon) TARGET_HAS_JIT=0
5120 NVPTX) TARGET_HAS_JIT=0
5122 SystemZ) TARGET_HAS_JIT=1
5129 # Check whether --enable-docs was given.
5130 if test "${enable_docs+set}" = set; then
5131 enableval=$enable_docs;
5136 case "$enableval" in
5141 default) ENABLE_DOCS=1
5143 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5144 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5145 { (exit 1); exit 1; }; } ;;
5148 # Check whether --enable-doxygen was given.
5149 if test "${enable_doxygen+set}" = set; then
5150 enableval=$enable_doxygen;
5155 case "$enableval" in
5156 yes) ENABLE_DOXYGEN=1
5158 no) ENABLE_DOXYGEN=0
5160 default) ENABLE_DOXYGEN=0
5162 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5163 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5164 { (exit 1); exit 1; }; } ;;
5167 # Check whether --enable-threads was given.
5168 if test "${enable_threads+set}" = set; then
5169 enableval=$enable_threads;
5174 case "$enableval" in
5175 yes) ENABLE_THREADS=1
5177 no) ENABLE_THREADS=0
5179 default) ENABLE_THREADS=1
5181 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5182 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5183 { (exit 1); exit 1; }; } ;;
5186 cat >>confdefs.h <<_ACEOF
5187 #define ENABLE_THREADS $ENABLE_THREADS
5191 # Check whether --enable-pthreads was given.
5192 if test "${enable_pthreads+set}" = set; then
5193 enableval=$enable_pthreads;
5198 case "$enableval" in
5199 yes) ENABLE_PTHREADS=1
5201 no) ENABLE_PTHREADS=0
5203 default) ENABLE_PTHREADS=1
5205 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5206 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5207 { (exit 1); exit 1; }; } ;;
5210 # Check whether --enable-zlib was given.
5211 if test "${enable_zlib+set}" = set; then
5212 enableval=$enable_zlib;
5217 case "$enableval" in
5218 yes) LLVM_ENABLE_ZLIB=1
5220 no) LLVM_ENABLE_ZLIB=0
5222 default) LLVM_ENABLE_ZLIB=1
5224 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5225 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5226 { (exit 1); exit 1; }; } ;;
5229 cat >>confdefs.h <<_ACEOF
5230 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5234 # Check whether --enable-pic was given.
5235 if test "${enable_pic+set}" = set; then
5236 enableval=$enable_pic;
5241 case "$enableval" in
5246 default) ENABLE_PIC=1
5248 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5249 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5250 { (exit 1); exit 1; }; } ;;
5253 cat >>confdefs.h <<_ACEOF
5254 #define ENABLE_PIC $ENABLE_PIC
5258 # Check whether --enable-shared was given.
5259 if test "${enable_shared+set}" = set; then
5260 enableval=$enable_shared;
5265 case "$enableval" in
5266 yes) ENABLE_SHARED=1
5270 default) ENABLE_SHARED=0
5272 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5273 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5274 { (exit 1); exit 1; }; } ;;
5277 # Check whether --enable-embed-stdcxx was given.
5278 if test "${enable_embed_stdcxx+set}" = set; then
5279 enableval=$enable_embed_stdcxx;
5284 case "$enableval" in
5285 yes) ENABLE_EMBED_STDCXX=1
5287 no) ENABLE_EMBED_STDCXX=0
5289 default) ENABLE_EMBED_STDCXX=1
5291 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5292 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5293 { (exit 1); exit 1; }; } ;;
5296 # Check whether --enable-timestamps was given.
5297 if test "${enable_timestamps+set}" = set; then
5298 enableval=$enable_timestamps;
5303 case "$enableval" in
5304 yes) ENABLE_TIMESTAMPS=1
5306 no) ENABLE_TIMESTAMPS=0
5308 default) ENABLE_TIMESTAMPS=1
5310 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5311 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5312 { (exit 1); exit 1; }; } ;;
5315 cat >>confdefs.h <<_ACEOF
5316 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5321 # Check whether --enable-targets was given.
5322 if test "${enable_targets+set}" = set; then
5323 enableval=$enable_targets;
5328 if test "$enableval" = host-only ; then
5331 case "$enableval" in
5332 all) TARGETS_TO_BUILD="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600" ;;
5333 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5335 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5336 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5337 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5338 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5339 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5340 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5341 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5342 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5343 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5344 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5345 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5346 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5347 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5348 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5349 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5350 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5351 r600) TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5352 host) case "$llvm_cv_target_arch" in
5353 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5354 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5355 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5356 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5357 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5358 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5359 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5360 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5361 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5362 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5363 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5364 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5365 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5366 echo "$as_me: error: Can not set target to build" >&2;}
5367 { (exit 1); exit 1; }; } ;;
5369 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5370 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5371 { (exit 1); exit 1; }; } ;;
5376 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5379 # Determine whether we are building LLVM support for the native architecture.
5380 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5381 for a_target in $TARGETS_TO_BUILD; do
5382 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5384 cat >>confdefs.h <<_ACEOF
5385 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5388 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5389 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5390 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5391 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5392 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5393 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5395 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5396 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5399 cat >>confdefs.h <<_ACEOF
5400 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5404 cat >>confdefs.h <<_ACEOF
5405 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5409 cat >>confdefs.h <<_ACEOF
5410 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5414 cat >>confdefs.h <<_ACEOF
5415 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5418 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5420 cat >>confdefs.h <<_ACEOF
5421 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5425 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5427 cat >>confdefs.h <<_ACEOF
5428 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5435 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5436 # target feature def files.
5437 LLVM_ENUM_TARGETS=""
5438 LLVM_ENUM_ASM_PRINTERS=""
5439 LLVM_ENUM_ASM_PARSERS=""
5440 LLVM_ENUM_DISASSEMBLERS=""
5441 for target_to_build in $TARGETS_TO_BUILD; do
5442 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5443 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5444 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5446 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5447 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5449 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5450 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5459 # Check whether --with-optimize-option was given.
5460 if test "${with_optimize_option+set}" = set; then
5461 withval=$with_optimize_option;
5466 { echo "$as_me:$LINENO: checking optimization flags" >&5
5467 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5470 case "$llvm_cv_os_type" in
5471 FreeBSD) optimize_option=-O2 ;;
5472 MingW) optimize_option=-O2 ;;
5473 *) optimize_option=-O3 ;;
5475 *) optimize_option="$withval" ;;
5477 OPTIMIZE_OPTION=$optimize_option
5479 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5480 echo "${ECHO_T}$optimize_option" >&6; }
5483 # Check whether --with-extra-options was given.
5484 if test "${with_extra_options+set}" = set; then
5485 withval=$with_extra_options;
5491 default) EXTRA_OPTIONS= ;;
5492 *) EXTRA_OPTIONS=$withval ;;
5494 EXTRA_OPTIONS=$EXTRA_OPTIONS
5498 # Check whether --with-extra-ld-options was given.
5499 if test "${with_extra_ld_options+set}" = set; then
5500 withval=$with_extra_ld_options;
5506 default) EXTRA_LD_OPTIONS= ;;
5507 *) EXTRA_LD_OPTIONS=$withval ;;
5509 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5512 # Check whether --enable-bindings was given.
5513 if test "${enable_bindings+set}" = set; then
5514 enableval=$enable_bindings;
5519 BINDINGS_TO_BUILD=""
5520 case "$enableval" in
5521 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5522 all ) BINDINGS_TO_BUILD="ocaml" ;;
5523 none | no) BINDINGS_TO_BUILD="" ;;
5524 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5525 case "$a_binding" in
5526 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5527 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5528 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5529 { (exit 1); exit 1; }; } ;;
5536 # Check whether --with-ocaml-libdir was given.
5537 if test "${with_ocaml_libdir+set}" = set; then
5538 withval=$with_ocaml_libdir;
5544 auto) with_ocaml_libdir="$withval" ;;
5545 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5546 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5547 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5548 { (exit 1); exit 1; }; } ;;
5552 # Check whether --with-clang-resource-dir was given.
5553 if test "${with_clang_resource_dir+set}" = set; then
5554 withval=$with_clang_resource_dir;
5560 cat >>confdefs.h <<_ACEOF
5561 #define CLANG_RESOURCE_DIR "$withval"
5566 # Check whether --with-c-include-dirs was given.
5567 if test "${with_c_include_dirs+set}" = set; then
5568 withval=$with_c_include_dirs;
5574 cat >>confdefs.h <<_ACEOF
5575 #define C_INCLUDE_DIRS "$withval"
5579 # Clang normally uses the system c++ headers and libraries. With this option,
5580 # clang will use the ones provided by a gcc installation instead. This option should
5581 # be passed the same value that was used with --prefix when configuring gcc.
5583 # Check whether --with-gcc-toolchain was given.
5584 if test "${with_gcc_toolchain+set}" = set; then
5585 withval=$with_gcc_toolchain;
5591 cat >>confdefs.h <<_ACEOF
5592 #define GCC_INSTALL_PREFIX "$withval"
5597 # Check whether --with-binutils-include was given.
5598 if test "${with_binutils_include+set}" = set; then
5599 withval=$with_binutils_include;
5605 default) WITH_BINUTILS_INCDIR=default ;;
5606 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5607 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5608 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5609 { (exit 1); exit 1; }; } ;;
5611 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5612 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5614 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5615 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5616 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5617 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5618 { (exit 1); exit 1; }; };
5623 # Check whether --with-bug-report-url was given.
5624 if test "${with_bug_report_url+set}" = set; then
5625 withval=$with_bug_report_url;
5627 withval="http://llvm.org/bugs/"
5631 cat >>confdefs.h <<_ACEOF
5632 #define BUG_REPORT_URL "$withval"
5636 # Check whether --enable-terminfo was given.
5637 if test "${enable_terminfo+set}" = set; then
5638 enableval=$enable_terminfo; case "$enableval" in
5639 yes) llvm_cv_enable_terminfo="yes" ;;
5640 no) llvm_cv_enable_terminfo="no" ;;
5641 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
5642 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
5643 { (exit 1); exit 1; }; } ;;
5646 llvm_cv_enable_terminfo="yes"
5650 # Check whether --enable-libffi was given.
5651 if test "${enable_libffi+set}" = set; then
5652 enableval=$enable_libffi; case "$enableval" in
5653 yes) llvm_cv_enable_libffi="yes" ;;
5654 no) llvm_cv_enable_libffi="no" ;;
5655 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5656 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5657 { (exit 1); exit 1; }; } ;;
5660 llvm_cv_enable_libffi=no
5665 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5666 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5667 if test "${lt_cv_path_NM+set}" = set; then
5668 echo $ECHO_N "(cached) $ECHO_C" >&6
5670 if test -n "$NM"; then
5671 # Let the user override the test.
5674 lt_nm_to_check="${ac_tool_prefix}nm"
5675 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5676 lt_nm_to_check="$lt_nm_to_check nm"
5678 for lt_tmp_nm in $lt_nm_to_check; do
5679 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5680 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5682 test -z "$ac_dir" && ac_dir=.
5683 tmp_nm="$ac_dir/$lt_tmp_nm"
5684 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5685 # Check to see if the nm accepts a BSD-compat flag.
5686 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5687 # nm: unknown option "B" ignored
5688 # Tru64's nm complains that /dev/null is an invalid object file
5689 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5690 */dev/null* | *'Invalid file or object type'*)
5691 lt_cv_path_NM="$tmp_nm -B"
5695 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5697 lt_cv_path_NM="$tmp_nm -p"
5701 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5702 continue # so that we can try to find one that supports BSD flags
5711 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5714 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5715 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5720 { echo "$as_me:$LINENO: checking for GNU make" >&5
5721 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5722 if test "${llvm_cv_gnu_make_command+set}" = set; then
5723 echo $ECHO_N "(cached) $ECHO_C" >&6
5725 llvm_cv_gnu_make_command=''
5726 for a in "$MAKE" make gmake gnumake ; do
5727 if test -z "$a" ; then continue ; fi ;
5728 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5730 llvm_cv_gnu_make_command=$a ;
5735 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5736 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5737 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5741 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5742 echo "${ECHO_T}\"Not found\"" >&6; };
5746 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5747 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5749 if test "$LN_S" = "ln -s"; then
5750 { echo "$as_me:$LINENO: result: yes" >&5
5751 echo "${ECHO_T}yes" >&6; }
5753 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5754 echo "${ECHO_T}no, using $LN_S" >&6; }
5757 # Extract the first word of "cmp", so it can be a program name with args.
5758 set dummy cmp; ac_word=$2
5759 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5761 if test "${ac_cv_path_CMP+set}" = set; then
5762 echo $ECHO_N "(cached) $ECHO_C" >&6
5766 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5773 test -z "$as_dir" && as_dir=.
5774 for ac_exec_ext in '' $ac_executable_extensions; do
5775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5776 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5784 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5789 if test -n "$CMP"; then
5790 { echo "$as_me:$LINENO: result: $CMP" >&5
5791 echo "${ECHO_T}$CMP" >&6; }
5793 { echo "$as_me:$LINENO: result: no" >&5
5794 echo "${ECHO_T}no" >&6; }
5798 # Extract the first word of "cp", so it can be a program name with args.
5799 set dummy cp; ac_word=$2
5800 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5802 if test "${ac_cv_path_CP+set}" = set; then
5803 echo $ECHO_N "(cached) $ECHO_C" >&6
5807 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5814 test -z "$as_dir" && as_dir=.
5815 for ac_exec_ext in '' $ac_executable_extensions; do
5816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5817 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5825 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5830 if test -n "$CP"; then
5831 { echo "$as_me:$LINENO: result: $CP" >&5
5832 echo "${ECHO_T}$CP" >&6; }
5834 { echo "$as_me:$LINENO: result: no" >&5
5835 echo "${ECHO_T}no" >&6; }
5839 # Extract the first word of "date", so it can be a program name with args.
5840 set dummy date; ac_word=$2
5841 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5843 if test "${ac_cv_path_DATE+set}" = set; then
5844 echo $ECHO_N "(cached) $ECHO_C" >&6
5848 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5855 test -z "$as_dir" && as_dir=.
5856 for ac_exec_ext in '' $ac_executable_extensions; do
5857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5858 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5866 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5870 DATE=$ac_cv_path_DATE
5871 if test -n "$DATE"; then
5872 { echo "$as_me:$LINENO: result: $DATE" >&5
5873 echo "${ECHO_T}$DATE" >&6; }
5875 { echo "$as_me:$LINENO: result: no" >&5
5876 echo "${ECHO_T}no" >&6; }
5880 # Extract the first word of "find", so it can be a program name with args.
5881 set dummy find; ac_word=$2
5882 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5884 if test "${ac_cv_path_FIND+set}" = set; then
5885 echo $ECHO_N "(cached) $ECHO_C" >&6
5889 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5896 test -z "$as_dir" && as_dir=.
5897 for ac_exec_ext in '' $ac_executable_extensions; do
5898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5899 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5907 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5911 FIND=$ac_cv_path_FIND
5912 if test -n "$FIND"; then
5913 { echo "$as_me:$LINENO: result: $FIND" >&5
5914 echo "${ECHO_T}$FIND" >&6; }
5916 { echo "$as_me:$LINENO: result: no" >&5
5917 echo "${ECHO_T}no" >&6; }
5921 # Extract the first word of "grep", so it can be a program name with args.
5922 set dummy grep; ac_word=$2
5923 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5925 if test "${ac_cv_path_GREP+set}" = set; then
5926 echo $ECHO_N "(cached) $ECHO_C" >&6
5930 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5937 test -z "$as_dir" && as_dir=.
5938 for ac_exec_ext in '' $ac_executable_extensions; do
5939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5940 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5948 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5952 GREP=$ac_cv_path_GREP
5953 if test -n "$GREP"; then
5954 { echo "$as_me:$LINENO: result: $GREP" >&5
5955 echo "${ECHO_T}$GREP" >&6; }
5957 { echo "$as_me:$LINENO: result: no" >&5
5958 echo "${ECHO_T}no" >&6; }
5962 # Extract the first word of "mkdir", so it can be a program name with args.
5963 set dummy mkdir; ac_word=$2
5964 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5966 if test "${ac_cv_path_MKDIR+set}" = set; then
5967 echo $ECHO_N "(cached) $ECHO_C" >&6
5971 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5978 test -z "$as_dir" && as_dir=.
5979 for ac_exec_ext in '' $ac_executable_extensions; do
5980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5981 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5989 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5993 MKDIR=$ac_cv_path_MKDIR
5994 if test -n "$MKDIR"; then
5995 { echo "$as_me:$LINENO: result: $MKDIR" >&5
5996 echo "${ECHO_T}$MKDIR" >&6; }
5998 { echo "$as_me:$LINENO: result: no" >&5
5999 echo "${ECHO_T}no" >&6; }
6003 # Extract the first word of "mv", so it can be a program name with args.
6004 set dummy mv; ac_word=$2
6005 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6007 if test "${ac_cv_path_MV+set}" = set; then
6008 echo $ECHO_N "(cached) $ECHO_C" >&6
6012 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6019 test -z "$as_dir" && as_dir=.
6020 for ac_exec_ext in '' $ac_executable_extensions; do
6021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6022 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6030 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6035 if test -n "$MV"; then
6036 { echo "$as_me:$LINENO: result: $MV" >&5
6037 echo "${ECHO_T}$MV" >&6; }
6039 { echo "$as_me:$LINENO: result: no" >&5
6040 echo "${ECHO_T}no" >&6; }
6044 if test -n "$ac_tool_prefix"; then
6045 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6046 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6047 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6049 if test "${ac_cv_prog_RANLIB+set}" = set; then
6050 echo $ECHO_N "(cached) $ECHO_C" >&6
6052 if test -n "$RANLIB"; then
6053 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6059 test -z "$as_dir" && as_dir=.
6060 for ac_exec_ext in '' $ac_executable_extensions; do
6061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6062 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6072 RANLIB=$ac_cv_prog_RANLIB
6073 if test -n "$RANLIB"; then
6074 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6075 echo "${ECHO_T}$RANLIB" >&6; }
6077 { echo "$as_me:$LINENO: result: no" >&5
6078 echo "${ECHO_T}no" >&6; }
6083 if test -z "$ac_cv_prog_RANLIB"; then
6084 ac_ct_RANLIB=$RANLIB
6085 # Extract the first word of "ranlib", so it can be a program name with args.
6086 set dummy ranlib; ac_word=$2
6087 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6089 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6090 echo $ECHO_N "(cached) $ECHO_C" >&6
6092 if test -n "$ac_ct_RANLIB"; then
6093 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6099 test -z "$as_dir" && as_dir=.
6100 for ac_exec_ext in '' $ac_executable_extensions; do
6101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6102 ac_cv_prog_ac_ct_RANLIB="ranlib"
6103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6112 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6113 if test -n "$ac_ct_RANLIB"; then
6114 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6115 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6117 { echo "$as_me:$LINENO: result: no" >&5
6118 echo "${ECHO_T}no" >&6; }
6121 if test "x$ac_ct_RANLIB" = x; then
6124 case $cross_compiling:$ac_tool_warned in
6126 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6127 whose name does not start with the host triplet. If you think this
6128 configuration is useful to you, please write to autoconf@gnu.org." >&5
6129 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6130 whose name does not start with the host triplet. If you think this
6131 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6132 ac_tool_warned=yes ;;
6134 RANLIB=$ac_ct_RANLIB
6137 RANLIB="$ac_cv_prog_RANLIB"
6140 if test -n "$ac_tool_prefix"; then
6141 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6142 set dummy ${ac_tool_prefix}ar; ac_word=$2
6143 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6145 if test "${ac_cv_prog_AR+set}" = set; then
6146 echo $ECHO_N "(cached) $ECHO_C" >&6
6148 if test -n "$AR"; then
6149 ac_cv_prog_AR="$AR" # Let the user override the test.
6151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6155 test -z "$as_dir" && as_dir=.
6156 for ac_exec_ext in '' $ac_executable_extensions; do
6157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6158 ac_cv_prog_AR="${ac_tool_prefix}ar"
6159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6169 if test -n "$AR"; then
6170 { echo "$as_me:$LINENO: result: $AR" >&5
6171 echo "${ECHO_T}$AR" >&6; }
6173 { echo "$as_me:$LINENO: result: no" >&5
6174 echo "${ECHO_T}no" >&6; }
6179 if test -z "$ac_cv_prog_AR"; then
6181 # Extract the first word of "ar", so it can be a program name with args.
6182 set dummy ar; ac_word=$2
6183 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6185 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6186 echo $ECHO_N "(cached) $ECHO_C" >&6
6188 if test -n "$ac_ct_AR"; then
6189 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6195 test -z "$as_dir" && as_dir=.
6196 for ac_exec_ext in '' $ac_executable_extensions; do
6197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6198 ac_cv_prog_ac_ct_AR="ar"
6199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6208 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6209 if test -n "$ac_ct_AR"; then
6210 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6211 echo "${ECHO_T}$ac_ct_AR" >&6; }
6213 { echo "$as_me:$LINENO: result: no" >&5
6214 echo "${ECHO_T}no" >&6; }
6217 if test "x$ac_ct_AR" = x; then
6220 case $cross_compiling:$ac_tool_warned in
6222 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6223 whose name does not start with the host triplet. If you think this
6224 configuration is useful to you, please write to autoconf@gnu.org." >&5
6225 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6226 whose name does not start with the host triplet. If you think this
6227 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6228 ac_tool_warned=yes ;;
6236 # Extract the first word of "rm", so it can be a program name with args.
6237 set dummy rm; ac_word=$2
6238 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6240 if test "${ac_cv_path_RM+set}" = set; then
6241 echo $ECHO_N "(cached) $ECHO_C" >&6
6245 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6252 test -z "$as_dir" && as_dir=.
6253 for ac_exec_ext in '' $ac_executable_extensions; do
6254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6255 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6263 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6268 if test -n "$RM"; then
6269 { echo "$as_me:$LINENO: result: $RM" >&5
6270 echo "${ECHO_T}$RM" >&6; }
6272 { echo "$as_me:$LINENO: result: no" >&5
6273 echo "${ECHO_T}no" >&6; }
6277 # Extract the first word of "sed", so it can be a program name with args.
6278 set dummy sed; ac_word=$2
6279 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6281 if test "${ac_cv_path_SED+set}" = set; then
6282 echo $ECHO_N "(cached) $ECHO_C" >&6
6286 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6293 test -z "$as_dir" && as_dir=.
6294 for ac_exec_ext in '' $ac_executable_extensions; do
6295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6296 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6304 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6309 if test -n "$SED"; then
6310 { echo "$as_me:$LINENO: result: $SED" >&5
6311 echo "${ECHO_T}$SED" >&6; }
6313 { echo "$as_me:$LINENO: result: no" >&5
6314 echo "${ECHO_T}no" >&6; }
6318 # Extract the first word of "tar", so it can be a program name with args.
6319 set dummy tar; ac_word=$2
6320 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6322 if test "${ac_cv_path_TAR+set}" = set; then
6323 echo $ECHO_N "(cached) $ECHO_C" >&6
6327 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6334 test -z "$as_dir" && as_dir=.
6335 for ac_exec_ext in '' $ac_executable_extensions; do
6336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6337 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6345 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6350 if test -n "$TAR"; then
6351 { echo "$as_me:$LINENO: result: $TAR" >&5
6352 echo "${ECHO_T}$TAR" >&6; }
6354 { echo "$as_me:$LINENO: result: no" >&5
6355 echo "${ECHO_T}no" >&6; }
6359 # Extract the first word of "pwd", so it can be a program name with args.
6360 set dummy pwd; ac_word=$2
6361 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6363 if test "${ac_cv_path_BINPWD+set}" = set; then
6364 echo $ECHO_N "(cached) $ECHO_C" >&6
6368 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6375 test -z "$as_dir" && as_dir=.
6376 for ac_exec_ext in '' $ac_executable_extensions; do
6377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6378 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6386 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6390 BINPWD=$ac_cv_path_BINPWD
6391 if test -n "$BINPWD"; then
6392 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6393 echo "${ECHO_T}$BINPWD" >&6; }
6395 { echo "$as_me:$LINENO: result: no" >&5
6396 echo "${ECHO_T}no" >&6; }
6401 # Extract the first word of "Graphviz", so it can be a program name with args.
6402 set dummy Graphviz; ac_word=$2
6403 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6405 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6406 echo $ECHO_N "(cached) $ECHO_C" >&6
6410 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6417 test -z "$as_dir" && as_dir=.
6418 for ac_exec_ext in '' $ac_executable_extensions; do
6419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6420 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6428 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6432 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6433 if test -n "$GRAPHVIZ"; then
6434 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6435 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6437 { echo "$as_me:$LINENO: result: no" >&5
6438 echo "${ECHO_T}no" >&6; }
6442 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6444 cat >>confdefs.h <<\_ACEOF
6445 #define HAVE_GRAPHVIZ 1
6448 if test "$llvm_cv_os_type" = "MingW" ; then
6449 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6452 cat >>confdefs.h <<_ACEOF
6453 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6457 # Extract the first word of "dot", so it can be a program name with args.
6458 set dummy dot; ac_word=$2
6459 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6461 if test "${ac_cv_path_DOT+set}" = set; then
6462 echo $ECHO_N "(cached) $ECHO_C" >&6
6466 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6473 test -z "$as_dir" && as_dir=.
6474 for ac_exec_ext in '' $ac_executable_extensions; do
6475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6476 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6484 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6489 if test -n "$DOT"; then
6490 { echo "$as_me:$LINENO: result: $DOT" >&5
6491 echo "${ECHO_T}$DOT" >&6; }
6493 { echo "$as_me:$LINENO: result: no" >&5
6494 echo "${ECHO_T}no" >&6; }
6498 if test "$DOT" != "echo dot" ; then
6500 cat >>confdefs.h <<\_ACEOF
6504 if test "$llvm_cv_os_type" = "MingW" ; then
6505 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6508 cat >>confdefs.h <<_ACEOF
6509 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6513 # Extract the first word of "fdp", so it can be a program name with args.
6514 set dummy fdp; ac_word=$2
6515 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6517 if test "${ac_cv_path_FDP+set}" = set; then
6518 echo $ECHO_N "(cached) $ECHO_C" >&6
6522 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6529 test -z "$as_dir" && as_dir=.
6530 for ac_exec_ext in '' $ac_executable_extensions; do
6531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6532 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6540 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6545 if test -n "$FDP"; then
6546 { echo "$as_me:$LINENO: result: $FDP" >&5
6547 echo "${ECHO_T}$FDP" >&6; }
6549 { echo "$as_me:$LINENO: result: no" >&5
6550 echo "${ECHO_T}no" >&6; }
6554 if test "$FDP" != "echo fdp" ; then
6556 cat >>confdefs.h <<\_ACEOF
6560 if test "$llvm_cv_os_type" = "MingW" ; then
6561 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6564 cat >>confdefs.h <<_ACEOF
6565 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6569 # Extract the first word of "neato", so it can be a program name with args.
6570 set dummy neato; ac_word=$2
6571 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6573 if test "${ac_cv_path_NEATO+set}" = set; then
6574 echo $ECHO_N "(cached) $ECHO_C" >&6
6578 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6585 test -z "$as_dir" && as_dir=.
6586 for ac_exec_ext in '' $ac_executable_extensions; do
6587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6588 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6596 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6600 NEATO=$ac_cv_path_NEATO
6601 if test -n "$NEATO"; then
6602 { echo "$as_me:$LINENO: result: $NEATO" >&5
6603 echo "${ECHO_T}$NEATO" >&6; }
6605 { echo "$as_me:$LINENO: result: no" >&5
6606 echo "${ECHO_T}no" >&6; }
6610 if test "$NEATO" != "echo neato" ; then
6612 cat >>confdefs.h <<\_ACEOF
6613 #define HAVE_NEATO 1
6616 if test "$llvm_cv_os_type" = "MingW" ; then
6617 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6620 cat >>confdefs.h <<_ACEOF
6621 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6625 # Extract the first word of "twopi", so it can be a program name with args.
6626 set dummy twopi; ac_word=$2
6627 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6629 if test "${ac_cv_path_TWOPI+set}" = set; then
6630 echo $ECHO_N "(cached) $ECHO_C" >&6
6634 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6641 test -z "$as_dir" && as_dir=.
6642 for ac_exec_ext in '' $ac_executable_extensions; do
6643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6644 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6652 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6656 TWOPI=$ac_cv_path_TWOPI
6657 if test -n "$TWOPI"; then
6658 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6659 echo "${ECHO_T}$TWOPI" >&6; }
6661 { echo "$as_me:$LINENO: result: no" >&5
6662 echo "${ECHO_T}no" >&6; }
6666 if test "$TWOPI" != "echo twopi" ; then
6668 cat >>confdefs.h <<\_ACEOF
6669 #define HAVE_TWOPI 1
6672 if test "$llvm_cv_os_type" = "MingW" ; then
6673 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6676 cat >>confdefs.h <<_ACEOF
6677 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6681 # Extract the first word of "circo", so it can be a program name with args.
6682 set dummy circo; ac_word=$2
6683 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6685 if test "${ac_cv_path_CIRCO+set}" = set; then
6686 echo $ECHO_N "(cached) $ECHO_C" >&6
6690 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6697 test -z "$as_dir" && as_dir=.
6698 for ac_exec_ext in '' $ac_executable_extensions; do
6699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6700 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6708 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6712 CIRCO=$ac_cv_path_CIRCO
6713 if test -n "$CIRCO"; then
6714 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6715 echo "${ECHO_T}$CIRCO" >&6; }
6717 { echo "$as_me:$LINENO: result: no" >&5
6718 echo "${ECHO_T}no" >&6; }
6722 if test "$CIRCO" != "echo circo" ; then
6724 cat >>confdefs.h <<\_ACEOF
6725 #define HAVE_CIRCO 1
6728 if test "$llvm_cv_os_type" = "MingW" ; then
6729 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6732 cat >>confdefs.h <<_ACEOF
6733 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6737 for ac_prog in gv gsview32
6739 # Extract the first word of "$ac_prog", so it can be a program name with args.
6740 set dummy $ac_prog; ac_word=$2
6741 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6743 if test "${ac_cv_path_GV+set}" = set; then
6744 echo $ECHO_N "(cached) $ECHO_C" >&6
6748 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6755 test -z "$as_dir" && as_dir=.
6756 for ac_exec_ext in '' $ac_executable_extensions; do
6757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6758 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6770 if test -n "$GV"; then
6771 { echo "$as_me:$LINENO: result: $GV" >&5
6772 echo "${ECHO_T}$GV" >&6; }
6774 { echo "$as_me:$LINENO: result: no" >&5
6775 echo "${ECHO_T}no" >&6; }
6779 test -n "$GV" && break
6781 test -n "$GV" || GV="echo gv"
6783 if test "$GV" != "echo gv" ; then
6785 cat >>confdefs.h <<\_ACEOF
6789 if test "$llvm_cv_os_type" = "MingW" ; then
6790 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6793 cat >>confdefs.h <<_ACEOF
6794 #define LLVM_PATH_GV "$GV${EXEEXT}"
6798 # Extract the first word of "dotty", so it can be a program name with args.
6799 set dummy dotty; ac_word=$2
6800 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6802 if test "${ac_cv_path_DOTTY+set}" = set; then
6803 echo $ECHO_N "(cached) $ECHO_C" >&6
6807 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6814 test -z "$as_dir" && as_dir=.
6815 for ac_exec_ext in '' $ac_executable_extensions; do
6816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6817 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6825 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6829 DOTTY=$ac_cv_path_DOTTY
6830 if test -n "$DOTTY"; then
6831 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6832 echo "${ECHO_T}$DOTTY" >&6; }
6834 { echo "$as_me:$LINENO: result: no" >&5
6835 echo "${ECHO_T}no" >&6; }
6839 if test "$DOTTY" != "echo dotty" ; then
6841 cat >>confdefs.h <<\_ACEOF
6842 #define HAVE_DOTTY 1
6845 if test "$llvm_cv_os_type" = "MingW" ; then
6846 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6849 cat >>confdefs.h <<_ACEOF
6850 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6854 # Extract the first word of "xdot.py", so it can be a program name with args.
6855 set dummy xdot.py; ac_word=$2
6856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6858 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6859 echo $ECHO_N "(cached) $ECHO_C" >&6
6863 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6870 test -z "$as_dir" && as_dir=.
6871 for ac_exec_ext in '' $ac_executable_extensions; do
6872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6873 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6881 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6885 XDOT_PY=$ac_cv_path_XDOT_PY
6886 if test -n "$XDOT_PY"; then
6887 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6888 echo "${ECHO_T}$XDOT_PY" >&6; }
6890 { echo "$as_me:$LINENO: result: no" >&5
6891 echo "${ECHO_T}no" >&6; }
6895 if test "$XDOT_PY" != "echo xdot.py" ; then
6897 cat >>confdefs.h <<\_ACEOF
6898 #define HAVE_XDOT_PY 1
6901 if test "$llvm_cv_os_type" = "MingW" ; then
6902 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6905 cat >>confdefs.h <<_ACEOF
6906 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6911 # Find a good install program. We prefer a C program (faster),
6912 # so one script is as good as another. But avoid the broken or
6913 # incompatible versions:
6914 # SysV /etc/install, /usr/sbin/install
6915 # SunOS /usr/etc/install
6916 # IRIX /sbin/install
6918 # AmigaOS /C/install, which installs bootblocks on floppy discs
6919 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6920 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6921 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6922 # OS/2's system install, which has a completely different semantic
6923 # ./install, which can be erroneously created by make from ./install.sh.
6924 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6925 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6926 if test -z "$INSTALL"; then
6927 if test "${ac_cv_path_install+set}" = set; then
6928 echo $ECHO_N "(cached) $ECHO_C" >&6
6930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6934 test -z "$as_dir" && as_dir=.
6935 # Account for people who put trailing slashes in PATH elements.
6937 ./ | .// | /cC/* | \
6938 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6939 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6942 # OSF1 and SCO ODT 3.0 have their own names for install.
6943 # Don't use installbsd from OSF since it installs stuff as root
6945 for ac_prog in ginstall scoinst install; do
6946 for ac_exec_ext in '' $ac_executable_extensions; do
6947 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6948 if test $ac_prog = install &&
6949 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6950 # AIX install. It has an incompatible calling convention.
6952 elif test $ac_prog = install &&
6953 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6954 # program-specific install script used by HP pwplus--don't use.
6957 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6970 if test "${ac_cv_path_install+set}" = set; then
6971 INSTALL=$ac_cv_path_install
6973 # As a last resort, use the slow shell script. Don't cache a
6974 # value for INSTALL within a source directory, because that will
6975 # break other packages using the cache if that directory is
6976 # removed, or if the value is a relative name.
6977 INSTALL=$ac_install_sh
6980 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6981 echo "${ECHO_T}$INSTALL" >&6; }
6983 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6984 # It thinks the first close brace ends the variable substitution.
6985 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6987 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6989 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6992 [\\/$]* | ?:[\\/]* ) ;;
6993 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6996 # Extract the first word of "bzip2", so it can be a program name with args.
6997 set dummy bzip2; ac_word=$2
6998 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7000 if test "${ac_cv_path_BZIP2+set}" = set; then
7001 echo $ECHO_N "(cached) $ECHO_C" >&6
7005 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7012 test -z "$as_dir" && as_dir=.
7013 for ac_exec_ext in '' $ac_executable_extensions; do
7014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7015 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7026 BZIP2=$ac_cv_path_BZIP2
7027 if test -n "$BZIP2"; then
7028 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7029 echo "${ECHO_T}$BZIP2" >&6; }
7031 { echo "$as_me:$LINENO: result: no" >&5
7032 echo "${ECHO_T}no" >&6; }
7036 # Extract the first word of "cat", so it can be a program name with args.
7037 set dummy cat; ac_word=$2
7038 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7040 if test "${ac_cv_path_CAT+set}" = set; then
7041 echo $ECHO_N "(cached) $ECHO_C" >&6
7045 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7052 test -z "$as_dir" && as_dir=.
7053 for ac_exec_ext in '' $ac_executable_extensions; do
7054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7055 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7067 if test -n "$CAT"; then
7068 { echo "$as_me:$LINENO: result: $CAT" >&5
7069 echo "${ECHO_T}$CAT" >&6; }
7071 { echo "$as_me:$LINENO: result: no" >&5
7072 echo "${ECHO_T}no" >&6; }
7076 # Extract the first word of "doxygen", so it can be a program name with args.
7077 set dummy doxygen; ac_word=$2
7078 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7080 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7081 echo $ECHO_N "(cached) $ECHO_C" >&6
7085 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7092 test -z "$as_dir" && as_dir=.
7093 for ac_exec_ext in '' $ac_executable_extensions; do
7094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7095 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7106 DOXYGEN=$ac_cv_path_DOXYGEN
7107 if test -n "$DOXYGEN"; then
7108 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7109 echo "${ECHO_T}$DOXYGEN" >&6; }
7111 { echo "$as_me:$LINENO: result: no" >&5
7112 echo "${ECHO_T}no" >&6; }
7116 # Extract the first word of "groff", so it can be a program name with args.
7117 set dummy groff; ac_word=$2
7118 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7120 if test "${ac_cv_path_GROFF+set}" = set; then
7121 echo $ECHO_N "(cached) $ECHO_C" >&6
7125 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7132 test -z "$as_dir" && as_dir=.
7133 for ac_exec_ext in '' $ac_executable_extensions; do
7134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7135 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7146 GROFF=$ac_cv_path_GROFF
7147 if test -n "$GROFF"; then
7148 { echo "$as_me:$LINENO: result: $GROFF" >&5
7149 echo "${ECHO_T}$GROFF" >&6; }
7151 { echo "$as_me:$LINENO: result: no" >&5
7152 echo "${ECHO_T}no" >&6; }
7156 # Extract the first word of "gzip", so it can be a program name with args.
7157 set dummy gzip; ac_word=$2
7158 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7160 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7161 echo $ECHO_N "(cached) $ECHO_C" >&6
7165 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7172 test -z "$as_dir" && as_dir=.
7173 for ac_exec_ext in '' $ac_executable_extensions; do
7174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7175 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7186 GZIPBIN=$ac_cv_path_GZIPBIN
7187 if test -n "$GZIPBIN"; then
7188 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7189 echo "${ECHO_T}$GZIPBIN" >&6; }
7191 { echo "$as_me:$LINENO: result: no" >&5
7192 echo "${ECHO_T}no" >&6; }
7196 # Extract the first word of "pod2html", so it can be a program name with args.
7197 set dummy pod2html; ac_word=$2
7198 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7200 if test "${ac_cv_path_POD2HTML+set}" = set; then
7201 echo $ECHO_N "(cached) $ECHO_C" >&6
7205 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7212 test -z "$as_dir" && as_dir=.
7213 for ac_exec_ext in '' $ac_executable_extensions; do
7214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7215 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7226 POD2HTML=$ac_cv_path_POD2HTML
7227 if test -n "$POD2HTML"; then
7228 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7229 echo "${ECHO_T}$POD2HTML" >&6; }
7231 { echo "$as_me:$LINENO: result: no" >&5
7232 echo "${ECHO_T}no" >&6; }
7236 # Extract the first word of "pod2man", so it can be a program name with args.
7237 set dummy pod2man; ac_word=$2
7238 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7240 if test "${ac_cv_path_POD2MAN+set}" = set; then
7241 echo $ECHO_N "(cached) $ECHO_C" >&6
7245 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7252 test -z "$as_dir" && as_dir=.
7253 for ac_exec_ext in '' $ac_executable_extensions; do
7254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7255 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7266 POD2MAN=$ac_cv_path_POD2MAN
7267 if test -n "$POD2MAN"; then
7268 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7269 echo "${ECHO_T}$POD2MAN" >&6; }
7271 { echo "$as_me:$LINENO: result: no" >&5
7272 echo "${ECHO_T}no" >&6; }
7276 # Extract the first word of "pdfroff", so it can be a program name with args.
7277 set dummy pdfroff; ac_word=$2
7278 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7280 if test "${ac_cv_path_PDFROFF+set}" = set; then
7281 echo $ECHO_N "(cached) $ECHO_C" >&6
7285 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7292 test -z "$as_dir" && as_dir=.
7293 for ac_exec_ext in '' $ac_executable_extensions; do
7294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7295 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7306 PDFROFF=$ac_cv_path_PDFROFF
7307 if test -n "$PDFROFF"; then
7308 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7309 echo "${ECHO_T}$PDFROFF" >&6; }
7311 { echo "$as_me:$LINENO: result: no" >&5
7312 echo "${ECHO_T}no" >&6; }
7316 # Extract the first word of "runtest", so it can be a program name with args.
7317 set dummy runtest; ac_word=$2
7318 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7320 if test "${ac_cv_path_RUNTEST+set}" = set; then
7321 echo $ECHO_N "(cached) $ECHO_C" >&6
7325 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7332 test -z "$as_dir" && as_dir=.
7333 for ac_exec_ext in '' $ac_executable_extensions; do
7334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7335 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7346 RUNTEST=$ac_cv_path_RUNTEST
7347 if test -n "$RUNTEST"; then
7348 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7349 echo "${ECHO_T}$RUNTEST" >&6; }
7351 { echo "$as_me:$LINENO: result: no" >&5
7352 echo "${ECHO_T}no" >&6; }
7358 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7359 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7361 # Check whether --with-tclinclude was given.
7362 if test "${with_tclinclude+set}" = set; then
7363 withval=$with_tclinclude; with_tclinclude=${withval}
7368 if test "${ac_cv_path_tclsh+set}" = set; then
7369 echo $ECHO_N "(cached) $ECHO_C" >&6
7372 if test x"${with_tclinclude}" != x ; then
7373 if test -f ${with_tclinclude}/tclsh ; then
7374 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7375 elif test -f ${with_tclinclude}/src/tclsh ; then
7376 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7378 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7379 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7380 { (exit 1); exit 1; }; }
7386 if test x"${ac_cv_path_tclsh}" = x ; then
7387 { echo "$as_me:$LINENO: result: none" >&5
7388 echo "${ECHO_T}none" >&6; }
7389 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
7391 # Extract the first word of "$ac_prog", so it can be a program name with args.
7392 set dummy $ac_prog; ac_word=$2
7393 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7395 if test "${ac_cv_path_TCLSH+set}" = set; then
7396 echo $ECHO_N "(cached) $ECHO_C" >&6
7400 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7407 test -z "$as_dir" && as_dir=.
7408 for ac_exec_ext in '' $ac_executable_extensions; do
7409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7410 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7421 TCLSH=$ac_cv_path_TCLSH
7422 if test -n "$TCLSH"; then
7423 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7424 echo "${ECHO_T}$TCLSH" >&6; }
7426 { echo "$as_me:$LINENO: result: no" >&5
7427 echo "${ECHO_T}no" >&6; }
7431 test -n "$TCLSH" && break
7434 if test x"${TCLSH}" = x ; then
7435 ac_cv_path_tclsh='';
7437 ac_cv_path_tclsh="${TCLSH}";
7440 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7441 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7442 TCLSH="${ac_cv_path_tclsh}"
7446 # Extract the first word of "zip", so it can be a program name with args.
7447 set dummy zip; ac_word=$2
7448 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7450 if test "${ac_cv_path_ZIP+set}" = set; then
7451 echo $ECHO_N "(cached) $ECHO_C" >&6
7455 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7462 test -z "$as_dir" && as_dir=.
7463 for ac_exec_ext in '' $ac_executable_extensions; do
7464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7465 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7477 if test -n "$ZIP"; then
7478 { echo "$as_me:$LINENO: result: $ZIP" >&5
7479 echo "${ECHO_T}$ZIP" >&6; }
7481 { echo "$as_me:$LINENO: result: no" >&5
7482 echo "${ECHO_T}no" >&6; }
7486 for ac_prog in ocamlc
7488 # Extract the first word of "$ac_prog", so it can be a program name with args.
7489 set dummy $ac_prog; ac_word=$2
7490 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7492 if test "${ac_cv_path_OCAMLC+set}" = set; then
7493 echo $ECHO_N "(cached) $ECHO_C" >&6
7497 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7504 test -z "$as_dir" && as_dir=.
7505 for ac_exec_ext in '' $ac_executable_extensions; do
7506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7507 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7518 OCAMLC=$ac_cv_path_OCAMLC
7519 if test -n "$OCAMLC"; then
7520 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7521 echo "${ECHO_T}$OCAMLC" >&6; }
7523 { echo "$as_me:$LINENO: result: no" >&5
7524 echo "${ECHO_T}no" >&6; }
7528 test -n "$OCAMLC" && break
7531 for ac_prog in ocamlopt
7533 # Extract the first word of "$ac_prog", so it can be a program name with args.
7534 set dummy $ac_prog; ac_word=$2
7535 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7537 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7538 echo $ECHO_N "(cached) $ECHO_C" >&6
7542 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7549 test -z "$as_dir" && as_dir=.
7550 for ac_exec_ext in '' $ac_executable_extensions; do
7551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7552 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7563 OCAMLOPT=$ac_cv_path_OCAMLOPT
7564 if test -n "$OCAMLOPT"; then
7565 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7566 echo "${ECHO_T}$OCAMLOPT" >&6; }
7568 { echo "$as_me:$LINENO: result: no" >&5
7569 echo "${ECHO_T}no" >&6; }
7573 test -n "$OCAMLOPT" && break
7576 for ac_prog in ocamldep
7578 # Extract the first word of "$ac_prog", so it can be a program name with args.
7579 set dummy $ac_prog; ac_word=$2
7580 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7582 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7583 echo $ECHO_N "(cached) $ECHO_C" >&6
7587 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7594 test -z "$as_dir" && as_dir=.
7595 for ac_exec_ext in '' $ac_executable_extensions; do
7596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7597 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7608 OCAMLDEP=$ac_cv_path_OCAMLDEP
7609 if test -n "$OCAMLDEP"; then
7610 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7611 echo "${ECHO_T}$OCAMLDEP" >&6; }
7613 { echo "$as_me:$LINENO: result: no" >&5
7614 echo "${ECHO_T}no" >&6; }
7618 test -n "$OCAMLDEP" && break
7621 for ac_prog in ocamldoc
7623 # Extract the first word of "$ac_prog", so it can be a program name with args.
7624 set dummy $ac_prog; ac_word=$2
7625 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7627 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7628 echo $ECHO_N "(cached) $ECHO_C" >&6
7632 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7639 test -z "$as_dir" && as_dir=.
7640 for ac_exec_ext in '' $ac_executable_extensions; do
7641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7642 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7653 OCAMLDOC=$ac_cv_path_OCAMLDOC
7654 if test -n "$OCAMLDOC"; then
7655 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7656 echo "${ECHO_T}$OCAMLDOC" >&6; }
7658 { echo "$as_me:$LINENO: result: no" >&5
7659 echo "${ECHO_T}no" >&6; }
7663 test -n "$OCAMLDOC" && break
7666 for ac_prog in gas as
7668 # Extract the first word of "$ac_prog", so it can be a program name with args.
7669 set dummy $ac_prog; ac_word=$2
7670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7672 if test "${ac_cv_path_GAS+set}" = set; then
7673 echo $ECHO_N "(cached) $ECHO_C" >&6
7677 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7684 test -z "$as_dir" && as_dir=.
7685 for ac_exec_ext in '' $ac_executable_extensions; do
7686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7687 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7699 if test -n "$GAS"; then
7700 { echo "$as_me:$LINENO: result: $GAS" >&5
7701 echo "${ECHO_T}$GAS" >&6; }
7703 { echo "$as_me:$LINENO: result: no" >&5
7704 echo "${ECHO_T}no" >&6; }
7708 test -n "$GAS" && break
7712 { echo "$as_me:$LINENO: checking for linker version" >&5
7713 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7714 if test "${llvm_cv_link_version+set}" = set; then
7715 echo $ECHO_N "(cached) $ECHO_C" >&6
7718 version_string="$(ld -v 2>&1 | head -1)"
7721 if (echo "$version_string" | grep -q "ld64"); then
7722 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7724 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7728 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7729 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7731 cat >>confdefs.h <<_ACEOF
7732 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7737 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7738 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7739 if test "${llvm_cv_link_use_r+set}" = set; then
7740 echo $ECHO_N "(cached) $ECHO_C" >&6
7743 ac_cpp='$CPP $CPPFLAGS'
7744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7749 CFLAGS="$CFLAGS -Wl,-R."
7750 cat >conftest.$ac_ext <<_ACEOF
7753 cat confdefs.h >>conftest.$ac_ext
7754 cat >>conftest.$ac_ext <<_ACEOF
7755 /* end confdefs.h. */
7765 rm -f conftest.$ac_objext conftest$ac_exeext
7766 if { (ac_try="$ac_link"
7768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7769 *) ac_try_echo=$ac_try;;
7771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7772 (eval "$ac_link") 2>conftest.er1
7774 grep -v '^ *+' conftest.er1 >conftest.err
7776 cat conftest.err >&5
7777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778 (exit $ac_status); } &&
7779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7780 { (case "(($ac_try" in
7781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7782 *) ac_try_echo=$ac_try;;
7784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7785 (eval "$ac_try") 2>&5
7787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788 (exit $ac_status); }; } &&
7789 { ac_try='test -s conftest$ac_exeext'
7790 { (case "(($ac_try" in
7791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7792 *) ac_try_echo=$ac_try;;
7794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7795 (eval "$ac_try") 2>&5
7797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798 (exit $ac_status); }; }; then
7799 llvm_cv_link_use_r=yes
7801 echo "$as_me: failed program was:" >&5
7802 sed 's/^/| /' conftest.$ac_ext >&5
7804 llvm_cv_link_use_r=no
7807 rm -f core conftest.err conftest.$ac_objext \
7808 conftest$ac_exeext conftest.$ac_ext
7811 ac_cpp='$CPP $CPPFLAGS'
7812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7818 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7819 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7820 if test "$llvm_cv_link_use_r" = yes ; then
7822 cat >>confdefs.h <<\_ACEOF
7823 #define HAVE_LINK_R 1
7829 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7830 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7831 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7832 echo $ECHO_N "(cached) $ECHO_C" >&6
7835 ac_cpp='$CPP $CPPFLAGS'
7836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7841 CFLAGS="$CFLAGS -rdynamic"
7842 cat >conftest.$ac_ext <<_ACEOF
7845 cat confdefs.h >>conftest.$ac_ext
7846 cat >>conftest.$ac_ext <<_ACEOF
7847 /* end confdefs.h. */
7857 rm -f conftest.$ac_objext conftest$ac_exeext
7858 if { (ac_try="$ac_link"
7860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7861 *) ac_try_echo=$ac_try;;
7863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7864 (eval "$ac_link") 2>conftest.er1
7866 grep -v '^ *+' conftest.er1 >conftest.err
7868 cat conftest.err >&5
7869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7870 (exit $ac_status); } &&
7871 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7872 { (case "(($ac_try" in
7873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7874 *) ac_try_echo=$ac_try;;
7876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7877 (eval "$ac_try") 2>&5
7879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880 (exit $ac_status); }; } &&
7881 { ac_try='test -s conftest$ac_exeext'
7882 { (case "(($ac_try" in
7883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7884 *) ac_try_echo=$ac_try;;
7886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7887 (eval "$ac_try") 2>&5
7889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7890 (exit $ac_status); }; }; then
7891 llvm_cv_link_use_export_dynamic=yes
7893 echo "$as_me: failed program was:" >&5
7894 sed 's/^/| /' conftest.$ac_ext >&5
7896 llvm_cv_link_use_export_dynamic=no
7899 rm -f core conftest.err conftest.$ac_objext \
7900 conftest$ac_exeext conftest.$ac_ext
7903 ac_cpp='$CPP $CPPFLAGS'
7904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7910 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7911 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7912 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7914 cat >>confdefs.h <<\_ACEOF
7915 #define HAVE_LINK_EXPORT_DYNAMIC 1
7921 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7922 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7923 if test "${llvm_cv_link_use_version_script+set}" = set; then
7924 echo $ECHO_N "(cached) $ECHO_C" >&6
7927 ac_cpp='$CPP $CPPFLAGS'
7928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7934 # The following code is from the autoconf manual,
7935 # "11.13: Limitations of Usual Tools".
7936 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7937 # Use mktemp if possible; otherwise fall back on mkdir,
7938 # with $RANDOM to make collisions less likely.
7942 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7944 test -n "$tmp" && test -d "$tmp"
7946 tmp=$TMPDIR/foo$$-$RANDOM
7947 (umask 077 && mkdir "$tmp")
7950 echo "{" > "$tmp/export.map"
7951 echo " global: main;" >> "$tmp/export.map"
7952 echo " local: *;" >> "$tmp/export.map"
7953 echo "};" >> "$tmp/export.map"
7955 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7956 cat >conftest.$ac_ext <<_ACEOF
7959 cat confdefs.h >>conftest.$ac_ext
7960 cat >>conftest.$ac_ext <<_ACEOF
7961 /* end confdefs.h. */
7971 rm -f conftest.$ac_objext conftest$ac_exeext
7972 if { (ac_try="$ac_link"
7974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7975 *) ac_try_echo=$ac_try;;
7977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7978 (eval "$ac_link") 2>conftest.er1
7980 grep -v '^ *+' conftest.er1 >conftest.err
7982 cat conftest.err >&5
7983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984 (exit $ac_status); } &&
7985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7986 { (case "(($ac_try" in
7987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7988 *) ac_try_echo=$ac_try;;
7990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7991 (eval "$ac_try") 2>&5
7993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7994 (exit $ac_status); }; } &&
7995 { ac_try='test -s conftest$ac_exeext'
7996 { (case "(($ac_try" in
7997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7998 *) ac_try_echo=$ac_try;;
8000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8001 (eval "$ac_try") 2>&5
8003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8004 (exit $ac_status); }; }; then
8005 llvm_cv_link_use_version_script=yes
8007 echo "$as_me: failed program was:" >&5
8008 sed 's/^/| /' conftest.$ac_ext >&5
8010 llvm_cv_link_use_version_script=no
8013 rm -f core conftest.err conftest.$ac_objext \
8014 conftest$ac_exeext conftest.$ac_ext
8015 rm "$tmp/export.map"
8019 ac_cpp='$CPP $CPPFLAGS'
8020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8026 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8027 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8028 if test "$llvm_cv_link_use_version_script" = yes ; then
8029 HAVE_LINK_VERSION_SCRIPT=1
8036 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8037 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8038 if test "${ac_cv_c_const+set}" = set; then
8039 echo $ECHO_N "(cached) $ECHO_C" >&6
8041 cat >conftest.$ac_ext <<_ACEOF
8044 cat confdefs.h >>conftest.$ac_ext
8045 cat >>conftest.$ac_ext <<_ACEOF
8046 /* end confdefs.h. */
8051 /* FIXME: Include the comments suggested by Paul. */
8053 /* Ultrix mips cc rejects this. */
8054 typedef int charset[2];
8056 /* SunOS 4.1.1 cc rejects this. */
8057 char const *const *ccp;
8059 /* NEC SVR4.0.2 mips cc rejects this. */
8060 struct point {int x, y;};
8061 static struct point const zero = {0,0};
8062 /* AIX XL C 1.02.0.0 rejects this.
8063 It does not let you subtract one const X* pointer from another in
8064 an arm of an if-expression whose if-part is not a constant
8066 const char *g = "string";
8067 ccp = &g + (g ? g-g : 0);
8068 /* HPUX 7.0 cc rejects these. */
8071 ccp = (char const *const *) p;
8072 { /* SCO 3.2v4 cc rejects this. */
8074 char const *s = 0 ? (char *) 0 : (char const *) 0;
8079 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8081 const int *foo = &x[0];
8084 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8085 typedef const int *iptr;
8089 { /* AIX XL C 1.02.0.0 rejects this saying
8090 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8091 struct s { int j; const int *ap[3]; };
8092 struct s *b; b->j = 5;
8094 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8098 return !x[0] && !zero.x;
8105 rm -f conftest.$ac_objext
8106 if { (ac_try="$ac_compile"
8108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8109 *) ac_try_echo=$ac_try;;
8111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8112 (eval "$ac_compile") 2>conftest.er1
8114 grep -v '^ *+' conftest.er1 >conftest.err
8116 cat conftest.err >&5
8117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118 (exit $ac_status); } &&
8119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8120 { (case "(($ac_try" in
8121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8122 *) ac_try_echo=$ac_try;;
8124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8125 (eval "$ac_try") 2>&5
8127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128 (exit $ac_status); }; } &&
8129 { ac_try='test -s conftest.$ac_objext'
8130 { (case "(($ac_try" in
8131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8132 *) ac_try_echo=$ac_try;;
8134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8135 (eval "$ac_try") 2>&5
8137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138 (exit $ac_status); }; }; then
8141 echo "$as_me: failed program was:" >&5
8142 sed 's/^/| /' conftest.$ac_ext >&5
8147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8149 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8150 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8151 if test $ac_cv_c_const = no; then
8153 cat >>confdefs.h <<\_ACEOF
8165 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8166 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8167 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8168 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8169 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8170 echo $ECHO_N "(cached) $ECHO_C" >&6
8172 cat >conftest.$ac_ext <<_ACEOF
8175 cat confdefs.h >>conftest.$ac_ext
8176 cat >>conftest.$ac_ext <<_ACEOF
8177 /* end confdefs.h. */
8178 #include <sys/types.h>
8190 rm -f conftest.$ac_objext
8191 if { (ac_try="$ac_compile"
8193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8194 *) ac_try_echo=$ac_try;;
8196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8197 (eval "$ac_compile") 2>conftest.er1
8199 grep -v '^ *+' conftest.er1 >conftest.err
8201 cat conftest.err >&5
8202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203 (exit $ac_status); } &&
8204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8205 { (case "(($ac_try" in
8206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8207 *) ac_try_echo=$ac_try;;
8209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8210 (eval "$ac_try") 2>&5
8212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213 (exit $ac_status); }; } &&
8214 { ac_try='test -s conftest.$ac_objext'
8215 { (case "(($ac_try" in
8216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8217 *) ac_try_echo=$ac_try;;
8219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8220 (eval "$ac_try") 2>&5
8222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223 (exit $ac_status); }; }; then
8224 eval "$as_ac_Header=yes"
8226 echo "$as_me: failed program was:" >&5
8227 sed 's/^/| /' conftest.$ac_ext >&5
8229 eval "$as_ac_Header=no"
8232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8234 ac_res=`eval echo '${'$as_ac_Header'}'`
8235 { echo "$as_me:$LINENO: result: $ac_res" >&5
8236 echo "${ECHO_T}$ac_res" >&6; }
8237 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8238 cat >>confdefs.h <<_ACEOF
8239 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8242 ac_header_dirent=$ac_hdr; break
8246 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8247 if test $ac_header_dirent = dirent.h; then
8248 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8249 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8250 if test "${ac_cv_search_opendir+set}" = set; then
8251 echo $ECHO_N "(cached) $ECHO_C" >&6
8253 ac_func_search_save_LIBS=$LIBS
8254 cat >conftest.$ac_ext <<_ACEOF
8257 cat confdefs.h >>conftest.$ac_ext
8258 cat >>conftest.$ac_ext <<_ACEOF
8259 /* end confdefs.h. */
8261 /* Override any GCC internal prototype to avoid an error.
8262 Use char because int might match the return type of a GCC
8263 builtin and then its argument prototype would still apply. */
8276 for ac_lib in '' dir; do
8277 if test -z "$ac_lib"; then
8278 ac_res="none required"
8281 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8283 rm -f conftest.$ac_objext conftest$ac_exeext
8284 if { (ac_try="$ac_link"
8286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8287 *) ac_try_echo=$ac_try;;
8289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8290 (eval "$ac_link") 2>conftest.er1
8292 grep -v '^ *+' conftest.er1 >conftest.err
8294 cat conftest.err >&5
8295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8296 (exit $ac_status); } &&
8297 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8298 { (case "(($ac_try" in
8299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8300 *) ac_try_echo=$ac_try;;
8302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8303 (eval "$ac_try") 2>&5
8305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306 (exit $ac_status); }; } &&
8307 { ac_try='test -s conftest$ac_exeext'
8308 { (case "(($ac_try" in
8309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8310 *) ac_try_echo=$ac_try;;
8312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8313 (eval "$ac_try") 2>&5
8315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316 (exit $ac_status); }; }; then
8317 ac_cv_search_opendir=$ac_res
8319 echo "$as_me: failed program was:" >&5
8320 sed 's/^/| /' conftest.$ac_ext >&5
8325 rm -f core conftest.err conftest.$ac_objext \
8327 if test "${ac_cv_search_opendir+set}" = set; then
8331 if test "${ac_cv_search_opendir+set}" = set; then
8334 ac_cv_search_opendir=no
8337 LIBS=$ac_func_search_save_LIBS
8339 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8340 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8341 ac_res=$ac_cv_search_opendir
8342 if test "$ac_res" != no; then
8343 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8348 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8349 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8350 if test "${ac_cv_search_opendir+set}" = set; then
8351 echo $ECHO_N "(cached) $ECHO_C" >&6
8353 ac_func_search_save_LIBS=$LIBS
8354 cat >conftest.$ac_ext <<_ACEOF
8357 cat confdefs.h >>conftest.$ac_ext
8358 cat >>conftest.$ac_ext <<_ACEOF
8359 /* end confdefs.h. */
8361 /* Override any GCC internal prototype to avoid an error.
8362 Use char because int might match the return type of a GCC
8363 builtin and then its argument prototype would still apply. */
8376 for ac_lib in '' x; do
8377 if test -z "$ac_lib"; then
8378 ac_res="none required"
8381 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8383 rm -f conftest.$ac_objext conftest$ac_exeext
8384 if { (ac_try="$ac_link"
8386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8387 *) ac_try_echo=$ac_try;;
8389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8390 (eval "$ac_link") 2>conftest.er1
8392 grep -v '^ *+' conftest.er1 >conftest.err
8394 cat conftest.err >&5
8395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396 (exit $ac_status); } &&
8397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8398 { (case "(($ac_try" in
8399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8400 *) ac_try_echo=$ac_try;;
8402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8403 (eval "$ac_try") 2>&5
8405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406 (exit $ac_status); }; } &&
8407 { ac_try='test -s conftest$ac_exeext'
8408 { (case "(($ac_try" in
8409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8410 *) ac_try_echo=$ac_try;;
8412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8413 (eval "$ac_try") 2>&5
8415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416 (exit $ac_status); }; }; then
8417 ac_cv_search_opendir=$ac_res
8419 echo "$as_me: failed program was:" >&5
8420 sed 's/^/| /' conftest.$ac_ext >&5
8425 rm -f core conftest.err conftest.$ac_objext \
8427 if test "${ac_cv_search_opendir+set}" = set; then
8431 if test "${ac_cv_search_opendir+set}" = set; then
8434 ac_cv_search_opendir=no
8437 LIBS=$ac_func_search_save_LIBS
8439 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8440 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8441 ac_res=$ac_cv_search_opendir
8442 if test "$ac_res" != no; then
8443 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8450 for ac_header in dlfcn.h
8452 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8453 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8454 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8456 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8457 echo $ECHO_N "(cached) $ECHO_C" >&6
8459 ac_res=`eval echo '${'$as_ac_Header'}'`
8460 { echo "$as_me:$LINENO: result: $ac_res" >&5
8461 echo "${ECHO_T}$ac_res" >&6; }
8463 # Is the header compilable?
8464 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8465 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8466 cat >conftest.$ac_ext <<_ACEOF
8469 cat confdefs.h >>conftest.$ac_ext
8470 cat >>conftest.$ac_ext <<_ACEOF
8471 /* end confdefs.h. */
8472 $ac_includes_default
8473 #include <$ac_header>
8475 rm -f conftest.$ac_objext
8476 if { (ac_try="$ac_compile"
8478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8479 *) ac_try_echo=$ac_try;;
8481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8482 (eval "$ac_compile") 2>conftest.er1
8484 grep -v '^ *+' conftest.er1 >conftest.err
8486 cat conftest.err >&5
8487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8488 (exit $ac_status); } &&
8489 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8490 { (case "(($ac_try" in
8491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8492 *) ac_try_echo=$ac_try;;
8494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8495 (eval "$ac_try") 2>&5
8497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498 (exit $ac_status); }; } &&
8499 { ac_try='test -s conftest.$ac_objext'
8500 { (case "(($ac_try" in
8501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8502 *) ac_try_echo=$ac_try;;
8504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8505 (eval "$ac_try") 2>&5
8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 (exit $ac_status); }; }; then
8509 ac_header_compiler=yes
8511 echo "$as_me: failed program was:" >&5
8512 sed 's/^/| /' conftest.$ac_ext >&5
8514 ac_header_compiler=no
8517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8518 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8519 echo "${ECHO_T}$ac_header_compiler" >&6; }
8521 # Is the header present?
8522 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8523 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8524 cat >conftest.$ac_ext <<_ACEOF
8527 cat confdefs.h >>conftest.$ac_ext
8528 cat >>conftest.$ac_ext <<_ACEOF
8529 /* end confdefs.h. */
8530 #include <$ac_header>
8532 if { (ac_try="$ac_cpp conftest.$ac_ext"
8534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8535 *) ac_try_echo=$ac_try;;
8537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8538 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8540 grep -v '^ *+' conftest.er1 >conftest.err
8542 cat conftest.err >&5
8543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544 (exit $ac_status); } >/dev/null; then
8545 if test -s conftest.err; then
8546 ac_cpp_err=$ac_c_preproc_warn_flag
8547 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8554 if test -z "$ac_cpp_err"; then
8555 ac_header_preproc=yes
8557 echo "$as_me: failed program was:" >&5
8558 sed 's/^/| /' conftest.$ac_ext >&5
8560 ac_header_preproc=no
8563 rm -f conftest.err conftest.$ac_ext
8564 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8565 echo "${ECHO_T}$ac_header_preproc" >&6; }
8567 # So? What about this header?
8568 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8570 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8571 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8573 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8574 ac_header_preproc=yes
8577 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8578 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8579 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8580 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8581 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8582 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8583 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8584 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8586 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8587 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8588 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8590 ## ------------------------------ ##
8591 ## Report this to bugs@yourdomain ##
8592 ## ------------------------------ ##
8594 ) | sed "s/^/$as_me: WARNING: /" >&2
8597 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8600 echo $ECHO_N "(cached) $ECHO_C" >&6
8602 eval "$as_ac_Header=\$ac_header_preproc"
8604 ac_res=`eval echo '${'$as_ac_Header'}'`
8605 { echo "$as_me:$LINENO: result: $ac_res" >&5
8606 echo "${ECHO_T}$ac_res" >&6; }
8609 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8610 cat >>confdefs.h <<_ACEOF
8611 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8618 # Check whether --enable-ltdl-install was given.
8619 if test "${enable_ltdl_install+set}" = set; then
8620 enableval=$enable_ltdl_install;
8626 if test x"${enable_ltdl_install-no}" != xno; then
8628 INSTALL_LTDL_FALSE='#'
8630 INSTALL_LTDL_TRUE='#'
8636 if test x"${enable_ltdl_convenience-no}" != xno; then
8637 CONVENIENCE_LTDL_TRUE=
8638 CONVENIENCE_LTDL_FALSE='#'
8640 CONVENIENCE_LTDL_TRUE='#'
8641 CONVENIENCE_LTDL_FALSE=
8645 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8646 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8648 libname_spec='lib$name'
8656 shlibpath_overrides_runpath=unknown
8658 dynamic_linker="$host_os ld.so"
8659 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8660 if test "$GCC" = yes; then
8661 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8662 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8663 # if the path contains ";" then we assume it to be the separator
8664 # otherwise default to the standard path separator (i.e. ":") - it is
8665 # assumed that no part of a normal pathname contains ";" but that should
8666 # okay in the real world where ";" in dirpaths is itself problematic.
8667 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8669 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8672 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8674 need_lib_prefix=unknown
8675 hardcode_into_libs=no
8677 # when you set need_version to no, make sure it does not cause -set_version
8678 # flags to be left without arguments
8679 need_version=unknown
8684 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8685 shlibpath_var=LIBPATH
8687 # AIX 3 has no versioning support, so we append a major version to the name.
8688 soname_spec='${libname}${release}${shared_ext}$major'
8695 hardcode_into_libs=yes
8696 if test "$host_cpu" = ia64; then
8697 # AIX 5 supports IA64
8698 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8699 shlibpath_var=LD_LIBRARY_PATH
8701 # With GCC up to 2.95.x, collect2 would create an import file
8702 # for dependence libraries. The import file would start with
8703 # the line `#! .'. This would cause the generated library to
8704 # depend on `.', always an invalid library. This was fixed in
8705 # development snapshots of GCC prior to 3.0.
8707 aix4 | aix4.[01] | aix4.[01].*)
8708 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8710 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8717 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8718 # soname into executable. Probably we can add versioning support to
8719 # collect2, so additional links can be useful in future.
8720 if test "$aix_use_runtimelinking" = yes; then
8721 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8722 # instead of lib<name>.a to let people know that these are not
8723 # typical AIX shared libraries.
8724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8726 # We preserve .a as extension for shared libraries through AIX4.2
8727 # and later when we are not doing run time linking.
8728 library_names_spec='${libname}${release}.a $libname.a'
8729 soname_spec='${libname}${release}${shared_ext}$major'
8731 shlibpath_var=LIBPATH
8736 library_names_spec='$libname.ixlibrary $libname.a'
8737 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8738 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'
8742 library_names_spec='${libname}${shared_ext}'
8743 dynamic_linker="$host_os ld.so"
8744 shlibpath_var=LIBRARY_PATH
8750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8751 soname_spec='${libname}${release}${shared_ext}$major'
8752 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8753 shlibpath_var=LD_LIBRARY_PATH
8754 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8755 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8756 # the default ld.so.conf also contains /usr/contrib/lib and
8757 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8758 # libtool to hard-code these into programs
8761 cygwin* | mingw* | pw32*)
8762 version_type=windows
8767 case $GCC,$host_os in
8768 yes,cygwin* | yes,mingw* | yes,pw32*)
8769 library_names_spec='$libname.dll.a'
8770 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8771 postinstall_cmds='base_file=`basename \${file}`~
8772 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8773 dldir=$destdir/`dirname \$dlpath`~
8774 test -d \$dldir || mkdir -p \$dldir~
8775 $install_prog $dir/$dlname \$dldir/$dlname~
8776 chmod a+x \$dldir/$dlname'
8777 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8778 dlpath=$dir/\$dldll~
8780 shlibpath_overrides_runpath=yes
8784 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8785 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8786 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8789 # MinGW DLLs use traditional 'lib' prefix
8790 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8791 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8792 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8793 # It is most probably a Windows format PATH printed by
8794 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8795 # path with ; separators, and with drive letters. We can handle the
8796 # drive letters (cygwin fileutils understands them), so leave them,
8797 # especially as we might pass files found there to a mingw objdump,
8798 # which wouldn't understand a cygwinified path. Ahh.
8799 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8801 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8805 # pw32 DLLs use 'pw' prefix rather than 'lib'
8806 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8812 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8815 dynamic_linker='Win32 ld.exe'
8816 # FIXME: first we should search . and the directory the executable is in
8820 darwin* | rhapsody*)
8821 dynamic_linker="$host_os dyld"
8825 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8826 soname_spec='${libname}${release}${major}$shared_ext'
8827 shlibpath_overrides_runpath=yes
8828 shlibpath_var=DYLD_LIBRARY_PATH
8829 shrext_cmds='.dylib'
8830 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8831 if test "$GCC" = yes; then
8832 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"`
8834 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8836 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8844 soname_spec='${libname}${release}${shared_ext}$major'
8845 shlibpath_var=LD_LIBRARY_PATH
8856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8857 soname_spec='${libname}${release}${shared_ext}$major'
8858 shlibpath_var=LD_LIBRARY_PATH
8859 shlibpath_overrides_runpath=no
8860 hardcode_into_libs=yes
8861 dynamic_linker='GNU ld.so'
8864 freebsd* | dragonfly*)
8865 # DragonFly does not have aout. When/if they implement a new
8866 # versioning mechanism, adjust this.
8867 if test -x /usr/bin/objformat; then
8868 objformat=`/usr/bin/objformat`
8871 freebsd[123].*) objformat=aout ;;
8875 version_type=freebsd-$objformat
8876 case $version_type in
8878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8883 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8887 shlibpath_var=LD_LIBRARY_PATH
8890 shlibpath_overrides_runpath=yes
8892 freebsd3.[01]* | freebsdelf3.[01]*)
8893 shlibpath_overrides_runpath=yes
8894 hardcode_into_libs=yes
8896 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8897 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8898 shlibpath_overrides_runpath=no
8899 hardcode_into_libs=yes
8901 freebsd*) # from 4.6 on
8902 shlibpath_overrides_runpath=yes
8903 hardcode_into_libs=yes
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 shlibpath_var=LD_LIBRARY_PATH
8915 hardcode_into_libs=yes
8918 hpux9* | hpux10* | hpux11*)
8919 # Give a soname corresponding to the major version so that dld.sl refuses to
8920 # link against other versions.
8927 hardcode_into_libs=yes
8928 dynamic_linker="$host_os dld.so"
8929 shlibpath_var=LD_LIBRARY_PATH
8930 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8932 soname_spec='${libname}${release}${shared_ext}$major'
8933 if test "X$HPUX_IA64_MODE" = X32; then
8934 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8936 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8938 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8942 hardcode_into_libs=yes
8943 dynamic_linker="$host_os dld.sl"
8944 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8945 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8947 soname_spec='${libname}${release}${shared_ext}$major'
8948 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8949 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8953 dynamic_linker="$host_os dld.sl"
8954 shlibpath_var=SHLIB_PATH
8955 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8957 soname_spec='${libname}${release}${shared_ext}$major'
8960 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8961 postinstall_cmds='chmod 555 $lib'
8968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8969 soname_spec='${libname}${release}${shared_ext}$major'
8970 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8971 shlibpath_var=LD_LIBRARY_PATH
8972 shlibpath_overrides_runpath=no
8973 hardcode_into_libs=yes
8976 irix5* | irix6* | nonstopux*)
8978 nonstopux*) version_type=nonstopux ;;
8980 if test "$lt_cv_prog_gnu_ld" = yes; then
8988 soname_spec='${libname}${release}${shared_ext}$major'
8989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8991 irix5* | nonstopux*)
8995 case $LD in # libtool.m4 will add one of these switches to LD
8996 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8997 libsuff= shlibsuff= libmagic=32-bit;;
8998 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8999 libsuff=32 shlibsuff=N32 libmagic=N32;;
9000 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9001 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9002 *) libsuff= shlibsuff= libmagic=never-match;;
9006 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9007 shlibpath_overrides_runpath=no
9008 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9009 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9010 hardcode_into_libs=yes
9013 # No shared lib support for Linux oldld, aout, or coff.
9014 linux*oldld* | linux*aout* | linux*coff*)
9018 # This must be Linux ELF.
9023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9024 soname_spec='${libname}${release}${shared_ext}$major'
9025 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9026 shlibpath_var=LD_LIBRARY_PATH
9027 shlibpath_overrides_runpath=no
9028 # This implies no fast_install, which is unacceptable.
9029 # Some rework will be needed to allow for fast_install
9030 # before this can be enabled.
9031 hardcode_into_libs=yes
9033 # Append ld.so.conf contents to the search path
9034 if test -f /etc/ld.so.conf; then
9035 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' ' '`
9036 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9039 # We used to test for /lib/ld.so.1 and disable shared libraries on
9040 # powerpc, because MkLinux only supported shared libraries with the
9041 # GNU dynamic linker. Since this was broken with cross compilers,
9042 # most powerpc-linux boxes support dynamic linking these days and
9043 # people can always --disable-shared, the test was removed, and we
9044 # assume the GNU/Linux dynamic linker is in use.
9045 dynamic_linker='GNU/Linux ld.so'
9052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9053 soname_spec='${libname}${release}${shared_ext}$major'
9054 shlibpath_var=LD_LIBRARY_PATH
9055 shlibpath_overrides_runpath=no
9056 hardcode_into_libs=yes
9057 dynamic_linker='GNU ld.so'
9064 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9066 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9067 dynamic_linker='NetBSD (a.out) ld.so'
9069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9070 soname_spec='${libname}${release}${shared_ext}$major'
9071 dynamic_linker='NetBSD ld.elf_so'
9073 shlibpath_var=LD_LIBRARY_PATH
9074 shlibpath_overrides_runpath=yes
9075 hardcode_into_libs=yes
9080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9081 shlibpath_var=LD_LIBRARY_PATH
9082 shlibpath_overrides_runpath=yes
9089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9090 soname_spec='${libname}${release}${shared_ext}$major'
9091 shlibpath_var=LD_LIBRARY_PATH
9092 shlibpath_overrides_runpath=yes
9097 sys_lib_dlsearch_path_spec="/usr/lib"
9099 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9101 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9102 *) need_version=no ;;
9104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9105 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9106 shlibpath_var=LD_LIBRARY_PATH
9107 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9109 openbsd2.[89] | openbsd2.[89].*)
9110 shlibpath_overrides_runpath=no
9113 shlibpath_overrides_runpath=yes
9117 shlibpath_overrides_runpath=yes
9122 libname_spec='$name'
9125 library_names_spec='$libname${shared_ext} $libname.a'
9126 dynamic_linker='OS/2 ld.exe'
9127 shlibpath_var=LIBPATH
9130 osf3* | osf4* | osf5*)
9134 soname_spec='${libname}${release}${shared_ext}$major'
9135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9136 shlibpath_var=LD_LIBRARY_PATH
9137 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9138 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9146 soname_spec='${libname}${release}${shared_ext}$major'
9147 shlibpath_var=LD_LIBRARY_PATH
9148 shlibpath_overrides_runpath=yes
9149 hardcode_into_libs=yes
9150 # ldd complains unless libraries are executable
9151 postinstall_cmds='chmod +x $lib'
9156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9157 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9158 shlibpath_var=LD_LIBRARY_PATH
9159 shlibpath_overrides_runpath=yes
9160 if test "$with_gnu_ld" = yes; then
9168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9169 soname_spec='${libname}${release}${shared_ext}$major'
9170 shlibpath_var=LD_LIBRARY_PATH
9171 case $host_vendor in
9173 shlibpath_overrides_runpath=no
9175 export_dynamic_flag_spec='${wl}-Blargedynsym'
9176 runpath_var=LD_RUN_PATH
9184 shlibpath_overrides_runpath=no
9185 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9191 if test -d /usr/nec ;then
9193 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9194 soname_spec='$libname${shared_ext}.$major'
9195 shlibpath_var=LD_LIBRARY_PATH
9199 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9200 version_type=freebsd-elf
9203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9204 soname_spec='${libname}${release}${shared_ext}$major'
9205 shlibpath_var=LD_LIBRARY_PATH
9206 hardcode_into_libs=yes
9207 if test "$with_gnu_ld" = yes; then
9208 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9209 shlibpath_overrides_runpath=no
9211 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9212 shlibpath_overrides_runpath=yes
9215 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9219 sys_lib_dlsearch_path_spec='/usr/lib'
9224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9225 soname_spec='${libname}${release}${shared_ext}$major'
9226 shlibpath_var=LD_LIBRARY_PATH
9233 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9234 echo "${ECHO_T}$dynamic_linker" >&6; }
9235 test "$dynamic_linker" = no && can_build_shared=no
9237 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9238 if test "$GCC" = yes; then
9239 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9243 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9244 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9245 if test "${libltdl_cv_shlibext+set}" = set; then
9246 echo $ECHO_N "(cached) $ECHO_C" >&6
9250 eval libltdl_cv_shlibext=$shrext_cmds
9253 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9254 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9255 if test -n "$libltdl_cv_shlibext"; then
9257 cat >>confdefs.h <<_ACEOF
9258 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9264 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9265 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9266 if test "${libltdl_cv_sys_search_path+set}" = set; then
9267 echo $ECHO_N "(cached) $ECHO_C" >&6
9269 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9271 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9272 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9273 if test -n "$libltdl_cv_sys_search_path"; then
9275 for dir in $libltdl_cv_sys_search_path; do
9276 if test -z "$sys_search_path"; then
9277 sys_search_path="$dir"
9279 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9283 cat >>confdefs.h <<_ACEOF
9284 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9289 { echo "$as_me:$LINENO: checking for objdir" >&5
9290 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9291 if test "${libltdl_cv_objdir+set}" = set; then
9292 echo $ECHO_N "(cached) $ECHO_C" >&6
9294 libltdl_cv_objdir="$objdir"
9295 if test -n "$objdir"; then
9298 rm -f .libs 2>/dev/null
9299 mkdir .libs 2>/dev/null
9300 if test -d .libs; then
9301 libltdl_cv_objdir=.libs
9303 # MS-DOS does not allow filenames that begin with a dot.
9304 libltdl_cv_objdir=_libs
9306 rmdir .libs 2>/dev/null
9310 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9311 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9313 cat >>confdefs.h <<_ACEOF
9314 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9322 # Check for command to grab the raw symbol name followed by C symbol from nm.
9323 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9324 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9325 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9326 echo $ECHO_N "(cached) $ECHO_C" >&6
9329 # These are sane defaults that work on at least a few old systems.
9330 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9332 # Character class describing NM global symbol codes.
9333 symcode='[BCDEGRST]'
9335 # Regexp to match symbols that can be accessed directly from C.
9336 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9338 # Transform an extracted symbol line into a proper C declaration
9339 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9341 # Transform an extracted symbol line into symbol name and symbol address
9342 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 # Define system-specific variables.
9349 cygwin* | mingw* | pw32*)
9350 symcode='[ABCDGISTW]'
9352 hpux*) # Its linker distinguishes data from code symbols
9353 if test "$host_cpu" = ia64; then
9354 symcode='[ABCDEGRST]'
9356 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9357 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'"
9360 if test "$host_cpu" = ia64; then
9361 symcode='[ABCDGIRSTW]'
9362 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9363 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'"
9367 symcode='[BCDEGRST]'
9370 symcode='[BCDEGQRST]'
9381 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9389 # Handle CRLF in mingw tool chain
9393 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9397 # If we're using GNU nm, then use its standard symbol codes.
9398 case `$NM -V 2>&1` in
9399 *GNU* | *'with BFD'*)
9400 symcode='[ABCDGIRSTW]' ;;
9403 # Try without a prefix undercore, then with it.
9404 for ac_symprfx in "" "_"; do
9406 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9407 symxfrm="\\1 $ac_symprfx\\2 \\2"
9409 # Write the raw and C identifiers.
9410 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9412 # Check to see that the pipe works correctly.
9416 cat > conftest.$ac_ext <<EOF
9421 void nm_test_func(){}
9425 int main(){nm_test_var='a';nm_test_func();return(0);}
9428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9429 (eval $ac_compile) 2>&5
9431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9432 (exit $ac_status); }; then
9433 # Now try to grab the symbols.
9435 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9436 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439 (exit $ac_status); } && test -s "$nlist"; then
9440 # Try sorting and uniquifying the output.
9441 if sort "$nlist" | uniq > "$nlist"T; then
9442 mv -f "$nlist"T "$nlist"
9447 # Make sure that we snagged all the symbols we need.
9448 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9449 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9450 cat <<EOF > conftest.$ac_ext
9456 # Now generate the symbol file.
9457 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9459 cat <<EOF >> conftest.$ac_ext
9460 #if defined (__STDC__) && __STDC__
9461 # define lt_ptr_t void *
9463 # define lt_ptr_t char *
9467 /* The mapping between symbol names and symbols. */
9472 lt_preloaded_symbols[] =
9475 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9476 cat <<\EOF >> conftest.$ac_ext
9484 # Now try linking the two files.
9485 mv conftest.$ac_objext conftstm.$ac_objext
9486 lt_save_LIBS="$LIBS"
9487 lt_save_CFLAGS="$CFLAGS"
9488 LIBS="conftstm.$ac_objext"
9489 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9491 (eval $ac_link) 2>&5
9493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9497 LIBS="$lt_save_LIBS"
9498 CFLAGS="$lt_save_CFLAGS"
9500 echo "cannot find nm_test_func in $nlist" >&5
9503 echo "cannot find nm_test_var in $nlist" >&5
9506 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9509 echo "$progname: failed program was:" >&5
9510 cat conftest.$ac_ext >&5
9512 rm -f conftest* conftst*
9514 # Do not use the global_symbol_pipe unless it works.
9515 if test "$pipe_works" = yes; then
9518 lt_cv_sys_global_symbol_pipe=
9524 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9525 lt_cv_sys_global_symbol_to_cdecl=
9527 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9528 { echo "$as_me:$LINENO: result: failed" >&5
9529 echo "${ECHO_T}failed" >&6; }
9531 { echo "$as_me:$LINENO: result: ok" >&5
9532 echo "${ECHO_T}ok" >&6; }
9536 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9537 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9538 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9539 echo $ECHO_N "(cached) $ECHO_C" >&6
9541 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9542 libltdl_cv_preloaded_symbols=yes
9544 libltdl_cv_preloaded_symbols=no
9548 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9549 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9550 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9552 cat >>confdefs.h <<\_ACEOF
9553 #define HAVE_PRELOADED_SYMBOLS 1
9561 ac_cpp='$CPP $CPPFLAGS'
9562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9567 { echo "$as_me:$LINENO: checking for shl_load" >&5
9568 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9569 if test "${ac_cv_func_shl_load+set}" = set; then
9570 echo $ECHO_N "(cached) $ECHO_C" >&6
9572 cat >conftest.$ac_ext <<_ACEOF
9575 cat confdefs.h >>conftest.$ac_ext
9576 cat >>conftest.$ac_ext <<_ACEOF
9577 /* end confdefs.h. */
9578 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9579 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9580 #define shl_load innocuous_shl_load
9582 /* System header to define __stub macros and hopefully few prototypes,
9583 which can conflict with char shl_load (); below.
9584 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9585 <limits.h> exists even on freestanding compilers. */
9588 # include <limits.h>
9590 # include <assert.h>
9595 /* Override any GCC internal prototype to avoid an error.
9596 Use char because int might match the return type of a GCC
9597 builtin and then its argument prototype would still apply. */
9602 /* The GNU C library defines this for functions which it implements
9603 to always fail with ENOSYS. Some functions are actually named
9604 something starting with __ and the normal name is an alias. */
9605 #if defined __stub_shl_load || defined __stub___shl_load
9617 rm -f conftest.$ac_objext conftest$ac_exeext
9618 if { (ac_try="$ac_link"
9620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9621 *) ac_try_echo=$ac_try;;
9623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9624 (eval "$ac_link") 2>conftest.er1
9626 grep -v '^ *+' conftest.er1 >conftest.err
9628 cat conftest.err >&5
9629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630 (exit $ac_status); } &&
9631 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9632 { (case "(($ac_try" in
9633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9634 *) ac_try_echo=$ac_try;;
9636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9637 (eval "$ac_try") 2>&5
9639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9640 (exit $ac_status); }; } &&
9641 { ac_try='test -s conftest$ac_exeext'
9642 { (case "(($ac_try" in
9643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9644 *) ac_try_echo=$ac_try;;
9646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9647 (eval "$ac_try") 2>&5
9649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650 (exit $ac_status); }; }; then
9651 ac_cv_func_shl_load=yes
9653 echo "$as_me: failed program was:" >&5
9654 sed 's/^/| /' conftest.$ac_ext >&5
9656 ac_cv_func_shl_load=no
9659 rm -f core conftest.err conftest.$ac_objext \
9660 conftest$ac_exeext conftest.$ac_ext
9662 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9663 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9664 if test $ac_cv_func_shl_load = yes; then
9666 cat >>confdefs.h <<\_ACEOF
9667 #define HAVE_SHL_LOAD 1
9671 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9672 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9673 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9674 echo $ECHO_N "(cached) $ECHO_C" >&6
9676 ac_check_lib_save_LIBS=$LIBS
9678 cat >conftest.$ac_ext <<_ACEOF
9681 cat confdefs.h >>conftest.$ac_ext
9682 cat >>conftest.$ac_ext <<_ACEOF
9683 /* end confdefs.h. */
9685 /* Override any GCC internal prototype to avoid an error.
9686 Use char because int might match the return type of a GCC
9687 builtin and then its argument prototype would still apply. */
9700 rm -f conftest.$ac_objext conftest$ac_exeext
9701 if { (ac_try="$ac_link"
9703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9704 *) ac_try_echo=$ac_try;;
9706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9707 (eval "$ac_link") 2>conftest.er1
9709 grep -v '^ *+' conftest.er1 >conftest.err
9711 cat conftest.err >&5
9712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713 (exit $ac_status); } &&
9714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9715 { (case "(($ac_try" in
9716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9717 *) ac_try_echo=$ac_try;;
9719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9720 (eval "$ac_try") 2>&5
9722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723 (exit $ac_status); }; } &&
9724 { ac_try='test -s conftest$ac_exeext'
9725 { (case "(($ac_try" in
9726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9727 *) ac_try_echo=$ac_try;;
9729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9730 (eval "$ac_try") 2>&5
9732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733 (exit $ac_status); }; }; then
9734 ac_cv_lib_dld_shl_load=yes
9736 echo "$as_me: failed program was:" >&5
9737 sed 's/^/| /' conftest.$ac_ext >&5
9739 ac_cv_lib_dld_shl_load=no
9742 rm -f core conftest.err conftest.$ac_objext \
9743 conftest$ac_exeext conftest.$ac_ext
9744 LIBS=$ac_check_lib_save_LIBS
9746 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9747 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9748 if test $ac_cv_lib_dld_shl_load = yes; then
9750 cat >>confdefs.h <<\_ACEOF
9751 #define HAVE_SHL_LOAD 1
9754 LIBADD_DL="$LIBADD_DL -ldld"
9756 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9757 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9758 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9759 echo $ECHO_N "(cached) $ECHO_C" >&6
9761 ac_check_lib_save_LIBS=$LIBS
9763 cat >conftest.$ac_ext <<_ACEOF
9766 cat confdefs.h >>conftest.$ac_ext
9767 cat >>conftest.$ac_ext <<_ACEOF
9768 /* end confdefs.h. */
9770 /* Override any GCC internal prototype to avoid an error.
9771 Use char because int might match the return type of a GCC
9772 builtin and then its argument prototype would still apply. */
9785 rm -f conftest.$ac_objext conftest$ac_exeext
9786 if { (ac_try="$ac_link"
9788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9789 *) ac_try_echo=$ac_try;;
9791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9792 (eval "$ac_link") 2>conftest.er1
9794 grep -v '^ *+' conftest.er1 >conftest.err
9796 cat conftest.err >&5
9797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798 (exit $ac_status); } &&
9799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9800 { (case "(($ac_try" in
9801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9802 *) ac_try_echo=$ac_try;;
9804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9805 (eval "$ac_try") 2>&5
9807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808 (exit $ac_status); }; } &&
9809 { ac_try='test -s conftest$ac_exeext'
9810 { (case "(($ac_try" in
9811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9812 *) ac_try_echo=$ac_try;;
9814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9815 (eval "$ac_try") 2>&5
9817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818 (exit $ac_status); }; }; then
9819 ac_cv_lib_dl_dlopen=yes
9821 echo "$as_me: failed program was:" >&5
9822 sed 's/^/| /' conftest.$ac_ext >&5
9824 ac_cv_lib_dl_dlopen=no
9827 rm -f core conftest.err conftest.$ac_objext \
9828 conftest$ac_exeext conftest.$ac_ext
9829 LIBS=$ac_check_lib_save_LIBS
9831 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9832 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9833 if test $ac_cv_lib_dl_dlopen = yes; then
9835 cat >>confdefs.h <<\_ACEOF
9836 #define HAVE_LIBDL 1
9839 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9841 cat >conftest.$ac_ext <<_ACEOF
9844 cat confdefs.h >>conftest.$ac_ext
9845 cat >>conftest.$ac_ext <<_ACEOF
9846 /* end confdefs.h. */
9859 rm -f conftest.$ac_objext conftest$ac_exeext
9860 if { (ac_try="$ac_link"
9862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9863 *) ac_try_echo=$ac_try;;
9865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9866 (eval "$ac_link") 2>conftest.er1
9868 grep -v '^ *+' conftest.er1 >conftest.err
9870 cat conftest.err >&5
9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 (exit $ac_status); } &&
9873 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9874 { (case "(($ac_try" in
9875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9876 *) ac_try_echo=$ac_try;;
9878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9879 (eval "$ac_try") 2>&5
9881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9882 (exit $ac_status); }; } &&
9883 { ac_try='test -s conftest$ac_exeext'
9884 { (case "(($ac_try" in
9885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9886 *) ac_try_echo=$ac_try;;
9888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9889 (eval "$ac_try") 2>&5
9891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892 (exit $ac_status); }; }; then
9894 cat >>confdefs.h <<\_ACEOF
9895 #define HAVE_LIBDL 1
9897 libltdl_cv_func_dlopen="yes"
9899 echo "$as_me: failed program was:" >&5
9900 sed 's/^/| /' conftest.$ac_ext >&5
9902 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9903 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9904 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9905 echo $ECHO_N "(cached) $ECHO_C" >&6
9907 ac_check_lib_save_LIBS=$LIBS
9909 cat >conftest.$ac_ext <<_ACEOF
9912 cat confdefs.h >>conftest.$ac_ext
9913 cat >>conftest.$ac_ext <<_ACEOF
9914 /* end confdefs.h. */
9916 /* Override any GCC internal prototype to avoid an error.
9917 Use char because int might match the return type of a GCC
9918 builtin and then its argument prototype would still apply. */
9931 rm -f conftest.$ac_objext conftest$ac_exeext
9932 if { (ac_try="$ac_link"
9934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9935 *) ac_try_echo=$ac_try;;
9937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9938 (eval "$ac_link") 2>conftest.er1
9940 grep -v '^ *+' conftest.er1 >conftest.err
9942 cat conftest.err >&5
9943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9944 (exit $ac_status); } &&
9945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9946 { (case "(($ac_try" in
9947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9948 *) ac_try_echo=$ac_try;;
9950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9951 (eval "$ac_try") 2>&5
9953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954 (exit $ac_status); }; } &&
9955 { ac_try='test -s conftest$ac_exeext'
9956 { (case "(($ac_try" in
9957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9958 *) ac_try_echo=$ac_try;;
9960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9961 (eval "$ac_try") 2>&5
9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964 (exit $ac_status); }; }; then
9965 ac_cv_lib_svld_dlopen=yes
9967 echo "$as_me: failed program was:" >&5
9968 sed 's/^/| /' conftest.$ac_ext >&5
9970 ac_cv_lib_svld_dlopen=no
9973 rm -f core conftest.err conftest.$ac_objext \
9974 conftest$ac_exeext conftest.$ac_ext
9975 LIBS=$ac_check_lib_save_LIBS
9977 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9978 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9979 if test $ac_cv_lib_svld_dlopen = yes; then
9981 cat >>confdefs.h <<\_ACEOF
9982 #define HAVE_LIBDL 1
9985 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9987 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9988 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9989 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9990 echo $ECHO_N "(cached) $ECHO_C" >&6
9992 ac_check_lib_save_LIBS=$LIBS
9994 cat >conftest.$ac_ext <<_ACEOF
9997 cat confdefs.h >>conftest.$ac_ext
9998 cat >>conftest.$ac_ext <<_ACEOF
9999 /* end confdefs.h. */
10001 /* Override any GCC internal prototype to avoid an error.
10002 Use char because int might match the return type of a GCC
10003 builtin and then its argument prototype would still apply. */
10011 return dld_link ();
10016 rm -f conftest.$ac_objext conftest$ac_exeext
10017 if { (ac_try="$ac_link"
10018 case "(($ac_try" in
10019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10020 *) ac_try_echo=$ac_try;;
10022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10023 (eval "$ac_link") 2>conftest.er1
10025 grep -v '^ *+' conftest.er1 >conftest.err
10027 cat conftest.err >&5
10028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029 (exit $ac_status); } &&
10030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10031 { (case "(($ac_try" in
10032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10033 *) ac_try_echo=$ac_try;;
10035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10036 (eval "$ac_try") 2>&5
10038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039 (exit $ac_status); }; } &&
10040 { ac_try='test -s conftest$ac_exeext'
10041 { (case "(($ac_try" in
10042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10043 *) ac_try_echo=$ac_try;;
10045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10046 (eval "$ac_try") 2>&5
10048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049 (exit $ac_status); }; }; then
10050 ac_cv_lib_dld_dld_link=yes
10052 echo "$as_me: failed program was:" >&5
10053 sed 's/^/| /' conftest.$ac_ext >&5
10055 ac_cv_lib_dld_dld_link=no
10058 rm -f core conftest.err conftest.$ac_objext \
10059 conftest$ac_exeext conftest.$ac_ext
10060 LIBS=$ac_check_lib_save_LIBS
10062 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10063 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10064 if test $ac_cv_lib_dld_dld_link = yes; then
10066 cat >>confdefs.h <<\_ACEOF
10070 LIBADD_DL="$LIBADD_DL -ldld"
10072 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10073 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10074 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10075 echo $ECHO_N "(cached) $ECHO_C" >&6
10077 cat >conftest.$ac_ext <<_ACEOF
10080 cat confdefs.h >>conftest.$ac_ext
10081 cat >>conftest.$ac_ext <<_ACEOF
10082 /* end confdefs.h. */
10083 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10084 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10085 #define _dyld_func_lookup innocuous__dyld_func_lookup
10087 /* System header to define __stub macros and hopefully few prototypes,
10088 which can conflict with char _dyld_func_lookup (); below.
10089 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10090 <limits.h> exists even on freestanding compilers. */
10093 # include <limits.h>
10095 # include <assert.h>
10098 #undef _dyld_func_lookup
10100 /* Override any GCC internal prototype to avoid an error.
10101 Use char because int might match the return type of a GCC
10102 builtin and then its argument prototype would still apply. */
10106 char _dyld_func_lookup ();
10107 /* The GNU C library defines this for functions which it implements
10108 to always fail with ENOSYS. Some functions are actually named
10109 something starting with __ and the normal name is an alias. */
10110 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10117 return _dyld_func_lookup ();
10122 rm -f conftest.$ac_objext conftest$ac_exeext
10123 if { (ac_try="$ac_link"
10124 case "(($ac_try" in
10125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10126 *) ac_try_echo=$ac_try;;
10128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10129 (eval "$ac_link") 2>conftest.er1
10131 grep -v '^ *+' conftest.er1 >conftest.err
10133 cat conftest.err >&5
10134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10135 (exit $ac_status); } &&
10136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10137 { (case "(($ac_try" in
10138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10139 *) ac_try_echo=$ac_try;;
10141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10142 (eval "$ac_try") 2>&5
10144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145 (exit $ac_status); }; } &&
10146 { ac_try='test -s conftest$ac_exeext'
10147 { (case "(($ac_try" in
10148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10149 *) ac_try_echo=$ac_try;;
10151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10152 (eval "$ac_try") 2>&5
10154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155 (exit $ac_status); }; }; then
10156 ac_cv_func__dyld_func_lookup=yes
10158 echo "$as_me: failed program was:" >&5
10159 sed 's/^/| /' conftest.$ac_ext >&5
10161 ac_cv_func__dyld_func_lookup=no
10164 rm -f core conftest.err conftest.$ac_objext \
10165 conftest$ac_exeext conftest.$ac_ext
10167 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10168 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10169 if test $ac_cv_func__dyld_func_lookup = yes; then
10171 cat >>confdefs.h <<\_ACEOF
10172 #define HAVE_DYLD 1
10186 rm -f core conftest.err conftest.$ac_objext \
10187 conftest$ac_exeext conftest.$ac_ext
10198 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10200 lt_save_LIBS="$LIBS"
10201 LIBS="$LIBS $LIBADD_DL"
10203 for ac_func in dlerror
10205 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10206 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10207 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10208 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10209 echo $ECHO_N "(cached) $ECHO_C" >&6
10211 cat >conftest.$ac_ext <<_ACEOF
10214 cat confdefs.h >>conftest.$ac_ext
10215 cat >>conftest.$ac_ext <<_ACEOF
10216 /* end confdefs.h. */
10217 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10218 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10219 #define $ac_func innocuous_$ac_func
10221 /* System header to define __stub macros and hopefully few prototypes,
10222 which can conflict with char $ac_func (); below.
10223 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10224 <limits.h> exists even on freestanding compilers. */
10227 # include <limits.h>
10229 # include <assert.h>
10234 /* Override any GCC internal prototype to avoid an error.
10235 Use char because int might match the return type of a GCC
10236 builtin and then its argument prototype would still apply. */
10241 /* The GNU C library defines this for functions which it implements
10242 to always fail with ENOSYS. Some functions are actually named
10243 something starting with __ and the normal name is an alias. */
10244 #if defined __stub_$ac_func || defined __stub___$ac_func
10251 return $ac_func ();
10256 rm -f conftest.$ac_objext conftest$ac_exeext
10257 if { (ac_try="$ac_link"
10258 case "(($ac_try" in
10259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10260 *) ac_try_echo=$ac_try;;
10262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10263 (eval "$ac_link") 2>conftest.er1
10265 grep -v '^ *+' conftest.er1 >conftest.err
10267 cat conftest.err >&5
10268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269 (exit $ac_status); } &&
10270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10271 { (case "(($ac_try" in
10272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10273 *) ac_try_echo=$ac_try;;
10275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10276 (eval "$ac_try") 2>&5
10278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10279 (exit $ac_status); }; } &&
10280 { ac_try='test -s conftest$ac_exeext'
10281 { (case "(($ac_try" in
10282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10283 *) ac_try_echo=$ac_try;;
10285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10286 (eval "$ac_try") 2>&5
10288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289 (exit $ac_status); }; }; then
10290 eval "$as_ac_var=yes"
10292 echo "$as_me: failed program was:" >&5
10293 sed 's/^/| /' conftest.$ac_ext >&5
10295 eval "$as_ac_var=no"
10298 rm -f core conftest.err conftest.$ac_objext \
10299 conftest$ac_exeext conftest.$ac_ext
10301 ac_res=`eval echo '${'$as_ac_var'}'`
10302 { echo "$as_me:$LINENO: result: $ac_res" >&5
10303 echo "${ECHO_T}$ac_res" >&6; }
10304 if test `eval echo '${'$as_ac_var'}'` = yes; then
10305 cat >>confdefs.h <<_ACEOF
10306 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10312 LIBS="$lt_save_LIBS"
10315 ac_cpp='$CPP $CPPFLAGS'
10316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10322 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10323 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10324 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10325 echo $ECHO_N "(cached) $ECHO_C" >&6
10327 ac_cv_sys_symbol_underscore=no
10328 cat > conftest.$ac_ext <<EOF
10329 void nm_test_func(){}
10330 int main(){nm_test_func;return 0;}
10332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10333 (eval $ac_compile) 2>&5
10335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10336 (exit $ac_status); }; then
10337 # Now try to grab the symbols.
10338 ac_nlist=conftest.nm
10339 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10340 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10343 (exit $ac_status); } && test -s "$ac_nlist"; then
10344 # See whether the symbols have a leading underscore.
10345 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10346 ac_cv_sys_symbol_underscore=yes
10348 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10351 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10355 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10358 echo "configure: failed program was:" >&5
10364 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10365 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10368 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10369 if test x"$libltdl_cv_func_dlopen" = xyes ||
10370 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10371 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10372 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10373 if test "${libltdl_cv_need_uscore+set}" = set; then
10374 echo $ECHO_N "(cached) $ECHO_C" >&6
10376 libltdl_cv_need_uscore=unknown
10378 LIBS="$LIBS $LIBADD_DL"
10379 if test "$cross_compiling" = yes; then :
10380 libltdl_cv_need_uscore=cross
10382 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10383 lt_status=$lt_dlunknown
10384 cat > conftest.$ac_ext <<EOF
10385 #line 10385 "configure"
10386 #include "confdefs.h"
10395 # define LT_DLGLOBAL RTLD_GLOBAL
10398 # define LT_DLGLOBAL DL_GLOBAL
10400 # define LT_DLGLOBAL 0
10404 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10405 find out it does not work in some platform. */
10406 #ifndef LT_DLLAZY_OR_NOW
10408 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10411 # define LT_DLLAZY_OR_NOW DL_LAZY
10414 # define LT_DLLAZY_OR_NOW RTLD_NOW
10417 # define LT_DLLAZY_OR_NOW DL_NOW
10419 # define LT_DLLAZY_OR_NOW 0
10427 extern "C" void exit (int);
10430 void fnord() { int i=42;}
10433 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10434 int status = $lt_dlunknown;
10438 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10439 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10440 /* dlclose (self); */
10448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10449 (eval $ac_link) 2>&5
10451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10453 (./conftest; exit; ) >&5 2>/dev/null
10455 case x$lt_status in
10456 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10457 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10458 x$lt_dlunknown|x*) ;;
10461 # compilation failed
10470 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10471 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10475 if test x"$libltdl_cv_need_uscore" = xyes; then
10477 cat >>confdefs.h <<\_ACEOF
10478 #define NEED_USCORE 1
10484 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10485 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10486 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10487 echo $ECHO_N "(cached) $ECHO_C" >&6
10489 # PORTME does your system automatically load deplibs for dlopen?
10490 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10491 # For now, we just catch OSes we know something about -- in the
10492 # future, we'll try test this programmatically.
10493 libltdl_cv_sys_dlopen_deplibs=unknown
10495 aix3*|aix4.1.*|aix4.2.*)
10496 # Unknown whether this is true for these versions of AIX, but
10497 # we want this `case' here to explicitly catch those versions.
10498 libltdl_cv_sys_dlopen_deplibs=unknown
10501 libltdl_cv_sys_dlopen_deplibs=yes
10504 # Assuming the user has installed a libdl from somewhere, this is true
10505 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10506 libltdl_cv_sys_dlopen_deplibs=yes
10508 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10509 # GNU and its variants, using gnu ld.so (Glibc)
10510 libltdl_cv_sys_dlopen_deplibs=yes
10513 libltdl_cv_sys_dlopen_deplibs=yes
10516 libltdl_cv_sys_dlopen_deplibs=yes
10518 irix[12345]*|irix6.[01]*)
10519 # Catch all versions of IRIX before 6.2, and indicate that we don't
10520 # know how it worked for any of those versions.
10521 libltdl_cv_sys_dlopen_deplibs=unknown
10524 # The case above catches anything before 6.2, and it's known that
10525 # at 6.2 and later dlopen does load deplibs.
10526 libltdl_cv_sys_dlopen_deplibs=yes
10529 libltdl_cv_sys_dlopen_deplibs=yes
10532 libltdl_cv_sys_dlopen_deplibs=yes
10535 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10536 # it did *not* use an RPATH in a shared library to find objects the
10537 # library depends on, so we explicitly say `no'.
10538 libltdl_cv_sys_dlopen_deplibs=no
10540 osf5.0|osf5.0a|osf5.1)
10541 # dlopen *does* load deplibs and with the right loader patch applied
10542 # it even uses RPATH in a shared library to search for shared objects
10543 # that the library depends on, but there's no easy way to know if that
10544 # patch is installed. Since this is the case, all we can really
10545 # say is unknown -- it depends on the patch being installed. If
10546 # it is, this changes to `yes'. Without it, it would be `no'.
10547 libltdl_cv_sys_dlopen_deplibs=unknown
10550 # the two cases above should catch all versions of osf <= 5.1. Read
10551 # the comments above for what we know about them.
10552 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10553 # is used to find them so we can finally say `yes'.
10554 libltdl_cv_sys_dlopen_deplibs=yes
10557 libltdl_cv_sys_dlopen_deplibs=yes
10559 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10560 libltdl_cv_sys_dlopen_deplibs=yes
10565 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10566 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10567 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10569 cat >>confdefs.h <<\_ACEOF
10570 #define LTDL_DLOPEN_DEPLIBS 1
10576 for ac_header in argz.h
10578 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10579 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10580 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10581 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10582 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10583 echo $ECHO_N "(cached) $ECHO_C" >&6
10585 ac_res=`eval echo '${'$as_ac_Header'}'`
10586 { echo "$as_me:$LINENO: result: $ac_res" >&5
10587 echo "${ECHO_T}$ac_res" >&6; }
10589 # Is the header compilable?
10590 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10591 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10592 cat >conftest.$ac_ext <<_ACEOF
10595 cat confdefs.h >>conftest.$ac_ext
10596 cat >>conftest.$ac_ext <<_ACEOF
10597 /* end confdefs.h. */
10598 $ac_includes_default
10599 #include <$ac_header>
10601 rm -f conftest.$ac_objext
10602 if { (ac_try="$ac_compile"
10603 case "(($ac_try" in
10604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10605 *) ac_try_echo=$ac_try;;
10607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10608 (eval "$ac_compile") 2>conftest.er1
10610 grep -v '^ *+' conftest.er1 >conftest.err
10612 cat conftest.err >&5
10613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614 (exit $ac_status); } &&
10615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10616 { (case "(($ac_try" in
10617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10618 *) ac_try_echo=$ac_try;;
10620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10621 (eval "$ac_try") 2>&5
10623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10624 (exit $ac_status); }; } &&
10625 { ac_try='test -s conftest.$ac_objext'
10626 { (case "(($ac_try" in
10627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10628 *) ac_try_echo=$ac_try;;
10630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10631 (eval "$ac_try") 2>&5
10633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10634 (exit $ac_status); }; }; then
10635 ac_header_compiler=yes
10637 echo "$as_me: failed program was:" >&5
10638 sed 's/^/| /' conftest.$ac_ext >&5
10640 ac_header_compiler=no
10643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10644 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10645 echo "${ECHO_T}$ac_header_compiler" >&6; }
10647 # Is the header present?
10648 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10649 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10650 cat >conftest.$ac_ext <<_ACEOF
10653 cat confdefs.h >>conftest.$ac_ext
10654 cat >>conftest.$ac_ext <<_ACEOF
10655 /* end confdefs.h. */
10656 #include <$ac_header>
10658 if { (ac_try="$ac_cpp conftest.$ac_ext"
10659 case "(($ac_try" in
10660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10661 *) ac_try_echo=$ac_try;;
10663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10664 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10666 grep -v '^ *+' conftest.er1 >conftest.err
10668 cat conftest.err >&5
10669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670 (exit $ac_status); } >/dev/null; then
10671 if test -s conftest.err; then
10672 ac_cpp_err=$ac_c_preproc_warn_flag
10673 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10680 if test -z "$ac_cpp_err"; then
10681 ac_header_preproc=yes
10683 echo "$as_me: failed program was:" >&5
10684 sed 's/^/| /' conftest.$ac_ext >&5
10686 ac_header_preproc=no
10689 rm -f conftest.err conftest.$ac_ext
10690 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10691 echo "${ECHO_T}$ac_header_preproc" >&6; }
10693 # So? What about this header?
10694 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10696 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10697 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10698 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10699 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10700 ac_header_preproc=yes
10703 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10704 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10705 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10706 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10707 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10708 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10709 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10710 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10711 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10712 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10713 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10714 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10716 ## ------------------------------ ##
10717 ## Report this to bugs@yourdomain ##
10718 ## ------------------------------ ##
10720 ) | sed "s/^/$as_me: WARNING: /" >&2
10723 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10725 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10726 echo $ECHO_N "(cached) $ECHO_C" >&6
10728 eval "$as_ac_Header=\$ac_header_preproc"
10730 ac_res=`eval echo '${'$as_ac_Header'}'`
10731 { echo "$as_me:$LINENO: result: $ac_res" >&5
10732 echo "${ECHO_T}$ac_res" >&6; }
10735 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10736 cat >>confdefs.h <<_ACEOF
10737 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10745 { echo "$as_me:$LINENO: checking for error_t" >&5
10746 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10747 if test "${ac_cv_type_error_t+set}" = set; then
10748 echo $ECHO_N "(cached) $ECHO_C" >&6
10750 cat >conftest.$ac_ext <<_ACEOF
10753 cat confdefs.h >>conftest.$ac_ext
10754 cat >>conftest.$ac_ext <<_ACEOF
10755 /* end confdefs.h. */
10760 typedef error_t ac__type_new_;
10764 if ((ac__type_new_ *) 0)
10766 if (sizeof (ac__type_new_))
10772 rm -f conftest.$ac_objext
10773 if { (ac_try="$ac_compile"
10774 case "(($ac_try" in
10775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10776 *) ac_try_echo=$ac_try;;
10778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10779 (eval "$ac_compile") 2>conftest.er1
10781 grep -v '^ *+' conftest.er1 >conftest.err
10783 cat conftest.err >&5
10784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785 (exit $ac_status); } &&
10786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10787 { (case "(($ac_try" in
10788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10789 *) ac_try_echo=$ac_try;;
10791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10792 (eval "$ac_try") 2>&5
10794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10795 (exit $ac_status); }; } &&
10796 { ac_try='test -s conftest.$ac_objext'
10797 { (case "(($ac_try" in
10798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10799 *) ac_try_echo=$ac_try;;
10801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10802 (eval "$ac_try") 2>&5
10804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10805 (exit $ac_status); }; }; then
10806 ac_cv_type_error_t=yes
10808 echo "$as_me: failed program was:" >&5
10809 sed 's/^/| /' conftest.$ac_ext >&5
10811 ac_cv_type_error_t=no
10814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10816 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10817 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10818 if test $ac_cv_type_error_t = yes; then
10820 cat >>confdefs.h <<_ACEOF
10821 #define HAVE_ERROR_T 1
10827 cat >>confdefs.h <<\_ACEOF
10828 #define error_t int
10839 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10841 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10842 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10843 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10844 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10845 echo $ECHO_N "(cached) $ECHO_C" >&6
10847 cat >conftest.$ac_ext <<_ACEOF
10850 cat confdefs.h >>conftest.$ac_ext
10851 cat >>conftest.$ac_ext <<_ACEOF
10852 /* end confdefs.h. */
10853 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10854 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10855 #define $ac_func innocuous_$ac_func
10857 /* System header to define __stub macros and hopefully few prototypes,
10858 which can conflict with char $ac_func (); below.
10859 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10860 <limits.h> exists even on freestanding compilers. */
10863 # include <limits.h>
10865 # include <assert.h>
10870 /* Override any GCC internal prototype to avoid an error.
10871 Use char because int might match the return type of a GCC
10872 builtin and then its argument prototype would still apply. */
10877 /* The GNU C library defines this for functions which it implements
10878 to always fail with ENOSYS. Some functions are actually named
10879 something starting with __ and the normal name is an alias. */
10880 #if defined __stub_$ac_func || defined __stub___$ac_func
10887 return $ac_func ();
10892 rm -f conftest.$ac_objext conftest$ac_exeext
10893 if { (ac_try="$ac_link"
10894 case "(($ac_try" in
10895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10896 *) ac_try_echo=$ac_try;;
10898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10899 (eval "$ac_link") 2>conftest.er1
10901 grep -v '^ *+' conftest.er1 >conftest.err
10903 cat conftest.err >&5
10904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905 (exit $ac_status); } &&
10906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10907 { (case "(($ac_try" in
10908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10909 *) ac_try_echo=$ac_try;;
10911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10912 (eval "$ac_try") 2>&5
10914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915 (exit $ac_status); }; } &&
10916 { ac_try='test -s conftest$ac_exeext'
10917 { (case "(($ac_try" in
10918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10919 *) ac_try_echo=$ac_try;;
10921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10922 (eval "$ac_try") 2>&5
10924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10925 (exit $ac_status); }; }; then
10926 eval "$as_ac_var=yes"
10928 echo "$as_me: failed program was:" >&5
10929 sed 's/^/| /' conftest.$ac_ext >&5
10931 eval "$as_ac_var=no"
10934 rm -f core conftest.err conftest.$ac_objext \
10935 conftest$ac_exeext conftest.$ac_ext
10937 ac_res=`eval echo '${'$as_ac_var'}'`
10938 { echo "$as_me:$LINENO: result: $ac_res" >&5
10939 echo "${ECHO_T}$ac_res" >&6; }
10940 if test `eval echo '${'$as_ac_var'}'` = yes; then
10941 cat >>confdefs.h <<_ACEOF
10942 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10974 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10977 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10978 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10979 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10980 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10981 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10982 echo $ECHO_N "(cached) $ECHO_C" >&6
10984 ac_res=`eval echo '${'$as_ac_Header'}'`
10985 { echo "$as_me:$LINENO: result: $ac_res" >&5
10986 echo "${ECHO_T}$ac_res" >&6; }
10988 # Is the header compilable?
10989 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10990 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10991 cat >conftest.$ac_ext <<_ACEOF
10994 cat confdefs.h >>conftest.$ac_ext
10995 cat >>conftest.$ac_ext <<_ACEOF
10996 /* end confdefs.h. */
10997 $ac_includes_default
10998 #include <$ac_header>
11000 rm -f conftest.$ac_objext
11001 if { (ac_try="$ac_compile"
11002 case "(($ac_try" in
11003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11004 *) ac_try_echo=$ac_try;;
11006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11007 (eval "$ac_compile") 2>conftest.er1
11009 grep -v '^ *+' conftest.er1 >conftest.err
11011 cat conftest.err >&5
11012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013 (exit $ac_status); } &&
11014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11015 { (case "(($ac_try" in
11016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11017 *) ac_try_echo=$ac_try;;
11019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11020 (eval "$ac_try") 2>&5
11022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11023 (exit $ac_status); }; } &&
11024 { ac_try='test -s conftest.$ac_objext'
11025 { (case "(($ac_try" in
11026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11027 *) ac_try_echo=$ac_try;;
11029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11030 (eval "$ac_try") 2>&5
11032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11033 (exit $ac_status); }; }; then
11034 ac_header_compiler=yes
11036 echo "$as_me: failed program was:" >&5
11037 sed 's/^/| /' conftest.$ac_ext >&5
11039 ac_header_compiler=no
11042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11043 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11044 echo "${ECHO_T}$ac_header_compiler" >&6; }
11046 # Is the header present?
11047 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11048 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11049 cat >conftest.$ac_ext <<_ACEOF
11052 cat confdefs.h >>conftest.$ac_ext
11053 cat >>conftest.$ac_ext <<_ACEOF
11054 /* end confdefs.h. */
11055 #include <$ac_header>
11057 if { (ac_try="$ac_cpp conftest.$ac_ext"
11058 case "(($ac_try" in
11059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11060 *) ac_try_echo=$ac_try;;
11062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11063 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11065 grep -v '^ *+' conftest.er1 >conftest.err
11067 cat conftest.err >&5
11068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069 (exit $ac_status); } >/dev/null; then
11070 if test -s conftest.err; then
11071 ac_cpp_err=$ac_c_preproc_warn_flag
11072 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11079 if test -z "$ac_cpp_err"; then
11080 ac_header_preproc=yes
11082 echo "$as_me: failed program was:" >&5
11083 sed 's/^/| /' conftest.$ac_ext >&5
11085 ac_header_preproc=no
11088 rm -f conftest.err conftest.$ac_ext
11089 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11090 echo "${ECHO_T}$ac_header_preproc" >&6; }
11092 # So? What about this header?
11093 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11095 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11096 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11097 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11098 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11099 ac_header_preproc=yes
11102 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11103 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11104 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11105 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11106 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11107 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11108 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11109 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11111 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11112 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11113 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11115 ## ------------------------------ ##
11116 ## Report this to bugs@yourdomain ##
11117 ## ------------------------------ ##
11119 ) | sed "s/^/$as_me: WARNING: /" >&2
11122 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11123 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11124 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11125 echo $ECHO_N "(cached) $ECHO_C" >&6
11127 eval "$as_ac_Header=\$ac_header_preproc"
11129 ac_res=`eval echo '${'$as_ac_Header'}'`
11130 { echo "$as_me:$LINENO: result: $ac_res" >&5
11131 echo "${ECHO_T}$ac_res" >&6; }
11134 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11135 cat >>confdefs.h <<_ACEOF
11136 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11147 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11149 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11150 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11151 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11154 echo $ECHO_N "(cached) $ECHO_C" >&6
11156 ac_res=`eval echo '${'$as_ac_Header'}'`
11157 { echo "$as_me:$LINENO: result: $ac_res" >&5
11158 echo "${ECHO_T}$ac_res" >&6; }
11160 # Is the header compilable?
11161 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11162 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11163 cat >conftest.$ac_ext <<_ACEOF
11166 cat confdefs.h >>conftest.$ac_ext
11167 cat >>conftest.$ac_ext <<_ACEOF
11168 /* end confdefs.h. */
11169 $ac_includes_default
11170 #include <$ac_header>
11172 rm -f conftest.$ac_objext
11173 if { (ac_try="$ac_compile"
11174 case "(($ac_try" in
11175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11176 *) ac_try_echo=$ac_try;;
11178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11179 (eval "$ac_compile") 2>conftest.er1
11181 grep -v '^ *+' conftest.er1 >conftest.err
11183 cat conftest.err >&5
11184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185 (exit $ac_status); } &&
11186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11187 { (case "(($ac_try" in
11188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11189 *) ac_try_echo=$ac_try;;
11191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11192 (eval "$ac_try") 2>&5
11194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195 (exit $ac_status); }; } &&
11196 { ac_try='test -s conftest.$ac_objext'
11197 { (case "(($ac_try" in
11198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11199 *) ac_try_echo=$ac_try;;
11201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11202 (eval "$ac_try") 2>&5
11204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11205 (exit $ac_status); }; }; then
11206 ac_header_compiler=yes
11208 echo "$as_me: failed program was:" >&5
11209 sed 's/^/| /' conftest.$ac_ext >&5
11211 ac_header_compiler=no
11214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11215 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11216 echo "${ECHO_T}$ac_header_compiler" >&6; }
11218 # Is the header present?
11219 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11220 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11221 cat >conftest.$ac_ext <<_ACEOF
11224 cat confdefs.h >>conftest.$ac_ext
11225 cat >>conftest.$ac_ext <<_ACEOF
11226 /* end confdefs.h. */
11227 #include <$ac_header>
11229 if { (ac_try="$ac_cpp conftest.$ac_ext"
11230 case "(($ac_try" in
11231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11232 *) ac_try_echo=$ac_try;;
11234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11235 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11237 grep -v '^ *+' conftest.er1 >conftest.err
11239 cat conftest.err >&5
11240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11241 (exit $ac_status); } >/dev/null; then
11242 if test -s conftest.err; then
11243 ac_cpp_err=$ac_c_preproc_warn_flag
11244 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11251 if test -z "$ac_cpp_err"; then
11252 ac_header_preproc=yes
11254 echo "$as_me: failed program was:" >&5
11255 sed 's/^/| /' conftest.$ac_ext >&5
11257 ac_header_preproc=no
11260 rm -f conftest.err conftest.$ac_ext
11261 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11262 echo "${ECHO_T}$ac_header_preproc" >&6; }
11264 # So? What about this header?
11265 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11267 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11268 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11269 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11270 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11271 ac_header_preproc=yes
11274 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11275 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11276 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11277 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11278 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11279 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11280 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11281 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11283 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11284 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11285 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11287 ## ------------------------------ ##
11288 ## Report this to bugs@yourdomain ##
11289 ## ------------------------------ ##
11291 ) | sed "s/^/$as_me: WARNING: /" >&2
11294 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11295 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11296 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11297 echo $ECHO_N "(cached) $ECHO_C" >&6
11299 eval "$as_ac_Header=\$ac_header_preproc"
11301 ac_res=`eval echo '${'$as_ac_Header'}'`
11302 { echo "$as_me:$LINENO: result: $ac_res" >&5
11303 echo "${ECHO_T}$ac_res" >&6; }
11306 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11307 cat >>confdefs.h <<_ACEOF
11308 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11317 for ac_header in string.h strings.h
11319 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11320 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11321 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11324 echo $ECHO_N "(cached) $ECHO_C" >&6
11326 ac_res=`eval echo '${'$as_ac_Header'}'`
11327 { echo "$as_me:$LINENO: result: $ac_res" >&5
11328 echo "${ECHO_T}$ac_res" >&6; }
11330 # Is the header compilable?
11331 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11332 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11333 cat >conftest.$ac_ext <<_ACEOF
11336 cat confdefs.h >>conftest.$ac_ext
11337 cat >>conftest.$ac_ext <<_ACEOF
11338 /* end confdefs.h. */
11339 $ac_includes_default
11340 #include <$ac_header>
11342 rm -f conftest.$ac_objext
11343 if { (ac_try="$ac_compile"
11344 case "(($ac_try" in
11345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11346 *) ac_try_echo=$ac_try;;
11348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11349 (eval "$ac_compile") 2>conftest.er1
11351 grep -v '^ *+' conftest.er1 >conftest.err
11353 cat conftest.err >&5
11354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11355 (exit $ac_status); } &&
11356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11357 { (case "(($ac_try" in
11358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11359 *) ac_try_echo=$ac_try;;
11361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11362 (eval "$ac_try") 2>&5
11364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11365 (exit $ac_status); }; } &&
11366 { ac_try='test -s conftest.$ac_objext'
11367 { (case "(($ac_try" in
11368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11369 *) ac_try_echo=$ac_try;;
11371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11372 (eval "$ac_try") 2>&5
11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); }; }; then
11376 ac_header_compiler=yes
11378 echo "$as_me: failed program was:" >&5
11379 sed 's/^/| /' conftest.$ac_ext >&5
11381 ac_header_compiler=no
11384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11385 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11386 echo "${ECHO_T}$ac_header_compiler" >&6; }
11388 # Is the header present?
11389 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11390 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11391 cat >conftest.$ac_ext <<_ACEOF
11394 cat confdefs.h >>conftest.$ac_ext
11395 cat >>conftest.$ac_ext <<_ACEOF
11396 /* end confdefs.h. */
11397 #include <$ac_header>
11399 if { (ac_try="$ac_cpp conftest.$ac_ext"
11400 case "(($ac_try" in
11401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11402 *) ac_try_echo=$ac_try;;
11404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11405 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11407 grep -v '^ *+' conftest.er1 >conftest.err
11409 cat conftest.err >&5
11410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11411 (exit $ac_status); } >/dev/null; then
11412 if test -s conftest.err; then
11413 ac_cpp_err=$ac_c_preproc_warn_flag
11414 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11421 if test -z "$ac_cpp_err"; then
11422 ac_header_preproc=yes
11424 echo "$as_me: failed program was:" >&5
11425 sed 's/^/| /' conftest.$ac_ext >&5
11427 ac_header_preproc=no
11430 rm -f conftest.err conftest.$ac_ext
11431 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11432 echo "${ECHO_T}$ac_header_preproc" >&6; }
11434 # So? What about this header?
11435 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11437 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11438 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11439 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11440 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11441 ac_header_preproc=yes
11444 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11445 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11446 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11447 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11448 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11449 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11450 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11451 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11452 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11453 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11454 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11455 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11457 ## ------------------------------ ##
11458 ## Report this to bugs@yourdomain ##
11459 ## ------------------------------ ##
11461 ) | sed "s/^/$as_me: WARNING: /" >&2
11464 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11465 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11466 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11467 echo $ECHO_N "(cached) $ECHO_C" >&6
11469 eval "$as_ac_Header=\$ac_header_preproc"
11471 ac_res=`eval echo '${'$as_ac_Header'}'`
11472 { echo "$as_me:$LINENO: result: $ac_res" >&5
11473 echo "${ECHO_T}$ac_res" >&6; }
11476 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11477 cat >>confdefs.h <<_ACEOF
11478 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11488 for ac_func in strchr index
11490 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11491 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11492 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11493 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11494 echo $ECHO_N "(cached) $ECHO_C" >&6
11496 cat >conftest.$ac_ext <<_ACEOF
11499 cat confdefs.h >>conftest.$ac_ext
11500 cat >>conftest.$ac_ext <<_ACEOF
11501 /* end confdefs.h. */
11502 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11504 #define $ac_func innocuous_$ac_func
11506 /* System header to define __stub macros and hopefully few prototypes,
11507 which can conflict with char $ac_func (); below.
11508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11509 <limits.h> exists even on freestanding compilers. */
11512 # include <limits.h>
11514 # include <assert.h>
11519 /* Override any GCC internal prototype to avoid an error.
11520 Use char because int might match the return type of a GCC
11521 builtin and then its argument prototype would still apply. */
11526 /* The GNU C library defines this for functions which it implements
11527 to always fail with ENOSYS. Some functions are actually named
11528 something starting with __ and the normal name is an alias. */
11529 #if defined __stub_$ac_func || defined __stub___$ac_func
11536 return $ac_func ();
11541 rm -f conftest.$ac_objext conftest$ac_exeext
11542 if { (ac_try="$ac_link"
11543 case "(($ac_try" in
11544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11545 *) ac_try_echo=$ac_try;;
11547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11548 (eval "$ac_link") 2>conftest.er1
11550 grep -v '^ *+' conftest.er1 >conftest.err
11552 cat conftest.err >&5
11553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554 (exit $ac_status); } &&
11555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11556 { (case "(($ac_try" in
11557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11558 *) ac_try_echo=$ac_try;;
11560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11561 (eval "$ac_try") 2>&5
11563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11564 (exit $ac_status); }; } &&
11565 { ac_try='test -s conftest$ac_exeext'
11566 { (case "(($ac_try" in
11567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11568 *) ac_try_echo=$ac_try;;
11570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11571 (eval "$ac_try") 2>&5
11573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574 (exit $ac_status); }; }; then
11575 eval "$as_ac_var=yes"
11577 echo "$as_me: failed program was:" >&5
11578 sed 's/^/| /' conftest.$ac_ext >&5
11580 eval "$as_ac_var=no"
11583 rm -f core conftest.err conftest.$ac_objext \
11584 conftest$ac_exeext conftest.$ac_ext
11586 ac_res=`eval echo '${'$as_ac_var'}'`
11587 { echo "$as_me:$LINENO: result: $ac_res" >&5
11588 echo "${ECHO_T}$ac_res" >&6; }
11589 if test `eval echo '${'$as_ac_var'}'` = yes; then
11590 cat >>confdefs.h <<_ACEOF
11591 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11599 for ac_func in strrchr rindex
11601 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11602 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11603 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11604 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11605 echo $ECHO_N "(cached) $ECHO_C" >&6
11607 cat >conftest.$ac_ext <<_ACEOF
11610 cat confdefs.h >>conftest.$ac_ext
11611 cat >>conftest.$ac_ext <<_ACEOF
11612 /* end confdefs.h. */
11613 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11614 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11615 #define $ac_func innocuous_$ac_func
11617 /* System header to define __stub macros and hopefully few prototypes,
11618 which can conflict with char $ac_func (); below.
11619 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11620 <limits.h> exists even on freestanding compilers. */
11623 # include <limits.h>
11625 # include <assert.h>
11630 /* Override any GCC internal prototype to avoid an error.
11631 Use char because int might match the return type of a GCC
11632 builtin and then its argument prototype would still apply. */
11637 /* The GNU C library defines this for functions which it implements
11638 to always fail with ENOSYS. Some functions are actually named
11639 something starting with __ and the normal name is an alias. */
11640 #if defined __stub_$ac_func || defined __stub___$ac_func
11647 return $ac_func ();
11652 rm -f conftest.$ac_objext conftest$ac_exeext
11653 if { (ac_try="$ac_link"
11654 case "(($ac_try" in
11655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11656 *) ac_try_echo=$ac_try;;
11658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11659 (eval "$ac_link") 2>conftest.er1
11661 grep -v '^ *+' conftest.er1 >conftest.err
11663 cat conftest.err >&5
11664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11665 (exit $ac_status); } &&
11666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11667 { (case "(($ac_try" in
11668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11669 *) ac_try_echo=$ac_try;;
11671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11672 (eval "$ac_try") 2>&5
11674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675 (exit $ac_status); }; } &&
11676 { ac_try='test -s conftest$ac_exeext'
11677 { (case "(($ac_try" in
11678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11679 *) ac_try_echo=$ac_try;;
11681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11682 (eval "$ac_try") 2>&5
11684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11685 (exit $ac_status); }; }; then
11686 eval "$as_ac_var=yes"
11688 echo "$as_me: failed program was:" >&5
11689 sed 's/^/| /' conftest.$ac_ext >&5
11691 eval "$as_ac_var=no"
11694 rm -f core conftest.err conftest.$ac_objext \
11695 conftest$ac_exeext conftest.$ac_ext
11697 ac_res=`eval echo '${'$as_ac_var'}'`
11698 { echo "$as_me:$LINENO: result: $ac_res" >&5
11699 echo "${ECHO_T}$ac_res" >&6; }
11700 if test `eval echo '${'$as_ac_var'}'` = yes; then
11701 cat >>confdefs.h <<_ACEOF
11702 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11710 for ac_func in memcpy bcopy
11712 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11713 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11714 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11715 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11716 echo $ECHO_N "(cached) $ECHO_C" >&6
11718 cat >conftest.$ac_ext <<_ACEOF
11721 cat confdefs.h >>conftest.$ac_ext
11722 cat >>conftest.$ac_ext <<_ACEOF
11723 /* end confdefs.h. */
11724 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11725 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11726 #define $ac_func innocuous_$ac_func
11728 /* System header to define __stub macros and hopefully few prototypes,
11729 which can conflict with char $ac_func (); below.
11730 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11731 <limits.h> exists even on freestanding compilers. */
11734 # include <limits.h>
11736 # include <assert.h>
11741 /* Override any GCC internal prototype to avoid an error.
11742 Use char because int might match the return type of a GCC
11743 builtin and then its argument prototype would still apply. */
11748 /* The GNU C library defines this for functions which it implements
11749 to always fail with ENOSYS. Some functions are actually named
11750 something starting with __ and the normal name is an alias. */
11751 #if defined __stub_$ac_func || defined __stub___$ac_func
11758 return $ac_func ();
11763 rm -f conftest.$ac_objext conftest$ac_exeext
11764 if { (ac_try="$ac_link"
11765 case "(($ac_try" in
11766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11767 *) ac_try_echo=$ac_try;;
11769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11770 (eval "$ac_link") 2>conftest.er1
11772 grep -v '^ *+' conftest.er1 >conftest.err
11774 cat conftest.err >&5
11775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11776 (exit $ac_status); } &&
11777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11778 { (case "(($ac_try" in
11779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11780 *) ac_try_echo=$ac_try;;
11782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11783 (eval "$ac_try") 2>&5
11785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786 (exit $ac_status); }; } &&
11787 { ac_try='test -s conftest$ac_exeext'
11788 { (case "(($ac_try" in
11789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11790 *) ac_try_echo=$ac_try;;
11792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11793 (eval "$ac_try") 2>&5
11795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11796 (exit $ac_status); }; }; then
11797 eval "$as_ac_var=yes"
11799 echo "$as_me: failed program was:" >&5
11800 sed 's/^/| /' conftest.$ac_ext >&5
11802 eval "$as_ac_var=no"
11805 rm -f core conftest.err conftest.$ac_objext \
11806 conftest$ac_exeext conftest.$ac_ext
11808 ac_res=`eval echo '${'$as_ac_var'}'`
11809 { echo "$as_me:$LINENO: result: $ac_res" >&5
11810 echo "${ECHO_T}$ac_res" >&6; }
11811 if test `eval echo '${'$as_ac_var'}'` = yes; then
11812 cat >>confdefs.h <<_ACEOF
11813 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11821 for ac_func in memmove strcmp
11823 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11824 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11825 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11826 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11827 echo $ECHO_N "(cached) $ECHO_C" >&6
11829 cat >conftest.$ac_ext <<_ACEOF
11832 cat confdefs.h >>conftest.$ac_ext
11833 cat >>conftest.$ac_ext <<_ACEOF
11834 /* end confdefs.h. */
11835 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11836 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11837 #define $ac_func innocuous_$ac_func
11839 /* System header to define __stub macros and hopefully few prototypes,
11840 which can conflict with char $ac_func (); below.
11841 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11842 <limits.h> exists even on freestanding compilers. */
11845 # include <limits.h>
11847 # include <assert.h>
11852 /* Override any GCC internal prototype to avoid an error.
11853 Use char because int might match the return type of a GCC
11854 builtin and then its argument prototype would still apply. */
11859 /* The GNU C library defines this for functions which it implements
11860 to always fail with ENOSYS. Some functions are actually named
11861 something starting with __ and the normal name is an alias. */
11862 #if defined __stub_$ac_func || defined __stub___$ac_func
11869 return $ac_func ();
11874 rm -f conftest.$ac_objext conftest$ac_exeext
11875 if { (ac_try="$ac_link"
11876 case "(($ac_try" in
11877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11878 *) ac_try_echo=$ac_try;;
11880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11881 (eval "$ac_link") 2>conftest.er1
11883 grep -v '^ *+' conftest.er1 >conftest.err
11885 cat conftest.err >&5
11886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887 (exit $ac_status); } &&
11888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11889 { (case "(($ac_try" in
11890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11891 *) ac_try_echo=$ac_try;;
11893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11894 (eval "$ac_try") 2>&5
11896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897 (exit $ac_status); }; } &&
11898 { ac_try='test -s conftest$ac_exeext'
11899 { (case "(($ac_try" in
11900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11901 *) ac_try_echo=$ac_try;;
11903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11904 (eval "$ac_try") 2>&5
11906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907 (exit $ac_status); }; }; then
11908 eval "$as_ac_var=yes"
11910 echo "$as_me: failed program was:" >&5
11911 sed 's/^/| /' conftest.$ac_ext >&5
11913 eval "$as_ac_var=no"
11916 rm -f core conftest.err conftest.$ac_objext \
11917 conftest$ac_exeext conftest.$ac_ext
11919 ac_res=`eval echo '${'$as_ac_var'}'`
11920 { echo "$as_me:$LINENO: result: $ac_res" >&5
11921 echo "${ECHO_T}$ac_res" >&6; }
11922 if test `eval echo '${'$as_ac_var'}'` = yes; then
11923 cat >>confdefs.h <<_ACEOF
11924 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11933 for ac_func in closedir opendir readdir
11935 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11936 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11937 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11938 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11939 echo $ECHO_N "(cached) $ECHO_C" >&6
11941 cat >conftest.$ac_ext <<_ACEOF
11944 cat confdefs.h >>conftest.$ac_ext
11945 cat >>conftest.$ac_ext <<_ACEOF
11946 /* end confdefs.h. */
11947 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11948 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11949 #define $ac_func innocuous_$ac_func
11951 /* System header to define __stub macros and hopefully few prototypes,
11952 which can conflict with char $ac_func (); below.
11953 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11954 <limits.h> exists even on freestanding compilers. */
11957 # include <limits.h>
11959 # include <assert.h>
11964 /* Override any GCC internal prototype to avoid an error.
11965 Use char because int might match the return type of a GCC
11966 builtin and then its argument prototype would still apply. */
11971 /* The GNU C library defines this for functions which it implements
11972 to always fail with ENOSYS. Some functions are actually named
11973 something starting with __ and the normal name is an alias. */
11974 #if defined __stub_$ac_func || defined __stub___$ac_func
11981 return $ac_func ();
11986 rm -f conftest.$ac_objext conftest$ac_exeext
11987 if { (ac_try="$ac_link"
11988 case "(($ac_try" in
11989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11990 *) ac_try_echo=$ac_try;;
11992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11993 (eval "$ac_link") 2>conftest.er1
11995 grep -v '^ *+' conftest.er1 >conftest.err
11997 cat conftest.err >&5
11998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999 (exit $ac_status); } &&
12000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12001 { (case "(($ac_try" in
12002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12003 *) ac_try_echo=$ac_try;;
12005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12006 (eval "$ac_try") 2>&5
12008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12009 (exit $ac_status); }; } &&
12010 { ac_try='test -s conftest$ac_exeext'
12011 { (case "(($ac_try" in
12012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12013 *) ac_try_echo=$ac_try;;
12015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12016 (eval "$ac_try") 2>&5
12018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019 (exit $ac_status); }; }; then
12020 eval "$as_ac_var=yes"
12022 echo "$as_me: failed program was:" >&5
12023 sed 's/^/| /' conftest.$ac_ext >&5
12025 eval "$as_ac_var=no"
12028 rm -f core conftest.err conftest.$ac_objext \
12029 conftest$ac_exeext conftest.$ac_ext
12031 ac_res=`eval echo '${'$as_ac_var'}'`
12032 { echo "$as_me:$LINENO: result: $ac_res" >&5
12033 echo "${ECHO_T}$ac_res" >&6; }
12034 if test `eval echo '${'$as_ac_var'}'` = yes; then
12035 cat >>confdefs.h <<_ACEOF
12036 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12044 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12045 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12058 if test "$GCC" != "yes" && test "$ICC" != "yes"
12060 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12061 echo "$as_me: error: gcc|icc required but not found" >&2;}
12062 { (exit 1); exit 1; }; }
12065 if test "$GXX" != "yes" && test "$IXX" != "yes"
12067 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12068 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12069 { (exit 1); exit 1; }; }
12072 if test "$GCC" = "yes"
12074 cat >conftest.$ac_ext <<_ACEOF
12075 #if !defined(__GNUC__) || __GNUC__ < 3
12076 #error Unsupported GCC version
12080 rm -f conftest.$ac_objext
12081 if { (ac_try="$ac_compile"
12082 case "(($ac_try" in
12083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12084 *) ac_try_echo=$ac_try;;
12086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12087 (eval "$ac_compile") 2>conftest.er1
12089 grep -v '^ *+' conftest.er1 >conftest.err
12091 cat conftest.err >&5
12092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12093 (exit $ac_status); } &&
12094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12095 { (case "(($ac_try" in
12096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12097 *) ac_try_echo=$ac_try;;
12099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12100 (eval "$ac_try") 2>&5
12102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103 (exit $ac_status); }; } &&
12104 { ac_try='test -s conftest.$ac_objext'
12105 { (case "(($ac_try" in
12106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12107 *) ac_try_echo=$ac_try;;
12109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12110 (eval "$ac_try") 2>&5
12112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12113 (exit $ac_status); }; }; then
12116 echo "$as_me: failed program was:" >&5
12117 sed 's/^/| /' conftest.$ac_ext >&5
12119 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12120 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12121 { (exit 1); exit 1; }; }
12124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12127 if test -z "$llvm_cv_gnu_make_command"
12129 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12130 echo "$as_me: error: GNU Make required but not found" >&2;}
12131 { (exit 1); exit 1; }; }
12134 { echo "$as_me:$LINENO: result: ok" >&5
12135 echo "${ECHO_T}ok" >&6; }
12137 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12138 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12139 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12141 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12143 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12145 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12146 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
12150 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12151 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12152 if test "${ac_cv_lib_m_sin+set}" = set; then
12153 echo $ECHO_N "(cached) $ECHO_C" >&6
12155 ac_check_lib_save_LIBS=$LIBS
12157 cat >conftest.$ac_ext <<_ACEOF
12160 cat confdefs.h >>conftest.$ac_ext
12161 cat >>conftest.$ac_ext <<_ACEOF
12162 /* end confdefs.h. */
12164 /* Override any GCC internal prototype to avoid an error.
12165 Use char because int might match the return type of a GCC
12166 builtin and then its argument prototype would still apply. */
12179 rm -f conftest.$ac_objext conftest$ac_exeext
12180 if { (ac_try="$ac_link"
12181 case "(($ac_try" in
12182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12183 *) ac_try_echo=$ac_try;;
12185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12186 (eval "$ac_link") 2>conftest.er1
12188 grep -v '^ *+' conftest.er1 >conftest.err
12190 cat conftest.err >&5
12191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12192 (exit $ac_status); } &&
12193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12194 { (case "(($ac_try" in
12195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12196 *) ac_try_echo=$ac_try;;
12198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12199 (eval "$ac_try") 2>&5
12201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12202 (exit $ac_status); }; } &&
12203 { ac_try='test -s conftest$ac_exeext'
12204 { (case "(($ac_try" in
12205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12206 *) ac_try_echo=$ac_try;;
12208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12209 (eval "$ac_try") 2>&5
12211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212 (exit $ac_status); }; }; then
12213 ac_cv_lib_m_sin=yes
12215 echo "$as_me: failed program was:" >&5
12216 sed 's/^/| /' conftest.$ac_ext >&5
12221 rm -f core conftest.err conftest.$ac_objext \
12222 conftest$ac_exeext conftest.$ac_ext
12223 LIBS=$ac_check_lib_save_LIBS
12225 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12226 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12227 if test $ac_cv_lib_m_sin = yes; then
12228 cat >>confdefs.h <<_ACEOF
12229 #define HAVE_LIBM 1
12236 if test "$llvm_cv_os_type" = "MingW" ; then
12238 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12239 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12240 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12241 echo $ECHO_N "(cached) $ECHO_C" >&6
12243 ac_check_lib_save_LIBS=$LIBS
12244 LIBS="-limagehlp $LIBS"
12245 cat >conftest.$ac_ext <<_ACEOF
12248 cat confdefs.h >>conftest.$ac_ext
12249 cat >>conftest.$ac_ext <<_ACEOF
12250 /* end confdefs.h. */
12261 rm -f conftest.$ac_objext conftest$ac_exeext
12262 if { (ac_try="$ac_link"
12263 case "(($ac_try" in
12264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12265 *) ac_try_echo=$ac_try;;
12267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12268 (eval "$ac_link") 2>conftest.er1
12270 grep -v '^ *+' conftest.er1 >conftest.err
12272 cat conftest.err >&5
12273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274 (exit $ac_status); } &&
12275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12276 { (case "(($ac_try" in
12277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12278 *) ac_try_echo=$ac_try;;
12280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12281 (eval "$ac_try") 2>&5
12283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284 (exit $ac_status); }; } &&
12285 { ac_try='test -s conftest$ac_exeext'
12286 { (case "(($ac_try" in
12287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12288 *) ac_try_echo=$ac_try;;
12290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12291 (eval "$ac_try") 2>&5
12293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12294 (exit $ac_status); }; }; then
12295 ac_cv_lib_imagehlp_main=yes
12297 echo "$as_me: failed program was:" >&5
12298 sed 's/^/| /' conftest.$ac_ext >&5
12300 ac_cv_lib_imagehlp_main=no
12303 rm -f core conftest.err conftest.$ac_objext \
12304 conftest$ac_exeext conftest.$ac_ext
12305 LIBS=$ac_check_lib_save_LIBS
12307 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12308 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12309 if test $ac_cv_lib_imagehlp_main = yes; then
12310 cat >>confdefs.h <<_ACEOF
12311 #define HAVE_LIBIMAGEHLP 1
12314 LIBS="-limagehlp $LIBS"
12319 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12320 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12321 if test "${ac_cv_lib_psapi_main+set}" = set; then
12322 echo $ECHO_N "(cached) $ECHO_C" >&6
12324 ac_check_lib_save_LIBS=$LIBS
12325 LIBS="-lpsapi $LIBS"
12326 cat >conftest.$ac_ext <<_ACEOF
12329 cat confdefs.h >>conftest.$ac_ext
12330 cat >>conftest.$ac_ext <<_ACEOF
12331 /* end confdefs.h. */
12342 rm -f conftest.$ac_objext conftest$ac_exeext
12343 if { (ac_try="$ac_link"
12344 case "(($ac_try" in
12345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12346 *) ac_try_echo=$ac_try;;
12348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12349 (eval "$ac_link") 2>conftest.er1
12351 grep -v '^ *+' conftest.er1 >conftest.err
12353 cat conftest.err >&5
12354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355 (exit $ac_status); } &&
12356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12357 { (case "(($ac_try" in
12358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12359 *) ac_try_echo=$ac_try;;
12361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12362 (eval "$ac_try") 2>&5
12364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365 (exit $ac_status); }; } &&
12366 { ac_try='test -s conftest$ac_exeext'
12367 { (case "(($ac_try" in
12368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12369 *) ac_try_echo=$ac_try;;
12371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12372 (eval "$ac_try") 2>&5
12374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375 (exit $ac_status); }; }; then
12376 ac_cv_lib_psapi_main=yes
12378 echo "$as_me: failed program was:" >&5
12379 sed 's/^/| /' conftest.$ac_ext >&5
12381 ac_cv_lib_psapi_main=no
12384 rm -f core conftest.err conftest.$ac_objext \
12385 conftest$ac_exeext conftest.$ac_ext
12386 LIBS=$ac_check_lib_save_LIBS
12388 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12389 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12390 if test $ac_cv_lib_psapi_main = yes; then
12391 cat >>confdefs.h <<_ACEOF
12392 #define HAVE_LIBPSAPI 1
12395 LIBS="-lpsapi $LIBS"
12400 { echo "$as_me:$LINENO: checking for main in -lshell32" >&5
12401 echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
12402 if test "${ac_cv_lib_shell32_main+set}" = set; then
12403 echo $ECHO_N "(cached) $ECHO_C" >&6
12405 ac_check_lib_save_LIBS=$LIBS
12406 LIBS="-lshell32 $LIBS"
12407 cat >conftest.$ac_ext <<_ACEOF
12410 cat confdefs.h >>conftest.$ac_ext
12411 cat >>conftest.$ac_ext <<_ACEOF
12412 /* end confdefs.h. */
12423 rm -f conftest.$ac_objext conftest$ac_exeext
12424 if { (ac_try="$ac_link"
12425 case "(($ac_try" in
12426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12427 *) ac_try_echo=$ac_try;;
12429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12430 (eval "$ac_link") 2>conftest.er1
12432 grep -v '^ *+' conftest.er1 >conftest.err
12434 cat conftest.err >&5
12435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436 (exit $ac_status); } &&
12437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12438 { (case "(($ac_try" in
12439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12440 *) ac_try_echo=$ac_try;;
12442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12443 (eval "$ac_try") 2>&5
12445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446 (exit $ac_status); }; } &&
12447 { ac_try='test -s conftest$ac_exeext'
12448 { (case "(($ac_try" in
12449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12450 *) ac_try_echo=$ac_try;;
12452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12453 (eval "$ac_try") 2>&5
12455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12456 (exit $ac_status); }; }; then
12457 ac_cv_lib_shell32_main=yes
12459 echo "$as_me: failed program was:" >&5
12460 sed 's/^/| /' conftest.$ac_ext >&5
12462 ac_cv_lib_shell32_main=no
12465 rm -f core conftest.err conftest.$ac_objext \
12466 conftest$ac_exeext conftest.$ac_ext
12467 LIBS=$ac_check_lib_save_LIBS
12469 { echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
12470 echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
12471 if test $ac_cv_lib_shell32_main = yes; then
12472 cat >>confdefs.h <<_ACEOF
12473 #define HAVE_LIBSHELL32 1
12476 LIBS="-lshell32 $LIBS"
12482 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12483 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12484 if test "${ac_cv_search_dlopen+set}" = set; then
12485 echo $ECHO_N "(cached) $ECHO_C" >&6
12487 ac_func_search_save_LIBS=$LIBS
12488 cat >conftest.$ac_ext <<_ACEOF
12491 cat confdefs.h >>conftest.$ac_ext
12492 cat >>conftest.$ac_ext <<_ACEOF
12493 /* end confdefs.h. */
12495 /* Override any GCC internal prototype to avoid an error.
12496 Use char because int might match the return type of a GCC
12497 builtin and then its argument prototype would still apply. */
12510 for ac_lib in '' dl; do
12511 if test -z "$ac_lib"; then
12512 ac_res="none required"
12515 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12517 rm -f conftest.$ac_objext conftest$ac_exeext
12518 if { (ac_try="$ac_link"
12519 case "(($ac_try" in
12520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12521 *) ac_try_echo=$ac_try;;
12523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12524 (eval "$ac_link") 2>conftest.er1
12526 grep -v '^ *+' conftest.er1 >conftest.err
12528 cat conftest.err >&5
12529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12530 (exit $ac_status); } &&
12531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12532 { (case "(($ac_try" in
12533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12534 *) ac_try_echo=$ac_try;;
12536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12537 (eval "$ac_try") 2>&5
12539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540 (exit $ac_status); }; } &&
12541 { ac_try='test -s conftest$ac_exeext'
12542 { (case "(($ac_try" in
12543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12544 *) ac_try_echo=$ac_try;;
12546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12547 (eval "$ac_try") 2>&5
12549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550 (exit $ac_status); }; }; then
12551 ac_cv_search_dlopen=$ac_res
12553 echo "$as_me: failed program was:" >&5
12554 sed 's/^/| /' conftest.$ac_ext >&5
12559 rm -f core conftest.err conftest.$ac_objext \
12561 if test "${ac_cv_search_dlopen+set}" = set; then
12565 if test "${ac_cv_search_dlopen+set}" = set; then
12568 ac_cv_search_dlopen=no
12570 rm conftest.$ac_ext
12571 LIBS=$ac_func_search_save_LIBS
12573 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12574 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12575 ac_res=$ac_cv_search_dlopen
12576 if test "$ac_res" != no; then
12577 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12579 cat >>confdefs.h <<\_ACEOF
12580 #define HAVE_DLOPEN 1
12584 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12585 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12589 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
12590 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
12591 if test "${ac_cv_search_clock_gettime+set}" = set; then
12592 echo $ECHO_N "(cached) $ECHO_C" >&6
12594 ac_func_search_save_LIBS=$LIBS
12595 cat >conftest.$ac_ext <<_ACEOF
12598 cat confdefs.h >>conftest.$ac_ext
12599 cat >>conftest.$ac_ext <<_ACEOF
12600 /* end confdefs.h. */
12602 /* Override any GCC internal prototype to avoid an error.
12603 Use char because int might match the return type of a GCC
12604 builtin and then its argument prototype would still apply. */
12608 char clock_gettime ();
12612 return clock_gettime ();
12617 for ac_lib in '' rt; do
12618 if test -z "$ac_lib"; then
12619 ac_res="none required"
12622 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12624 rm -f conftest.$ac_objext conftest$ac_exeext
12625 if { (ac_try="$ac_link"
12626 case "(($ac_try" in
12627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12628 *) ac_try_echo=$ac_try;;
12630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12631 (eval "$ac_link") 2>conftest.er1
12633 grep -v '^ *+' conftest.er1 >conftest.err
12635 cat conftest.err >&5
12636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637 (exit $ac_status); } &&
12638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12639 { (case "(($ac_try" in
12640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12641 *) ac_try_echo=$ac_try;;
12643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12644 (eval "$ac_try") 2>&5
12646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647 (exit $ac_status); }; } &&
12648 { ac_try='test -s conftest$ac_exeext'
12649 { (case "(($ac_try" in
12650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12651 *) ac_try_echo=$ac_try;;
12653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12654 (eval "$ac_try") 2>&5
12656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657 (exit $ac_status); }; }; then
12658 ac_cv_search_clock_gettime=$ac_res
12660 echo "$as_me: failed program was:" >&5
12661 sed 's/^/| /' conftest.$ac_ext >&5
12666 rm -f core conftest.err conftest.$ac_objext \
12668 if test "${ac_cv_search_clock_gettime+set}" = set; then
12672 if test "${ac_cv_search_clock_gettime+set}" = set; then
12675 ac_cv_search_clock_gettime=no
12677 rm conftest.$ac_ext
12678 LIBS=$ac_func_search_save_LIBS
12680 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12681 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12682 ac_res=$ac_cv_search_clock_gettime
12683 if test "$ac_res" != no; then
12684 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12689 if test "$llvm_cv_enable_terminfo" = "yes" ; then
12690 { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
12691 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
12692 if test "${ac_cv_search_setupterm+set}" = set; then
12693 echo $ECHO_N "(cached) $ECHO_C" >&6
12695 ac_func_search_save_LIBS=$LIBS
12696 cat >conftest.$ac_ext <<_ACEOF
12699 cat confdefs.h >>conftest.$ac_ext
12700 cat >>conftest.$ac_ext <<_ACEOF
12701 /* end confdefs.h. */
12703 /* Override any GCC internal prototype to avoid an error.
12704 Use char because int might match the return type of a GCC
12705 builtin and then its argument prototype would still apply. */
12713 return setupterm ();
12718 for ac_lib in '' tinfo curses ncurses ncursesw; do
12719 if test -z "$ac_lib"; then
12720 ac_res="none required"
12723 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12725 rm -f conftest.$ac_objext conftest$ac_exeext
12726 if { (ac_try="$ac_link"
12727 case "(($ac_try" in
12728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12729 *) ac_try_echo=$ac_try;;
12731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12732 (eval "$ac_link") 2>conftest.er1
12734 grep -v '^ *+' conftest.er1 >conftest.err
12736 cat conftest.err >&5
12737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12738 (exit $ac_status); } &&
12739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
12747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748 (exit $ac_status); }; } &&
12749 { ac_try='test -s conftest$ac_exeext'
12750 { (case "(($ac_try" in
12751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12752 *) ac_try_echo=$ac_try;;
12754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12755 (eval "$ac_try") 2>&5
12757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758 (exit $ac_status); }; }; then
12759 ac_cv_search_setupterm=$ac_res
12761 echo "$as_me: failed program was:" >&5
12762 sed 's/^/| /' conftest.$ac_ext >&5
12767 rm -f core conftest.err conftest.$ac_objext \
12769 if test "${ac_cv_search_setupterm+set}" = set; then
12773 if test "${ac_cv_search_setupterm+set}" = set; then
12776 ac_cv_search_setupterm=no
12778 rm conftest.$ac_ext
12779 LIBS=$ac_func_search_save_LIBS
12781 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
12782 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
12783 ac_res=$ac_cv_search_setupterm
12784 if test "$ac_res" != no; then
12785 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12787 cat >>confdefs.h <<\_ACEOF
12788 #define HAVE_TERMINFO 1
12795 if test "$llvm_cv_enable_libffi" = "yes" ; then
12796 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12797 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12798 if test "${ac_cv_search_ffi_call+set}" = set; then
12799 echo $ECHO_N "(cached) $ECHO_C" >&6
12801 ac_func_search_save_LIBS=$LIBS
12802 cat >conftest.$ac_ext <<_ACEOF
12805 cat confdefs.h >>conftest.$ac_ext
12806 cat >>conftest.$ac_ext <<_ACEOF
12807 /* end confdefs.h. */
12809 /* Override any GCC internal prototype to avoid an error.
12810 Use char because int might match the return type of a GCC
12811 builtin and then its argument prototype would still apply. */
12819 return ffi_call ();
12824 for ac_lib in '' ffi; do
12825 if test -z "$ac_lib"; then
12826 ac_res="none required"
12829 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12831 rm -f conftest.$ac_objext conftest$ac_exeext
12832 if { (ac_try="$ac_link"
12833 case "(($ac_try" in
12834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12835 *) ac_try_echo=$ac_try;;
12837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12838 (eval "$ac_link") 2>conftest.er1
12840 grep -v '^ *+' conftest.er1 >conftest.err
12842 cat conftest.err >&5
12843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12844 (exit $ac_status); } &&
12845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12846 { (case "(($ac_try" in
12847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12848 *) ac_try_echo=$ac_try;;
12850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12851 (eval "$ac_try") 2>&5
12853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12854 (exit $ac_status); }; } &&
12855 { ac_try='test -s conftest$ac_exeext'
12856 { (case "(($ac_try" in
12857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12858 *) ac_try_echo=$ac_try;;
12860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12861 (eval "$ac_try") 2>&5
12863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864 (exit $ac_status); }; }; then
12865 ac_cv_search_ffi_call=$ac_res
12867 echo "$as_me: failed program was:" >&5
12868 sed 's/^/| /' conftest.$ac_ext >&5
12873 rm -f core conftest.err conftest.$ac_objext \
12875 if test "${ac_cv_search_ffi_call+set}" = set; then
12879 if test "${ac_cv_search_ffi_call+set}" = set; then
12882 ac_cv_search_ffi_call=no
12884 rm conftest.$ac_ext
12885 LIBS=$ac_func_search_save_LIBS
12887 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12888 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12889 ac_res=$ac_cv_search_ffi_call
12890 if test "$ac_res" != no; then
12891 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12893 cat >>confdefs.h <<\_ACEOF
12894 #define HAVE_FFI_CALL 1
12898 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12899 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12900 { (exit 1); exit 1; }; }
12905 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12906 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12907 if test "${ac_cv_search_mallinfo+set}" = set; then
12908 echo $ECHO_N "(cached) $ECHO_C" >&6
12910 ac_func_search_save_LIBS=$LIBS
12911 cat >conftest.$ac_ext <<_ACEOF
12914 cat confdefs.h >>conftest.$ac_ext
12915 cat >>conftest.$ac_ext <<_ACEOF
12916 /* end confdefs.h. */
12918 /* Override any GCC internal prototype to avoid an error.
12919 Use char because int might match the return type of a GCC
12920 builtin and then its argument prototype would still apply. */
12928 return mallinfo ();
12933 for ac_lib in '' malloc; do
12934 if test -z "$ac_lib"; then
12935 ac_res="none required"
12938 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12940 rm -f conftest.$ac_objext conftest$ac_exeext
12941 if { (ac_try="$ac_link"
12942 case "(($ac_try" in
12943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12944 *) ac_try_echo=$ac_try;;
12946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12947 (eval "$ac_link") 2>conftest.er1
12949 grep -v '^ *+' conftest.er1 >conftest.err
12951 cat conftest.err >&5
12952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12953 (exit $ac_status); } &&
12954 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12955 { (case "(($ac_try" in
12956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12957 *) ac_try_echo=$ac_try;;
12959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12960 (eval "$ac_try") 2>&5
12962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12963 (exit $ac_status); }; } &&
12964 { ac_try='test -s conftest$ac_exeext'
12965 { (case "(($ac_try" in
12966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12967 *) ac_try_echo=$ac_try;;
12969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12970 (eval "$ac_try") 2>&5
12972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12973 (exit $ac_status); }; }; then
12974 ac_cv_search_mallinfo=$ac_res
12976 echo "$as_me: failed program was:" >&5
12977 sed 's/^/| /' conftest.$ac_ext >&5
12982 rm -f core conftest.err conftest.$ac_objext \
12984 if test "${ac_cv_search_mallinfo+set}" = set; then
12988 if test "${ac_cv_search_mallinfo+set}" = set; then
12991 ac_cv_search_mallinfo=no
12993 rm conftest.$ac_ext
12994 LIBS=$ac_func_search_save_LIBS
12996 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12997 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12998 ac_res=$ac_cv_search_mallinfo
12999 if test "$ac_res" != no; then
13000 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13002 cat >>confdefs.h <<\_ACEOF
13003 #define HAVE_MALLINFO 1
13009 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
13011 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13012 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13013 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13014 echo $ECHO_N "(cached) $ECHO_C" >&6
13016 ac_check_lib_save_LIBS=$LIBS
13017 LIBS="-lpthread $LIBS"
13018 cat >conftest.$ac_ext <<_ACEOF
13021 cat confdefs.h >>conftest.$ac_ext
13022 cat >>conftest.$ac_ext <<_ACEOF
13023 /* end confdefs.h. */
13025 /* Override any GCC internal prototype to avoid an error.
13026 Use char because int might match the return type of a GCC
13027 builtin and then its argument prototype would still apply. */
13031 char pthread_mutex_init ();
13035 return pthread_mutex_init ();
13040 rm -f conftest.$ac_objext conftest$ac_exeext
13041 if { (ac_try="$ac_link"
13042 case "(($ac_try" in
13043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13044 *) ac_try_echo=$ac_try;;
13046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13047 (eval "$ac_link") 2>conftest.er1
13049 grep -v '^ *+' conftest.er1 >conftest.err
13051 cat conftest.err >&5
13052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13053 (exit $ac_status); } &&
13054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13055 { (case "(($ac_try" in
13056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13057 *) ac_try_echo=$ac_try;;
13059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13060 (eval "$ac_try") 2>&5
13062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13063 (exit $ac_status); }; } &&
13064 { ac_try='test -s conftest$ac_exeext'
13065 { (case "(($ac_try" in
13066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13067 *) ac_try_echo=$ac_try;;
13069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13070 (eval "$ac_try") 2>&5
13072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073 (exit $ac_status); }; }; then
13074 ac_cv_lib_pthread_pthread_mutex_init=yes
13076 echo "$as_me: failed program was:" >&5
13077 sed 's/^/| /' conftest.$ac_ext >&5
13079 ac_cv_lib_pthread_pthread_mutex_init=no
13082 rm -f core conftest.err conftest.$ac_objext \
13083 conftest$ac_exeext conftest.$ac_ext
13084 LIBS=$ac_check_lib_save_LIBS
13086 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13087 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13088 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13089 cat >>confdefs.h <<_ACEOF
13090 #define HAVE_LIBPTHREAD 1
13093 LIBS="-lpthread $LIBS"
13097 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13098 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13099 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13100 echo $ECHO_N "(cached) $ECHO_C" >&6
13102 ac_func_search_save_LIBS=$LIBS
13103 cat >conftest.$ac_ext <<_ACEOF
13106 cat confdefs.h >>conftest.$ac_ext
13107 cat >>conftest.$ac_ext <<_ACEOF
13108 /* end confdefs.h. */
13110 /* Override any GCC internal prototype to avoid an error.
13111 Use char because int might match the return type of a GCC
13112 builtin and then its argument prototype would still apply. */
13116 char pthread_mutex_lock ();
13120 return pthread_mutex_lock ();
13125 for ac_lib in '' pthread; do
13126 if test -z "$ac_lib"; then
13127 ac_res="none required"
13130 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13132 rm -f conftest.$ac_objext conftest$ac_exeext
13133 if { (ac_try="$ac_link"
13134 case "(($ac_try" in
13135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13136 *) ac_try_echo=$ac_try;;
13138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13139 (eval "$ac_link") 2>conftest.er1
13141 grep -v '^ *+' conftest.er1 >conftest.err
13143 cat conftest.err >&5
13144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13145 (exit $ac_status); } &&
13146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13147 { (case "(($ac_try" in
13148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13149 *) ac_try_echo=$ac_try;;
13151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13152 (eval "$ac_try") 2>&5
13154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155 (exit $ac_status); }; } &&
13156 { ac_try='test -s conftest$ac_exeext'
13157 { (case "(($ac_try" in
13158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13159 *) ac_try_echo=$ac_try;;
13161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13162 (eval "$ac_try") 2>&5
13164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13165 (exit $ac_status); }; }; then
13166 ac_cv_search_pthread_mutex_lock=$ac_res
13168 echo "$as_me: failed program was:" >&5
13169 sed 's/^/| /' conftest.$ac_ext >&5
13174 rm -f core conftest.err conftest.$ac_objext \
13176 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13180 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13183 ac_cv_search_pthread_mutex_lock=no
13185 rm conftest.$ac_ext
13186 LIBS=$ac_func_search_save_LIBS
13188 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13189 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13190 ac_res=$ac_cv_search_pthread_mutex_lock
13191 if test "$ac_res" != no; then
13192 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13194 cat >>confdefs.h <<\_ACEOF
13195 #define HAVE_PTHREAD_MUTEX_LOCK 1
13200 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13201 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13202 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13203 echo $ECHO_N "(cached) $ECHO_C" >&6
13205 ac_func_search_save_LIBS=$LIBS
13206 cat >conftest.$ac_ext <<_ACEOF
13209 cat confdefs.h >>conftest.$ac_ext
13210 cat >>conftest.$ac_ext <<_ACEOF
13211 /* end confdefs.h. */
13213 /* Override any GCC internal prototype to avoid an error.
13214 Use char because int might match the return type of a GCC
13215 builtin and then its argument prototype would still apply. */
13219 char pthread_rwlock_init ();
13223 return pthread_rwlock_init ();
13228 for ac_lib in '' pthread; do
13229 if test -z "$ac_lib"; then
13230 ac_res="none required"
13233 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13235 rm -f conftest.$ac_objext conftest$ac_exeext
13236 if { (ac_try="$ac_link"
13237 case "(($ac_try" in
13238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13239 *) ac_try_echo=$ac_try;;
13241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13242 (eval "$ac_link") 2>conftest.er1
13244 grep -v '^ *+' conftest.er1 >conftest.err
13246 cat conftest.err >&5
13247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248 (exit $ac_status); } &&
13249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13250 { (case "(($ac_try" in
13251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13252 *) ac_try_echo=$ac_try;;
13254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13255 (eval "$ac_try") 2>&5
13257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258 (exit $ac_status); }; } &&
13259 { ac_try='test -s conftest$ac_exeext'
13260 { (case "(($ac_try" in
13261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13262 *) ac_try_echo=$ac_try;;
13264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13265 (eval "$ac_try") 2>&5
13267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268 (exit $ac_status); }; }; then
13269 ac_cv_search_pthread_rwlock_init=$ac_res
13271 echo "$as_me: failed program was:" >&5
13272 sed 's/^/| /' conftest.$ac_ext >&5
13277 rm -f core conftest.err conftest.$ac_objext \
13279 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13283 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13286 ac_cv_search_pthread_rwlock_init=no
13288 rm conftest.$ac_ext
13289 LIBS=$ac_func_search_save_LIBS
13291 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13292 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13293 ac_res=$ac_cv_search_pthread_rwlock_init
13294 if test "$ac_res" != no; then
13295 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13297 cat >>confdefs.h <<\_ACEOF
13298 #define HAVE_PTHREAD_RWLOCK_INIT 1
13303 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13304 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13305 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13306 echo $ECHO_N "(cached) $ECHO_C" >&6
13308 ac_func_search_save_LIBS=$LIBS
13309 cat >conftest.$ac_ext <<_ACEOF
13312 cat confdefs.h >>conftest.$ac_ext
13313 cat >>conftest.$ac_ext <<_ACEOF
13314 /* end confdefs.h. */
13316 /* Override any GCC internal prototype to avoid an error.
13317 Use char because int might match the return type of a GCC
13318 builtin and then its argument prototype would still apply. */
13322 char pthread_getspecific ();
13326 return pthread_getspecific ();
13331 for ac_lib in '' pthread; do
13332 if test -z "$ac_lib"; then
13333 ac_res="none required"
13336 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13338 rm -f conftest.$ac_objext conftest$ac_exeext
13339 if { (ac_try="$ac_link"
13340 case "(($ac_try" in
13341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13342 *) ac_try_echo=$ac_try;;
13344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13345 (eval "$ac_link") 2>conftest.er1
13347 grep -v '^ *+' conftest.er1 >conftest.err
13349 cat conftest.err >&5
13350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13351 (exit $ac_status); } &&
13352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13353 { (case "(($ac_try" in
13354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13355 *) ac_try_echo=$ac_try;;
13357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13358 (eval "$ac_try") 2>&5
13360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13361 (exit $ac_status); }; } &&
13362 { ac_try='test -s conftest$ac_exeext'
13363 { (case "(($ac_try" in
13364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13365 *) ac_try_echo=$ac_try;;
13367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13368 (eval "$ac_try") 2>&5
13370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13371 (exit $ac_status); }; }; then
13372 ac_cv_search_pthread_getspecific=$ac_res
13374 echo "$as_me: failed program was:" >&5
13375 sed 's/^/| /' conftest.$ac_ext >&5
13380 rm -f core conftest.err conftest.$ac_objext \
13382 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13386 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13389 ac_cv_search_pthread_getspecific=no
13391 rm conftest.$ac_ext
13392 LIBS=$ac_func_search_save_LIBS
13394 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13395 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13396 ac_res=$ac_cv_search_pthread_getspecific
13397 if test "$ac_res" != no; then
13398 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13400 cat >>confdefs.h <<\_ACEOF
13401 #define HAVE_PTHREAD_GETSPECIFIC 1
13408 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
13410 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
13411 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
13412 if test "${ac_cv_lib_z_compress2+set}" = set; then
13413 echo $ECHO_N "(cached) $ECHO_C" >&6
13415 ac_check_lib_save_LIBS=$LIBS
13417 cat >conftest.$ac_ext <<_ACEOF
13420 cat confdefs.h >>conftest.$ac_ext
13421 cat >>conftest.$ac_ext <<_ACEOF
13422 /* end confdefs.h. */
13424 /* Override any GCC internal prototype to avoid an error.
13425 Use char because int might match the return type of a GCC
13426 builtin and then its argument prototype would still apply. */
13434 return compress2 ();
13439 rm -f conftest.$ac_objext conftest$ac_exeext
13440 if { (ac_try="$ac_link"
13441 case "(($ac_try" in
13442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13443 *) ac_try_echo=$ac_try;;
13445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13446 (eval "$ac_link") 2>conftest.er1
13448 grep -v '^ *+' conftest.er1 >conftest.err
13450 cat conftest.err >&5
13451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13452 (exit $ac_status); } &&
13453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13454 { (case "(($ac_try" in
13455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13456 *) ac_try_echo=$ac_try;;
13458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13459 (eval "$ac_try") 2>&5
13461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13462 (exit $ac_status); }; } &&
13463 { ac_try='test -s conftest$ac_exeext'
13464 { (case "(($ac_try" in
13465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13466 *) ac_try_echo=$ac_try;;
13468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13469 (eval "$ac_try") 2>&5
13471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472 (exit $ac_status); }; }; then
13473 ac_cv_lib_z_compress2=yes
13475 echo "$as_me: failed program was:" >&5
13476 sed 's/^/| /' conftest.$ac_ext >&5
13478 ac_cv_lib_z_compress2=no
13481 rm -f core conftest.err conftest.$ac_objext \
13482 conftest$ac_exeext conftest.$ac_ext
13483 LIBS=$ac_check_lib_save_LIBS
13485 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
13486 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
13487 if test $ac_cv_lib_z_compress2 = yes; then
13488 cat >>confdefs.h <<_ACEOF
13489 #define HAVE_LIBZ 1
13499 # Check whether --with-udis86 was given.
13500 if test "${with_udis86+set}" = set; then
13501 withval=$with_udis86;
13506 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13509 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13510 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13511 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13512 echo $ECHO_N "(cached) $ECHO_C" >&6
13514 ac_check_lib_save_LIBS=$LIBS
13515 LIBS="-ludis86 $LIBS"
13516 cat >conftest.$ac_ext <<_ACEOF
13519 cat confdefs.h >>conftest.$ac_ext
13520 cat >>conftest.$ac_ext <<_ACEOF
13521 /* end confdefs.h. */
13523 /* Override any GCC internal prototype to avoid an error.
13524 Use char because int might match the return type of a GCC
13525 builtin and then its argument prototype would still apply. */
13538 rm -f conftest.$ac_objext conftest$ac_exeext
13539 if { (ac_try="$ac_link"
13540 case "(($ac_try" in
13541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13542 *) ac_try_echo=$ac_try;;
13544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13545 (eval "$ac_link") 2>conftest.er1
13547 grep -v '^ *+' conftest.er1 >conftest.err
13549 cat conftest.err >&5
13550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13551 (exit $ac_status); } &&
13552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13553 { (case "(($ac_try" in
13554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13555 *) ac_try_echo=$ac_try;;
13557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13558 (eval "$ac_try") 2>&5
13560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13561 (exit $ac_status); }; } &&
13562 { ac_try='test -s conftest$ac_exeext'
13563 { (case "(($ac_try" in
13564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13565 *) ac_try_echo=$ac_try;;
13567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13568 (eval "$ac_try") 2>&5
13570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571 (exit $ac_status); }; }; then
13572 ac_cv_lib_udis86_ud_init=yes
13574 echo "$as_me: failed program was:" >&5
13575 sed 's/^/| /' conftest.$ac_ext >&5
13577 ac_cv_lib_udis86_ud_init=no
13580 rm -f core conftest.err conftest.$ac_objext \
13581 conftest$ac_exeext conftest.$ac_ext
13582 LIBS=$ac_check_lib_save_LIBS
13584 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13585 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13586 if test $ac_cv_lib_udis86_ud_init = yes; then
13587 cat >>confdefs.h <<_ACEOF
13588 #define HAVE_LIBUDIS86 1
13591 LIBS="-ludis86 $LIBS"
13595 echo "Error! You need to have libudis86 around."
13607 cat >>confdefs.h <<_ACEOF
13608 #define USE_UDIS86 $USE_UDIS86
13613 # Check whether --with-oprofile was given.
13614 if test "${with_oprofile+set}" = set; then
13615 withval=$with_oprofile;
13619 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13620 no) llvm_cv_oppath=
13623 *) llvm_cv_oppath="${withval}/lib/oprofile"
13624 CPPFLAGS="-I${withval}/include";;
13626 if test -n "$llvm_cv_oppath" ; then
13627 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13628 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13629 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13630 if test "${ac_cv_search_bfd_init+set}" = set; then
13631 echo $ECHO_N "(cached) $ECHO_C" >&6
13633 ac_func_search_save_LIBS=$LIBS
13634 cat >conftest.$ac_ext <<_ACEOF
13637 cat confdefs.h >>conftest.$ac_ext
13638 cat >>conftest.$ac_ext <<_ACEOF
13639 /* end confdefs.h. */
13641 /* Override any GCC internal prototype to avoid an error.
13642 Use char because int might match the return type of a GCC
13643 builtin and then its argument prototype would still apply. */
13651 return bfd_init ();
13656 for ac_lib in '' bfd; do
13657 if test -z "$ac_lib"; then
13658 ac_res="none required"
13661 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13663 rm -f conftest.$ac_objext conftest$ac_exeext
13664 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
13672 grep -v '^ *+' conftest.er1 >conftest.err
13674 cat conftest.err >&5
13675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13676 (exit $ac_status); } &&
13677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13678 { (case "(($ac_try" in
13679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13680 *) ac_try_echo=$ac_try;;
13682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13683 (eval "$ac_try") 2>&5
13685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13686 (exit $ac_status); }; } &&
13687 { ac_try='test -s conftest$ac_exeext'
13688 { (case "(($ac_try" in
13689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13690 *) ac_try_echo=$ac_try;;
13692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13693 (eval "$ac_try") 2>&5
13695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13696 (exit $ac_status); }; }; then
13697 ac_cv_search_bfd_init=$ac_res
13699 echo "$as_me: failed program was:" >&5
13700 sed 's/^/| /' conftest.$ac_ext >&5
13705 rm -f core conftest.err conftest.$ac_objext \
13707 if test "${ac_cv_search_bfd_init+set}" = set; then
13711 if test "${ac_cv_search_bfd_init+set}" = set; then
13714 ac_cv_search_bfd_init=no
13716 rm conftest.$ac_ext
13717 LIBS=$ac_func_search_save_LIBS
13719 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13720 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13721 ac_res=$ac_cv_search_bfd_init
13722 if test "$ac_res" != no; then
13723 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13727 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13728 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13729 if test "${ac_cv_search_op_open_agent+set}" = set; then
13730 echo $ECHO_N "(cached) $ECHO_C" >&6
13732 ac_func_search_save_LIBS=$LIBS
13733 cat >conftest.$ac_ext <<_ACEOF
13736 cat confdefs.h >>conftest.$ac_ext
13737 cat >>conftest.$ac_ext <<_ACEOF
13738 /* end confdefs.h. */
13740 /* Override any GCC internal prototype to avoid an error.
13741 Use char because int might match the return type of a GCC
13742 builtin and then its argument prototype would still apply. */
13746 char op_open_agent ();
13750 return op_open_agent ();
13755 for ac_lib in '' opagent; do
13756 if test -z "$ac_lib"; then
13757 ac_res="none required"
13760 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13762 rm -f conftest.$ac_objext conftest$ac_exeext
13763 if { (ac_try="$ac_link"
13764 case "(($ac_try" in
13765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13766 *) ac_try_echo=$ac_try;;
13768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13769 (eval "$ac_link") 2>conftest.er1
13771 grep -v '^ *+' conftest.er1 >conftest.err
13773 cat conftest.err >&5
13774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13775 (exit $ac_status); } &&
13776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13777 { (case "(($ac_try" in
13778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13779 *) ac_try_echo=$ac_try;;
13781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13782 (eval "$ac_try") 2>&5
13784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13785 (exit $ac_status); }; } &&
13786 { ac_try='test -s conftest$ac_exeext'
13787 { (case "(($ac_try" in
13788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13789 *) ac_try_echo=$ac_try;;
13791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13792 (eval "$ac_try") 2>&5
13794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13795 (exit $ac_status); }; }; then
13796 ac_cv_search_op_open_agent=$ac_res
13798 echo "$as_me: failed program was:" >&5
13799 sed 's/^/| /' conftest.$ac_ext >&5
13804 rm -f core conftest.err conftest.$ac_objext \
13806 if test "${ac_cv_search_op_open_agent+set}" = set; then
13810 if test "${ac_cv_search_op_open_agent+set}" = set; then
13813 ac_cv_search_op_open_agent=no
13815 rm conftest.$ac_ext
13816 LIBS=$ac_func_search_save_LIBS
13818 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13819 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13820 ac_res=$ac_cv_search_op_open_agent
13821 if test "$ac_res" != no; then
13822 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13826 echo "Error! You need to have libopagent around."
13831 if test "${ac_cv_header_opagent_h+set}" = set; then
13832 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13833 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13834 if test "${ac_cv_header_opagent_h+set}" = set; then
13835 echo $ECHO_N "(cached) $ECHO_C" >&6
13837 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13838 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13840 # Is the header compilable?
13841 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13842 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13843 cat >conftest.$ac_ext <<_ACEOF
13846 cat confdefs.h >>conftest.$ac_ext
13847 cat >>conftest.$ac_ext <<_ACEOF
13848 /* end confdefs.h. */
13849 $ac_includes_default
13850 #include <opagent.h>
13852 rm -f conftest.$ac_objext
13853 if { (ac_try="$ac_compile"
13854 case "(($ac_try" in
13855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13856 *) ac_try_echo=$ac_try;;
13858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13859 (eval "$ac_compile") 2>conftest.er1
13861 grep -v '^ *+' conftest.er1 >conftest.err
13863 cat conftest.err >&5
13864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13865 (exit $ac_status); } &&
13866 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13867 { (case "(($ac_try" in
13868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13869 *) ac_try_echo=$ac_try;;
13871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13872 (eval "$ac_try") 2>&5
13874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13875 (exit $ac_status); }; } &&
13876 { ac_try='test -s conftest.$ac_objext'
13877 { (case "(($ac_try" in
13878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13879 *) ac_try_echo=$ac_try;;
13881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13882 (eval "$ac_try") 2>&5
13884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13885 (exit $ac_status); }; }; then
13886 ac_header_compiler=yes
13888 echo "$as_me: failed program was:" >&5
13889 sed 's/^/| /' conftest.$ac_ext >&5
13891 ac_header_compiler=no
13894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13895 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13896 echo "${ECHO_T}$ac_header_compiler" >&6; }
13898 # Is the header present?
13899 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13900 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13901 cat >conftest.$ac_ext <<_ACEOF
13904 cat confdefs.h >>conftest.$ac_ext
13905 cat >>conftest.$ac_ext <<_ACEOF
13906 /* end confdefs.h. */
13907 #include <opagent.h>
13909 if { (ac_try="$ac_cpp conftest.$ac_ext"
13910 case "(($ac_try" in
13911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13912 *) ac_try_echo=$ac_try;;
13914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13915 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13917 grep -v '^ *+' conftest.er1 >conftest.err
13919 cat conftest.err >&5
13920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13921 (exit $ac_status); } >/dev/null; then
13922 if test -s conftest.err; then
13923 ac_cpp_err=$ac_c_preproc_warn_flag
13924 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13931 if test -z "$ac_cpp_err"; then
13932 ac_header_preproc=yes
13934 echo "$as_me: failed program was:" >&5
13935 sed 's/^/| /' conftest.$ac_ext >&5
13937 ac_header_preproc=no
13940 rm -f conftest.err conftest.$ac_ext
13941 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13942 echo "${ECHO_T}$ac_header_preproc" >&6; }
13944 # So? What about this header?
13945 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13947 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13948 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13949 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13950 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13951 ac_header_preproc=yes
13954 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13955 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13956 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13957 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13958 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13959 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13960 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13961 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13962 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13963 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13964 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13965 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13967 ## ------------------------------ ##
13968 ## Report this to bugs@yourdomain ##
13969 ## ------------------------------ ##
13971 ) | sed "s/^/$as_me: WARNING: /" >&2
13974 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13975 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13976 if test "${ac_cv_header_opagent_h+set}" = set; then
13977 echo $ECHO_N "(cached) $ECHO_C" >&6
13979 ac_cv_header_opagent_h=$ac_header_preproc
13981 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13982 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13985 if test $ac_cv_header_opagent_h = yes; then
13989 echo "Error! You need to have opagent.h around."
14005 cat >>confdefs.h <<_ACEOF
14006 #define USE_OPROFILE $USE_OPROFILE
14016 ac_header_dirent=no
14017 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14018 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14019 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14020 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14021 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14022 echo $ECHO_N "(cached) $ECHO_C" >&6
14024 cat >conftest.$ac_ext <<_ACEOF
14027 cat confdefs.h >>conftest.$ac_ext
14028 cat >>conftest.$ac_ext <<_ACEOF
14029 /* end confdefs.h. */
14030 #include <sys/types.h>
14042 rm -f conftest.$ac_objext
14043 if { (ac_try="$ac_compile"
14044 case "(($ac_try" in
14045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14046 *) ac_try_echo=$ac_try;;
14048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14049 (eval "$ac_compile") 2>conftest.er1
14051 grep -v '^ *+' conftest.er1 >conftest.err
14053 cat conftest.err >&5
14054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055 (exit $ac_status); } &&
14056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14057 { (case "(($ac_try" in
14058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14059 *) ac_try_echo=$ac_try;;
14061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14062 (eval "$ac_try") 2>&5
14064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065 (exit $ac_status); }; } &&
14066 { ac_try='test -s conftest.$ac_objext'
14067 { (case "(($ac_try" in
14068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14069 *) ac_try_echo=$ac_try;;
14071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14072 (eval "$ac_try") 2>&5
14074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14075 (exit $ac_status); }; }; then
14076 eval "$as_ac_Header=yes"
14078 echo "$as_me: failed program was:" >&5
14079 sed 's/^/| /' conftest.$ac_ext >&5
14081 eval "$as_ac_Header=no"
14084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14086 ac_res=`eval echo '${'$as_ac_Header'}'`
14087 { echo "$as_me:$LINENO: result: $ac_res" >&5
14088 echo "${ECHO_T}$ac_res" >&6; }
14089 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14090 cat >>confdefs.h <<_ACEOF
14091 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14094 ac_header_dirent=$ac_hdr; break
14098 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14099 if test $ac_header_dirent = dirent.h; then
14100 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14101 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14102 if test "${ac_cv_search_opendir+set}" = set; then
14103 echo $ECHO_N "(cached) $ECHO_C" >&6
14105 ac_func_search_save_LIBS=$LIBS
14106 cat >conftest.$ac_ext <<_ACEOF
14109 cat confdefs.h >>conftest.$ac_ext
14110 cat >>conftest.$ac_ext <<_ACEOF
14111 /* end confdefs.h. */
14113 /* Override any GCC internal prototype to avoid an error.
14114 Use char because int might match the return type of a GCC
14115 builtin and then its argument prototype would still apply. */
14128 for ac_lib in '' dir; do
14129 if test -z "$ac_lib"; then
14130 ac_res="none required"
14133 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14135 rm -f conftest.$ac_objext conftest$ac_exeext
14136 if { (ac_try="$ac_link"
14137 case "(($ac_try" in
14138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14139 *) ac_try_echo=$ac_try;;
14141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14142 (eval "$ac_link") 2>conftest.er1
14144 grep -v '^ *+' conftest.er1 >conftest.err
14146 cat conftest.err >&5
14147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14148 (exit $ac_status); } &&
14149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14150 { (case "(($ac_try" in
14151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14152 *) ac_try_echo=$ac_try;;
14154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14155 (eval "$ac_try") 2>&5
14157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14158 (exit $ac_status); }; } &&
14159 { ac_try='test -s conftest$ac_exeext'
14160 { (case "(($ac_try" in
14161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14162 *) ac_try_echo=$ac_try;;
14164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14165 (eval "$ac_try") 2>&5
14167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14168 (exit $ac_status); }; }; then
14169 ac_cv_search_opendir=$ac_res
14171 echo "$as_me: failed program was:" >&5
14172 sed 's/^/| /' conftest.$ac_ext >&5
14177 rm -f core conftest.err conftest.$ac_objext \
14179 if test "${ac_cv_search_opendir+set}" = set; then
14183 if test "${ac_cv_search_opendir+set}" = set; then
14186 ac_cv_search_opendir=no
14188 rm conftest.$ac_ext
14189 LIBS=$ac_func_search_save_LIBS
14191 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14192 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14193 ac_res=$ac_cv_search_opendir
14194 if test "$ac_res" != no; then
14195 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14200 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14201 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14202 if test "${ac_cv_search_opendir+set}" = set; then
14203 echo $ECHO_N "(cached) $ECHO_C" >&6
14205 ac_func_search_save_LIBS=$LIBS
14206 cat >conftest.$ac_ext <<_ACEOF
14209 cat confdefs.h >>conftest.$ac_ext
14210 cat >>conftest.$ac_ext <<_ACEOF
14211 /* end confdefs.h. */
14213 /* Override any GCC internal prototype to avoid an error.
14214 Use char because int might match the return type of a GCC
14215 builtin and then its argument prototype would still apply. */
14228 for ac_lib in '' x; do
14229 if test -z "$ac_lib"; then
14230 ac_res="none required"
14233 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14235 rm -f conftest.$ac_objext conftest$ac_exeext
14236 if { (ac_try="$ac_link"
14237 case "(($ac_try" in
14238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14239 *) ac_try_echo=$ac_try;;
14241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14242 (eval "$ac_link") 2>conftest.er1
14244 grep -v '^ *+' conftest.er1 >conftest.err
14246 cat conftest.err >&5
14247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14248 (exit $ac_status); } &&
14249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14250 { (case "(($ac_try" in
14251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14252 *) ac_try_echo=$ac_try;;
14254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14255 (eval "$ac_try") 2>&5
14257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258 (exit $ac_status); }; } &&
14259 { ac_try='test -s conftest$ac_exeext'
14260 { (case "(($ac_try" in
14261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14262 *) ac_try_echo=$ac_try;;
14264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14265 (eval "$ac_try") 2>&5
14267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14268 (exit $ac_status); }; }; then
14269 ac_cv_search_opendir=$ac_res
14271 echo "$as_me: failed program was:" >&5
14272 sed 's/^/| /' conftest.$ac_ext >&5
14277 rm -f core conftest.err conftest.$ac_objext \
14279 if test "${ac_cv_search_opendir+set}" = set; then
14283 if test "${ac_cv_search_opendir+set}" = set; then
14286 ac_cv_search_opendir=no
14288 rm conftest.$ac_ext
14289 LIBS=$ac_func_search_save_LIBS
14291 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14292 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14293 ac_res=$ac_cv_search_opendir
14294 if test "$ac_res" != no; then
14295 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14301 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14302 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14303 if test "${ac_cv_header_mmap_anon+set}" = set; then
14304 echo $ECHO_N "(cached) $ECHO_C" >&6
14307 ac_cpp='$CPP $CPPFLAGS'
14308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14312 cat >conftest.$ac_ext <<_ACEOF
14315 cat confdefs.h >>conftest.$ac_ext
14316 cat >>conftest.$ac_ext <<_ACEOF
14317 /* end confdefs.h. */
14318 #include <sys/mman.h>
14319 #include <unistd.h>
14324 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14329 rm -f conftest.$ac_objext
14330 if { (ac_try="$ac_compile"
14331 case "(($ac_try" in
14332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14333 *) ac_try_echo=$ac_try;;
14335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14336 (eval "$ac_compile") 2>conftest.er1
14338 grep -v '^ *+' conftest.er1 >conftest.err
14340 cat conftest.err >&5
14341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14342 (exit $ac_status); } &&
14343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14344 { (case "(($ac_try" in
14345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14346 *) ac_try_echo=$ac_try;;
14348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14349 (eval "$ac_try") 2>&5
14351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14352 (exit $ac_status); }; } &&
14353 { ac_try='test -s conftest.$ac_objext'
14354 { (case "(($ac_try" in
14355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14356 *) ac_try_echo=$ac_try;;
14358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14359 (eval "$ac_try") 2>&5
14361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14362 (exit $ac_status); }; }; then
14363 ac_cv_header_mmap_anon=yes
14365 echo "$as_me: failed program was:" >&5
14366 sed 's/^/| /' conftest.$ac_ext >&5
14368 ac_cv_header_mmap_anon=no
14371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14373 ac_cpp='$CPP $CPPFLAGS'
14374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14380 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14381 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14382 if test "$ac_cv_header_mmap_anon" = yes; then
14384 cat >>confdefs.h <<\_ACEOF
14385 #define HAVE_MMAP_ANONYMOUS 1
14390 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14391 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14392 if test "${ac_cv_header_stat_broken+set}" = set; then
14393 echo $ECHO_N "(cached) $ECHO_C" >&6
14395 cat >conftest.$ac_ext <<_ACEOF
14398 cat confdefs.h >>conftest.$ac_ext
14399 cat >>conftest.$ac_ext <<_ACEOF
14400 /* end confdefs.h. */
14401 #include <sys/types.h>
14402 #include <sys/stat.h>
14404 #if defined S_ISBLK && defined S_IFDIR
14405 # if S_ISBLK (S_IFDIR)
14410 #if defined S_ISBLK && defined S_IFCHR
14411 # if S_ISBLK (S_IFCHR)
14416 #if defined S_ISLNK && defined S_IFREG
14417 # if S_ISLNK (S_IFREG)
14422 #if defined S_ISSOCK && defined S_IFREG
14423 # if S_ISSOCK (S_IFREG)
14429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14430 $EGREP "You lose" >/dev/null 2>&1; then
14431 ac_cv_header_stat_broken=yes
14433 ac_cv_header_stat_broken=no
14438 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14439 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14440 if test $ac_cv_header_stat_broken = yes; then
14442 cat >>confdefs.h <<\_ACEOF
14443 #define STAT_MACROS_BROKEN 1
14448 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14449 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14450 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14451 echo $ECHO_N "(cached) $ECHO_C" >&6
14453 cat >conftest.$ac_ext <<_ACEOF
14456 cat confdefs.h >>conftest.$ac_ext
14457 cat >>conftest.$ac_ext <<_ACEOF
14458 /* end confdefs.h. */
14459 #include <sys/types.h>
14460 #include <sys/wait.h>
14461 #ifndef WEXITSTATUS
14462 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14465 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14473 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14478 rm -f conftest.$ac_objext
14479 if { (ac_try="$ac_compile"
14480 case "(($ac_try" in
14481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14482 *) ac_try_echo=$ac_try;;
14484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14485 (eval "$ac_compile") 2>conftest.er1
14487 grep -v '^ *+' conftest.er1 >conftest.err
14489 cat conftest.err >&5
14490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14491 (exit $ac_status); } &&
14492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14493 { (case "(($ac_try" in
14494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14495 *) ac_try_echo=$ac_try;;
14497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14498 (eval "$ac_try") 2>&5
14500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14501 (exit $ac_status); }; } &&
14502 { ac_try='test -s conftest.$ac_objext'
14503 { (case "(($ac_try" in
14504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14505 *) ac_try_echo=$ac_try;;
14507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14508 (eval "$ac_try") 2>&5
14510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14511 (exit $ac_status); }; }; then
14512 ac_cv_header_sys_wait_h=yes
14514 echo "$as_me: failed program was:" >&5
14515 sed 's/^/| /' conftest.$ac_ext >&5
14517 ac_cv_header_sys_wait_h=no
14520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14522 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14523 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14524 if test $ac_cv_header_sys_wait_h = yes; then
14526 cat >>confdefs.h <<\_ACEOF
14527 #define HAVE_SYS_WAIT_H 1
14532 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14533 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14534 if test "${ac_cv_header_time+set}" = set; then
14535 echo $ECHO_N "(cached) $ECHO_C" >&6
14537 cat >conftest.$ac_ext <<_ACEOF
14540 cat confdefs.h >>conftest.$ac_ext
14541 cat >>conftest.$ac_ext <<_ACEOF
14542 /* end confdefs.h. */
14543 #include <sys/types.h>
14544 #include <sys/time.h>
14550 if ((struct tm *) 0)
14556 rm -f conftest.$ac_objext
14557 if { (ac_try="$ac_compile"
14558 case "(($ac_try" in
14559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14560 *) ac_try_echo=$ac_try;;
14562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14563 (eval "$ac_compile") 2>conftest.er1
14565 grep -v '^ *+' conftest.er1 >conftest.err
14567 cat conftest.err >&5
14568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14569 (exit $ac_status); } &&
14570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14571 { (case "(($ac_try" in
14572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14573 *) ac_try_echo=$ac_try;;
14575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14576 (eval "$ac_try") 2>&5
14578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14579 (exit $ac_status); }; } &&
14580 { ac_try='test -s conftest.$ac_objext'
14581 { (case "(($ac_try" in
14582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14583 *) ac_try_echo=$ac_try;;
14585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14586 (eval "$ac_try") 2>&5
14588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589 (exit $ac_status); }; }; then
14590 ac_cv_header_time=yes
14592 echo "$as_me: failed program was:" >&5
14593 sed 's/^/| /' conftest.$ac_ext >&5
14595 ac_cv_header_time=no
14598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14600 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14601 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14602 if test $ac_cv_header_time = yes; then
14604 cat >>confdefs.h <<\_ACEOF
14605 #define TIME_WITH_SYS_TIME 1
14617 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14619 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14620 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14621 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14622 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14623 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14624 echo $ECHO_N "(cached) $ECHO_C" >&6
14626 ac_res=`eval echo '${'$as_ac_Header'}'`
14627 { echo "$as_me:$LINENO: result: $ac_res" >&5
14628 echo "${ECHO_T}$ac_res" >&6; }
14630 # Is the header compilable?
14631 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14632 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14633 cat >conftest.$ac_ext <<_ACEOF
14636 cat confdefs.h >>conftest.$ac_ext
14637 cat >>conftest.$ac_ext <<_ACEOF
14638 /* end confdefs.h. */
14639 $ac_includes_default
14640 #include <$ac_header>
14642 rm -f conftest.$ac_objext
14643 if { (ac_try="$ac_compile"
14644 case "(($ac_try" in
14645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14646 *) ac_try_echo=$ac_try;;
14648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14649 (eval "$ac_compile") 2>conftest.er1
14651 grep -v '^ *+' conftest.er1 >conftest.err
14653 cat conftest.err >&5
14654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14655 (exit $ac_status); } &&
14656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14657 { (case "(($ac_try" in
14658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14659 *) ac_try_echo=$ac_try;;
14661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14662 (eval "$ac_try") 2>&5
14664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14665 (exit $ac_status); }; } &&
14666 { ac_try='test -s conftest.$ac_objext'
14667 { (case "(($ac_try" in
14668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14669 *) ac_try_echo=$ac_try;;
14671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14672 (eval "$ac_try") 2>&5
14674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14675 (exit $ac_status); }; }; then
14676 ac_header_compiler=yes
14678 echo "$as_me: failed program was:" >&5
14679 sed 's/^/| /' conftest.$ac_ext >&5
14681 ac_header_compiler=no
14684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14685 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14686 echo "${ECHO_T}$ac_header_compiler" >&6; }
14688 # Is the header present?
14689 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14690 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14691 cat >conftest.$ac_ext <<_ACEOF
14694 cat confdefs.h >>conftest.$ac_ext
14695 cat >>conftest.$ac_ext <<_ACEOF
14696 /* end confdefs.h. */
14697 #include <$ac_header>
14699 if { (ac_try="$ac_cpp conftest.$ac_ext"
14700 case "(($ac_try" in
14701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14702 *) ac_try_echo=$ac_try;;
14704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14705 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14707 grep -v '^ *+' conftest.er1 >conftest.err
14709 cat conftest.err >&5
14710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711 (exit $ac_status); } >/dev/null; then
14712 if test -s conftest.err; then
14713 ac_cpp_err=$ac_c_preproc_warn_flag
14714 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14721 if test -z "$ac_cpp_err"; then
14722 ac_header_preproc=yes
14724 echo "$as_me: failed program was:" >&5
14725 sed 's/^/| /' conftest.$ac_ext >&5
14727 ac_header_preproc=no
14730 rm -f conftest.err conftest.$ac_ext
14731 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14732 echo "${ECHO_T}$ac_header_preproc" >&6; }
14734 # So? What about this header?
14735 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14737 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14738 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14739 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14740 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14741 ac_header_preproc=yes
14744 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14745 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14746 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14747 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14748 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14749 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14750 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14751 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14752 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14753 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14754 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14755 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14757 ## ------------------------------ ##
14758 ## Report this to bugs@yourdomain ##
14759 ## ------------------------------ ##
14761 ) | sed "s/^/$as_me: WARNING: /" >&2
14764 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14766 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14767 echo $ECHO_N "(cached) $ECHO_C" >&6
14769 eval "$as_ac_Header=\$ac_header_preproc"
14771 ac_res=`eval echo '${'$as_ac_Header'}'`
14772 { echo "$as_me:$LINENO: result: $ac_res" >&5
14773 echo "${ECHO_T}$ac_res" >&6; }
14776 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14777 cat >>confdefs.h <<_ACEOF
14778 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14791 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14793 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14794 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14795 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14796 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14797 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14798 echo $ECHO_N "(cached) $ECHO_C" >&6
14800 ac_res=`eval echo '${'$as_ac_Header'}'`
14801 { echo "$as_me:$LINENO: result: $ac_res" >&5
14802 echo "${ECHO_T}$ac_res" >&6; }
14804 # Is the header compilable?
14805 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14806 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14807 cat >conftest.$ac_ext <<_ACEOF
14810 cat confdefs.h >>conftest.$ac_ext
14811 cat >>conftest.$ac_ext <<_ACEOF
14812 /* end confdefs.h. */
14813 $ac_includes_default
14814 #include <$ac_header>
14816 rm -f conftest.$ac_objext
14817 if { (ac_try="$ac_compile"
14818 case "(($ac_try" in
14819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14820 *) ac_try_echo=$ac_try;;
14822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14823 (eval "$ac_compile") 2>conftest.er1
14825 grep -v '^ *+' conftest.er1 >conftest.err
14827 cat conftest.err >&5
14828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14829 (exit $ac_status); } &&
14830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14831 { (case "(($ac_try" in
14832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14833 *) ac_try_echo=$ac_try;;
14835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14836 (eval "$ac_try") 2>&5
14838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14839 (exit $ac_status); }; } &&
14840 { ac_try='test -s conftest.$ac_objext'
14841 { (case "(($ac_try" in
14842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14843 *) ac_try_echo=$ac_try;;
14845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14846 (eval "$ac_try") 2>&5
14848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14849 (exit $ac_status); }; }; then
14850 ac_header_compiler=yes
14852 echo "$as_me: failed program was:" >&5
14853 sed 's/^/| /' conftest.$ac_ext >&5
14855 ac_header_compiler=no
14858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14859 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14860 echo "${ECHO_T}$ac_header_compiler" >&6; }
14862 # Is the header present?
14863 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14864 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14865 cat >conftest.$ac_ext <<_ACEOF
14868 cat confdefs.h >>conftest.$ac_ext
14869 cat >>conftest.$ac_ext <<_ACEOF
14870 /* end confdefs.h. */
14871 #include <$ac_header>
14873 if { (ac_try="$ac_cpp conftest.$ac_ext"
14874 case "(($ac_try" in
14875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14876 *) ac_try_echo=$ac_try;;
14878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14879 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14881 grep -v '^ *+' conftest.er1 >conftest.err
14883 cat conftest.err >&5
14884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885 (exit $ac_status); } >/dev/null; then
14886 if test -s conftest.err; then
14887 ac_cpp_err=$ac_c_preproc_warn_flag
14888 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14895 if test -z "$ac_cpp_err"; then
14896 ac_header_preproc=yes
14898 echo "$as_me: failed program was:" >&5
14899 sed 's/^/| /' conftest.$ac_ext >&5
14901 ac_header_preproc=no
14904 rm -f conftest.err conftest.$ac_ext
14905 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14906 echo "${ECHO_T}$ac_header_preproc" >&6; }
14908 # So? What about this header?
14909 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14911 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14912 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14914 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14915 ac_header_preproc=yes
14918 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14919 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14920 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14921 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14922 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14923 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14924 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14925 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14926 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14927 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14928 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14929 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14931 ## ------------------------------ ##
14932 ## Report this to bugs@yourdomain ##
14933 ## ------------------------------ ##
14935 ) | sed "s/^/$as_me: WARNING: /" >&2
14938 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14939 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14940 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14941 echo $ECHO_N "(cached) $ECHO_C" >&6
14943 eval "$as_ac_Header=\$ac_header_preproc"
14945 ac_res=`eval echo '${'$as_ac_Header'}'`
14946 { echo "$as_me:$LINENO: result: $ac_res" >&5
14947 echo "${ECHO_T}$ac_res" >&6; }
14950 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14951 cat >>confdefs.h <<_ACEOF
14952 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14961 for ac_header in utime.h windows.h
14963 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14964 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14965 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14967 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14968 echo $ECHO_N "(cached) $ECHO_C" >&6
14970 ac_res=`eval echo '${'$as_ac_Header'}'`
14971 { echo "$as_me:$LINENO: result: $ac_res" >&5
14972 echo "${ECHO_T}$ac_res" >&6; }
14974 # Is the header compilable?
14975 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14976 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14977 cat >conftest.$ac_ext <<_ACEOF
14980 cat confdefs.h >>conftest.$ac_ext
14981 cat >>conftest.$ac_ext <<_ACEOF
14982 /* end confdefs.h. */
14983 $ac_includes_default
14984 #include <$ac_header>
14986 rm -f conftest.$ac_objext
14987 if { (ac_try="$ac_compile"
14988 case "(($ac_try" in
14989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14990 *) ac_try_echo=$ac_try;;
14992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14993 (eval "$ac_compile") 2>conftest.er1
14995 grep -v '^ *+' conftest.er1 >conftest.err
14997 cat conftest.err >&5
14998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14999 (exit $ac_status); } &&
15000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15001 { (case "(($ac_try" in
15002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15003 *) ac_try_echo=$ac_try;;
15005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15006 (eval "$ac_try") 2>&5
15008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15009 (exit $ac_status); }; } &&
15010 { ac_try='test -s conftest.$ac_objext'
15011 { (case "(($ac_try" in
15012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15013 *) ac_try_echo=$ac_try;;
15015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15016 (eval "$ac_try") 2>&5
15018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15019 (exit $ac_status); }; }; then
15020 ac_header_compiler=yes
15022 echo "$as_me: failed program was:" >&5
15023 sed 's/^/| /' conftest.$ac_ext >&5
15025 ac_header_compiler=no
15028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15029 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15030 echo "${ECHO_T}$ac_header_compiler" >&6; }
15032 # Is the header present?
15033 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15034 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15035 cat >conftest.$ac_ext <<_ACEOF
15038 cat confdefs.h >>conftest.$ac_ext
15039 cat >>conftest.$ac_ext <<_ACEOF
15040 /* end confdefs.h. */
15041 #include <$ac_header>
15043 if { (ac_try="$ac_cpp conftest.$ac_ext"
15044 case "(($ac_try" in
15045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15046 *) ac_try_echo=$ac_try;;
15048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15049 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15051 grep -v '^ *+' conftest.er1 >conftest.err
15053 cat conftest.err >&5
15054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15055 (exit $ac_status); } >/dev/null; then
15056 if test -s conftest.err; then
15057 ac_cpp_err=$ac_c_preproc_warn_flag
15058 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15065 if test -z "$ac_cpp_err"; then
15066 ac_header_preproc=yes
15068 echo "$as_me: failed program was:" >&5
15069 sed 's/^/| /' conftest.$ac_ext >&5
15071 ac_header_preproc=no
15074 rm -f conftest.err conftest.$ac_ext
15075 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15076 echo "${ECHO_T}$ac_header_preproc" >&6; }
15078 # So? What about this header?
15079 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15081 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15082 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15083 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15084 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15085 ac_header_preproc=yes
15088 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15089 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15090 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15091 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15092 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15093 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15094 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15095 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15096 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15097 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15098 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15099 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15101 ## ------------------------------ ##
15102 ## Report this to bugs@yourdomain ##
15103 ## ------------------------------ ##
15105 ) | sed "s/^/$as_me: WARNING: /" >&2
15108 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15110 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15111 echo $ECHO_N "(cached) $ECHO_C" >&6
15113 eval "$as_ac_Header=\$ac_header_preproc"
15115 ac_res=`eval echo '${'$as_ac_Header'}'`
15116 { echo "$as_me:$LINENO: result: $ac_res" >&5
15117 echo "${ECHO_T}$ac_res" >&6; }
15120 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15121 cat >>confdefs.h <<_ACEOF
15122 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15134 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15136 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15137 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15138 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15139 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15140 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15141 echo $ECHO_N "(cached) $ECHO_C" >&6
15143 ac_res=`eval echo '${'$as_ac_Header'}'`
15144 { echo "$as_me:$LINENO: result: $ac_res" >&5
15145 echo "${ECHO_T}$ac_res" >&6; }
15147 # Is the header compilable?
15148 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15149 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15150 cat >conftest.$ac_ext <<_ACEOF
15153 cat confdefs.h >>conftest.$ac_ext
15154 cat >>conftest.$ac_ext <<_ACEOF
15155 /* end confdefs.h. */
15156 $ac_includes_default
15157 #include <$ac_header>
15159 rm -f conftest.$ac_objext
15160 if { (ac_try="$ac_compile"
15161 case "(($ac_try" in
15162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15163 *) ac_try_echo=$ac_try;;
15165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15166 (eval "$ac_compile") 2>conftest.er1
15168 grep -v '^ *+' conftest.er1 >conftest.err
15170 cat conftest.err >&5
15171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15172 (exit $ac_status); } &&
15173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15174 { (case "(($ac_try" in
15175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15176 *) ac_try_echo=$ac_try;;
15178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15179 (eval "$ac_try") 2>&5
15181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15182 (exit $ac_status); }; } &&
15183 { ac_try='test -s conftest.$ac_objext'
15184 { (case "(($ac_try" in
15185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15186 *) ac_try_echo=$ac_try;;
15188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15189 (eval "$ac_try") 2>&5
15191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15192 (exit $ac_status); }; }; then
15193 ac_header_compiler=yes
15195 echo "$as_me: failed program was:" >&5
15196 sed 's/^/| /' conftest.$ac_ext >&5
15198 ac_header_compiler=no
15201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15202 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15203 echo "${ECHO_T}$ac_header_compiler" >&6; }
15205 # Is the header present?
15206 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15207 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15208 cat >conftest.$ac_ext <<_ACEOF
15211 cat confdefs.h >>conftest.$ac_ext
15212 cat >>conftest.$ac_ext <<_ACEOF
15213 /* end confdefs.h. */
15214 #include <$ac_header>
15216 if { (ac_try="$ac_cpp conftest.$ac_ext"
15217 case "(($ac_try" in
15218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15219 *) ac_try_echo=$ac_try;;
15221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15222 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15224 grep -v '^ *+' conftest.er1 >conftest.err
15226 cat conftest.err >&5
15227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15228 (exit $ac_status); } >/dev/null; then
15229 if test -s conftest.err; then
15230 ac_cpp_err=$ac_c_preproc_warn_flag
15231 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15238 if test -z "$ac_cpp_err"; then
15239 ac_header_preproc=yes
15241 echo "$as_me: failed program was:" >&5
15242 sed 's/^/| /' conftest.$ac_ext >&5
15244 ac_header_preproc=no
15247 rm -f conftest.err conftest.$ac_ext
15248 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15249 echo "${ECHO_T}$ac_header_preproc" >&6; }
15251 # So? What about this header?
15252 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15254 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15255 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15256 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15257 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15258 ac_header_preproc=yes
15261 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15262 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15263 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15264 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15265 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15266 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15267 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15268 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15269 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15270 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15271 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15272 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15274 ## ------------------------------ ##
15275 ## Report this to bugs@yourdomain ##
15276 ## ------------------------------ ##
15278 ) | sed "s/^/$as_me: WARNING: /" >&2
15281 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15282 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15283 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15284 echo $ECHO_N "(cached) $ECHO_C" >&6
15286 eval "$as_ac_Header=\$ac_header_preproc"
15288 ac_res=`eval echo '${'$as_ac_Header'}'`
15289 { echo "$as_me:$LINENO: result: $ac_res" >&5
15290 echo "${ECHO_T}$ac_res" >&6; }
15293 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15294 cat >>confdefs.h <<_ACEOF
15295 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15306 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15308 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15309 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15310 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15311 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15312 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15313 echo $ECHO_N "(cached) $ECHO_C" >&6
15315 ac_res=`eval echo '${'$as_ac_Header'}'`
15316 { echo "$as_me:$LINENO: result: $ac_res" >&5
15317 echo "${ECHO_T}$ac_res" >&6; }
15319 # Is the header compilable?
15320 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15321 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15322 cat >conftest.$ac_ext <<_ACEOF
15325 cat confdefs.h >>conftest.$ac_ext
15326 cat >>conftest.$ac_ext <<_ACEOF
15327 /* end confdefs.h. */
15328 $ac_includes_default
15329 #include <$ac_header>
15331 rm -f conftest.$ac_objext
15332 if { (ac_try="$ac_compile"
15333 case "(($ac_try" in
15334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15335 *) ac_try_echo=$ac_try;;
15337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15338 (eval "$ac_compile") 2>conftest.er1
15340 grep -v '^ *+' conftest.er1 >conftest.err
15342 cat conftest.err >&5
15343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15344 (exit $ac_status); } &&
15345 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15346 { (case "(($ac_try" in
15347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15348 *) ac_try_echo=$ac_try;;
15350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15351 (eval "$ac_try") 2>&5
15353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15354 (exit $ac_status); }; } &&
15355 { ac_try='test -s conftest.$ac_objext'
15356 { (case "(($ac_try" in
15357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15358 *) ac_try_echo=$ac_try;;
15360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15361 (eval "$ac_try") 2>&5
15363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15364 (exit $ac_status); }; }; then
15365 ac_header_compiler=yes
15367 echo "$as_me: failed program was:" >&5
15368 sed 's/^/| /' conftest.$ac_ext >&5
15370 ac_header_compiler=no
15373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15374 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15375 echo "${ECHO_T}$ac_header_compiler" >&6; }
15377 # Is the header present?
15378 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15379 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15380 cat >conftest.$ac_ext <<_ACEOF
15383 cat confdefs.h >>conftest.$ac_ext
15384 cat >>conftest.$ac_ext <<_ACEOF
15385 /* end confdefs.h. */
15386 #include <$ac_header>
15388 if { (ac_try="$ac_cpp conftest.$ac_ext"
15389 case "(($ac_try" in
15390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15391 *) ac_try_echo=$ac_try;;
15393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15394 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15396 grep -v '^ *+' conftest.er1 >conftest.err
15398 cat conftest.err >&5
15399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15400 (exit $ac_status); } >/dev/null; then
15401 if test -s conftest.err; then
15402 ac_cpp_err=$ac_c_preproc_warn_flag
15403 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15410 if test -z "$ac_cpp_err"; then
15411 ac_header_preproc=yes
15413 echo "$as_me: failed program was:" >&5
15414 sed 's/^/| /' conftest.$ac_ext >&5
15416 ac_header_preproc=no
15419 rm -f conftest.err conftest.$ac_ext
15420 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15421 echo "${ECHO_T}$ac_header_preproc" >&6; }
15423 # So? What about this header?
15424 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15426 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15427 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15428 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15429 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15430 ac_header_preproc=yes
15433 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15434 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15435 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15436 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15437 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15438 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15439 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15440 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15441 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15442 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15443 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15444 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15446 ## ------------------------------ ##
15447 ## Report this to bugs@yourdomain ##
15448 ## ------------------------------ ##
15450 ) | sed "s/^/$as_me: WARNING: /" >&2
15453 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15455 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15456 echo $ECHO_N "(cached) $ECHO_C" >&6
15458 eval "$as_ac_Header=\$ac_header_preproc"
15460 ac_res=`eval echo '${'$as_ac_Header'}'`
15461 { echo "$as_me:$LINENO: result: $ac_res" >&5
15462 echo "${ECHO_T}$ac_res" >&6; }
15465 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15466 cat >>confdefs.h <<_ACEOF
15467 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15475 for ac_header in valgrind/valgrind.h
15477 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15478 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15479 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15481 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15482 echo $ECHO_N "(cached) $ECHO_C" >&6
15484 ac_res=`eval echo '${'$as_ac_Header'}'`
15485 { echo "$as_me:$LINENO: result: $ac_res" >&5
15486 echo "${ECHO_T}$ac_res" >&6; }
15488 # Is the header compilable?
15489 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15490 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15491 cat >conftest.$ac_ext <<_ACEOF
15494 cat confdefs.h >>conftest.$ac_ext
15495 cat >>conftest.$ac_ext <<_ACEOF
15496 /* end confdefs.h. */
15497 $ac_includes_default
15498 #include <$ac_header>
15500 rm -f conftest.$ac_objext
15501 if { (ac_try="$ac_compile"
15502 case "(($ac_try" in
15503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15504 *) ac_try_echo=$ac_try;;
15506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15507 (eval "$ac_compile") 2>conftest.er1
15509 grep -v '^ *+' conftest.er1 >conftest.err
15511 cat conftest.err >&5
15512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15513 (exit $ac_status); } &&
15514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15515 { (case "(($ac_try" in
15516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15517 *) ac_try_echo=$ac_try;;
15519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15520 (eval "$ac_try") 2>&5
15522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15523 (exit $ac_status); }; } &&
15524 { ac_try='test -s conftest.$ac_objext'
15525 { (case "(($ac_try" in
15526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15527 *) ac_try_echo=$ac_try;;
15529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15530 (eval "$ac_try") 2>&5
15532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15533 (exit $ac_status); }; }; then
15534 ac_header_compiler=yes
15536 echo "$as_me: failed program was:" >&5
15537 sed 's/^/| /' conftest.$ac_ext >&5
15539 ac_header_compiler=no
15542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15543 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15544 echo "${ECHO_T}$ac_header_compiler" >&6; }
15546 # Is the header present?
15547 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15548 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15549 cat >conftest.$ac_ext <<_ACEOF
15552 cat confdefs.h >>conftest.$ac_ext
15553 cat >>conftest.$ac_ext <<_ACEOF
15554 /* end confdefs.h. */
15555 #include <$ac_header>
15557 if { (ac_try="$ac_cpp conftest.$ac_ext"
15558 case "(($ac_try" in
15559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15560 *) ac_try_echo=$ac_try;;
15562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15563 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15565 grep -v '^ *+' conftest.er1 >conftest.err
15567 cat conftest.err >&5
15568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15569 (exit $ac_status); } >/dev/null; then
15570 if test -s conftest.err; then
15571 ac_cpp_err=$ac_c_preproc_warn_flag
15572 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15579 if test -z "$ac_cpp_err"; then
15580 ac_header_preproc=yes
15582 echo "$as_me: failed program was:" >&5
15583 sed 's/^/| /' conftest.$ac_ext >&5
15585 ac_header_preproc=no
15588 rm -f conftest.err conftest.$ac_ext
15589 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15590 echo "${ECHO_T}$ac_header_preproc" >&6; }
15592 # So? What about this header?
15593 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15595 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15596 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15597 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15598 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15599 ac_header_preproc=yes
15602 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15603 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15604 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15605 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15606 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15607 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15608 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15609 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15610 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15611 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15612 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15613 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15615 ## ------------------------------ ##
15616 ## Report this to bugs@yourdomain ##
15617 ## ------------------------------ ##
15619 ) | sed "s/^/$as_me: WARNING: /" >&2
15622 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15624 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15625 echo $ECHO_N "(cached) $ECHO_C" >&6
15627 eval "$as_ac_Header=\$ac_header_preproc"
15629 ac_res=`eval echo '${'$as_ac_Header'}'`
15630 { echo "$as_me:$LINENO: result: $ac_res" >&5
15631 echo "${ECHO_T}$ac_res" >&6; }
15634 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15635 cat >>confdefs.h <<_ACEOF
15636 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15644 for ac_header in fenv.h
15646 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15647 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15648 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15651 echo $ECHO_N "(cached) $ECHO_C" >&6
15653 ac_res=`eval echo '${'$as_ac_Header'}'`
15654 { echo "$as_me:$LINENO: result: $ac_res" >&5
15655 echo "${ECHO_T}$ac_res" >&6; }
15657 # Is the header compilable?
15658 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15659 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15660 cat >conftest.$ac_ext <<_ACEOF
15663 cat confdefs.h >>conftest.$ac_ext
15664 cat >>conftest.$ac_ext <<_ACEOF
15665 /* end confdefs.h. */
15666 $ac_includes_default
15667 #include <$ac_header>
15669 rm -f conftest.$ac_objext
15670 if { (ac_try="$ac_compile"
15671 case "(($ac_try" in
15672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15673 *) ac_try_echo=$ac_try;;
15675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15676 (eval "$ac_compile") 2>conftest.er1
15678 grep -v '^ *+' conftest.er1 >conftest.err
15680 cat conftest.err >&5
15681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15682 (exit $ac_status); } &&
15683 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15684 { (case "(($ac_try" in
15685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15686 *) ac_try_echo=$ac_try;;
15688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15689 (eval "$ac_try") 2>&5
15691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15692 (exit $ac_status); }; } &&
15693 { ac_try='test -s conftest.$ac_objext'
15694 { (case "(($ac_try" in
15695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15696 *) ac_try_echo=$ac_try;;
15698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15699 (eval "$ac_try") 2>&5
15701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15702 (exit $ac_status); }; }; then
15703 ac_header_compiler=yes
15705 echo "$as_me: failed program was:" >&5
15706 sed 's/^/| /' conftest.$ac_ext >&5
15708 ac_header_compiler=no
15711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15712 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15713 echo "${ECHO_T}$ac_header_compiler" >&6; }
15715 # Is the header present?
15716 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15717 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15718 cat >conftest.$ac_ext <<_ACEOF
15721 cat confdefs.h >>conftest.$ac_ext
15722 cat >>conftest.$ac_ext <<_ACEOF
15723 /* end confdefs.h. */
15724 #include <$ac_header>
15726 if { (ac_try="$ac_cpp conftest.$ac_ext"
15727 case "(($ac_try" in
15728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15729 *) ac_try_echo=$ac_try;;
15731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15732 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15734 grep -v '^ *+' conftest.er1 >conftest.err
15736 cat conftest.err >&5
15737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738 (exit $ac_status); } >/dev/null; then
15739 if test -s conftest.err; then
15740 ac_cpp_err=$ac_c_preproc_warn_flag
15741 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15748 if test -z "$ac_cpp_err"; then
15749 ac_header_preproc=yes
15751 echo "$as_me: failed program was:" >&5
15752 sed 's/^/| /' conftest.$ac_ext >&5
15754 ac_header_preproc=no
15757 rm -f conftest.err conftest.$ac_ext
15758 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15759 echo "${ECHO_T}$ac_header_preproc" >&6; }
15761 # So? What about this header?
15762 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15764 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15765 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15766 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15767 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15768 ac_header_preproc=yes
15771 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15772 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15773 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15774 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15775 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15776 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15777 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15778 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15779 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15780 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15781 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15782 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15784 ## ------------------------------ ##
15785 ## Report this to bugs@yourdomain ##
15786 ## ------------------------------ ##
15788 ) | sed "s/^/$as_me: WARNING: /" >&2
15791 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15794 echo $ECHO_N "(cached) $ECHO_C" >&6
15796 eval "$as_ac_Header=\$ac_header_preproc"
15798 ac_res=`eval echo '${'$as_ac_Header'}'`
15799 { echo "$as_me:$LINENO: result: $ac_res" >&5
15800 echo "${ECHO_T}$ac_res" >&6; }
15803 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15804 cat >>confdefs.h <<_ACEOF
15805 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15812 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15814 for ac_header in pthread.h
15816 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15817 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15818 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15819 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15820 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15821 echo $ECHO_N "(cached) $ECHO_C" >&6
15823 ac_res=`eval echo '${'$as_ac_Header'}'`
15824 { echo "$as_me:$LINENO: result: $ac_res" >&5
15825 echo "${ECHO_T}$ac_res" >&6; }
15827 # Is the header compilable?
15828 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15829 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15830 cat >conftest.$ac_ext <<_ACEOF
15833 cat confdefs.h >>conftest.$ac_ext
15834 cat >>conftest.$ac_ext <<_ACEOF
15835 /* end confdefs.h. */
15836 $ac_includes_default
15837 #include <$ac_header>
15839 rm -f conftest.$ac_objext
15840 if { (ac_try="$ac_compile"
15841 case "(($ac_try" in
15842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15843 *) ac_try_echo=$ac_try;;
15845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15846 (eval "$ac_compile") 2>conftest.er1
15848 grep -v '^ *+' conftest.er1 >conftest.err
15850 cat conftest.err >&5
15851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15852 (exit $ac_status); } &&
15853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15854 { (case "(($ac_try" in
15855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15856 *) ac_try_echo=$ac_try;;
15858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15859 (eval "$ac_try") 2>&5
15861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15862 (exit $ac_status); }; } &&
15863 { ac_try='test -s conftest.$ac_objext'
15864 { (case "(($ac_try" in
15865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15866 *) ac_try_echo=$ac_try;;
15868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15869 (eval "$ac_try") 2>&5
15871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15872 (exit $ac_status); }; }; then
15873 ac_header_compiler=yes
15875 echo "$as_me: failed program was:" >&5
15876 sed 's/^/| /' conftest.$ac_ext >&5
15878 ac_header_compiler=no
15881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15882 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15883 echo "${ECHO_T}$ac_header_compiler" >&6; }
15885 # Is the header present?
15886 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15887 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15888 cat >conftest.$ac_ext <<_ACEOF
15891 cat confdefs.h >>conftest.$ac_ext
15892 cat >>conftest.$ac_ext <<_ACEOF
15893 /* end confdefs.h. */
15894 #include <$ac_header>
15896 if { (ac_try="$ac_cpp conftest.$ac_ext"
15897 case "(($ac_try" in
15898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15899 *) ac_try_echo=$ac_try;;
15901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15902 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15904 grep -v '^ *+' conftest.er1 >conftest.err
15906 cat conftest.err >&5
15907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15908 (exit $ac_status); } >/dev/null; then
15909 if test -s conftest.err; then
15910 ac_cpp_err=$ac_c_preproc_warn_flag
15911 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15918 if test -z "$ac_cpp_err"; then
15919 ac_header_preproc=yes
15921 echo "$as_me: failed program was:" >&5
15922 sed 's/^/| /' conftest.$ac_ext >&5
15924 ac_header_preproc=no
15927 rm -f conftest.err conftest.$ac_ext
15928 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15929 echo "${ECHO_T}$ac_header_preproc" >&6; }
15931 # So? What about this header?
15932 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15934 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15935 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15936 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15937 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15938 ac_header_preproc=yes
15941 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15942 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15943 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15944 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15945 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15946 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15947 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15948 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15949 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15950 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15951 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15952 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15954 ## ------------------------------ ##
15955 ## Report this to bugs@yourdomain ##
15956 ## ------------------------------ ##
15958 ) | sed "s/^/$as_me: WARNING: /" >&2
15961 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15962 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15963 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15964 echo $ECHO_N "(cached) $ECHO_C" >&6
15966 eval "$as_ac_Header=\$ac_header_preproc"
15968 ac_res=`eval echo '${'$as_ac_Header'}'`
15969 { echo "$as_me:$LINENO: result: $ac_res" >&5
15970 echo "${ECHO_T}$ac_res" >&6; }
15973 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15974 cat >>confdefs.h <<_ACEOF
15975 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15990 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
15992 for ac_header in zlib.h
15994 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15995 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15996 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15998 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15999 echo $ECHO_N "(cached) $ECHO_C" >&6
16001 ac_res=`eval echo '${'$as_ac_Header'}'`
16002 { echo "$as_me:$LINENO: result: $ac_res" >&5
16003 echo "${ECHO_T}$ac_res" >&6; }
16005 # Is the header compilable?
16006 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16007 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16008 cat >conftest.$ac_ext <<_ACEOF
16011 cat confdefs.h >>conftest.$ac_ext
16012 cat >>conftest.$ac_ext <<_ACEOF
16013 /* end confdefs.h. */
16014 $ac_includes_default
16015 #include <$ac_header>
16017 rm -f conftest.$ac_objext
16018 if { (ac_try="$ac_compile"
16019 case "(($ac_try" in
16020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16021 *) ac_try_echo=$ac_try;;
16023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16024 (eval "$ac_compile") 2>conftest.er1
16026 grep -v '^ *+' conftest.er1 >conftest.err
16028 cat conftest.err >&5
16029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16030 (exit $ac_status); } &&
16031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16032 { (case "(($ac_try" in
16033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16034 *) ac_try_echo=$ac_try;;
16036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16037 (eval "$ac_try") 2>&5
16039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16040 (exit $ac_status); }; } &&
16041 { ac_try='test -s conftest.$ac_objext'
16042 { (case "(($ac_try" in
16043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16044 *) ac_try_echo=$ac_try;;
16046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16047 (eval "$ac_try") 2>&5
16049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16050 (exit $ac_status); }; }; then
16051 ac_header_compiler=yes
16053 echo "$as_me: failed program was:" >&5
16054 sed 's/^/| /' conftest.$ac_ext >&5
16056 ac_header_compiler=no
16059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16060 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16061 echo "${ECHO_T}$ac_header_compiler" >&6; }
16063 # Is the header present?
16064 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16065 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16066 cat >conftest.$ac_ext <<_ACEOF
16069 cat confdefs.h >>conftest.$ac_ext
16070 cat >>conftest.$ac_ext <<_ACEOF
16071 /* end confdefs.h. */
16072 #include <$ac_header>
16074 if { (ac_try="$ac_cpp conftest.$ac_ext"
16075 case "(($ac_try" in
16076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16077 *) ac_try_echo=$ac_try;;
16079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16080 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16082 grep -v '^ *+' conftest.er1 >conftest.err
16084 cat conftest.err >&5
16085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16086 (exit $ac_status); } >/dev/null; then
16087 if test -s conftest.err; then
16088 ac_cpp_err=$ac_c_preproc_warn_flag
16089 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16096 if test -z "$ac_cpp_err"; then
16097 ac_header_preproc=yes
16099 echo "$as_me: failed program was:" >&5
16100 sed 's/^/| /' conftest.$ac_ext >&5
16102 ac_header_preproc=no
16105 rm -f conftest.err conftest.$ac_ext
16106 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16107 echo "${ECHO_T}$ac_header_preproc" >&6; }
16109 # So? What about this header?
16110 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16112 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16113 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16114 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16115 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16116 ac_header_preproc=yes
16119 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16120 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16121 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16122 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16123 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16124 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16125 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16126 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16127 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16128 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16129 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16130 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16132 ## ------------------------------ ##
16133 ## Report this to bugs@yourdomain ##
16134 ## ------------------------------ ##
16136 ) | sed "s/^/$as_me: WARNING: /" >&2
16139 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16140 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16141 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16142 echo $ECHO_N "(cached) $ECHO_C" >&6
16144 eval "$as_ac_Header=\$ac_header_preproc"
16146 ac_res=`eval echo '${'$as_ac_Header'}'`
16147 { echo "$as_me:$LINENO: result: $ac_res" >&5
16148 echo "${ECHO_T}$ac_res" >&6; }
16151 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16152 cat >>confdefs.h <<_ACEOF
16153 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16169 if test "$llvm_cv_enable_libffi" = "yes" ; then
16172 for ac_header in ffi.h ffi/ffi.h
16174 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16175 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16176 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16177 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16178 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16179 echo $ECHO_N "(cached) $ECHO_C" >&6
16181 ac_res=`eval echo '${'$as_ac_Header'}'`
16182 { echo "$as_me:$LINENO: result: $ac_res" >&5
16183 echo "${ECHO_T}$ac_res" >&6; }
16185 # Is the header compilable?
16186 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16187 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16188 cat >conftest.$ac_ext <<_ACEOF
16191 cat confdefs.h >>conftest.$ac_ext
16192 cat >>conftest.$ac_ext <<_ACEOF
16193 /* end confdefs.h. */
16194 $ac_includes_default
16195 #include <$ac_header>
16197 rm -f conftest.$ac_objext
16198 if { (ac_try="$ac_compile"
16199 case "(($ac_try" in
16200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16201 *) ac_try_echo=$ac_try;;
16203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16204 (eval "$ac_compile") 2>conftest.er1
16206 grep -v '^ *+' conftest.er1 >conftest.err
16208 cat conftest.err >&5
16209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16210 (exit $ac_status); } &&
16211 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16212 { (case "(($ac_try" in
16213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16214 *) ac_try_echo=$ac_try;;
16216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16217 (eval "$ac_try") 2>&5
16219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16220 (exit $ac_status); }; } &&
16221 { ac_try='test -s conftest.$ac_objext'
16222 { (case "(($ac_try" in
16223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16224 *) ac_try_echo=$ac_try;;
16226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16227 (eval "$ac_try") 2>&5
16229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16230 (exit $ac_status); }; }; then
16231 ac_header_compiler=yes
16233 echo "$as_me: failed program was:" >&5
16234 sed 's/^/| /' conftest.$ac_ext >&5
16236 ac_header_compiler=no
16239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16240 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16241 echo "${ECHO_T}$ac_header_compiler" >&6; }
16243 # Is the header present?
16244 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16245 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16246 cat >conftest.$ac_ext <<_ACEOF
16249 cat confdefs.h >>conftest.$ac_ext
16250 cat >>conftest.$ac_ext <<_ACEOF
16251 /* end confdefs.h. */
16252 #include <$ac_header>
16254 if { (ac_try="$ac_cpp conftest.$ac_ext"
16255 case "(($ac_try" in
16256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16257 *) ac_try_echo=$ac_try;;
16259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16260 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16262 grep -v '^ *+' conftest.er1 >conftest.err
16264 cat conftest.err >&5
16265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16266 (exit $ac_status); } >/dev/null; then
16267 if test -s conftest.err; then
16268 ac_cpp_err=$ac_c_preproc_warn_flag
16269 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16276 if test -z "$ac_cpp_err"; then
16277 ac_header_preproc=yes
16279 echo "$as_me: failed program was:" >&5
16280 sed 's/^/| /' conftest.$ac_ext >&5
16282 ac_header_preproc=no
16285 rm -f conftest.err conftest.$ac_ext
16286 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16287 echo "${ECHO_T}$ac_header_preproc" >&6; }
16289 # So? What about this header?
16290 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16292 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16293 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16294 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16295 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16296 ac_header_preproc=yes
16299 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16300 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16301 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16302 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16303 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16304 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16305 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16306 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16307 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16308 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16309 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16310 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16312 ## ------------------------------ ##
16313 ## Report this to bugs@yourdomain ##
16314 ## ------------------------------ ##
16316 ) | sed "s/^/$as_me: WARNING: /" >&2
16319 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16321 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16322 echo $ECHO_N "(cached) $ECHO_C" >&6
16324 eval "$as_ac_Header=\$ac_header_preproc"
16326 ac_res=`eval echo '${'$as_ac_Header'}'`
16327 { echo "$as_me:$LINENO: result: $ac_res" >&5
16328 echo "${ECHO_T}$ac_res" >&6; }
16331 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16332 cat >>confdefs.h <<_ACEOF
16333 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16343 for ac_header in CrashReporterClient.h
16345 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16346 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16347 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16348 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16350 echo $ECHO_N "(cached) $ECHO_C" >&6
16352 ac_res=`eval echo '${'$as_ac_Header'}'`
16353 { echo "$as_me:$LINENO: result: $ac_res" >&5
16354 echo "${ECHO_T}$ac_res" >&6; }
16356 # Is the header compilable?
16357 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16358 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16359 cat >conftest.$ac_ext <<_ACEOF
16362 cat confdefs.h >>conftest.$ac_ext
16363 cat >>conftest.$ac_ext <<_ACEOF
16364 /* end confdefs.h. */
16365 $ac_includes_default
16366 #include <$ac_header>
16368 rm -f conftest.$ac_objext
16369 if { (ac_try="$ac_compile"
16370 case "(($ac_try" in
16371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16372 *) ac_try_echo=$ac_try;;
16374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16375 (eval "$ac_compile") 2>conftest.er1
16377 grep -v '^ *+' conftest.er1 >conftest.err
16379 cat conftest.err >&5
16380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16381 (exit $ac_status); } &&
16382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16383 { (case "(($ac_try" in
16384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16385 *) ac_try_echo=$ac_try;;
16387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16388 (eval "$ac_try") 2>&5
16390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391 (exit $ac_status); }; } &&
16392 { ac_try='test -s conftest.$ac_objext'
16393 { (case "(($ac_try" in
16394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16395 *) ac_try_echo=$ac_try;;
16397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16398 (eval "$ac_try") 2>&5
16400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401 (exit $ac_status); }; }; then
16402 ac_header_compiler=yes
16404 echo "$as_me: failed program was:" >&5
16405 sed 's/^/| /' conftest.$ac_ext >&5
16407 ac_header_compiler=no
16410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16411 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16412 echo "${ECHO_T}$ac_header_compiler" >&6; }
16414 # Is the header present?
16415 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16416 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16417 cat >conftest.$ac_ext <<_ACEOF
16420 cat confdefs.h >>conftest.$ac_ext
16421 cat >>conftest.$ac_ext <<_ACEOF
16422 /* end confdefs.h. */
16423 #include <$ac_header>
16425 if { (ac_try="$ac_cpp conftest.$ac_ext"
16426 case "(($ac_try" in
16427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16428 *) ac_try_echo=$ac_try;;
16430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16431 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16433 grep -v '^ *+' conftest.er1 >conftest.err
16435 cat conftest.err >&5
16436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16437 (exit $ac_status); } >/dev/null; then
16438 if test -s conftest.err; then
16439 ac_cpp_err=$ac_c_preproc_warn_flag
16440 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16447 if test -z "$ac_cpp_err"; then
16448 ac_header_preproc=yes
16450 echo "$as_me: failed program was:" >&5
16451 sed 's/^/| /' conftest.$ac_ext >&5
16453 ac_header_preproc=no
16456 rm -f conftest.err conftest.$ac_ext
16457 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16458 echo "${ECHO_T}$ac_header_preproc" >&6; }
16460 # So? What about this header?
16461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16463 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16464 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16466 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16467 ac_header_preproc=yes
16470 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16471 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16472 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16473 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16474 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16475 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16476 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16477 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16479 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16480 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16481 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16483 ## ------------------------------ ##
16484 ## Report this to bugs@yourdomain ##
16485 ## ------------------------------ ##
16487 ) | sed "s/^/$as_me: WARNING: /" >&2
16490 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16492 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16493 echo $ECHO_N "(cached) $ECHO_C" >&6
16495 eval "$as_ac_Header=\$ac_header_preproc"
16497 ac_res=`eval echo '${'$as_ac_Header'}'`
16498 { echo "$as_me:$LINENO: result: $ac_res" >&5
16499 echo "${ECHO_T}$ac_res" >&6; }
16502 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16503 cat >>confdefs.h <<_ACEOF
16504 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16512 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16513 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16514 cat >conftest.$ac_ext <<_ACEOF
16517 cat confdefs.h >>conftest.$ac_ext
16518 cat >>conftest.$ac_ext <<_ACEOF
16519 /* end confdefs.h. */
16520 extern const char *__crashreporter_info__;
16522 __crashreporter_info__ = "test";
16527 rm -f conftest.$ac_objext conftest$ac_exeext
16528 if { (ac_try="$ac_link"
16529 case "(($ac_try" in
16530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16531 *) ac_try_echo=$ac_try;;
16533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16534 (eval "$ac_link") 2>conftest.er1
16536 grep -v '^ *+' conftest.er1 >conftest.err
16538 cat conftest.err >&5
16539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16540 (exit $ac_status); } &&
16541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16542 { (case "(($ac_try" in
16543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16544 *) ac_try_echo=$ac_try;;
16546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16547 (eval "$ac_try") 2>&5
16549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16550 (exit $ac_status); }; } &&
16551 { ac_try='test -s conftest$ac_exeext'
16552 { (case "(($ac_try" in
16553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16554 *) ac_try_echo=$ac_try;;
16556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16557 (eval "$ac_try") 2>&5
16559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16560 (exit $ac_status); }; }; then
16561 { echo "$as_me:$LINENO: result: yes" >&5
16562 echo "${ECHO_T}yes" >&6; }
16564 cat >>confdefs.h <<\_ACEOF
16565 #define HAVE_CRASHREPORTER_INFO 1
16569 echo "$as_me: failed program was:" >&5
16570 sed 's/^/| /' conftest.$ac_ext >&5
16572 { echo "$as_me:$LINENO: result: no" >&5
16573 echo "${ECHO_T}no" >&6; }
16575 cat >>confdefs.h <<\_ACEOF
16576 #define HAVE_CRASHREPORTER_INFO 0
16581 rm -f core conftest.err conftest.$ac_objext \
16582 conftest$ac_exeext conftest.$ac_ext
16587 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16588 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16589 if test "${ac_cv_huge_val_sanity+set}" = set; then
16590 echo $ECHO_N "(cached) $ECHO_C" >&6
16594 ac_cpp='$CXXCPP $CPPFLAGS'
16595 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16596 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16597 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16599 ac_save_CXXFLAGS=$CXXFLAGS
16600 CXXFLAGS="$CXXFLAGS -pedantic"
16601 if test "$cross_compiling" = yes; then
16602 ac_cv_huge_val_sanity=yes
16604 cat >conftest.$ac_ext <<_ACEOF
16607 cat confdefs.h >>conftest.$ac_ext
16608 cat >>conftest.$ac_ext <<_ACEOF
16609 /* end confdefs.h. */
16614 double x = HUGE_VAL; return x != x;
16619 rm -f conftest$ac_exeext
16620 if { (ac_try="$ac_link"
16621 case "(($ac_try" in
16622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16623 *) ac_try_echo=$ac_try;;
16625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16626 (eval "$ac_link") 2>&5
16628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16629 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16630 { (case "(($ac_try" in
16631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16632 *) ac_try_echo=$ac_try;;
16634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16635 (eval "$ac_try") 2>&5
16637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16638 (exit $ac_status); }; }; then
16639 ac_cv_huge_val_sanity=yes
16641 echo "$as_me: program exited with status $ac_status" >&5
16642 echo "$as_me: failed program was:" >&5
16643 sed 's/^/| /' conftest.$ac_ext >&5
16645 ( exit $ac_status )
16646 ac_cv_huge_val_sanity=no
16648 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16652 CXXFLAGS=$ac_save_CXXFLAGS
16654 ac_cpp='$CPP $CPPFLAGS'
16655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16661 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16662 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16663 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16666 { echo "$as_me:$LINENO: checking for pid_t" >&5
16667 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16668 if test "${ac_cv_type_pid_t+set}" = set; then
16669 echo $ECHO_N "(cached) $ECHO_C" >&6
16671 cat >conftest.$ac_ext <<_ACEOF
16674 cat confdefs.h >>conftest.$ac_ext
16675 cat >>conftest.$ac_ext <<_ACEOF
16676 /* end confdefs.h. */
16677 $ac_includes_default
16678 typedef pid_t ac__type_new_;
16682 if ((ac__type_new_ *) 0)
16684 if (sizeof (ac__type_new_))
16690 rm -f conftest.$ac_objext
16691 if { (ac_try="$ac_compile"
16692 case "(($ac_try" in
16693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16694 *) ac_try_echo=$ac_try;;
16696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16697 (eval "$ac_compile") 2>conftest.er1
16699 grep -v '^ *+' conftest.er1 >conftest.err
16701 cat conftest.err >&5
16702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16703 (exit $ac_status); } &&
16704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16705 { (case "(($ac_try" in
16706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16707 *) ac_try_echo=$ac_try;;
16709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16710 (eval "$ac_try") 2>&5
16712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16713 (exit $ac_status); }; } &&
16714 { ac_try='test -s conftest.$ac_objext'
16715 { (case "(($ac_try" in
16716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16717 *) ac_try_echo=$ac_try;;
16719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16720 (eval "$ac_try") 2>&5
16722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723 (exit $ac_status); }; }; then
16724 ac_cv_type_pid_t=yes
16726 echo "$as_me: failed program was:" >&5
16727 sed 's/^/| /' conftest.$ac_ext >&5
16729 ac_cv_type_pid_t=no
16732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16734 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16735 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16736 if test $ac_cv_type_pid_t = yes; then
16740 cat >>confdefs.h <<_ACEOF
16746 { echo "$as_me:$LINENO: checking for size_t" >&5
16747 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16748 if test "${ac_cv_type_size_t+set}" = set; then
16749 echo $ECHO_N "(cached) $ECHO_C" >&6
16751 cat >conftest.$ac_ext <<_ACEOF
16754 cat confdefs.h >>conftest.$ac_ext
16755 cat >>conftest.$ac_ext <<_ACEOF
16756 /* end confdefs.h. */
16757 $ac_includes_default
16758 typedef size_t ac__type_new_;
16762 if ((ac__type_new_ *) 0)
16764 if (sizeof (ac__type_new_))
16770 rm -f conftest.$ac_objext
16771 if { (ac_try="$ac_compile"
16772 case "(($ac_try" in
16773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16774 *) ac_try_echo=$ac_try;;
16776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16777 (eval "$ac_compile") 2>conftest.er1
16779 grep -v '^ *+' conftest.er1 >conftest.err
16781 cat conftest.err >&5
16782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16783 (exit $ac_status); } &&
16784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16785 { (case "(($ac_try" in
16786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16787 *) ac_try_echo=$ac_try;;
16789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16790 (eval "$ac_try") 2>&5
16792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16793 (exit $ac_status); }; } &&
16794 { ac_try='test -s conftest.$ac_objext'
16795 { (case "(($ac_try" in
16796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16797 *) ac_try_echo=$ac_try;;
16799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16800 (eval "$ac_try") 2>&5
16802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16803 (exit $ac_status); }; }; then
16804 ac_cv_type_size_t=yes
16806 echo "$as_me: failed program was:" >&5
16807 sed 's/^/| /' conftest.$ac_ext >&5
16809 ac_cv_type_size_t=no
16812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16814 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16815 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16816 if test $ac_cv_type_size_t = yes; then
16820 cat >>confdefs.h <<_ACEOF
16821 #define size_t unsigned int
16827 cat >>confdefs.h <<_ACEOF
16828 #define RETSIGTYPE void
16831 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16832 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16833 if test "${ac_cv_struct_tm+set}" = set; then
16834 echo $ECHO_N "(cached) $ECHO_C" >&6
16836 cat >conftest.$ac_ext <<_ACEOF
16839 cat confdefs.h >>conftest.$ac_ext
16840 cat >>conftest.$ac_ext <<_ACEOF
16841 /* end confdefs.h. */
16842 #include <sys/types.h>
16848 struct tm *tp; tp->tm_sec;
16853 rm -f conftest.$ac_objext
16854 if { (ac_try="$ac_compile"
16855 case "(($ac_try" in
16856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16857 *) ac_try_echo=$ac_try;;
16859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16860 (eval "$ac_compile") 2>conftest.er1
16862 grep -v '^ *+' conftest.er1 >conftest.err
16864 cat conftest.err >&5
16865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16866 (exit $ac_status); } &&
16867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16868 { (case "(($ac_try" in
16869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16870 *) ac_try_echo=$ac_try;;
16872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16873 (eval "$ac_try") 2>&5
16875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16876 (exit $ac_status); }; } &&
16877 { ac_try='test -s conftest.$ac_objext'
16878 { (case "(($ac_try" in
16879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16880 *) ac_try_echo=$ac_try;;
16882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16883 (eval "$ac_try") 2>&5
16885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16886 (exit $ac_status); }; }; then
16887 ac_cv_struct_tm=time.h
16889 echo "$as_me: failed program was:" >&5
16890 sed 's/^/| /' conftest.$ac_ext >&5
16892 ac_cv_struct_tm=sys/time.h
16895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16897 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16898 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16899 if test $ac_cv_struct_tm = sys/time.h; then
16901 cat >>confdefs.h <<\_ACEOF
16902 #define TM_IN_SYS_TIME 1
16907 { echo "$as_me:$LINENO: checking for int64_t" >&5
16908 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16909 if test "${ac_cv_type_int64_t+set}" = set; then
16910 echo $ECHO_N "(cached) $ECHO_C" >&6
16912 cat >conftest.$ac_ext <<_ACEOF
16915 cat confdefs.h >>conftest.$ac_ext
16916 cat >>conftest.$ac_ext <<_ACEOF
16917 /* end confdefs.h. */
16918 $ac_includes_default
16919 typedef int64_t ac__type_new_;
16923 if ((ac__type_new_ *) 0)
16925 if (sizeof (ac__type_new_))
16931 rm -f conftest.$ac_objext
16932 if { (ac_try="$ac_compile"
16933 case "(($ac_try" in
16934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16935 *) ac_try_echo=$ac_try;;
16937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16938 (eval "$ac_compile") 2>conftest.er1
16940 grep -v '^ *+' conftest.er1 >conftest.err
16942 cat conftest.err >&5
16943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16944 (exit $ac_status); } &&
16945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16946 { (case "(($ac_try" in
16947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16948 *) ac_try_echo=$ac_try;;
16950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16951 (eval "$ac_try") 2>&5
16953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16954 (exit $ac_status); }; } &&
16955 { ac_try='test -s conftest.$ac_objext'
16956 { (case "(($ac_try" in
16957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16958 *) ac_try_echo=$ac_try;;
16960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16961 (eval "$ac_try") 2>&5
16963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16964 (exit $ac_status); }; }; then
16965 ac_cv_type_int64_t=yes
16967 echo "$as_me: failed program was:" >&5
16968 sed 's/^/| /' conftest.$ac_ext >&5
16970 ac_cv_type_int64_t=no
16973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16975 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16976 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16977 if test $ac_cv_type_int64_t = yes; then
16979 cat >>confdefs.h <<_ACEOF
16980 #define HAVE_INT64_T 1
16985 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16986 echo "$as_me: error: Type int64_t required but not found" >&2;}
16987 { (exit 1); exit 1; }; }
16990 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16991 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16992 if test "${ac_cv_type_uint64_t+set}" = set; then
16993 echo $ECHO_N "(cached) $ECHO_C" >&6
16995 cat >conftest.$ac_ext <<_ACEOF
16998 cat confdefs.h >>conftest.$ac_ext
16999 cat >>conftest.$ac_ext <<_ACEOF
17000 /* end confdefs.h. */
17001 $ac_includes_default
17002 typedef uint64_t ac__type_new_;
17006 if ((ac__type_new_ *) 0)
17008 if (sizeof (ac__type_new_))
17014 rm -f conftest.$ac_objext
17015 if { (ac_try="$ac_compile"
17016 case "(($ac_try" in
17017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17018 *) ac_try_echo=$ac_try;;
17020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17021 (eval "$ac_compile") 2>conftest.er1
17023 grep -v '^ *+' conftest.er1 >conftest.err
17025 cat conftest.err >&5
17026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17027 (exit $ac_status); } &&
17028 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17029 { (case "(($ac_try" in
17030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17031 *) ac_try_echo=$ac_try;;
17033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17034 (eval "$ac_try") 2>&5
17036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17037 (exit $ac_status); }; } &&
17038 { ac_try='test -s conftest.$ac_objext'
17039 { (case "(($ac_try" in
17040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17041 *) ac_try_echo=$ac_try;;
17043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17044 (eval "$ac_try") 2>&5
17046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17047 (exit $ac_status); }; }; then
17048 ac_cv_type_uint64_t=yes
17050 echo "$as_me: failed program was:" >&5
17051 sed 's/^/| /' conftest.$ac_ext >&5
17053 ac_cv_type_uint64_t=no
17056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17058 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17059 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17060 if test $ac_cv_type_uint64_t = yes; then
17062 cat >>confdefs.h <<_ACEOF
17063 #define HAVE_UINT64_T 1
17068 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17069 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17070 if test "${ac_cv_type_u_int64_t+set}" = set; then
17071 echo $ECHO_N "(cached) $ECHO_C" >&6
17073 cat >conftest.$ac_ext <<_ACEOF
17076 cat confdefs.h >>conftest.$ac_ext
17077 cat >>conftest.$ac_ext <<_ACEOF
17078 /* end confdefs.h. */
17079 $ac_includes_default
17080 typedef u_int64_t ac__type_new_;
17084 if ((ac__type_new_ *) 0)
17086 if (sizeof (ac__type_new_))
17092 rm -f conftest.$ac_objext
17093 if { (ac_try="$ac_compile"
17094 case "(($ac_try" in
17095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17096 *) ac_try_echo=$ac_try;;
17098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17099 (eval "$ac_compile") 2>conftest.er1
17101 grep -v '^ *+' conftest.er1 >conftest.err
17103 cat conftest.err >&5
17104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17105 (exit $ac_status); } &&
17106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17107 { (case "(($ac_try" in
17108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17109 *) ac_try_echo=$ac_try;;
17111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17112 (eval "$ac_try") 2>&5
17114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17115 (exit $ac_status); }; } &&
17116 { ac_try='test -s conftest.$ac_objext'
17117 { (case "(($ac_try" in
17118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17119 *) ac_try_echo=$ac_try;;
17121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17122 (eval "$ac_try") 2>&5
17124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17125 (exit $ac_status); }; }; then
17126 ac_cv_type_u_int64_t=yes
17128 echo "$as_me: failed program was:" >&5
17129 sed 's/^/| /' conftest.$ac_ext >&5
17131 ac_cv_type_u_int64_t=no
17134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17136 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17137 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17138 if test $ac_cv_type_u_int64_t = yes; then
17140 cat >>confdefs.h <<_ACEOF
17141 #define HAVE_U_INT64_T 1
17146 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17147 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17148 { (exit 1); exit 1; }; }
17162 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17164 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17165 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17166 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17167 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17168 echo $ECHO_N "(cached) $ECHO_C" >&6
17170 cat >conftest.$ac_ext <<_ACEOF
17173 cat confdefs.h >>conftest.$ac_ext
17174 cat >>conftest.$ac_ext <<_ACEOF
17175 /* end confdefs.h. */
17176 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17177 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17178 #define $ac_func innocuous_$ac_func
17180 /* System header to define __stub macros and hopefully few prototypes,
17181 which can conflict with char $ac_func (); below.
17182 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17183 <limits.h> exists even on freestanding compilers. */
17186 # include <limits.h>
17188 # include <assert.h>
17193 /* Override any GCC internal prototype to avoid an error.
17194 Use char because int might match the return type of a GCC
17195 builtin and then its argument prototype would still apply. */
17200 /* The GNU C library defines this for functions which it implements
17201 to always fail with ENOSYS. Some functions are actually named
17202 something starting with __ and the normal name is an alias. */
17203 #if defined __stub_$ac_func || defined __stub___$ac_func
17210 return $ac_func ();
17215 rm -f conftest.$ac_objext conftest$ac_exeext
17216 if { (ac_try="$ac_link"
17217 case "(($ac_try" in
17218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17219 *) ac_try_echo=$ac_try;;
17221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17222 (eval "$ac_link") 2>conftest.er1
17224 grep -v '^ *+' conftest.er1 >conftest.err
17226 cat conftest.err >&5
17227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17228 (exit $ac_status); } &&
17229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17230 { (case "(($ac_try" in
17231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17232 *) ac_try_echo=$ac_try;;
17234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17235 (eval "$ac_try") 2>&5
17237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17238 (exit $ac_status); }; } &&
17239 { ac_try='test -s conftest$ac_exeext'
17240 { (case "(($ac_try" in
17241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17242 *) ac_try_echo=$ac_try;;
17244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17245 (eval "$ac_try") 2>&5
17247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17248 (exit $ac_status); }; }; then
17249 eval "$as_ac_var=yes"
17251 echo "$as_me: failed program was:" >&5
17252 sed 's/^/| /' conftest.$ac_ext >&5
17254 eval "$as_ac_var=no"
17257 rm -f core conftest.err conftest.$ac_objext \
17258 conftest$ac_exeext conftest.$ac_ext
17260 ac_res=`eval echo '${'$as_ac_var'}'`
17261 { echo "$as_me:$LINENO: result: $ac_res" >&5
17262 echo "${ECHO_T}$ac_res" >&6; }
17263 if test `eval echo '${'$as_ac_var'}'` = yes; then
17264 cat >>confdefs.h <<_ACEOF
17265 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17275 for ac_func in powf fmodf strtof round
17277 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17278 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17279 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17280 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17281 echo $ECHO_N "(cached) $ECHO_C" >&6
17283 cat >conftest.$ac_ext <<_ACEOF
17286 cat confdefs.h >>conftest.$ac_ext
17287 cat >>conftest.$ac_ext <<_ACEOF
17288 /* end confdefs.h. */
17289 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17290 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17291 #define $ac_func innocuous_$ac_func
17293 /* System header to define __stub macros and hopefully few prototypes,
17294 which can conflict with char $ac_func (); below.
17295 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17296 <limits.h> exists even on freestanding compilers. */
17299 # include <limits.h>
17301 # include <assert.h>
17306 /* Override any GCC internal prototype to avoid an error.
17307 Use char because int might match the return type of a GCC
17308 builtin and then its argument prototype would still apply. */
17313 /* The GNU C library defines this for functions which it implements
17314 to always fail with ENOSYS. Some functions are actually named
17315 something starting with __ and the normal name is an alias. */
17316 #if defined __stub_$ac_func || defined __stub___$ac_func
17323 return $ac_func ();
17328 rm -f conftest.$ac_objext conftest$ac_exeext
17329 if { (ac_try="$ac_link"
17330 case "(($ac_try" in
17331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17332 *) ac_try_echo=$ac_try;;
17334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17335 (eval "$ac_link") 2>conftest.er1
17337 grep -v '^ *+' conftest.er1 >conftest.err
17339 cat conftest.err >&5
17340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17341 (exit $ac_status); } &&
17342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17343 { (case "(($ac_try" in
17344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17345 *) ac_try_echo=$ac_try;;
17347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17348 (eval "$ac_try") 2>&5
17350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17351 (exit $ac_status); }; } &&
17352 { ac_try='test -s conftest$ac_exeext'
17353 { (case "(($ac_try" in
17354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17355 *) ac_try_echo=$ac_try;;
17357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17358 (eval "$ac_try") 2>&5
17360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17361 (exit $ac_status); }; }; then
17362 eval "$as_ac_var=yes"
17364 echo "$as_me: failed program was:" >&5
17365 sed 's/^/| /' conftest.$ac_ext >&5
17367 eval "$as_ac_var=no"
17370 rm -f core conftest.err conftest.$ac_objext \
17371 conftest$ac_exeext conftest.$ac_ext
17373 ac_res=`eval echo '${'$as_ac_var'}'`
17374 { echo "$as_me:$LINENO: result: $ac_res" >&5
17375 echo "${ECHO_T}$ac_res" >&6; }
17376 if test `eval echo '${'$as_ac_var'}'` = yes; then
17377 cat >>confdefs.h <<_ACEOF
17378 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17389 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17391 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17392 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17393 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17394 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17395 echo $ECHO_N "(cached) $ECHO_C" >&6
17397 cat >conftest.$ac_ext <<_ACEOF
17400 cat confdefs.h >>conftest.$ac_ext
17401 cat >>conftest.$ac_ext <<_ACEOF
17402 /* end confdefs.h. */
17403 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17404 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17405 #define $ac_func innocuous_$ac_func
17407 /* System header to define __stub macros and hopefully few prototypes,
17408 which can conflict with char $ac_func (); below.
17409 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17410 <limits.h> exists even on freestanding compilers. */
17413 # include <limits.h>
17415 # include <assert.h>
17420 /* Override any GCC internal prototype to avoid an error.
17421 Use char because int might match the return type of a GCC
17422 builtin and then its argument prototype would still apply. */
17427 /* The GNU C library defines this for functions which it implements
17428 to always fail with ENOSYS. Some functions are actually named
17429 something starting with __ and the normal name is an alias. */
17430 #if defined __stub_$ac_func || defined __stub___$ac_func
17437 return $ac_func ();
17442 rm -f conftest.$ac_objext conftest$ac_exeext
17443 if { (ac_try="$ac_link"
17444 case "(($ac_try" in
17445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17446 *) ac_try_echo=$ac_try;;
17448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17449 (eval "$ac_link") 2>conftest.er1
17451 grep -v '^ *+' conftest.er1 >conftest.err
17453 cat conftest.err >&5
17454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17455 (exit $ac_status); } &&
17456 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17457 { (case "(($ac_try" in
17458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17459 *) ac_try_echo=$ac_try;;
17461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17462 (eval "$ac_try") 2>&5
17464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17465 (exit $ac_status); }; } &&
17466 { ac_try='test -s conftest$ac_exeext'
17467 { (case "(($ac_try" in
17468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17469 *) ac_try_echo=$ac_try;;
17471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17472 (eval "$ac_try") 2>&5
17474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17475 (exit $ac_status); }; }; then
17476 eval "$as_ac_var=yes"
17478 echo "$as_me: failed program was:" >&5
17479 sed 's/^/| /' conftest.$ac_ext >&5
17481 eval "$as_ac_var=no"
17484 rm -f core conftest.err conftest.$ac_objext \
17485 conftest$ac_exeext conftest.$ac_ext
17487 ac_res=`eval echo '${'$as_ac_var'}'`
17488 { echo "$as_me:$LINENO: result: $ac_res" >&5
17489 echo "${ECHO_T}$ac_res" >&6; }
17490 if test `eval echo '${'$as_ac_var'}'` = yes; then
17491 cat >>confdefs.h <<_ACEOF
17492 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17501 for ac_func in isatty mkdtemp mkstemp
17503 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17504 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17505 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17506 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17507 echo $ECHO_N "(cached) $ECHO_C" >&6
17509 cat >conftest.$ac_ext <<_ACEOF
17512 cat confdefs.h >>conftest.$ac_ext
17513 cat >>conftest.$ac_ext <<_ACEOF
17514 /* end confdefs.h. */
17515 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17516 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17517 #define $ac_func innocuous_$ac_func
17519 /* System header to define __stub macros and hopefully few prototypes,
17520 which can conflict with char $ac_func (); below.
17521 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17522 <limits.h> exists even on freestanding compilers. */
17525 # include <limits.h>
17527 # include <assert.h>
17532 /* Override any GCC internal prototype to avoid an error.
17533 Use char because int might match the return type of a GCC
17534 builtin and then its argument prototype would still apply. */
17539 /* The GNU C library defines this for functions which it implements
17540 to always fail with ENOSYS. Some functions are actually named
17541 something starting with __ and the normal name is an alias. */
17542 #if defined __stub_$ac_func || defined __stub___$ac_func
17549 return $ac_func ();
17554 rm -f conftest.$ac_objext conftest$ac_exeext
17555 if { (ac_try="$ac_link"
17556 case "(($ac_try" in
17557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17558 *) ac_try_echo=$ac_try;;
17560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17561 (eval "$ac_link") 2>conftest.er1
17563 grep -v '^ *+' conftest.er1 >conftest.err
17565 cat conftest.err >&5
17566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567 (exit $ac_status); } &&
17568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17569 { (case "(($ac_try" in
17570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17571 *) ac_try_echo=$ac_try;;
17573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17574 (eval "$ac_try") 2>&5
17576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17577 (exit $ac_status); }; } &&
17578 { ac_try='test -s conftest$ac_exeext'
17579 { (case "(($ac_try" in
17580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17581 *) ac_try_echo=$ac_try;;
17583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17584 (eval "$ac_try") 2>&5
17586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17587 (exit $ac_status); }; }; then
17588 eval "$as_ac_var=yes"
17590 echo "$as_me: failed program was:" >&5
17591 sed 's/^/| /' conftest.$ac_ext >&5
17593 eval "$as_ac_var=no"
17596 rm -f core conftest.err conftest.$ac_objext \
17597 conftest$ac_exeext conftest.$ac_ext
17599 ac_res=`eval echo '${'$as_ac_var'}'`
17600 { echo "$as_me:$LINENO: result: $ac_res" >&5
17601 echo "${ECHO_T}$ac_res" >&6; }
17602 if test `eval echo '${'$as_ac_var'}'` = yes; then
17603 cat >>confdefs.h <<_ACEOF
17604 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17616 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
17618 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17619 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17620 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17621 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17622 echo $ECHO_N "(cached) $ECHO_C" >&6
17624 cat >conftest.$ac_ext <<_ACEOF
17627 cat confdefs.h >>conftest.$ac_ext
17628 cat >>conftest.$ac_ext <<_ACEOF
17629 /* end confdefs.h. */
17630 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17631 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17632 #define $ac_func innocuous_$ac_func
17634 /* System header to define __stub macros and hopefully few prototypes,
17635 which can conflict with char $ac_func (); below.
17636 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17637 <limits.h> exists even on freestanding compilers. */
17640 # include <limits.h>
17642 # include <assert.h>
17647 /* Override any GCC internal prototype to avoid an error.
17648 Use char because int might match the return type of a GCC
17649 builtin and then its argument prototype would still apply. */
17654 /* The GNU C library defines this for functions which it implements
17655 to always fail with ENOSYS. Some functions are actually named
17656 something starting with __ and the normal name is an alias. */
17657 #if defined __stub_$ac_func || defined __stub___$ac_func
17664 return $ac_func ();
17669 rm -f conftest.$ac_objext conftest$ac_exeext
17670 if { (ac_try="$ac_link"
17671 case "(($ac_try" in
17672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17673 *) ac_try_echo=$ac_try;;
17675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17676 (eval "$ac_link") 2>conftest.er1
17678 grep -v '^ *+' conftest.er1 >conftest.err
17680 cat conftest.err >&5
17681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17682 (exit $ac_status); } &&
17683 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17684 { (case "(($ac_try" in
17685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17686 *) ac_try_echo=$ac_try;;
17688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17689 (eval "$ac_try") 2>&5
17691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17692 (exit $ac_status); }; } &&
17693 { ac_try='test -s conftest$ac_exeext'
17694 { (case "(($ac_try" in
17695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17696 *) ac_try_echo=$ac_try;;
17698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17699 (eval "$ac_try") 2>&5
17701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17702 (exit $ac_status); }; }; then
17703 eval "$as_ac_var=yes"
17705 echo "$as_me: failed program was:" >&5
17706 sed 's/^/| /' conftest.$ac_ext >&5
17708 eval "$as_ac_var=no"
17711 rm -f core conftest.err conftest.$ac_objext \
17712 conftest$ac_exeext conftest.$ac_ext
17714 ac_res=`eval echo '${'$as_ac_var'}'`
17715 { echo "$as_me:$LINENO: result: $ac_res" >&5
17716 echo "${ECHO_T}$ac_res" >&6; }
17717 if test `eval echo '${'$as_ac_var'}'` = yes; then
17718 cat >>confdefs.h <<_ACEOF
17719 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17728 for ac_func in strerror strerror_r setenv
17730 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17731 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17732 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17733 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17734 echo $ECHO_N "(cached) $ECHO_C" >&6
17736 cat >conftest.$ac_ext <<_ACEOF
17739 cat confdefs.h >>conftest.$ac_ext
17740 cat >>conftest.$ac_ext <<_ACEOF
17741 /* end confdefs.h. */
17742 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17743 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17744 #define $ac_func innocuous_$ac_func
17746 /* System header to define __stub macros and hopefully few prototypes,
17747 which can conflict with char $ac_func (); below.
17748 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17749 <limits.h> exists even on freestanding compilers. */
17752 # include <limits.h>
17754 # include <assert.h>
17759 /* Override any GCC internal prototype to avoid an error.
17760 Use char because int might match the return type of a GCC
17761 builtin and then its argument prototype would still apply. */
17766 /* The GNU C library defines this for functions which it implements
17767 to always fail with ENOSYS. Some functions are actually named
17768 something starting with __ and the normal name is an alias. */
17769 #if defined __stub_$ac_func || defined __stub___$ac_func
17776 return $ac_func ();
17781 rm -f conftest.$ac_objext conftest$ac_exeext
17782 if { (ac_try="$ac_link"
17783 case "(($ac_try" in
17784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17785 *) ac_try_echo=$ac_try;;
17787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17788 (eval "$ac_link") 2>conftest.er1
17790 grep -v '^ *+' conftest.er1 >conftest.err
17792 cat conftest.err >&5
17793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17794 (exit $ac_status); } &&
17795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
17803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17804 (exit $ac_status); }; } &&
17805 { ac_try='test -s conftest$ac_exeext'
17806 { (case "(($ac_try" in
17807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17808 *) ac_try_echo=$ac_try;;
17810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17811 (eval "$ac_try") 2>&5
17813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17814 (exit $ac_status); }; }; then
17815 eval "$as_ac_var=yes"
17817 echo "$as_me: failed program was:" >&5
17818 sed 's/^/| /' conftest.$ac_ext >&5
17820 eval "$as_ac_var=no"
17823 rm -f core conftest.err conftest.$ac_objext \
17824 conftest$ac_exeext conftest.$ac_ext
17826 ac_res=`eval echo '${'$as_ac_var'}'`
17827 { echo "$as_me:$LINENO: result: $ac_res" >&5
17828 echo "${ECHO_T}$ac_res" >&6; }
17829 if test `eval echo '${'$as_ac_var'}'` = yes; then
17830 cat >>confdefs.h <<_ACEOF
17831 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17841 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17843 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17844 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17845 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17846 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17847 echo $ECHO_N "(cached) $ECHO_C" >&6
17849 cat >conftest.$ac_ext <<_ACEOF
17852 cat confdefs.h >>conftest.$ac_ext
17853 cat >>conftest.$ac_ext <<_ACEOF
17854 /* end confdefs.h. */
17855 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17856 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17857 #define $ac_func innocuous_$ac_func
17859 /* System header to define __stub macros and hopefully few prototypes,
17860 which can conflict with char $ac_func (); below.
17861 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17862 <limits.h> exists even on freestanding compilers. */
17865 # include <limits.h>
17867 # include <assert.h>
17872 /* Override any GCC internal prototype to avoid an error.
17873 Use char because int might match the return type of a GCC
17874 builtin and then its argument prototype would still apply. */
17879 /* The GNU C library defines this for functions which it implements
17880 to always fail with ENOSYS. Some functions are actually named
17881 something starting with __ and the normal name is an alias. */
17882 #if defined __stub_$ac_func || defined __stub___$ac_func
17889 return $ac_func ();
17894 rm -f conftest.$ac_objext conftest$ac_exeext
17895 if { (ac_try="$ac_link"
17896 case "(($ac_try" in
17897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17898 *) ac_try_echo=$ac_try;;
17900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17901 (eval "$ac_link") 2>conftest.er1
17903 grep -v '^ *+' conftest.er1 >conftest.err
17905 cat conftest.err >&5
17906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17907 (exit $ac_status); } &&
17908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17909 { (case "(($ac_try" in
17910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17911 *) ac_try_echo=$ac_try;;
17913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17914 (eval "$ac_try") 2>&5
17916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17917 (exit $ac_status); }; } &&
17918 { ac_try='test -s conftest$ac_exeext'
17919 { (case "(($ac_try" in
17920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17921 *) ac_try_echo=$ac_try;;
17923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17924 (eval "$ac_try") 2>&5
17926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17927 (exit $ac_status); }; }; then
17928 eval "$as_ac_var=yes"
17930 echo "$as_me: failed program was:" >&5
17931 sed 's/^/| /' conftest.$ac_ext >&5
17933 eval "$as_ac_var=no"
17936 rm -f core conftest.err conftest.$ac_objext \
17937 conftest$ac_exeext conftest.$ac_ext
17939 ac_res=`eval echo '${'$as_ac_var'}'`
17940 { echo "$as_me:$LINENO: result: $ac_res" >&5
17941 echo "${ECHO_T}$ac_res" >&6; }
17942 if test `eval echo '${'$as_ac_var'}'` = yes; then
17943 cat >>confdefs.h <<_ACEOF
17944 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17955 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17957 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17958 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17959 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17960 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17961 echo $ECHO_N "(cached) $ECHO_C" >&6
17963 cat >conftest.$ac_ext <<_ACEOF
17966 cat confdefs.h >>conftest.$ac_ext
17967 cat >>conftest.$ac_ext <<_ACEOF
17968 /* end confdefs.h. */
17969 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17970 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17971 #define $ac_func innocuous_$ac_func
17973 /* System header to define __stub macros and hopefully few prototypes,
17974 which can conflict with char $ac_func (); below.
17975 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17976 <limits.h> exists even on freestanding compilers. */
17979 # include <limits.h>
17981 # include <assert.h>
17986 /* Override any GCC internal prototype to avoid an error.
17987 Use char because int might match the return type of a GCC
17988 builtin and then its argument prototype would still apply. */
17993 /* The GNU C library defines this for functions which it implements
17994 to always fail with ENOSYS. Some functions are actually named
17995 something starting with __ and the normal name is an alias. */
17996 #if defined __stub_$ac_func || defined __stub___$ac_func
18003 return $ac_func ();
18008 rm -f conftest.$ac_objext conftest$ac_exeext
18009 if { (ac_try="$ac_link"
18010 case "(($ac_try" in
18011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18012 *) ac_try_echo=$ac_try;;
18014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18015 (eval "$ac_link") 2>conftest.er1
18017 grep -v '^ *+' conftest.er1 >conftest.err
18019 cat conftest.err >&5
18020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18021 (exit $ac_status); } &&
18022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18023 { (case "(($ac_try" in
18024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18025 *) ac_try_echo=$ac_try;;
18027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18028 (eval "$ac_try") 2>&5
18030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18031 (exit $ac_status); }; } &&
18032 { ac_try='test -s conftest$ac_exeext'
18033 { (case "(($ac_try" in
18034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18035 *) ac_try_echo=$ac_try;;
18037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18038 (eval "$ac_try") 2>&5
18040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18041 (exit $ac_status); }; }; then
18042 eval "$as_ac_var=yes"
18044 echo "$as_me: failed program was:" >&5
18045 sed 's/^/| /' conftest.$ac_ext >&5
18047 eval "$as_ac_var=no"
18050 rm -f core conftest.err conftest.$ac_objext \
18051 conftest$ac_exeext conftest.$ac_ext
18053 ac_res=`eval echo '${'$as_ac_var'}'`
18054 { echo "$as_me:$LINENO: result: $ac_res" >&5
18055 echo "${ECHO_T}$ac_res" >&6; }
18056 if test `eval echo '${'$as_ac_var'}'` = yes; then
18057 cat >>confdefs.h <<_ACEOF
18058 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18064 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18065 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18066 if test "${llvm_cv_c_printf_a+set}" = set; then
18067 echo $ECHO_N "(cached) $ECHO_C" >&6
18070 ac_cpp='$CPP $CPPFLAGS'
18071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18075 if test "$cross_compiling" = yes; then
18076 llvmac_cv_c_printf_a=no
18078 cat >conftest.$ac_ext <<_ACEOF
18082 cat confdefs.h >>conftest.$ac_ext
18083 cat >>conftest.$ac_ext <<_ACEOF
18084 /* end confdefs.h. */
18087 #include <stdlib.h>
18093 volatile double A, B;
18097 sprintf(Buffer, "%a", A);
18101 if (A != 0x1.999999999999ap-4)
18108 rm -f conftest$ac_exeext
18109 if { (ac_try="$ac_link"
18110 case "(($ac_try" in
18111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18112 *) ac_try_echo=$ac_try;;
18114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18115 (eval "$ac_link") 2>&5
18117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18118 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18119 { (case "(($ac_try" in
18120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18121 *) ac_try_echo=$ac_try;;
18123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18124 (eval "$ac_try") 2>&5
18126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18127 (exit $ac_status); }; }; then
18128 llvm_cv_c_printf_a=yes
18130 echo "$as_me: program exited with status $ac_status" >&5
18131 echo "$as_me: failed program was:" >&5
18132 sed 's/^/| /' conftest.$ac_ext >&5
18134 ( exit $ac_status )
18135 llvmac_cv_c_printf_a=no
18137 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18142 ac_cpp='$CPP $CPPFLAGS'
18143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18148 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18149 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18150 if test "$llvm_cv_c_printf_a" = "yes"; then
18152 cat >>confdefs.h <<\_ACEOF
18153 #define HAVE_PRINTF_A 1
18159 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18160 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18161 if test "${ac_cv_func_rand48+set}" = set; then
18162 echo $ECHO_N "(cached) $ECHO_C" >&6
18165 ac_cpp='$CXXCPP $CPPFLAGS'
18166 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18167 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18168 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18170 cat >conftest.$ac_ext <<_ACEOF
18173 cat confdefs.h >>conftest.$ac_ext
18174 cat >>conftest.$ac_ext <<_ACEOF
18175 /* end confdefs.h. */
18176 #include <stdlib.h>
18180 srand48(0);lrand48();drand48();
18185 rm -f conftest.$ac_objext
18186 if { (ac_try="$ac_compile"
18187 case "(($ac_try" in
18188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18189 *) ac_try_echo=$ac_try;;
18191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18192 (eval "$ac_compile") 2>conftest.er1
18194 grep -v '^ *+' conftest.er1 >conftest.err
18196 cat conftest.err >&5
18197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18198 (exit $ac_status); } &&
18199 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18200 { (case "(($ac_try" in
18201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18202 *) ac_try_echo=$ac_try;;
18204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18205 (eval "$ac_try") 2>&5
18207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18208 (exit $ac_status); }; } &&
18209 { ac_try='test -s conftest.$ac_objext'
18210 { (case "(($ac_try" in
18211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18212 *) ac_try_echo=$ac_try;;
18214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18215 (eval "$ac_try") 2>&5
18217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18218 (exit $ac_status); }; }; then
18219 ac_cv_func_rand48=yes
18221 echo "$as_me: failed program was:" >&5
18222 sed 's/^/| /' conftest.$ac_ext >&5
18224 ac_cv_func_rand48=no
18227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18229 ac_cpp='$CPP $CPPFLAGS'
18230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18235 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18236 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18238 if test "$ac_cv_func_rand48" = "yes" ; then
18240 cat >>confdefs.h <<\_ACEOF
18241 #define HAVE_RAND48 1
18247 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18248 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18249 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18250 echo $ECHO_N "(cached) $ECHO_C" >&6
18252 cat >conftest.$ac_ext <<_ACEOF
18255 cat confdefs.h >>conftest.$ac_ext
18256 cat >>conftest.$ac_ext <<_ACEOF
18257 /* end confdefs.h. */
18258 $ac_includes_default
18263 char *p = (char *) strerror_s;
18271 rm -f conftest.$ac_objext
18272 if { (ac_try="$ac_compile"
18273 case "(($ac_try" in
18274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18275 *) ac_try_echo=$ac_try;;
18277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18278 (eval "$ac_compile") 2>conftest.er1
18280 grep -v '^ *+' conftest.er1 >conftest.err
18282 cat conftest.err >&5
18283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18284 (exit $ac_status); } &&
18285 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18286 { (case "(($ac_try" in
18287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18288 *) ac_try_echo=$ac_try;;
18290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18291 (eval "$ac_try") 2>&5
18293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18294 (exit $ac_status); }; } &&
18295 { ac_try='test -s conftest.$ac_objext'
18296 { (case "(($ac_try" in
18297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18298 *) ac_try_echo=$ac_try;;
18300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18301 (eval "$ac_try") 2>&5
18303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18304 (exit $ac_status); }; }; then
18305 ac_cv_have_decl_strerror_s=yes
18307 echo "$as_me: failed program was:" >&5
18308 sed 's/^/| /' conftest.$ac_ext >&5
18310 ac_cv_have_decl_strerror_s=no
18313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18315 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18316 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18317 if test $ac_cv_have_decl_strerror_s = yes; then
18319 cat >>confdefs.h <<_ACEOF
18320 #define HAVE_DECL_STRERROR_S 1
18325 cat >>confdefs.h <<_ACEOF
18326 #define HAVE_DECL_STRERROR_S 0
18334 if test "$llvm_cv_os_type" = "MingW" ; then
18335 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18336 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18337 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18338 echo $ECHO_N "(cached) $ECHO_C" >&6
18340 ac_check_lib_save_LIBS=$LIBS
18342 cat >conftest.$ac_ext <<_ACEOF
18345 cat confdefs.h >>conftest.$ac_ext
18346 cat >>conftest.$ac_ext <<_ACEOF
18347 /* end confdefs.h. */
18349 /* Override any GCC internal prototype to avoid an error.
18350 Use char because int might match the return type of a GCC
18351 builtin and then its argument prototype would still apply. */
18364 rm -f conftest.$ac_objext conftest$ac_exeext
18365 if { (ac_try="$ac_link"
18366 case "(($ac_try" in
18367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18368 *) ac_try_echo=$ac_try;;
18370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18371 (eval "$ac_link") 2>conftest.er1
18373 grep -v '^ *+' conftest.er1 >conftest.err
18375 cat conftest.err >&5
18376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18377 (exit $ac_status); } &&
18378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18379 { (case "(($ac_try" in
18380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18381 *) ac_try_echo=$ac_try;;
18383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18384 (eval "$ac_try") 2>&5
18386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18387 (exit $ac_status); }; } &&
18388 { ac_try='test -s conftest$ac_exeext'
18389 { (case "(($ac_try" in
18390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18391 *) ac_try_echo=$ac_try;;
18393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18394 (eval "$ac_try") 2>&5
18396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18397 (exit $ac_status); }; }; then
18398 ac_cv_lib_gcc__alloca=yes
18400 echo "$as_me: failed program was:" >&5
18401 sed 's/^/| /' conftest.$ac_ext >&5
18403 ac_cv_lib_gcc__alloca=no
18406 rm -f core conftest.err conftest.$ac_objext \
18407 conftest$ac_exeext conftest.$ac_ext
18408 LIBS=$ac_check_lib_save_LIBS
18410 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18411 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18412 if test $ac_cv_lib_gcc__alloca = yes; then
18414 cat >>confdefs.h <<\_ACEOF
18415 #define HAVE__ALLOCA 1
18420 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18421 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18422 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18423 echo $ECHO_N "(cached) $ECHO_C" >&6
18425 ac_check_lib_save_LIBS=$LIBS
18427 cat >conftest.$ac_ext <<_ACEOF
18430 cat confdefs.h >>conftest.$ac_ext
18431 cat >>conftest.$ac_ext <<_ACEOF
18432 /* end confdefs.h. */
18434 /* Override any GCC internal prototype to avoid an error.
18435 Use char because int might match the return type of a GCC
18436 builtin and then its argument prototype would still apply. */
18444 return __alloca ();
18449 rm -f conftest.$ac_objext conftest$ac_exeext
18450 if { (ac_try="$ac_link"
18451 case "(($ac_try" in
18452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18453 *) ac_try_echo=$ac_try;;
18455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18456 (eval "$ac_link") 2>conftest.er1
18458 grep -v '^ *+' conftest.er1 >conftest.err
18460 cat conftest.err >&5
18461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18462 (exit $ac_status); } &&
18463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18464 { (case "(($ac_try" in
18465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18466 *) ac_try_echo=$ac_try;;
18468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18469 (eval "$ac_try") 2>&5
18471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18472 (exit $ac_status); }; } &&
18473 { ac_try='test -s conftest$ac_exeext'
18474 { (case "(($ac_try" in
18475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18476 *) ac_try_echo=$ac_try;;
18478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18479 (eval "$ac_try") 2>&5
18481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18482 (exit $ac_status); }; }; then
18483 ac_cv_lib_gcc___alloca=yes
18485 echo "$as_me: failed program was:" >&5
18486 sed 's/^/| /' conftest.$ac_ext >&5
18488 ac_cv_lib_gcc___alloca=no
18491 rm -f core conftest.err conftest.$ac_objext \
18492 conftest$ac_exeext conftest.$ac_ext
18493 LIBS=$ac_check_lib_save_LIBS
18495 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18496 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18497 if test $ac_cv_lib_gcc___alloca = yes; then
18499 cat >>confdefs.h <<\_ACEOF
18500 #define HAVE___ALLOCA 1
18505 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18506 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18507 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18508 echo $ECHO_N "(cached) $ECHO_C" >&6
18510 ac_check_lib_save_LIBS=$LIBS
18512 cat >conftest.$ac_ext <<_ACEOF
18515 cat confdefs.h >>conftest.$ac_ext
18516 cat >>conftest.$ac_ext <<_ACEOF
18517 /* end confdefs.h. */
18519 /* Override any GCC internal prototype to avoid an error.
18520 Use char because int might match the return type of a GCC
18521 builtin and then its argument prototype would still apply. */
18529 return __chkstk ();
18534 rm -f conftest.$ac_objext conftest$ac_exeext
18535 if { (ac_try="$ac_link"
18536 case "(($ac_try" in
18537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18538 *) ac_try_echo=$ac_try;;
18540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18541 (eval "$ac_link") 2>conftest.er1
18543 grep -v '^ *+' conftest.er1 >conftest.err
18545 cat conftest.err >&5
18546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18547 (exit $ac_status); } &&
18548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18549 { (case "(($ac_try" in
18550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18551 *) ac_try_echo=$ac_try;;
18553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18554 (eval "$ac_try") 2>&5
18556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18557 (exit $ac_status); }; } &&
18558 { ac_try='test -s conftest$ac_exeext'
18559 { (case "(($ac_try" in
18560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18561 *) ac_try_echo=$ac_try;;
18563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18564 (eval "$ac_try") 2>&5
18566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18567 (exit $ac_status); }; }; then
18568 ac_cv_lib_gcc___chkstk=yes
18570 echo "$as_me: failed program was:" >&5
18571 sed 's/^/| /' conftest.$ac_ext >&5
18573 ac_cv_lib_gcc___chkstk=no
18576 rm -f core conftest.err conftest.$ac_objext \
18577 conftest$ac_exeext conftest.$ac_ext
18578 LIBS=$ac_check_lib_save_LIBS
18580 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18581 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18582 if test $ac_cv_lib_gcc___chkstk = yes; then
18584 cat >>confdefs.h <<\_ACEOF
18585 #define HAVE___CHKSTK 1
18590 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18591 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18592 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18593 echo $ECHO_N "(cached) $ECHO_C" >&6
18595 ac_check_lib_save_LIBS=$LIBS
18597 cat >conftest.$ac_ext <<_ACEOF
18600 cat confdefs.h >>conftest.$ac_ext
18601 cat >>conftest.$ac_ext <<_ACEOF
18602 /* end confdefs.h. */
18604 /* Override any GCC internal prototype to avoid an error.
18605 Use char because int might match the return type of a GCC
18606 builtin and then its argument prototype would still apply. */
18614 return ___chkstk ();
18619 rm -f conftest.$ac_objext conftest$ac_exeext
18620 if { (ac_try="$ac_link"
18621 case "(($ac_try" in
18622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18623 *) ac_try_echo=$ac_try;;
18625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18626 (eval "$ac_link") 2>conftest.er1
18628 grep -v '^ *+' conftest.er1 >conftest.err
18630 cat conftest.err >&5
18631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18632 (exit $ac_status); } &&
18633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18634 { (case "(($ac_try" in
18635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18636 *) ac_try_echo=$ac_try;;
18638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18639 (eval "$ac_try") 2>&5
18641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18642 (exit $ac_status); }; } &&
18643 { ac_try='test -s conftest$ac_exeext'
18644 { (case "(($ac_try" in
18645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18646 *) ac_try_echo=$ac_try;;
18648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18649 (eval "$ac_try") 2>&5
18651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18652 (exit $ac_status); }; }; then
18653 ac_cv_lib_gcc____chkstk=yes
18655 echo "$as_me: failed program was:" >&5
18656 sed 's/^/| /' conftest.$ac_ext >&5
18658 ac_cv_lib_gcc____chkstk=no
18661 rm -f core conftest.err conftest.$ac_objext \
18662 conftest$ac_exeext conftest.$ac_ext
18663 LIBS=$ac_check_lib_save_LIBS
18665 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18666 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18667 if test $ac_cv_lib_gcc____chkstk = yes; then
18669 cat >>confdefs.h <<\_ACEOF
18670 #define HAVE____CHKSTK 1
18676 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18677 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18678 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18679 echo $ECHO_N "(cached) $ECHO_C" >&6
18681 ac_check_lib_save_LIBS=$LIBS
18683 cat >conftest.$ac_ext <<_ACEOF
18686 cat confdefs.h >>conftest.$ac_ext
18687 cat >>conftest.$ac_ext <<_ACEOF
18688 /* end confdefs.h. */
18690 /* Override any GCC internal prototype to avoid an error.
18691 Use char because int might match the return type of a GCC
18692 builtin and then its argument prototype would still apply. */
18700 return __ashldi3 ();
18705 rm -f conftest.$ac_objext conftest$ac_exeext
18706 if { (ac_try="$ac_link"
18707 case "(($ac_try" in
18708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18709 *) ac_try_echo=$ac_try;;
18711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18712 (eval "$ac_link") 2>conftest.er1
18714 grep -v '^ *+' conftest.er1 >conftest.err
18716 cat conftest.err >&5
18717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18718 (exit $ac_status); } &&
18719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18720 { (case "(($ac_try" in
18721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18722 *) ac_try_echo=$ac_try;;
18724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18725 (eval "$ac_try") 2>&5
18727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18728 (exit $ac_status); }; } &&
18729 { ac_try='test -s conftest$ac_exeext'
18730 { (case "(($ac_try" in
18731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18732 *) ac_try_echo=$ac_try;;
18734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18735 (eval "$ac_try") 2>&5
18737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18738 (exit $ac_status); }; }; then
18739 ac_cv_lib_gcc___ashldi3=yes
18741 echo "$as_me: failed program was:" >&5
18742 sed 's/^/| /' conftest.$ac_ext >&5
18744 ac_cv_lib_gcc___ashldi3=no
18747 rm -f core conftest.err conftest.$ac_objext \
18748 conftest$ac_exeext conftest.$ac_ext
18749 LIBS=$ac_check_lib_save_LIBS
18751 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18752 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18753 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18755 cat >>confdefs.h <<\_ACEOF
18756 #define HAVE___ASHLDI3 1
18761 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18762 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18763 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18764 echo $ECHO_N "(cached) $ECHO_C" >&6
18766 ac_check_lib_save_LIBS=$LIBS
18768 cat >conftest.$ac_ext <<_ACEOF
18771 cat confdefs.h >>conftest.$ac_ext
18772 cat >>conftest.$ac_ext <<_ACEOF
18773 /* end confdefs.h. */
18775 /* Override any GCC internal prototype to avoid an error.
18776 Use char because int might match the return type of a GCC
18777 builtin and then its argument prototype would still apply. */
18785 return __ashrdi3 ();
18790 rm -f conftest.$ac_objext conftest$ac_exeext
18791 if { (ac_try="$ac_link"
18792 case "(($ac_try" in
18793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18794 *) ac_try_echo=$ac_try;;
18796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18797 (eval "$ac_link") 2>conftest.er1
18799 grep -v '^ *+' conftest.er1 >conftest.err
18801 cat conftest.err >&5
18802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18803 (exit $ac_status); } &&
18804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18805 { (case "(($ac_try" in
18806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18807 *) ac_try_echo=$ac_try;;
18809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18810 (eval "$ac_try") 2>&5
18812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18813 (exit $ac_status); }; } &&
18814 { ac_try='test -s conftest$ac_exeext'
18815 { (case "(($ac_try" in
18816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18817 *) ac_try_echo=$ac_try;;
18819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18820 (eval "$ac_try") 2>&5
18822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18823 (exit $ac_status); }; }; then
18824 ac_cv_lib_gcc___ashrdi3=yes
18826 echo "$as_me: failed program was:" >&5
18827 sed 's/^/| /' conftest.$ac_ext >&5
18829 ac_cv_lib_gcc___ashrdi3=no
18832 rm -f core conftest.err conftest.$ac_objext \
18833 conftest$ac_exeext conftest.$ac_ext
18834 LIBS=$ac_check_lib_save_LIBS
18836 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18837 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18838 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18840 cat >>confdefs.h <<\_ACEOF
18841 #define HAVE___ASHRDI3 1
18846 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18847 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18848 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18849 echo $ECHO_N "(cached) $ECHO_C" >&6
18851 ac_check_lib_save_LIBS=$LIBS
18853 cat >conftest.$ac_ext <<_ACEOF
18856 cat confdefs.h >>conftest.$ac_ext
18857 cat >>conftest.$ac_ext <<_ACEOF
18858 /* end confdefs.h. */
18860 /* Override any GCC internal prototype to avoid an error.
18861 Use char because int might match the return type of a GCC
18862 builtin and then its argument prototype would still apply. */
18870 return __divdi3 ();
18875 rm -f conftest.$ac_objext conftest$ac_exeext
18876 if { (ac_try="$ac_link"
18877 case "(($ac_try" in
18878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18879 *) ac_try_echo=$ac_try;;
18881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18882 (eval "$ac_link") 2>conftest.er1
18884 grep -v '^ *+' conftest.er1 >conftest.err
18886 cat conftest.err >&5
18887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18888 (exit $ac_status); } &&
18889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18890 { (case "(($ac_try" in
18891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18892 *) ac_try_echo=$ac_try;;
18894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18895 (eval "$ac_try") 2>&5
18897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898 (exit $ac_status); }; } &&
18899 { ac_try='test -s conftest$ac_exeext'
18900 { (case "(($ac_try" in
18901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18902 *) ac_try_echo=$ac_try;;
18904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18905 (eval "$ac_try") 2>&5
18907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18908 (exit $ac_status); }; }; then
18909 ac_cv_lib_gcc___divdi3=yes
18911 echo "$as_me: failed program was:" >&5
18912 sed 's/^/| /' conftest.$ac_ext >&5
18914 ac_cv_lib_gcc___divdi3=no
18917 rm -f core conftest.err conftest.$ac_objext \
18918 conftest$ac_exeext conftest.$ac_ext
18919 LIBS=$ac_check_lib_save_LIBS
18921 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18922 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18923 if test $ac_cv_lib_gcc___divdi3 = yes; then
18925 cat >>confdefs.h <<\_ACEOF
18926 #define HAVE___DIVDI3 1
18931 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18932 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18933 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18934 echo $ECHO_N "(cached) $ECHO_C" >&6
18936 ac_check_lib_save_LIBS=$LIBS
18938 cat >conftest.$ac_ext <<_ACEOF
18941 cat confdefs.h >>conftest.$ac_ext
18942 cat >>conftest.$ac_ext <<_ACEOF
18943 /* end confdefs.h. */
18945 /* Override any GCC internal prototype to avoid an error.
18946 Use char because int might match the return type of a GCC
18947 builtin and then its argument prototype would still apply. */
18955 return __fixdfdi ();
18960 rm -f conftest.$ac_objext conftest$ac_exeext
18961 if { (ac_try="$ac_link"
18962 case "(($ac_try" in
18963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18964 *) ac_try_echo=$ac_try;;
18966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18967 (eval "$ac_link") 2>conftest.er1
18969 grep -v '^ *+' conftest.er1 >conftest.err
18971 cat conftest.err >&5
18972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18973 (exit $ac_status); } &&
18974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18975 { (case "(($ac_try" in
18976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18977 *) ac_try_echo=$ac_try;;
18979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18980 (eval "$ac_try") 2>&5
18982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18983 (exit $ac_status); }; } &&
18984 { ac_try='test -s conftest$ac_exeext'
18985 { (case "(($ac_try" in
18986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18987 *) ac_try_echo=$ac_try;;
18989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18990 (eval "$ac_try") 2>&5
18992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18993 (exit $ac_status); }; }; then
18994 ac_cv_lib_gcc___fixdfdi=yes
18996 echo "$as_me: failed program was:" >&5
18997 sed 's/^/| /' conftest.$ac_ext >&5
18999 ac_cv_lib_gcc___fixdfdi=no
19002 rm -f core conftest.err conftest.$ac_objext \
19003 conftest$ac_exeext conftest.$ac_ext
19004 LIBS=$ac_check_lib_save_LIBS
19006 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
19007 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
19008 if test $ac_cv_lib_gcc___fixdfdi = yes; then
19010 cat >>confdefs.h <<\_ACEOF
19011 #define HAVE___FIXDFDI 1
19016 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
19017 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
19018 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
19019 echo $ECHO_N "(cached) $ECHO_C" >&6
19021 ac_check_lib_save_LIBS=$LIBS
19023 cat >conftest.$ac_ext <<_ACEOF
19026 cat confdefs.h >>conftest.$ac_ext
19027 cat >>conftest.$ac_ext <<_ACEOF
19028 /* end confdefs.h. */
19030 /* Override any GCC internal prototype to avoid an error.
19031 Use char because int might match the return type of a GCC
19032 builtin and then its argument prototype would still apply. */
19040 return __fixsfdi ();
19045 rm -f conftest.$ac_objext conftest$ac_exeext
19046 if { (ac_try="$ac_link"
19047 case "(($ac_try" in
19048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19049 *) ac_try_echo=$ac_try;;
19051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19052 (eval "$ac_link") 2>conftest.er1
19054 grep -v '^ *+' conftest.er1 >conftest.err
19056 cat conftest.err >&5
19057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19058 (exit $ac_status); } &&
19059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19060 { (case "(($ac_try" in
19061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19062 *) ac_try_echo=$ac_try;;
19064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19065 (eval "$ac_try") 2>&5
19067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068 (exit $ac_status); }; } &&
19069 { ac_try='test -s conftest$ac_exeext'
19070 { (case "(($ac_try" in
19071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19072 *) ac_try_echo=$ac_try;;
19074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19075 (eval "$ac_try") 2>&5
19077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078 (exit $ac_status); }; }; then
19079 ac_cv_lib_gcc___fixsfdi=yes
19081 echo "$as_me: failed program was:" >&5
19082 sed 's/^/| /' conftest.$ac_ext >&5
19084 ac_cv_lib_gcc___fixsfdi=no
19087 rm -f core conftest.err conftest.$ac_objext \
19088 conftest$ac_exeext conftest.$ac_ext
19089 LIBS=$ac_check_lib_save_LIBS
19091 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
19092 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
19093 if test $ac_cv_lib_gcc___fixsfdi = yes; then
19095 cat >>confdefs.h <<\_ACEOF
19096 #define HAVE___FIXSFDI 1
19101 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
19102 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
19103 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
19104 echo $ECHO_N "(cached) $ECHO_C" >&6
19106 ac_check_lib_save_LIBS=$LIBS
19108 cat >conftest.$ac_ext <<_ACEOF
19111 cat confdefs.h >>conftest.$ac_ext
19112 cat >>conftest.$ac_ext <<_ACEOF
19113 /* end confdefs.h. */
19115 /* Override any GCC internal prototype to avoid an error.
19116 Use char because int might match the return type of a GCC
19117 builtin and then its argument prototype would still apply. */
19121 char __floatdidf ();
19125 return __floatdidf ();
19130 rm -f conftest.$ac_objext conftest$ac_exeext
19131 if { (ac_try="$ac_link"
19132 case "(($ac_try" in
19133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19134 *) ac_try_echo=$ac_try;;
19136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19137 (eval "$ac_link") 2>conftest.er1
19139 grep -v '^ *+' conftest.er1 >conftest.err
19141 cat conftest.err >&5
19142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19143 (exit $ac_status); } &&
19144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19145 { (case "(($ac_try" in
19146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19147 *) ac_try_echo=$ac_try;;
19149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19150 (eval "$ac_try") 2>&5
19152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19153 (exit $ac_status); }; } &&
19154 { ac_try='test -s conftest$ac_exeext'
19155 { (case "(($ac_try" in
19156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19157 *) ac_try_echo=$ac_try;;
19159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19160 (eval "$ac_try") 2>&5
19162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19163 (exit $ac_status); }; }; then
19164 ac_cv_lib_gcc___floatdidf=yes
19166 echo "$as_me: failed program was:" >&5
19167 sed 's/^/| /' conftest.$ac_ext >&5
19169 ac_cv_lib_gcc___floatdidf=no
19172 rm -f core conftest.err conftest.$ac_objext \
19173 conftest$ac_exeext conftest.$ac_ext
19174 LIBS=$ac_check_lib_save_LIBS
19176 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
19177 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
19178 if test $ac_cv_lib_gcc___floatdidf = yes; then
19180 cat >>confdefs.h <<\_ACEOF
19181 #define HAVE___FLOATDIDF 1
19186 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
19187 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
19188 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
19189 echo $ECHO_N "(cached) $ECHO_C" >&6
19191 ac_check_lib_save_LIBS=$LIBS
19193 cat >conftest.$ac_ext <<_ACEOF
19196 cat confdefs.h >>conftest.$ac_ext
19197 cat >>conftest.$ac_ext <<_ACEOF
19198 /* end confdefs.h. */
19200 /* Override any GCC internal prototype to avoid an error.
19201 Use char because int might match the return type of a GCC
19202 builtin and then its argument prototype would still apply. */
19210 return __lshrdi3 ();
19215 rm -f conftest.$ac_objext conftest$ac_exeext
19216 if { (ac_try="$ac_link"
19217 case "(($ac_try" in
19218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19219 *) ac_try_echo=$ac_try;;
19221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19222 (eval "$ac_link") 2>conftest.er1
19224 grep -v '^ *+' conftest.er1 >conftest.err
19226 cat conftest.err >&5
19227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19228 (exit $ac_status); } &&
19229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19230 { (case "(($ac_try" in
19231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19232 *) ac_try_echo=$ac_try;;
19234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19235 (eval "$ac_try") 2>&5
19237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238 (exit $ac_status); }; } &&
19239 { ac_try='test -s conftest$ac_exeext'
19240 { (case "(($ac_try" in
19241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19242 *) ac_try_echo=$ac_try;;
19244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19245 (eval "$ac_try") 2>&5
19247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19248 (exit $ac_status); }; }; then
19249 ac_cv_lib_gcc___lshrdi3=yes
19251 echo "$as_me: failed program was:" >&5
19252 sed 's/^/| /' conftest.$ac_ext >&5
19254 ac_cv_lib_gcc___lshrdi3=no
19257 rm -f core conftest.err conftest.$ac_objext \
19258 conftest$ac_exeext conftest.$ac_ext
19259 LIBS=$ac_check_lib_save_LIBS
19261 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19262 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19263 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19265 cat >>confdefs.h <<\_ACEOF
19266 #define HAVE___LSHRDI3 1
19271 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19272 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19273 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19274 echo $ECHO_N "(cached) $ECHO_C" >&6
19276 ac_check_lib_save_LIBS=$LIBS
19278 cat >conftest.$ac_ext <<_ACEOF
19281 cat confdefs.h >>conftest.$ac_ext
19282 cat >>conftest.$ac_ext <<_ACEOF
19283 /* end confdefs.h. */
19285 /* Override any GCC internal prototype to avoid an error.
19286 Use char because int might match the return type of a GCC
19287 builtin and then its argument prototype would still apply. */
19295 return __moddi3 ();
19300 rm -f conftest.$ac_objext conftest$ac_exeext
19301 if { (ac_try="$ac_link"
19302 case "(($ac_try" in
19303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19304 *) ac_try_echo=$ac_try;;
19306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19307 (eval "$ac_link") 2>conftest.er1
19309 grep -v '^ *+' conftest.er1 >conftest.err
19311 cat conftest.err >&5
19312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19313 (exit $ac_status); } &&
19314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19315 { (case "(($ac_try" in
19316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19317 *) ac_try_echo=$ac_try;;
19319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19320 (eval "$ac_try") 2>&5
19322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19323 (exit $ac_status); }; } &&
19324 { ac_try='test -s conftest$ac_exeext'
19325 { (case "(($ac_try" in
19326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19327 *) ac_try_echo=$ac_try;;
19329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19330 (eval "$ac_try") 2>&5
19332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19333 (exit $ac_status); }; }; then
19334 ac_cv_lib_gcc___moddi3=yes
19336 echo "$as_me: failed program was:" >&5
19337 sed 's/^/| /' conftest.$ac_ext >&5
19339 ac_cv_lib_gcc___moddi3=no
19342 rm -f core conftest.err conftest.$ac_objext \
19343 conftest$ac_exeext conftest.$ac_ext
19344 LIBS=$ac_check_lib_save_LIBS
19346 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19347 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19348 if test $ac_cv_lib_gcc___moddi3 = yes; then
19350 cat >>confdefs.h <<\_ACEOF
19351 #define HAVE___MODDI3 1
19356 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19357 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19358 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19359 echo $ECHO_N "(cached) $ECHO_C" >&6
19361 ac_check_lib_save_LIBS=$LIBS
19363 cat >conftest.$ac_ext <<_ACEOF
19366 cat confdefs.h >>conftest.$ac_ext
19367 cat >>conftest.$ac_ext <<_ACEOF
19368 /* end confdefs.h. */
19370 /* Override any GCC internal prototype to avoid an error.
19371 Use char because int might match the return type of a GCC
19372 builtin and then its argument prototype would still apply. */
19380 return __udivdi3 ();
19385 rm -f conftest.$ac_objext conftest$ac_exeext
19386 if { (ac_try="$ac_link"
19387 case "(($ac_try" in
19388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19389 *) ac_try_echo=$ac_try;;
19391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19392 (eval "$ac_link") 2>conftest.er1
19394 grep -v '^ *+' conftest.er1 >conftest.err
19396 cat conftest.err >&5
19397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19398 (exit $ac_status); } &&
19399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19400 { (case "(($ac_try" in
19401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19402 *) ac_try_echo=$ac_try;;
19404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19405 (eval "$ac_try") 2>&5
19407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19408 (exit $ac_status); }; } &&
19409 { ac_try='test -s conftest$ac_exeext'
19410 { (case "(($ac_try" in
19411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19412 *) ac_try_echo=$ac_try;;
19414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19415 (eval "$ac_try") 2>&5
19417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19418 (exit $ac_status); }; }; then
19419 ac_cv_lib_gcc___udivdi3=yes
19421 echo "$as_me: failed program was:" >&5
19422 sed 's/^/| /' conftest.$ac_ext >&5
19424 ac_cv_lib_gcc___udivdi3=no
19427 rm -f core conftest.err conftest.$ac_objext \
19428 conftest$ac_exeext conftest.$ac_ext
19429 LIBS=$ac_check_lib_save_LIBS
19431 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19432 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19433 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19435 cat >>confdefs.h <<\_ACEOF
19436 #define HAVE___UDIVDI3 1
19441 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19442 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19443 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19444 echo $ECHO_N "(cached) $ECHO_C" >&6
19446 ac_check_lib_save_LIBS=$LIBS
19448 cat >conftest.$ac_ext <<_ACEOF
19451 cat confdefs.h >>conftest.$ac_ext
19452 cat >>conftest.$ac_ext <<_ACEOF
19453 /* end confdefs.h. */
19455 /* Override any GCC internal prototype to avoid an error.
19456 Use char because int might match the return type of a GCC
19457 builtin and then its argument prototype would still apply. */
19465 return __umoddi3 ();
19470 rm -f conftest.$ac_objext conftest$ac_exeext
19471 if { (ac_try="$ac_link"
19472 case "(($ac_try" in
19473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19474 *) ac_try_echo=$ac_try;;
19476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19477 (eval "$ac_link") 2>conftest.er1
19479 grep -v '^ *+' conftest.er1 >conftest.err
19481 cat conftest.err >&5
19482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19483 (exit $ac_status); } &&
19484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19485 { (case "(($ac_try" in
19486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19487 *) ac_try_echo=$ac_try;;
19489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19490 (eval "$ac_try") 2>&5
19492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19493 (exit $ac_status); }; } &&
19494 { ac_try='test -s conftest$ac_exeext'
19495 { (case "(($ac_try" in
19496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19497 *) ac_try_echo=$ac_try;;
19499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19500 (eval "$ac_try") 2>&5
19502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503 (exit $ac_status); }; }; then
19504 ac_cv_lib_gcc___umoddi3=yes
19506 echo "$as_me: failed program was:" >&5
19507 sed 's/^/| /' conftest.$ac_ext >&5
19509 ac_cv_lib_gcc___umoddi3=no
19512 rm -f core conftest.err conftest.$ac_objext \
19513 conftest$ac_exeext conftest.$ac_ext
19514 LIBS=$ac_check_lib_save_LIBS
19516 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19517 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19518 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19520 cat >>confdefs.h <<\_ACEOF
19521 #define HAVE___UMODDI3 1
19527 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19528 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19529 if test "${ac_cv_lib_gcc___main+set}" = set; then
19530 echo $ECHO_N "(cached) $ECHO_C" >&6
19532 ac_check_lib_save_LIBS=$LIBS
19534 cat >conftest.$ac_ext <<_ACEOF
19537 cat confdefs.h >>conftest.$ac_ext
19538 cat >>conftest.$ac_ext <<_ACEOF
19539 /* end confdefs.h. */
19541 /* Override any GCC internal prototype to avoid an error.
19542 Use char because int might match the return type of a GCC
19543 builtin and then its argument prototype would still apply. */
19556 rm -f conftest.$ac_objext conftest$ac_exeext
19557 if { (ac_try="$ac_link"
19558 case "(($ac_try" in
19559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19560 *) ac_try_echo=$ac_try;;
19562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19563 (eval "$ac_link") 2>conftest.er1
19565 grep -v '^ *+' conftest.er1 >conftest.err
19567 cat conftest.err >&5
19568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19569 (exit $ac_status); } &&
19570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19571 { (case "(($ac_try" in
19572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19573 *) ac_try_echo=$ac_try;;
19575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19576 (eval "$ac_try") 2>&5
19578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19579 (exit $ac_status); }; } &&
19580 { ac_try='test -s conftest$ac_exeext'
19581 { (case "(($ac_try" in
19582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19583 *) ac_try_echo=$ac_try;;
19585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19586 (eval "$ac_try") 2>&5
19588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19589 (exit $ac_status); }; }; then
19590 ac_cv_lib_gcc___main=yes
19592 echo "$as_me: failed program was:" >&5
19593 sed 's/^/| /' conftest.$ac_ext >&5
19595 ac_cv_lib_gcc___main=no
19598 rm -f core conftest.err conftest.$ac_objext \
19599 conftest$ac_exeext conftest.$ac_ext
19600 LIBS=$ac_check_lib_save_LIBS
19602 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19603 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19604 if test $ac_cv_lib_gcc___main = yes; then
19606 cat >>confdefs.h <<\_ACEOF
19607 #define HAVE___MAIN 1
19612 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19613 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19614 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19615 echo $ECHO_N "(cached) $ECHO_C" >&6
19617 ac_check_lib_save_LIBS=$LIBS
19619 cat >conftest.$ac_ext <<_ACEOF
19622 cat confdefs.h >>conftest.$ac_ext
19623 cat >>conftest.$ac_ext <<_ACEOF
19624 /* end confdefs.h. */
19626 /* Override any GCC internal prototype to avoid an error.
19627 Use char because int might match the return type of a GCC
19628 builtin and then its argument prototype would still apply. */
19636 return __cmpdi2 ();
19641 rm -f conftest.$ac_objext conftest$ac_exeext
19642 if { (ac_try="$ac_link"
19643 case "(($ac_try" in
19644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19645 *) ac_try_echo=$ac_try;;
19647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19648 (eval "$ac_link") 2>conftest.er1
19650 grep -v '^ *+' conftest.er1 >conftest.err
19652 cat conftest.err >&5
19653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19654 (exit $ac_status); } &&
19655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19656 { (case "(($ac_try" in
19657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19658 *) ac_try_echo=$ac_try;;
19660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19661 (eval "$ac_try") 2>&5
19663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19664 (exit $ac_status); }; } &&
19665 { ac_try='test -s conftest$ac_exeext'
19666 { (case "(($ac_try" in
19667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19668 *) ac_try_echo=$ac_try;;
19670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19671 (eval "$ac_try") 2>&5
19673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19674 (exit $ac_status); }; }; then
19675 ac_cv_lib_gcc___cmpdi2=yes
19677 echo "$as_me: failed program was:" >&5
19678 sed 's/^/| /' conftest.$ac_ext >&5
19680 ac_cv_lib_gcc___cmpdi2=no
19683 rm -f core conftest.err conftest.$ac_objext \
19684 conftest$ac_exeext conftest.$ac_ext
19685 LIBS=$ac_check_lib_save_LIBS
19687 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19688 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19689 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19691 cat >>confdefs.h <<\_ACEOF
19692 #define HAVE___CMPDI2 1
19699 if test "$llvm_cv_os_type" = "MingW" ; then
19700 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19701 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19702 cat >conftest.$ac_ext <<_ACEOF
19703 #include <windows.h>
19704 #include <imagehlp.h>
19705 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19706 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19708 rm -f conftest.$ac_objext
19709 if { (ac_try="$ac_compile"
19710 case "(($ac_try" in
19711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19712 *) ac_try_echo=$ac_try;;
19714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19715 (eval "$ac_compile") 2>conftest.er1
19717 grep -v '^ *+' conftest.er1 >conftest.err
19719 cat conftest.err >&5
19720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19721 (exit $ac_status); } &&
19722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19723 { (case "(($ac_try" in
19724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19725 *) ac_try_echo=$ac_try;;
19727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19728 (eval "$ac_try") 2>&5
19730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731 (exit $ac_status); }; } &&
19732 { ac_try='test -s conftest.$ac_objext'
19733 { (case "(($ac_try" in
19734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19735 *) ac_try_echo=$ac_try;;
19737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19738 (eval "$ac_try") 2>&5
19740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741 (exit $ac_status); }; }; then
19743 { echo "$as_me:$LINENO: result: yes" >&5
19744 echo "${ECHO_T}yes" >&6; }
19745 llvm_cv_win32_elmcb_pcstr="PCSTR"
19748 echo "$as_me: failed program was:" >&5
19749 sed 's/^/| /' conftest.$ac_ext >&5
19752 { echo "$as_me:$LINENO: result: no" >&5
19753 echo "${ECHO_T}no" >&6; }
19754 llvm_cv_win32_elmcb_pcstr="PSTR"
19758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19760 cat >>confdefs.h <<_ACEOF
19761 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19767 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19768 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19769 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19770 echo $ECHO_N "(cached) $ECHO_C" >&6
19773 ac_cpp='$CXXCPP $CPPFLAGS'
19774 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19775 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19776 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19778 cat >conftest.$ac_ext <<_ACEOF
19781 cat confdefs.h >>conftest.$ac_ext
19782 cat >>conftest.$ac_ext <<_ACEOF
19783 /* end confdefs.h. */
19793 rm -f conftest.$ac_objext
19794 if { (ac_try="$ac_compile"
19795 case "(($ac_try" in
19796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19797 *) ac_try_echo=$ac_try;;
19799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19800 (eval "$ac_compile") 2>conftest.er1
19802 grep -v '^ *+' conftest.er1 >conftest.err
19804 cat conftest.err >&5
19805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19806 (exit $ac_status); } &&
19807 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19808 { (case "(($ac_try" in
19809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19810 *) ac_try_echo=$ac_try;;
19812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19813 (eval "$ac_try") 2>&5
19815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19816 (exit $ac_status); }; } &&
19817 { ac_try='test -s conftest.$ac_objext'
19818 { (case "(($ac_try" in
19819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19820 *) ac_try_echo=$ac_try;;
19822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19823 (eval "$ac_try") 2>&5
19825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19826 (exit $ac_status); }; }; then
19827 ac_cv_func_isnan_in_math_h=yes
19829 echo "$as_me: failed program was:" >&5
19830 sed 's/^/| /' conftest.$ac_ext >&5
19832 ac_cv_func_isnan_in_math_h=no
19835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19837 ac_cpp='$CPP $CPPFLAGS'
19838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19843 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19844 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19847 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19849 cat >>confdefs.h <<\_ACEOF
19850 #define HAVE_ISNAN_IN_MATH_H 1
19855 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19856 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19857 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19858 echo $ECHO_N "(cached) $ECHO_C" >&6
19861 ac_cpp='$CXXCPP $CPPFLAGS'
19862 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19863 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19864 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19866 cat >conftest.$ac_ext <<_ACEOF
19869 cat confdefs.h >>conftest.$ac_ext
19870 cat >>conftest.$ac_ext <<_ACEOF
19871 /* end confdefs.h. */
19881 rm -f conftest.$ac_objext
19882 if { (ac_try="$ac_compile"
19883 case "(($ac_try" in
19884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19885 *) ac_try_echo=$ac_try;;
19887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19888 (eval "$ac_compile") 2>conftest.er1
19890 grep -v '^ *+' conftest.er1 >conftest.err
19892 cat conftest.err >&5
19893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19894 (exit $ac_status); } &&
19895 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
19903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19904 (exit $ac_status); }; } &&
19905 { ac_try='test -s conftest.$ac_objext'
19906 { (case "(($ac_try" in
19907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19908 *) ac_try_echo=$ac_try;;
19910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19911 (eval "$ac_try") 2>&5
19913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19914 (exit $ac_status); }; }; then
19915 ac_cv_func_isnan_in_cmath=yes
19917 echo "$as_me: failed program was:" >&5
19918 sed 's/^/| /' conftest.$ac_ext >&5
19920 ac_cv_func_isnan_in_cmath=no
19923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19925 ac_cpp='$CPP $CPPFLAGS'
19926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19931 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19932 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19934 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19936 cat >>confdefs.h <<\_ACEOF
19937 #define HAVE_ISNAN_IN_CMATH 1
19942 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19943 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19944 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19945 echo $ECHO_N "(cached) $ECHO_C" >&6
19948 ac_cpp='$CXXCPP $CPPFLAGS'
19949 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19950 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19951 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19953 cat >conftest.$ac_ext <<_ACEOF
19956 cat confdefs.h >>conftest.$ac_ext
19957 cat >>conftest.$ac_ext <<_ACEOF
19958 /* end confdefs.h. */
19963 float f; std::isnan(f);
19968 rm -f conftest.$ac_objext
19969 if { (ac_try="$ac_compile"
19970 case "(($ac_try" in
19971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19972 *) ac_try_echo=$ac_try;;
19974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19975 (eval "$ac_compile") 2>conftest.er1
19977 grep -v '^ *+' conftest.er1 >conftest.err
19979 cat conftest.err >&5
19980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19981 (exit $ac_status); } &&
19982 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19983 { (case "(($ac_try" in
19984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19985 *) ac_try_echo=$ac_try;;
19987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19988 (eval "$ac_try") 2>&5
19990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19991 (exit $ac_status); }; } &&
19992 { ac_try='test -s conftest.$ac_objext'
19993 { (case "(($ac_try" in
19994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19995 *) ac_try_echo=$ac_try;;
19997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19998 (eval "$ac_try") 2>&5
20000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20001 (exit $ac_status); }; }; then
20002 ac_cv_func_std_isnan_in_cmath=yes
20004 echo "$as_me: failed program was:" >&5
20005 sed 's/^/| /' conftest.$ac_ext >&5
20007 ac_cv_func_std_isnan_in_cmath=no
20010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20012 ac_cpp='$CPP $CPPFLAGS'
20013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20018 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
20019 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
20021 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
20023 cat >>confdefs.h <<\_ACEOF
20024 #define HAVE_STD_ISNAN_IN_CMATH 1
20030 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
20031 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
20032 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
20033 echo $ECHO_N "(cached) $ECHO_C" >&6
20036 ac_cpp='$CXXCPP $CPPFLAGS'
20037 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20038 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20039 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20041 cat >conftest.$ac_ext <<_ACEOF
20044 cat confdefs.h >>conftest.$ac_ext
20045 cat >>conftest.$ac_ext <<_ACEOF
20046 /* end confdefs.h. */
20056 rm -f conftest.$ac_objext
20057 if { (ac_try="$ac_compile"
20058 case "(($ac_try" in
20059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20060 *) ac_try_echo=$ac_try;;
20062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20063 (eval "$ac_compile") 2>conftest.er1
20065 grep -v '^ *+' conftest.er1 >conftest.err
20067 cat conftest.err >&5
20068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20069 (exit $ac_status); } &&
20070 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20071 { (case "(($ac_try" in
20072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20073 *) ac_try_echo=$ac_try;;
20075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20076 (eval "$ac_try") 2>&5
20078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20079 (exit $ac_status); }; } &&
20080 { ac_try='test -s conftest.$ac_objext'
20081 { (case "(($ac_try" in
20082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20083 *) ac_try_echo=$ac_try;;
20085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20086 (eval "$ac_try") 2>&5
20088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20089 (exit $ac_status); }; }; then
20090 ac_cv_func_isinf_in_math_h=yes
20092 echo "$as_me: failed program was:" >&5
20093 sed 's/^/| /' conftest.$ac_ext >&5
20095 ac_cv_func_isinf_in_math_h=no
20098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20100 ac_cpp='$CPP $CPPFLAGS'
20101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20106 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
20107 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
20109 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
20111 cat >>confdefs.h <<\_ACEOF
20112 #define HAVE_ISINF_IN_MATH_H 1
20117 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
20118 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
20119 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
20120 echo $ECHO_N "(cached) $ECHO_C" >&6
20123 ac_cpp='$CXXCPP $CPPFLAGS'
20124 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20125 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20126 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20128 cat >conftest.$ac_ext <<_ACEOF
20131 cat confdefs.h >>conftest.$ac_ext
20132 cat >>conftest.$ac_ext <<_ACEOF
20133 /* end confdefs.h. */
20143 rm -f conftest.$ac_objext
20144 if { (ac_try="$ac_compile"
20145 case "(($ac_try" in
20146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20147 *) ac_try_echo=$ac_try;;
20149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20150 (eval "$ac_compile") 2>conftest.er1
20152 grep -v '^ *+' conftest.er1 >conftest.err
20154 cat conftest.err >&5
20155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20156 (exit $ac_status); } &&
20157 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20158 { (case "(($ac_try" in
20159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20160 *) ac_try_echo=$ac_try;;
20162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20163 (eval "$ac_try") 2>&5
20165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20166 (exit $ac_status); }; } &&
20167 { ac_try='test -s conftest.$ac_objext'
20168 { (case "(($ac_try" in
20169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20170 *) ac_try_echo=$ac_try;;
20172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20173 (eval "$ac_try") 2>&5
20175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20176 (exit $ac_status); }; }; then
20177 ac_cv_func_isinf_in_cmath=yes
20179 echo "$as_me: failed program was:" >&5
20180 sed 's/^/| /' conftest.$ac_ext >&5
20182 ac_cv_func_isinf_in_cmath=no
20185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20187 ac_cpp='$CPP $CPPFLAGS'
20188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20193 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
20194 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
20196 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
20198 cat >>confdefs.h <<\_ACEOF
20199 #define HAVE_ISINF_IN_CMATH 1
20204 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
20205 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
20206 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
20207 echo $ECHO_N "(cached) $ECHO_C" >&6
20210 ac_cpp='$CXXCPP $CPPFLAGS'
20211 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20212 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20213 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20215 cat >conftest.$ac_ext <<_ACEOF
20218 cat confdefs.h >>conftest.$ac_ext
20219 cat >>conftest.$ac_ext <<_ACEOF
20220 /* end confdefs.h. */
20225 float f; std::isinf(f);
20230 rm -f conftest.$ac_objext
20231 if { (ac_try="$ac_compile"
20232 case "(($ac_try" in
20233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20234 *) ac_try_echo=$ac_try;;
20236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20237 (eval "$ac_compile") 2>conftest.er1
20239 grep -v '^ *+' conftest.er1 >conftest.err
20241 cat conftest.err >&5
20242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20243 (exit $ac_status); } &&
20244 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20245 { (case "(($ac_try" in
20246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20247 *) ac_try_echo=$ac_try;;
20249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20250 (eval "$ac_try") 2>&5
20252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20253 (exit $ac_status); }; } &&
20254 { ac_try='test -s conftest.$ac_objext'
20255 { (case "(($ac_try" in
20256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20257 *) ac_try_echo=$ac_try;;
20259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20260 (eval "$ac_try") 2>&5
20262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20263 (exit $ac_status); }; }; then
20264 ac_cv_func_std_isinf_in_cmath=yes
20266 echo "$as_me: failed program was:" >&5
20267 sed 's/^/| /' conftest.$ac_ext >&5
20269 ac_cv_func_std_isinf_in_cmath=no
20272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20274 ac_cpp='$CPP $CPPFLAGS'
20275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20280 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20281 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
20283 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
20285 cat >>confdefs.h <<\_ACEOF
20286 #define HAVE_STD_ISINF_IN_CMATH 1
20291 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20292 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20293 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20294 echo $ECHO_N "(cached) $ECHO_C" >&6
20297 ac_cpp='$CXXCPP $CPPFLAGS'
20298 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20299 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20300 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20302 cat >conftest.$ac_ext <<_ACEOF
20305 cat confdefs.h >>conftest.$ac_ext
20306 cat >>conftest.$ac_ext <<_ACEOF
20307 /* end confdefs.h. */
20308 #include <ieeefp.h>
20312 float f; finite(f);
20317 rm -f conftest.$ac_objext
20318 if { (ac_try="$ac_compile"
20319 case "(($ac_try" in
20320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20321 *) ac_try_echo=$ac_try;;
20323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20324 (eval "$ac_compile") 2>conftest.er1
20326 grep -v '^ *+' conftest.er1 >conftest.err
20328 cat conftest.err >&5
20329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20330 (exit $ac_status); } &&
20331 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20332 { (case "(($ac_try" in
20333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20334 *) ac_try_echo=$ac_try;;
20336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20337 (eval "$ac_try") 2>&5
20339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20340 (exit $ac_status); }; } &&
20341 { ac_try='test -s conftest.$ac_objext'
20342 { (case "(($ac_try" in
20343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20344 *) ac_try_echo=$ac_try;;
20346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20347 (eval "$ac_try") 2>&5
20349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350 (exit $ac_status); }; }; then
20351 ac_cv_func_finite_in_ieeefp_h=yes
20353 echo "$as_me: failed program was:" >&5
20354 sed 's/^/| /' conftest.$ac_ext >&5
20356 ac_cv_func_finite_in_ieeefp_h=no
20359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20361 ac_cpp='$CPP $CPPFLAGS'
20362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20367 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20368 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
20370 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
20372 cat >>confdefs.h <<\_ACEOF
20373 #define HAVE_FINITE_IN_IEEEFP_H 1
20380 if test "$llvm_cv_platform_type" = "Unix" ; then
20383 for ac_header in stdlib.h unistd.h
20385 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20386 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20387 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20389 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20390 echo $ECHO_N "(cached) $ECHO_C" >&6
20392 ac_res=`eval echo '${'$as_ac_Header'}'`
20393 { echo "$as_me:$LINENO: result: $ac_res" >&5
20394 echo "${ECHO_T}$ac_res" >&6; }
20396 # Is the header compilable?
20397 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20398 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20399 cat >conftest.$ac_ext <<_ACEOF
20402 cat confdefs.h >>conftest.$ac_ext
20403 cat >>conftest.$ac_ext <<_ACEOF
20404 /* end confdefs.h. */
20405 $ac_includes_default
20406 #include <$ac_header>
20408 rm -f conftest.$ac_objext
20409 if { (ac_try="$ac_compile"
20410 case "(($ac_try" in
20411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20412 *) ac_try_echo=$ac_try;;
20414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20415 (eval "$ac_compile") 2>conftest.er1
20417 grep -v '^ *+' conftest.er1 >conftest.err
20419 cat conftest.err >&5
20420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20421 (exit $ac_status); } &&
20422 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20423 { (case "(($ac_try" in
20424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20425 *) ac_try_echo=$ac_try;;
20427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20428 (eval "$ac_try") 2>&5
20430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20431 (exit $ac_status); }; } &&
20432 { ac_try='test -s conftest.$ac_objext'
20433 { (case "(($ac_try" in
20434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20435 *) ac_try_echo=$ac_try;;
20437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20438 (eval "$ac_try") 2>&5
20440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20441 (exit $ac_status); }; }; then
20442 ac_header_compiler=yes
20444 echo "$as_me: failed program was:" >&5
20445 sed 's/^/| /' conftest.$ac_ext >&5
20447 ac_header_compiler=no
20450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20451 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20452 echo "${ECHO_T}$ac_header_compiler" >&6; }
20454 # Is the header present?
20455 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20456 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20457 cat >conftest.$ac_ext <<_ACEOF
20460 cat confdefs.h >>conftest.$ac_ext
20461 cat >>conftest.$ac_ext <<_ACEOF
20462 /* end confdefs.h. */
20463 #include <$ac_header>
20465 if { (ac_try="$ac_cpp conftest.$ac_ext"
20466 case "(($ac_try" in
20467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20468 *) ac_try_echo=$ac_try;;
20470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20471 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20473 grep -v '^ *+' conftest.er1 >conftest.err
20475 cat conftest.err >&5
20476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20477 (exit $ac_status); } >/dev/null; then
20478 if test -s conftest.err; then
20479 ac_cpp_err=$ac_c_preproc_warn_flag
20480 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20487 if test -z "$ac_cpp_err"; then
20488 ac_header_preproc=yes
20490 echo "$as_me: failed program was:" >&5
20491 sed 's/^/| /' conftest.$ac_ext >&5
20493 ac_header_preproc=no
20496 rm -f conftest.err conftest.$ac_ext
20497 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20498 echo "${ECHO_T}$ac_header_preproc" >&6; }
20500 # So? What about this header?
20501 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20503 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20504 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20505 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20506 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20507 ac_header_preproc=yes
20510 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20511 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20512 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20513 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20514 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20515 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20516 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20517 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20518 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20519 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20520 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20521 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20523 ## ------------------------------ ##
20524 ## Report this to bugs@yourdomain ##
20525 ## ------------------------------ ##
20527 ) | sed "s/^/$as_me: WARNING: /" >&2
20530 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20531 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20532 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20533 echo $ECHO_N "(cached) $ECHO_C" >&6
20535 eval "$as_ac_Header=\$ac_header_preproc"
20537 ac_res=`eval echo '${'$as_ac_Header'}'`
20538 { echo "$as_me:$LINENO: result: $ac_res" >&5
20539 echo "${ECHO_T}$ac_res" >&6; }
20542 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20543 cat >>confdefs.h <<_ACEOF
20544 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20552 for ac_func in getpagesize
20554 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20555 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20556 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20557 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20558 echo $ECHO_N "(cached) $ECHO_C" >&6
20560 cat >conftest.$ac_ext <<_ACEOF
20563 cat confdefs.h >>conftest.$ac_ext
20564 cat >>conftest.$ac_ext <<_ACEOF
20565 /* end confdefs.h. */
20566 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20567 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20568 #define $ac_func innocuous_$ac_func
20570 /* System header to define __stub macros and hopefully few prototypes,
20571 which can conflict with char $ac_func (); below.
20572 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20573 <limits.h> exists even on freestanding compilers. */
20576 # include <limits.h>
20578 # include <assert.h>
20583 /* Override any GCC internal prototype to avoid an error.
20584 Use char because int might match the return type of a GCC
20585 builtin and then its argument prototype would still apply. */
20590 /* The GNU C library defines this for functions which it implements
20591 to always fail with ENOSYS. Some functions are actually named
20592 something starting with __ and the normal name is an alias. */
20593 #if defined __stub_$ac_func || defined __stub___$ac_func
20600 return $ac_func ();
20605 rm -f conftest.$ac_objext conftest$ac_exeext
20606 if { (ac_try="$ac_link"
20607 case "(($ac_try" in
20608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20609 *) ac_try_echo=$ac_try;;
20611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20612 (eval "$ac_link") 2>conftest.er1
20614 grep -v '^ *+' conftest.er1 >conftest.err
20616 cat conftest.err >&5
20617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20618 (exit $ac_status); } &&
20619 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20620 { (case "(($ac_try" in
20621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20622 *) ac_try_echo=$ac_try;;
20624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20625 (eval "$ac_try") 2>&5
20627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20628 (exit $ac_status); }; } &&
20629 { ac_try='test -s conftest$ac_exeext'
20630 { (case "(($ac_try" in
20631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20632 *) ac_try_echo=$ac_try;;
20634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20635 (eval "$ac_try") 2>&5
20637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20638 (exit $ac_status); }; }; then
20639 eval "$as_ac_var=yes"
20641 echo "$as_me: failed program was:" >&5
20642 sed 's/^/| /' conftest.$ac_ext >&5
20644 eval "$as_ac_var=no"
20647 rm -f core conftest.err conftest.$ac_objext \
20648 conftest$ac_exeext conftest.$ac_ext
20650 ac_res=`eval echo '${'$as_ac_var'}'`
20651 { echo "$as_me:$LINENO: result: $ac_res" >&5
20652 echo "${ECHO_T}$ac_res" >&6; }
20653 if test `eval echo '${'$as_ac_var'}'` = yes; then
20654 cat >>confdefs.h <<_ACEOF
20655 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20661 { echo "$as_me:$LINENO: checking for working mmap" >&5
20662 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20663 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20664 echo $ECHO_N "(cached) $ECHO_C" >&6
20666 if test "$cross_compiling" = yes; then
20667 ac_cv_func_mmap_fixed_mapped=no
20669 cat >conftest.$ac_ext <<_ACEOF
20672 cat confdefs.h >>conftest.$ac_ext
20673 cat >>conftest.$ac_ext <<_ACEOF
20674 /* end confdefs.h. */
20675 $ac_includes_default
20676 /* malloc might have been renamed as rpl_malloc. */
20679 /* Thanks to Mike Haertel and Jim Avera for this test.
20680 Here is a matrix of mmap possibilities:
20681 mmap private not fixed
20682 mmap private fixed at somewhere currently unmapped
20683 mmap private fixed at somewhere already mapped
20684 mmap shared not fixed
20685 mmap shared fixed at somewhere currently unmapped
20686 mmap shared fixed at somewhere already mapped
20687 For private mappings, we should verify that changes cannot be read()
20688 back from the file, nor mmap's back from the file at a different
20689 address. (There have been systems where private was not correctly
20690 implemented like the infamous i386 svr4.0, and systems where the
20691 VM page cache was not coherent with the file system buffer cache
20692 like early versions of FreeBSD and possibly contemporary NetBSD.)
20693 For shared mappings, we should conversely verify that changes get
20694 propagated back to all the places they're supposed to be.
20696 Grep wants private fixed already mapped.
20697 The main things grep needs to know about mmap are:
20698 * does it exist and is it safe to write into the mmap'd area
20699 * how to use it (BSD variants) */
20702 #include <sys/mman.h>
20704 #if !STDC_HEADERS && !HAVE_STDLIB_H
20708 /* This mess was copied from the GNU getpagesize.h. */
20709 #if !HAVE_GETPAGESIZE
20710 /* Assume that all systems that can run configure have sys/param.h. */
20711 # if !HAVE_SYS_PARAM_H
20712 # define HAVE_SYS_PARAM_H 1
20715 # ifdef _SC_PAGESIZE
20716 # define getpagesize() sysconf(_SC_PAGESIZE)
20717 # else /* no _SC_PAGESIZE */
20718 # if HAVE_SYS_PARAM_H
20719 # include <sys/param.h>
20720 # ifdef EXEC_PAGESIZE
20721 # define getpagesize() EXEC_PAGESIZE
20722 # else /* no EXEC_PAGESIZE */
20724 # define getpagesize() NBPG * CLSIZE
20727 # endif /* no CLSIZE */
20728 # else /* no NBPG */
20730 # define getpagesize() NBPC
20731 # else /* no NBPC */
20733 # define getpagesize() PAGESIZE
20734 # endif /* PAGESIZE */
20735 # endif /* no NBPC */
20736 # endif /* no NBPG */
20737 # endif /* no EXEC_PAGESIZE */
20738 # else /* no HAVE_SYS_PARAM_H */
20739 # define getpagesize() 8192 /* punt totally */
20740 # endif /* no HAVE_SYS_PARAM_H */
20741 # endif /* no _SC_PAGESIZE */
20743 #endif /* no HAVE_GETPAGESIZE */
20748 char *data, *data2, *data3;
20752 pagesize = getpagesize ();
20754 /* First, make a file with some known garbage in it. */
20755 data = (char *) malloc (pagesize);
20758 for (i = 0; i < pagesize; ++i)
20759 *(data + i) = rand ();
20761 fd = creat ("conftest.mmap", 0600);
20764 if (write (fd, data, pagesize) != pagesize)
20768 /* Next, try to mmap the file at a fixed address which already has
20769 something else allocated at it. If we can, also make sure that
20770 we see the same garbage. */
20771 fd = open ("conftest.mmap", O_RDWR);
20774 data2 = (char *) malloc (2 * pagesize);
20777 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20778 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20779 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20781 for (i = 0; i < pagesize; ++i)
20782 if (*(data + i) != *(data2 + i))
20785 /* Finally, make sure that changes to the mapped area do not
20786 percolate back to the file as seen by read(). (This is a bug on
20787 some variants of i386 svr4.0.) */
20788 for (i = 0; i < pagesize; ++i)
20789 *(data2 + i) = *(data2 + i) + 1;
20790 data3 = (char *) malloc (pagesize);
20793 if (read (fd, data3, pagesize) != pagesize)
20795 for (i = 0; i < pagesize; ++i)
20796 if (*(data + i) != *(data3 + i))
20802 rm -f conftest$ac_exeext
20803 if { (ac_try="$ac_link"
20804 case "(($ac_try" in
20805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20806 *) ac_try_echo=$ac_try;;
20808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20809 (eval "$ac_link") 2>&5
20811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20812 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20813 { (case "(($ac_try" in
20814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20815 *) ac_try_echo=$ac_try;;
20817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20818 (eval "$ac_try") 2>&5
20820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20821 (exit $ac_status); }; }; then
20822 ac_cv_func_mmap_fixed_mapped=yes
20824 echo "$as_me: program exited with status $ac_status" >&5
20825 echo "$as_me: failed program was:" >&5
20826 sed 's/^/| /' conftest.$ac_ext >&5
20828 ( exit $ac_status )
20829 ac_cv_func_mmap_fixed_mapped=no
20831 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20836 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20837 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20838 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20840 cat >>confdefs.h <<\_ACEOF
20841 #define HAVE_MMAP 1
20845 rm -f conftest.mmap
20847 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20848 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20849 if test "${ac_cv_func_mmap_file+set}" = set; then
20850 echo $ECHO_N "(cached) $ECHO_C" >&6
20853 ac_cpp='$CPP $CPPFLAGS'
20854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20858 if test "$cross_compiling" = yes; then
20859 ac_cv_func_mmap_file=no
20861 cat >conftest.$ac_ext <<_ACEOF
20865 cat confdefs.h >>conftest.$ac_ext
20866 cat >>conftest.$ac_ext <<_ACEOF
20867 /* end confdefs.h. */
20869 #include <sys/types.h>
20870 #include <sys/mman.h>
20878 fd = creat ("foo",0777);
20879 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20881 return (fd != (int) MAP_FAILED);
20886 rm -f conftest$ac_exeext
20887 if { (ac_try="$ac_link"
20888 case "(($ac_try" in
20889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20890 *) ac_try_echo=$ac_try;;
20892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20893 (eval "$ac_link") 2>&5
20895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20896 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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 ac_cv_func_mmap_file=yes
20908 echo "$as_me: program exited with status $ac_status" >&5
20909 echo "$as_me: failed program was:" >&5
20910 sed 's/^/| /' conftest.$ac_ext >&5
20912 ( exit $ac_status )
20913 ac_cv_func_mmap_file=no
20915 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20920 ac_cpp='$CPP $CPPFLAGS'
20921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20927 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20928 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20929 if test "$ac_cv_func_mmap_file" = yes; then
20931 cat >>confdefs.h <<\_ACEOF
20932 #define HAVE_MMAP_FILE
20939 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20940 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20941 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20942 echo $ECHO_N "(cached) $ECHO_C" >&6
20944 if test "$llvm_cv_os_type" = "Interix" ; then
20945 ac_cv_need_dev_zero_for_mmap=yes
20947 ac_cv_need_dev_zero_for_mmap=no
20951 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20952 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20953 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20955 cat >>confdefs.h <<\_ACEOF
20956 #define NEED_DEV_ZERO_FOR_MMAP 1
20961 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20963 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20964 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20966 if test "$ac_cv_func_mmap_file" = "no"
20968 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20969 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20973 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20974 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20976 ac_cpp='$CXXCPP $CPPFLAGS'
20977 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20978 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20979 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20981 cat >conftest.$ac_ext <<_ACEOF
20984 cat confdefs.h >>conftest.$ac_ext
20985 cat >>conftest.$ac_ext <<_ACEOF
20986 /* end confdefs.h. */
20988 volatile unsigned long val = 1;
20989 __sync_synchronize();
20990 __sync_val_compare_and_swap(&val, 1, 0);
20991 __sync_add_and_fetch(&val, 1);
20992 __sync_sub_and_fetch(&val, 1);
20997 rm -f conftest.$ac_objext conftest$ac_exeext
20998 if { (ac_try="$ac_link"
20999 case "(($ac_try" in
21000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21001 *) ac_try_echo=$ac_try;;
21003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21004 (eval "$ac_link") 2>conftest.er1
21006 grep -v '^ *+' conftest.er1 >conftest.err
21008 cat conftest.err >&5
21009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21010 (exit $ac_status); } &&
21011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21012 { (case "(($ac_try" in
21013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21014 *) ac_try_echo=$ac_try;;
21016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21017 (eval "$ac_try") 2>&5
21019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21020 (exit $ac_status); }; } &&
21021 { ac_try='test -s conftest$ac_exeext'
21022 { (case "(($ac_try" in
21023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21024 *) ac_try_echo=$ac_try;;
21026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21027 (eval "$ac_try") 2>&5
21029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21030 (exit $ac_status); }; }; then
21032 ac_cpp='$CPP $CPPFLAGS'
21033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21037 { echo "$as_me:$LINENO: result: yes" >&5
21038 echo "${ECHO_T}yes" >&6; }
21040 cat >>confdefs.h <<\_ACEOF
21041 #define LLVM_HAS_ATOMICS 1
21045 echo "$as_me: failed program was:" >&5
21046 sed 's/^/| /' conftest.$ac_ext >&5
21048 { echo "$as_me:$LINENO: result: no" >&5
21049 echo "${ECHO_T}no" >&6; }
21051 cat >>confdefs.h <<\_ACEOF
21052 #define LLVM_HAS_ATOMICS 0
21055 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
21056 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
21059 rm -f core conftest.err conftest.$ac_objext \
21060 conftest$ac_exeext conftest.$ac_ext
21063 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
21064 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
21065 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
21066 if test "${llvm_cv_linux_mixed+set}" = set; then
21067 echo $ECHO_N "(cached) $ECHO_C" >&6
21070 ac_cpp='$CPP $CPPFLAGS'
21071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21075 cat >conftest.$ac_ext <<_ACEOF
21078 cat confdefs.h >>conftest.$ac_ext
21079 cat >>conftest.$ac_ext <<_ACEOF
21080 /* end confdefs.h. */
21082 error: Not x86-64 even if uname says so!
21093 rm -f conftest.$ac_objext
21094 if { (ac_try="$ac_compile"
21095 case "(($ac_try" in
21096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21097 *) ac_try_echo=$ac_try;;
21099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21100 (eval "$ac_compile") 2>conftest.er1
21102 grep -v '^ *+' conftest.er1 >conftest.err
21104 cat conftest.err >&5
21105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21106 (exit $ac_status); } &&
21107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21108 { (case "(($ac_try" in
21109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21110 *) ac_try_echo=$ac_try;;
21112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21113 (eval "$ac_try") 2>&5
21115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21116 (exit $ac_status); }; } &&
21117 { ac_try='test -s conftest.$ac_objext'
21118 { (case "(($ac_try" in
21119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21120 *) ac_try_echo=$ac_try;;
21122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21123 (eval "$ac_try") 2>&5
21125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21126 (exit $ac_status); }; }; then
21127 llvm_cv_linux_mixed=no
21129 echo "$as_me: failed program was:" >&5
21130 sed 's/^/| /' conftest.$ac_ext >&5
21132 llvm_cv_linux_mixed=yes
21135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21137 ac_cpp='$CPP $CPPFLAGS'
21138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21144 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
21145 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
21147 if test "$llvm_cv_linux_mixed" = "yes"; then
21148 llvm_cv_target_arch="x86"
21154 for ac_func in __dso_handle
21156 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21157 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21158 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21159 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21160 echo $ECHO_N "(cached) $ECHO_C" >&6
21162 cat >conftest.$ac_ext <<_ACEOF
21165 cat confdefs.h >>conftest.$ac_ext
21166 cat >>conftest.$ac_ext <<_ACEOF
21167 /* end confdefs.h. */
21168 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21169 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21170 #define $ac_func innocuous_$ac_func
21172 /* System header to define __stub macros and hopefully few prototypes,
21173 which can conflict with char $ac_func (); below.
21174 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21175 <limits.h> exists even on freestanding compilers. */
21178 # include <limits.h>
21180 # include <assert.h>
21185 /* Override any GCC internal prototype to avoid an error.
21186 Use char because int might match the return type of a GCC
21187 builtin and then its argument prototype would still apply. */
21192 /* The GNU C library defines this for functions which it implements
21193 to always fail with ENOSYS. Some functions are actually named
21194 something starting with __ and the normal name is an alias. */
21195 #if defined __stub_$ac_func || defined __stub___$ac_func
21202 return $ac_func ();
21207 rm -f conftest.$ac_objext conftest$ac_exeext
21208 if { (ac_try="$ac_link"
21209 case "(($ac_try" in
21210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21211 *) ac_try_echo=$ac_try;;
21213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21214 (eval "$ac_link") 2>conftest.er1
21216 grep -v '^ *+' conftest.er1 >conftest.err
21218 cat conftest.err >&5
21219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21220 (exit $ac_status); } &&
21221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21222 { (case "(($ac_try" in
21223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21224 *) ac_try_echo=$ac_try;;
21226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21227 (eval "$ac_try") 2>&5
21229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21230 (exit $ac_status); }; } &&
21231 { ac_try='test -s conftest$ac_exeext'
21232 { (case "(($ac_try" in
21233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21234 *) ac_try_echo=$ac_try;;
21236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21237 (eval "$ac_try") 2>&5
21239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21240 (exit $ac_status); }; }; then
21241 eval "$as_ac_var=yes"
21243 echo "$as_me: failed program was:" >&5
21244 sed 's/^/| /' conftest.$ac_ext >&5
21246 eval "$as_ac_var=no"
21249 rm -f core conftest.err conftest.$ac_objext \
21250 conftest$ac_exeext conftest.$ac_ext
21252 ac_res=`eval echo '${'$as_ac_var'}'`
21253 { echo "$as_me:$LINENO: result: $ac_res" >&5
21254 echo "${ECHO_T}$ac_res" >&6; }
21255 if test `eval echo '${'$as_ac_var'}'` = yes; then
21256 cat >>confdefs.h <<_ACEOF
21257 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21264 SHLIBEXT=$libltdl_cv_shlibext
21267 # Translate the various configuration directories and other basic
21268 # information into substitutions that will end up in Makefile.config.in
21269 # that these configured values can be used by the makefiles
21270 if test "${prefix}" = "NONE" ; then
21271 prefix="/usr/local"
21273 eval LLVM_PREFIX="${prefix}";
21274 eval LLVM_BINDIR="${prefix}/bin";
21275 eval LLVM_DATADIR="${prefix}/share/llvm";
21276 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
21277 eval LLVM_ETCDIR="${prefix}/etc/llvm";
21278 eval LLVM_INCLUDEDIR="${prefix}/include";
21279 eval LLVM_INFODIR="${prefix}/info";
21280 eval LLVM_MANDIR="${prefix}/man";
21281 LLVM_CONFIGTIME=`date`
21292 # Place the various directores into the config.h file as #defines so that we
21293 # can know about the installation paths within LLVM.
21295 cat >>confdefs.h <<_ACEOF
21296 #define LLVM_PREFIX "$LLVM_PREFIX"
21300 cat >>confdefs.h <<_ACEOF
21301 #define LLVM_BINDIR "$LLVM_BINDIR"
21305 cat >>confdefs.h <<_ACEOF
21306 #define LLVM_DATADIR "$LLVM_DATADIR"
21310 cat >>confdefs.h <<_ACEOF
21311 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
21315 cat >>confdefs.h <<_ACEOF
21316 #define LLVM_ETCDIR "$LLVM_ETCDIR"
21320 cat >>confdefs.h <<_ACEOF
21321 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21325 cat >>confdefs.h <<_ACEOF
21326 #define LLVM_INFODIR "$LLVM_INFODIR"
21330 cat >>confdefs.h <<_ACEOF
21331 #define LLVM_MANDIR "$LLVM_MANDIR"
21335 cat >>confdefs.h <<_ACEOF
21336 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21340 cat >>confdefs.h <<_ACEOF
21341 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
21345 # Determine which bindings to build.
21346 if test "$BINDINGS_TO_BUILD" = auto ; then
21347 BINDINGS_TO_BUILD=""
21348 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21349 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21352 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21355 # This isn't really configurey, but it avoids having to repeat the list in
21360 # Do any work necessary to ensure that bindings have what they need.
21361 binding_prereqs_failed=0
21362 for a_binding in $BINDINGS_TO_BUILD ; do
21363 case "$a_binding" in
21365 if test "x$OCAMLC" = x ; then
21366 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21367 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
21368 binding_prereqs_failed=1
21370 if test "x$OCAMLDEP" = x ; then
21371 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21372 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
21373 binding_prereqs_failed=1
21375 if test "x$OCAMLOPT" = x ; then
21376 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21377 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
21379 if test "x$with_ocaml_libdir" != xauto ; then
21380 OCAML_LIBDIR=$with_ocaml_libdir
21383 ocaml_stdlib="`"$OCAMLC" -where`"
21384 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21386 # ocaml stdlib is beneath our prefix; use stdlib
21387 OCAML_LIBDIR=$ocaml_stdlib
21390 # ocaml stdlib is outside our prefix; use libdir/ocaml
21391 OCAML_LIBDIR=${prefix}/lib/ocaml
21398 if test "$binding_prereqs_failed" = 1 ; then
21399 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21400 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21401 { (exit 1); exit 1; }; }
21404 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21405 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21406 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21407 echo $ECHO_N "(cached) $ECHO_C" >&6
21410 ac_cpp='$CXXCPP $CPPFLAGS'
21411 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21412 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21413 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21415 oldcxxflags="$CXXFLAGS"
21416 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
21417 cat >conftest.$ac_ext <<_ACEOF
21420 cat confdefs.h >>conftest.$ac_ext
21421 cat >>conftest.$ac_ext <<_ACEOF
21422 /* end confdefs.h. */
21423 template <typename T> struct X { void __attribute__((noinline)) f() {} };
21432 rm -f conftest.$ac_objext
21433 if { (ac_try="$ac_compile"
21434 case "(($ac_try" in
21435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21436 *) ac_try_echo=$ac_try;;
21438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21439 (eval "$ac_compile") 2>conftest.er1
21441 grep -v '^ *+' conftest.er1 >conftest.err
21443 cat conftest.err >&5
21444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21445 (exit $ac_status); } &&
21446 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21447 { (case "(($ac_try" in
21448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21449 *) ac_try_echo=$ac_try;;
21451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21452 (eval "$ac_try") 2>&5
21454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21455 (exit $ac_status); }; } &&
21456 { ac_try='test -s conftest.$ac_objext'
21457 { (case "(($ac_try" in
21458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21459 *) ac_try_echo=$ac_try;;
21461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21462 (eval "$ac_try") 2>&5
21464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21465 (exit $ac_status); }; }; then
21466 llvm_cv_cxx_visibility_inlines_hidden=yes
21468 echo "$as_me: failed program was:" >&5
21469 sed 's/^/| /' conftest.$ac_ext >&5
21471 llvm_cv_cxx_visibility_inlines_hidden=no
21474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21475 CXXFLAGS="$oldcxxflags"
21477 ac_cpp='$CPP $CPPFLAGS'
21478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21484 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21485 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21486 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21487 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21490 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21495 if test "$llvm_cv_link_use_r" = "yes" ; then
21502 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21503 RDYNAMIC="-rdynamic"
21511 ac_config_files="$ac_config_files Makefile.common"
21513 ac_config_files="$ac_config_files Makefile.llvm.config"
21516 ac_config_commands="$ac_config_commands Makefile"
21519 ac_config_commands="$ac_config_commands lib/Makefile"
21522 ac_config_commands="$ac_config_commands lib/sample/Makefile"
21525 ac_config_commands="$ac_config_commands tools/Makefile"
21528 ac_config_commands="$ac_config_commands tools/sample/Makefile"
21532 cat >confcache <<\_ACEOF
21533 # This file is a shell script that caches the results of configure
21534 # tests run on this system so they can be shared between configure
21535 # scripts and configure runs, see configure's option --config-cache.
21536 # It is not useful on other systems. If it contains results you don't
21537 # want to keep, you may remove or edit it.
21539 # config.status only pays attention to the cache file if you give it
21540 # the --recheck option to rerun configure.
21542 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21543 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21544 # following values.
21548 # The following way of writing the cache mishandles newlines in values,
21549 # but we know of no workaround that is simple, portable, and efficient.
21550 # So, we kill variables containing newlines.
21551 # Ultrix sh set writes to stderr and can't be redirected directly,
21552 # and sets the high bit in the cache file unless we assign to the vars.
21554 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21555 eval ac_val=\$$ac_var
21559 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21560 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21563 _ | IFS | as_nl) ;; #(
21564 *) $as_unset $ac_var ;;
21570 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21571 *${as_nl}ac_space=\ *)
21572 # `set' does not quote correctly, so add quotes (double-quote
21573 # substitution turns \\\\ into \\, and sed turns \\ into \).
21576 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21579 # `set' quotes correctly as required by POSIX, so do not add quotes.
21580 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21589 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21591 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21593 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21594 if test -w "$cache_file"; then
21595 test "x$cache_file" != "x/dev/null" &&
21596 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21597 echo "$as_me: updating cache $cache_file" >&6;}
21598 cat confcache >$cache_file
21600 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21601 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21606 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21607 # Let make expand exec_prefix.
21608 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21610 # Transform confdefs.h into DEFS.
21611 # Protect against shell expansion while executing Makefile rules.
21612 # Protect against Makefile macro expansion.
21614 # If the first sed substitution is executed (which looks for macros that
21615 # take arguments), then branch to the quote section. Otherwise,
21616 # look for a macro that doesn't take arguments.
21620 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
21622 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
21626 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
21639 DEFS=`sed -n "$ac_script" confdefs.h`
21644 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21645 # 1. Remove the extension, and $U if already installed.
21646 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21647 ac_i=`echo "$ac_i" | sed "$ac_script"`
21648 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21649 # will be set to the directory where LIBOBJS objects are built.
21650 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21651 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21653 LIBOBJS=$ac_libobjs
21655 LTLIBOBJS=$ac_ltlibobjs
21658 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21659 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21660 Usually this means the macro was only invoked conditionally." >&5
21661 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21662 Usually this means the macro was only invoked conditionally." >&2;}
21663 { (exit 1); exit 1; }; }
21665 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21666 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21667 Usually this means the macro was only invoked conditionally." >&5
21668 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21669 Usually this means the macro was only invoked conditionally." >&2;}
21670 { (exit 1); exit 1; }; }
21673 : ${CONFIG_STATUS=./config.status}
21674 ac_clean_files_save=$ac_clean_files
21675 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21676 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21677 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21678 cat >$CONFIG_STATUS <<_ACEOF
21680 # Generated by $as_me.
21681 # Run this file to recreate the current configuration.
21682 # Compiler output produced by configure, useful for debugging
21683 # configure, is in config.log if it exists.
21686 ac_cs_recheck=false
21688 SHELL=\${CONFIG_SHELL-$SHELL}
21691 cat >>$CONFIG_STATUS <<\_ACEOF
21692 ## --------------------- ##
21693 ## M4sh Initialization. ##
21694 ## --------------------- ##
21696 # Be Bourne compatible
21697 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21700 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21701 # is contrary to our usage. Disable this feature.
21702 alias -g '${1+"$@"}'='"$@"'
21703 setopt NO_GLOB_SUBST
21705 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21707 BIN_SH=xpg4; export BIN_SH # for Tru64
21708 DUALCASE=1; export DUALCASE # for MKS sh
21712 # Avoid depending upon Character Ranges.
21713 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21714 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21715 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21716 as_cr_digits='0123456789'
21717 as_cr_alnum=$as_cr_Letters$as_cr_digits
21719 # The user is always right.
21720 if test "${PATH_SEPARATOR+set}" != set; then
21721 echo "#! /bin/sh" >conf$$.sh
21722 echo "exit 0" >>conf$$.sh
21724 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21732 # Support unset when possible.
21733 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21741 # We need space, tab and new line, in precisely that order. Quoting is
21742 # there to prevent editors from complaining about space-tab.
21743 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21744 # splitting by setting IFS to empty value.)
21749 # Find who we are. Look in the path if we contain no directory separator.
21751 *[\\/]* ) as_myself=$0 ;;
21752 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21753 for as_dir in $PATH
21756 test -z "$as_dir" && as_dir=.
21757 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21763 # We did not find ourselves, most probably we were run as `sh COMMAND'
21764 # in which case we are not to be found in the path.
21765 if test "x$as_myself" = x; then
21768 if test ! -f "$as_myself"; then
21769 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21770 { (exit 1); exit 1; }
21773 # Work around bugs in pre-3.0 UWIN ksh.
21774 for as_var in ENV MAIL MAILPATH
21775 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21783 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21784 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21785 LC_TELEPHONE LC_TIME
21787 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21788 eval $as_var=C; export $as_var
21790 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21794 # Required to use basename.
21795 if expr a : '\(a\)' >/dev/null 2>&1 &&
21796 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21802 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21803 as_basename=basename
21809 # Name of the executable.
21810 as_me=`$as_basename -- "$0" ||
21811 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21812 X"$0" : 'X\(//\)$' \| \
21813 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21815 sed '/^.*\/\([^/][^/]*\)\/*$/{
21834 as_lineno_1=$LINENO
21835 as_lineno_2=$LINENO
21836 test "x$as_lineno_1" != "x$as_lineno_2" &&
21837 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21839 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21840 # uniformly replaced by the line number. The first 'sed' inserts a
21841 # line-number line after each line using $LINENO; the second 'sed'
21842 # does the real work. The second script uses 'N' to pair each
21843 # line-number line with the line containing $LINENO, and appends
21844 # trailing '-' during substitution so that $LINENO is not a special
21845 # case at line end.
21846 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21847 # scripts with optimization help from Paolo Bonzini. Blame Lee
21848 # E. McMahon (1931-1989) for sed's syntax. :-)
21860 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21863 ' >$as_me.lineno &&
21864 chmod +x "$as_me.lineno" ||
21865 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21866 { (exit 1); exit 1; }; }
21868 # Don't try to exec as it changes $[0], causing all sort of problems
21869 # (the dirname of $[0] is not the place where we might find the
21870 # original and so on. Autoconf is especially sensitive to this).
21871 . "./$as_me.lineno"
21872 # Exit status is that of the last command.
21877 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21883 ECHO_C= ECHO_N= ECHO_T=
21884 case `echo -n x` in
21886 case `echo 'x\c'` in
21887 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21894 if expr a : '\(a\)' >/dev/null 2>&1 &&
21895 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21901 rm -f conf$$ conf$$.exe conf$$.file
21902 if test -d conf$$.dir; then
21903 rm -f conf$$.dir/conf$$.file
21909 if ln -s conf$$.file conf$$ 2>/dev/null; then
21911 # ... but there are two gotchas:
21912 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21913 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21914 # In both cases, we have to default to `cp -p'.
21915 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21917 elif ln conf$$.file conf$$ 2>/dev/null; then
21922 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21923 rmdir conf$$.dir 2>/dev/null
21925 if mkdir -p . 2>/dev/null; then
21928 test -d ./-p && rmdir ./-p
21932 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21933 # systems may use methods other than mode bits to determine executability.
21934 cat >conf$$.file <<_ASEOF
21938 chmod +x conf$$.file
21939 if test -x conf$$.file >/dev/null 2>&1; then
21940 as_executable_p="test -x"
21946 # Sed expression to map a string onto a valid CPP name.
21947 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21949 # Sed expression to map a string onto a valid variable name.
21950 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21955 # Save the log message, to keep $[0] and so on meaningful, and to
21956 # report actual input values of CONFIG_FILES etc. instead of their
21957 # values after options handling.
21959 This file was extended by [SAMPLE] $as_me [x.xx], which was
21960 generated by GNU Autoconf 2.60. Invocation command line was
21962 CONFIG_FILES = $CONFIG_FILES
21963 CONFIG_HEADERS = $CONFIG_HEADERS
21964 CONFIG_LINKS = $CONFIG_LINKS
21965 CONFIG_COMMANDS = $CONFIG_COMMANDS
21968 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21973 cat >>$CONFIG_STATUS <<_ACEOF
21974 # Files that config.status was made for.
21975 config_files="$ac_config_files"
21976 config_commands="$ac_config_commands"
21980 cat >>$CONFIG_STATUS <<\_ACEOF
21982 \`$as_me' instantiates files from templates according to the
21983 current configuration.
21985 Usage: $0 [OPTIONS] [FILE]...
21987 -h, --help print this help, then exit
21988 -V, --version print version number, then exit
21989 -q, --quiet do not print progress messages
21990 -d, --debug don't remove temporary files
21991 --recheck update $as_me by reconfiguring in the same conditions
21992 --file=FILE[:TEMPLATE]
21993 instantiate the configuration file FILE
21995 Configuration files:
21998 Configuration commands:
22001 Report bugs to <bug-autoconf@gnu.org>."
22004 cat >>$CONFIG_STATUS <<_ACEOF
22006 [SAMPLE] config.status [x.xx]
22007 configured by $0, generated by GNU Autoconf 2.60,
22008 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22010 Copyright (C) 2006 Free Software Foundation, Inc.
22011 This config.status script is free software; the Free Software Foundation
22012 gives unlimited permission to copy, distribute and modify it."
22019 cat >>$CONFIG_STATUS <<\_ACEOF
22020 # If no file are specified by the user, then we need to provide default
22021 # value. By we need to know if files were specified by the user.
22027 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22028 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22039 # Handling of the options.
22040 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22042 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22043 echo "$ac_cs_version"; exit ;;
22044 --debug | --debu | --deb | --de | --d | -d )
22046 --file | --fil | --fi | --f )
22048 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22049 ac_need_defaults=false;;
22050 --he | --h | --help | --hel | -h )
22051 echo "$ac_cs_usage"; exit ;;
22052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22053 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22056 # This is an error.
22057 -*) { echo "$as_me: error: unrecognized option: $1
22058 Try \`$0 --help' for more information." >&2
22059 { (exit 1); exit 1; }; } ;;
22061 *) ac_config_targets="$ac_config_targets $1"
22062 ac_need_defaults=false ;;
22068 ac_configure_extra_args=
22070 if $ac_cs_silent; then
22072 ac_configure_extra_args="$ac_configure_extra_args --silent"
22076 cat >>$CONFIG_STATUS <<_ACEOF
22077 if \$ac_cs_recheck; then
22078 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22079 CONFIG_SHELL=$SHELL
22080 export CONFIG_SHELL
22081 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22085 cat >>$CONFIG_STATUS <<\_ACEOF
22089 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22090 ## Running $as_me. ##
22096 cat >>$CONFIG_STATUS <<_ACEOF
22100 llvm_src="${LLVM_SRC}"
22104 cat >>$CONFIG_STATUS <<\_ACEOF
22106 # Handling of arguments.
22107 for ac_config_target in $ac_config_targets
22109 case $ac_config_target in
22110 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
22111 "Makefile.common") CONFIG_FILES="$CONFIG_FILES Makefile.common" ;;
22112 "Makefile.llvm.config") CONFIG_FILES="$CONFIG_FILES Makefile.llvm.config" ;;
22113 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22114 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
22115 "lib/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/sample/Makefile" ;;
22116 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
22117 "tools/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/sample/Makefile" ;;
22119 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22120 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22121 { (exit 1); exit 1; }; };;
22126 # If the user did not use the arguments to specify the items to instantiate,
22127 # then the envvar interface is used. Set only those that are not.
22128 # We use the long form for the default assignment because of an extremely
22129 # bizarre bug on SunOS 4.1.3.
22130 if $ac_need_defaults; then
22131 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22132 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22135 # Have a temporary directory for convenience. Make it in the build tree
22136 # simply because there is no reason against having it here, and in addition,
22137 # creating and moving files from /tmp can sometimes cause problems.
22138 # Hook for its removal unless debugging.
22139 # Note that there is a small window in which the directory will not be cleaned:
22140 # after its creation but before its name has been assigned to `$tmp'.
22144 trap 'exit_status=$?
22145 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22147 trap '{ (exit 1); exit 1; }' 1 2 13 15
22149 # Create a (secure) tmp directory for tmp files.
22152 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22153 test -n "$tmp" && test -d "$tmp"
22156 tmp=./conf$$-$RANDOM
22157 (umask 077 && mkdir "$tmp")
22160 echo "$me: cannot create a temporary directory in ." >&2
22161 { (exit 1); exit 1; }
22165 # Set up the sed scripts for CONFIG_FILES section.
22168 # No need to generate the scripts if there are no CONFIG_FILES.
22169 # This happens for instance when ./config.status config.h
22170 if test -n "$CONFIG_FILES"; then
22177 for ac_last_try in false false false false false :; do
22178 cat >conf$$subs.sed <<_ACEOF
22179 SHELL!$SHELL$ac_delim
22180 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22181 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22182 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22183 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22184 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22185 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22186 exec_prefix!$exec_prefix$ac_delim
22187 prefix!$prefix$ac_delim
22188 program_transform_name!$program_transform_name$ac_delim
22189 bindir!$bindir$ac_delim
22190 sbindir!$sbindir$ac_delim
22191 libexecdir!$libexecdir$ac_delim
22192 datarootdir!$datarootdir$ac_delim
22193 datadir!$datadir$ac_delim
22194 sysconfdir!$sysconfdir$ac_delim
22195 sharedstatedir!$sharedstatedir$ac_delim
22196 localstatedir!$localstatedir$ac_delim
22197 includedir!$includedir$ac_delim
22198 oldincludedir!$oldincludedir$ac_delim
22199 docdir!$docdir$ac_delim
22200 infodir!$infodir$ac_delim
22201 htmldir!$htmldir$ac_delim
22202 dvidir!$dvidir$ac_delim
22203 pdfdir!$pdfdir$ac_delim
22204 psdir!$psdir$ac_delim
22205 libdir!$libdir$ac_delim
22206 localedir!$localedir$ac_delim
22207 mandir!$mandir$ac_delim
22208 DEFS!$DEFS$ac_delim
22209 ECHO_C!$ECHO_C$ac_delim
22210 ECHO_N!$ECHO_N$ac_delim
22211 ECHO_T!$ECHO_T$ac_delim
22212 LIBS!$LIBS$ac_delim
22213 build_alias!$build_alias$ac_delim
22214 host_alias!$host_alias$ac_delim
22215 target_alias!$target_alias$ac_delim
22216 LLVM_SRC!$LLVM_SRC$ac_delim
22217 LLVM_OBJ!$LLVM_OBJ$ac_delim
22218 LLVM_VERSION!$LLVM_VERSION$ac_delim
22220 CFLAGS!$CFLAGS$ac_delim
22221 LDFLAGS!$LDFLAGS$ac_delim
22222 CPPFLAGS!$CPPFLAGS$ac_delim
22223 ac_ct_CC!$ac_ct_CC$ac_delim
22224 EXEEXT!$EXEEXT$ac_delim
22225 OBJEXT!$OBJEXT$ac_delim
22227 CXXFLAGS!$CXXFLAGS$ac_delim
22228 ac_ct_CXX!$ac_ct_CXX$ac_delim
22230 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22231 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
22232 subdirs!$subdirs$ac_delim
22233 build!$build$ac_delim
22234 build_cpu!$build_cpu$ac_delim
22235 build_vendor!$build_vendor$ac_delim
22236 build_os!$build_os$ac_delim
22237 host!$host$ac_delim
22238 host_cpu!$host_cpu$ac_delim
22239 host_vendor!$host_vendor$ac_delim
22240 host_os!$host_os$ac_delim
22241 target!$target$ac_delim
22242 target_cpu!$target_cpu$ac_delim
22243 target_vendor!$target_vendor$ac_delim
22244 target_os!$target_os$ac_delim
22246 HOST_OS!$HOST_OS$ac_delim
22247 TARGET_OS!$TARGET_OS$ac_delim
22248 LINKALL!$LINKALL$ac_delim
22249 NOLINKALL!$NOLINKALL$ac_delim
22250 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22251 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22252 ARCH!$ARCH$ac_delim
22253 ENDIAN!$ENDIAN$ac_delim
22254 GREP!$GREP$ac_delim
22255 EGREP!$EGREP$ac_delim
22256 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22257 BUILD_CC!$BUILD_CC$ac_delim
22258 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22259 BUILD_CXX!$BUILD_CXX$ac_delim
22260 CVSBUILD!$CVSBUILD$ac_delim
22261 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
22262 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
22263 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22264 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22265 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22266 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
22267 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22268 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22269 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22270 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22272 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
22273 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
22274 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
22275 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
22278 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22280 elif $ac_last_try; then
22281 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22282 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22283 { (exit 1); exit 1; }; }
22285 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22289 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22290 if test -n "$ac_eof"; then
22291 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22292 ac_eof=`expr $ac_eof + 1`
22295 cat >>$CONFIG_STATUS <<_ACEOF
22296 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22297 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22300 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22301 s/^/s,@/; s/!/@,|#_!!_#|/
22304 s/'"$ac_delim"'$/,g/; t
22306 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22307 ' >>$CONFIG_STATUS <conf$$subs.sed
22308 rm -f conf$$subs.sed
22309 cat >>$CONFIG_STATUS <<_ACEOF
22315 for ac_last_try in false false false false false :; do
22316 cat >conf$$subs.sed <<_ACEOF
22317 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
22318 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
22319 ENABLE_PIC!$ENABLE_PIC$ac_delim
22320 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
22321 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
22322 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
22323 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22324 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22325 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
22326 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
22327 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
22328 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
22329 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
22330 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
22331 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
22333 ifGNUmake!$ifGNUmake$ac_delim
22334 LN_S!$LN_S$ac_delim
22337 DATE!$DATE$ac_delim
22338 FIND!$FIND$ac_delim
22339 MKDIR!$MKDIR$ac_delim
22341 RANLIB!$RANLIB$ac_delim
22346 BINPWD!$BINPWD$ac_delim
22347 GRAPHVIZ!$GRAPHVIZ$ac_delim
22350 NEATO!$NEATO$ac_delim
22351 TWOPI!$TWOPI$ac_delim
22352 CIRCO!$CIRCO$ac_delim
22354 DOTTY!$DOTTY$ac_delim
22355 XDOT_PY!$XDOT_PY$ac_delim
22356 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22357 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22358 INSTALL_DATA!$INSTALL_DATA$ac_delim
22359 BZIP2!$BZIP2$ac_delim
22361 DOXYGEN!$DOXYGEN$ac_delim
22362 GROFF!$GROFF$ac_delim
22363 GZIPBIN!$GZIPBIN$ac_delim
22364 POD2HTML!$POD2HTML$ac_delim
22365 POD2MAN!$POD2MAN$ac_delim
22366 PDFROFF!$PDFROFF$ac_delim
22367 RUNTEST!$RUNTEST$ac_delim
22368 TCLSH!$TCLSH$ac_delim
22370 OCAMLC!$OCAMLC$ac_delim
22371 OCAMLOPT!$OCAMLOPT$ac_delim
22372 OCAMLDEP!$OCAMLDEP$ac_delim
22373 OCAMLDOC!$OCAMLDOC$ac_delim
22375 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22376 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22377 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22378 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22379 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22380 LIBADD_DL!$LIBADD_DL$ac_delim
22381 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22382 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22383 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
22384 USE_UDIS86!$USE_UDIS86$ac_delim
22385 USE_OPROFILE!$USE_OPROFILE$ac_delim
22386 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22387 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
22388 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22389 MMAP_FILE!$MMAP_FILE$ac_delim
22390 SHLIBEXT!$SHLIBEXT$ac_delim
22391 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22392 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22393 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22394 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22395 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22396 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22397 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22398 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22399 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22400 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22401 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22402 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22403 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22404 RPATH!$RPATH$ac_delim
22405 RDYNAMIC!$RDYNAMIC$ac_delim
22406 LIBOBJS!$LIBOBJS$ac_delim
22407 LTLIBOBJS!$LTLIBOBJS$ac_delim
22410 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
22412 elif $ac_last_try; then
22413 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22414 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22415 { (exit 1); exit 1; }; }
22417 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22421 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22422 if test -n "$ac_eof"; then
22423 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22424 ac_eof=`expr $ac_eof + 1`
22427 cat >>$CONFIG_STATUS <<_ACEOF
22428 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22429 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22432 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22433 s/^/s,@/; s/!/@,|#_!!_#|/
22436 s/'"$ac_delim"'$/,g/; t
22438 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22439 ' >>$CONFIG_STATUS <conf$$subs.sed
22440 rm -f conf$$subs.sed
22441 cat >>$CONFIG_STATUS <<_ACEOF
22448 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22449 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22450 # trailing colons and then remove the whole line if VPATH becomes empty
22451 # (actually we leave an empty line to preserve line numbers).
22452 if test "x$srcdir" = x.; then
22453 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22454 s/:*\$(srcdir):*/:/
22455 s/:*\${srcdir}:*/:/
22457 s/^\([^=]*=[ ]*\):*/\1/
22463 cat >>$CONFIG_STATUS <<\_ACEOF
22464 fi # test -n "$CONFIG_FILES"
22467 for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
22470 :[FHLC]) ac_mode=$ac_tag; continue;;
22472 case $ac_mode$ac_tag in
22474 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22475 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22476 { (exit 1); exit 1; }; };;
22477 :[FH]-) ac_tag=-:-;;
22478 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22495 -) ac_f="$tmp/stdin";;
22496 *) # Look for the file first in the build tree, then in the source tree
22497 # (if the path is not absolute). The absolute path cannot be DOS-style,
22498 # because $ac_f cannot contain `:'.
22502 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22504 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22505 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22506 { (exit 1); exit 1; }; };;
22508 ac_file_inputs="$ac_file_inputs $ac_f"
22511 # Let's still pretend it is `configure' which instantiates (i.e., don't
22512 # use $as_me), people would be surprised to read:
22513 # /* config.h. Generated by config.status. */
22514 configure_input="Generated from "`IFS=:
22515 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22516 if test x"$ac_file" != x-; then
22517 configure_input="$ac_file. $configure_input"
22518 { echo "$as_me:$LINENO: creating $ac_file" >&5
22519 echo "$as_me: creating $ac_file" >&6;}
22523 *:-:* | *:-) cat >"$tmp/stdin";;
22528 ac_dir=`$as_dirname -- "$ac_file" ||
22529 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22530 X"$ac_file" : 'X\(//\)[^/]' \| \
22531 X"$ac_file" : 'X\(//\)$' \| \
22532 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22534 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22538 /^X\(\/\/\)[^/].*/{
22553 -*) as_dir=./$as_dir;;
22555 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22559 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22560 *) as_qdir=$as_dir;;
22562 as_dirs="'$as_qdir' $as_dirs"
22563 as_dir=`$as_dirname -- "$as_dir" ||
22564 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22565 X"$as_dir" : 'X\(//\)[^/]' \| \
22566 X"$as_dir" : 'X\(//\)$' \| \
22567 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22569 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22573 /^X\(\/\/\)[^/].*/{
22586 test -d "$as_dir" && break
22588 test -z "$as_dirs" || eval "mkdir $as_dirs"
22589 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22590 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22591 { (exit 1); exit 1; }; }; }
22595 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22597 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22598 # A ".." for each directory in $ac_dir_suffix.
22599 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22600 case $ac_top_builddir_sub in
22601 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22602 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22605 ac_abs_top_builddir=$ac_pwd
22606 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22607 # for backward compatibility:
22608 ac_top_builddir=$ac_top_build_prefix
22611 .) # We are building in place.
22613 ac_top_srcdir=$ac_top_builddir_sub
22614 ac_abs_top_srcdir=$ac_pwd ;;
22615 [\\/]* | ?:[\\/]* ) # Absolute name.
22616 ac_srcdir=$srcdir$ac_dir_suffix;
22617 ac_top_srcdir=$srcdir
22618 ac_abs_top_srcdir=$srcdir ;;
22619 *) # Relative name.
22620 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22621 ac_top_srcdir=$ac_top_build_prefix$srcdir
22622 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22624 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22634 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22635 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22639 cat >>$CONFIG_STATUS <<\_ACEOF
22640 # If the template does not know about datarootdir, expand it.
22641 # FIXME: This hack should be removed a few years after 2.60.
22642 ac_datarootdir_hack=; ac_datarootdir_seen=
22644 case `sed -n '/datarootdir/ {
22653 ' $ac_file_inputs` in
22654 *datarootdir*) ac_datarootdir_seen=yes;;
22655 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22656 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22657 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22659 cat >>$CONFIG_STATUS <<_ACEOF
22660 ac_datarootdir_hack='
22661 s&@datadir@&$datadir&g
22662 s&@docdir@&$docdir&g
22663 s&@infodir@&$infodir&g
22664 s&@localedir@&$localedir&g
22665 s&@mandir@&$mandir&g
22666 s&\\\${datarootdir}&$datarootdir&g' ;;
22670 # Neutralize VPATH when `$srcdir' = `.'.
22671 # Shell code in configure.ac might set extrasub.
22672 # FIXME: do we really want to maintain this feature?
22673 cat >>$CONFIG_STATUS <<_ACEOF
22677 cat >>$CONFIG_STATUS <<\_ACEOF
22679 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22680 s&@configure_input@&$configure_input&;t t
22681 s&@top_builddir@&$ac_top_builddir_sub&;t t
22682 s&@srcdir@&$ac_srcdir&;t t
22683 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22684 s&@top_srcdir@&$ac_top_srcdir&;t t
22685 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22686 s&@builddir@&$ac_builddir&;t t
22687 s&@abs_builddir@&$ac_abs_builddir&;t t
22688 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22689 s&@INSTALL@&$ac_INSTALL&;t t
22690 $ac_datarootdir_hack
22691 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22693 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22694 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22695 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22696 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22697 which seems to be undefined. Please make sure it is defined." >&5
22698 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22699 which seems to be undefined. Please make sure it is defined." >&2;}
22703 -) cat "$tmp/out"; rm -f "$tmp/out";;
22704 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22709 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22710 echo "$as_me: executing $ac_file commands" >&6;}
22715 case $ac_file$ac_mode in
22716 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22717 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22718 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22719 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22720 "lib/sample/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/sample/Makefile`
22721 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/sample/Makefile lib/sample/Makefile ;;
22722 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22723 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22724 "tools/sample/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/sample/Makefile`
22725 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/sample/Makefile tools/sample/Makefile ;;
22731 { (exit 0); exit 0; }
22733 chmod +x $CONFIG_STATUS
22734 ac_clean_files=$ac_clean_files_save
22737 # configure is writing to config.log, and then calls config.status.
22738 # config.status does its own redirection, appending to config.log.
22739 # Unfortunately, on DOS this fails, as config.log is still kept open
22740 # by configure, so config.status won't be able to write to it; its
22741 # output is simply discarded. So we exec the FD to /dev/null,
22742 # effectively closing config.log, so it can be properly (re)opened and
22743 # appended to by config.status. When coming back to configure, we
22744 # need to make the FD available again.
22745 if test "$no_create" != yes; then
22747 ac_config_status_args=
22748 test "$silent" = yes &&
22749 ac_config_status_args="$ac_config_status_args --quiet"
22751 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22753 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22754 # would make configure fail if this is the last instruction.
22755 $ac_cs_success || { (exit 1); exit 1; }
22759 # CONFIG_SUBDIRS section.
22761 if test "$no_recursion" != yes; then
22763 # Remove --cache-file and --srcdir arguments so they do not pile up.
22764 ac_sub_configure_args=
22766 eval "set x $ac_configure_args"
22770 if test -n "$ac_prev"; then
22775 -cache-file | --cache-file | --cache-fil | --cache-fi \
22776 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22777 ac_prev=cache_file ;;
22778 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22779 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22782 --config-cache | -C)
22784 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22786 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22788 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22790 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22794 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22796 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22800 # Always prepend --prefix to ensure using the same prefix
22801 # in subdir configurations.
22802 ac_arg="--prefix=$prefix"
22804 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22806 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22809 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22811 # Do not complain, so a configure script can configure whichever
22812 # parts of a large source tree are present.
22813 test -d "$srcdir/$ac_dir" || continue
22815 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22816 echo "$as_me:$LINENO: $ac_msg" >&5
22820 -*) as_dir=./$as_dir;;
22822 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22826 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22827 *) as_qdir=$as_dir;;
22829 as_dirs="'$as_qdir' $as_dirs"
22830 as_dir=`$as_dirname -- "$as_dir" ||
22831 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22832 X"$as_dir" : 'X\(//\)[^/]' \| \
22833 X"$as_dir" : 'X\(//\)$' \| \
22834 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22836 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22840 /^X\(\/\/\)[^/].*/{
22853 test -d "$as_dir" && break
22855 test -z "$as_dirs" || eval "mkdir $as_dirs"
22856 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22857 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22858 { (exit 1); exit 1; }; }; }
22862 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22864 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22865 # A ".." for each directory in $ac_dir_suffix.
22866 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22867 case $ac_top_builddir_sub in
22868 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22869 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22872 ac_abs_top_builddir=$ac_pwd
22873 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22874 # for backward compatibility:
22875 ac_top_builddir=$ac_top_build_prefix
22878 .) # We are building in place.
22880 ac_top_srcdir=$ac_top_builddir_sub
22881 ac_abs_top_srcdir=$ac_pwd ;;
22882 [\\/]* | ?:[\\/]* ) # Absolute name.
22883 ac_srcdir=$srcdir$ac_dir_suffix;
22884 ac_top_srcdir=$srcdir
22885 ac_abs_top_srcdir=$srcdir ;;
22886 *) # Relative name.
22887 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22888 ac_top_srcdir=$ac_top_build_prefix$srcdir
22889 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22891 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22896 # Check for guested configure; otherwise get Cygnus style configure.
22897 if test -f "$ac_srcdir/configure.gnu"; then
22898 ac_sub_configure=$ac_srcdir/configure.gnu
22899 elif test -f "$ac_srcdir/configure"; then
22900 ac_sub_configure=$ac_srcdir/configure
22901 elif test -f "$ac_srcdir/configure.in"; then
22902 # This should be Cygnus configure.
22903 ac_sub_configure=$ac_aux_dir/configure
22905 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22906 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22910 # The recursion is here.
22911 if test -n "$ac_sub_configure"; then
22912 # Make the cache file name correct relative to the subdirectory.
22913 case $cache_file in
22914 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22915 *) # Relative name.
22916 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22919 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22920 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22921 # The eval makes quoting arguments work.
22922 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22923 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22924 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22925 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22926 { (exit 1); exit 1; }; }