fix PR9856, an incorrectly conservative assertion: a global can be
[llvm/stm8.git] / configure
blob20dc65ebc11a344c7febcc3ea55ef56b157e8240
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 3.0svn.
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
24 setopt NO_GLOB_SUBST
25 else
26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
50 rm -f conf$$.sh
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
140 /^X\/\(\/\/\)$/{
141 s//\1/
144 /^X\/\(\/\).*/{
145 s//\1/
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
165 as_func_success () {
166 as_func_return 0
168 as_func_failure () {
169 as_func_return 1
171 as_func_ret_success () {
172 return 0
174 as_func_ret_failure () {
175 return 1
178 exitcode=0
179 if as_func_success; then
181 else
182 exitcode=1
183 echo as_func_success failed.
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 else
206 exitcode=1
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 emulate sh
243 NULLCMD=:
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
247 setopt NO_GLOB_SUBST
248 else
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
255 _ASEOF
256 }; then
257 CONFIG_SHELL=$as_shell
258 as_have_required=yes
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
275 (as_func_return () {
276 (exit $1)
278 as_func_success () {
279 as_func_return 0
281 as_func_failure () {
282 as_func_return 1
284 as_func_ret_success () {
285 return 0
287 as_func_ret_failure () {
288 return 1
291 exitcode=0
292 if as_func_success; then
294 else
295 exitcode=1
296 echo as_func_success failed.
299 if as_func_failure; then
300 exitcode=1
301 echo as_func_failure succeeded.
304 if as_func_ret_success; then
306 else
307 exitcode=1
308 echo as_func_ret_success failed.
311 if as_func_ret_failure; then
312 exitcode=1
313 echo as_func_ret_failure succeeded.
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
318 else
319 exitcode=1
320 echo positional parameters were not saved.
323 test $exitcode = 0) || { (exit 1); exit 1; }
326 as_lineno_1=$LINENO
327 as_lineno_2=$LINENO
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
331 _ASEOF
332 }; then
333 break
338 done
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343 done
344 export CONFIG_SHELL
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
364 (eval "as_func_return () {
365 (exit \$1)
367 as_func_success () {
368 as_func_return 0
370 as_func_failure () {
371 as_func_return 1
373 as_func_ret_success () {
374 return 0
376 as_func_ret_failure () {
377 return 1
380 exitcode=0
381 if as_func_success; then
383 else
384 exitcode=1
385 echo as_func_success failed.
388 if as_func_failure; then
389 exitcode=1
390 echo as_func_failure succeeded.
393 if as_func_ret_success; then
395 else
396 exitcode=1
397 echo as_func_ret_success failed.
400 if as_func_ret_failure; then
401 exitcode=1
402 echo as_func_ret_failure succeeded.
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
407 else
408 exitcode=1
409 echo positional parameters were not saved.
412 test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
416 echo message
421 as_lineno_1=$LINENO
422 as_lineno_2=$LINENO
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
432 # case at line end.
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
436 sed -n '
438 /[$]LINENO/=
439 ' <$as_myself |
440 sed '
441 s/[$]LINENO.*/&-/
442 t lineno
444 :lineno
446 :loop
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448 t loop
449 s/-\n.*//
450 ' >$as_me.lineno &&
451 chmod +x "$as_me.lineno" ||
452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
459 # Exit status is that of the last command.
460 exit
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465 as_dirname=dirname
466 else
467 as_dirname=false
470 ECHO_C= ECHO_N= ECHO_T=
471 case `echo -n x` in
472 -n*)
473 case `echo 'x\c'` in
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
475 *) ECHO_C='\c';;
476 esac;;
478 ECHO_N='-n';;
479 esac
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
483 as_expr=expr
484 else
485 as_expr=false
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
491 else
492 rm -f conf$$.dir
493 mkdir conf$$.dir
495 echo >conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
497 as_ln_s='ln -s'
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
503 as_ln_s='cp -p'
504 elif ln conf$$.file conf$$ 2>/dev/null; then
505 as_ln_s=ln
506 else
507 as_ln_s='cp -p'
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
513 as_mkdir_p=:
514 else
515 test -d ./-p && rmdir ./-p
516 as_mkdir_p=false
519 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
522 #! /bin/sh
523 exit 0
524 _ASEOF
525 chmod +x conf$$.file
526 if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
528 else
529 as_executable_p=:
531 rm -f conf$$.file
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
541 exec 7<&0 </dev/null 6>&1
543 # Name of the host.
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
549 # Initializations.
551 ac_default_prefix=/usr/local
552 ac_clean_files=
553 ac_config_libobj_dir=.
554 LIBOBJS=
555 cross_compiling=no
556 subdirs=
557 MFLAGS=
558 MAKEFLAGS=
559 SHELL=${CONFIG_SHELL-/bin/sh}
561 # Identity of this package.
562 PACKAGE_NAME='llvm'
563 PACKAGE_TARNAME='-llvm-'
564 PACKAGE_VERSION='3.0svn'
565 PACKAGE_STRING='llvm 3.0svn'
566 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
568 ac_unique_file="lib/VMCore/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
571 #include <stdio.h>
572 #if HAVE_SYS_TYPES_H
573 # include <sys/types.h>
574 #endif
575 #if HAVE_SYS_STAT_H
576 # include <sys/stat.h>
577 #endif
578 #if STDC_HEADERS
579 # include <stdlib.h>
580 # include <stddef.h>
581 #else
582 # if HAVE_STDLIB_H
583 # include <stdlib.h>
584 # endif
585 #endif
586 #if HAVE_STRING_H
587 # if !STDC_HEADERS && HAVE_MEMORY_H
588 # include <memory.h>
589 # endif
590 # include <string.h>
591 #endif
592 #if HAVE_STRINGS_H
593 # include <strings.h>
594 #endif
595 #if HAVE_INTTYPES_H
596 # include <inttypes.h>
597 #endif
598 #if HAVE_STDINT_H
599 # include <stdint.h>
600 #endif
601 #if HAVE_UNISTD_H
602 # include <unistd.h>
603 #endif"
605 ac_subst_vars='SHELL
606 PATH_SEPARATOR
607 PACKAGE_NAME
608 PACKAGE_TARNAME
609 PACKAGE_VERSION
610 PACKAGE_STRING
611 PACKAGE_BUGREPORT
612 exec_prefix
613 prefix
614 program_transform_name
615 bindir
616 sbindir
617 libexecdir
618 datarootdir
619 datadir
620 sysconfdir
621 sharedstatedir
622 localstatedir
623 includedir
624 oldincludedir
625 docdir
626 infodir
627 htmldir
628 dvidir
629 pdfdir
630 psdir
631 libdir
632 localedir
633 mandir
634 DEFS
635 ECHO_C
636 ECHO_N
637 ECHO_T
638 LIBS
639 build_alias
640 host_alias
641 target_alias
642 LLVM_COPYRIGHT
643 subdirs
644 ENABLE_POLLY
645 LLVM_HAS_POLLY
646 build
647 build_cpu
648 build_vendor
649 build_os
650 host
651 host_cpu
652 host_vendor
653 host_os
654 target
655 target_cpu
656 target_vendor
657 target_os
659 HOST_OS
660 TARGET_OS
661 LINKALL
662 NOLINKALL
663 LLVM_ON_UNIX
664 LLVM_ON_WIN32
665 ARCH
666 ENDIAN
668 CFLAGS
669 LDFLAGS
670 CPPFLAGS
671 ac_ct_CC
672 EXEEXT
673 OBJEXT
675 GREP
676 EGREP
677 LLVM_CROSS_COMPILING
678 BUILD_CC
679 BUILD_EXEEXT
680 BUILD_CXX
681 CVSBUILD
682 ENABLE_OPTIMIZED
683 ENABLE_PROFILING
684 DISABLE_ASSERTIONS
685 ENABLE_EXPENSIVE_CHECKS
686 EXPENSIVE_CHECKS
687 DEBUG_RUNTIME
688 DEBUG_SYMBOLS
690 TARGET_HAS_JIT
691 ENABLE_DOCS
692 ENABLE_DOXYGEN
693 ENABLE_THREADS
694 ENABLE_PTHREADS
695 ENABLE_PIC
696 ENABLE_SHARED
697 ENABLE_EMBED_STDCXX
698 ENABLE_TIMESTAMPS
699 TARGETS_TO_BUILD
700 LLVM_ENUM_TARGETS
701 LLVM_ENUM_ASM_PRINTERS
702 LLVM_ENUM_ASM_PARSERS
703 LLVM_ENUM_DISASSEMBLERS
704 ENABLE_CBE_PRINTF_A
705 CLANGPATH
706 CLANGXXPATH
707 ENABLE_BUILT_CLANG
708 OPTIMIZE_OPTION
709 EXTRA_OPTIONS
710 BINUTILS_INCDIR
712 CXXFLAGS
713 ac_ct_CXX
715 ifGNUmake
716 LN_S
719 DATE
720 FIND
721 MKDIR
723 RANLIB
728 BINPWD
729 GRAPHVIZ
732 NEATO
733 TWOPI
734 CIRCO
736 DOTTY
737 XDOT_PY
738 PERL
739 HAVE_PERL
740 INSTALL_PROGRAM
741 INSTALL_SCRIPT
742 INSTALL_DATA
743 BZIP2
745 DOXYGEN
746 GROFF
747 GZIPBIN
748 POD2HTML
749 POD2MAN
750 PDFROFF
751 RUNTEST
752 TCLSH
754 OCAMLC
755 OCAMLOPT
756 OCAMLDEP
757 OCAMLDOC
759 HAVE_LINK_VERSION_SCRIPT
760 INSTALL_LTDL_TRUE
761 INSTALL_LTDL_FALSE
762 CONVENIENCE_LTDL_TRUE
763 CONVENIENCE_LTDL_FALSE
764 LIBADD_DL
765 LLVMGCCCOMMAND
766 LLVMGXXCOMMAND
767 LLVMGCC
768 LLVMGXX
769 LLVMCC_OPTION
770 NO_VARIADIC_MACROS
771 NO_MISSING_FIELD_INITIALIZERS
772 USE_UDIS86
773 USE_OPROFILE
774 HAVE_PTHREAD
775 HUGE_VAL_SANITY
776 MMAP_FILE
777 LLVMCC_EMITIR_FLAG
778 LLVMCC1
779 LLVMCC1PLUS
780 LLVMGCCDIR
781 LLVMGCC_LANGS
782 LLVMGCC_DRAGONEGG
783 LLVMCC_DISABLEOPT_FLAGS
784 SHLIBEXT
785 SHLIBPATH_VAR
786 LLVM_PREFIX
787 LLVM_BINDIR
788 LLVM_LIBDIR
789 LLVM_DATADIR
790 LLVM_DOCSDIR
791 LLVM_ETCDIR
792 LLVM_INCLUDEDIR
793 LLVM_INFODIR
794 LLVM_MANDIR
795 LLVM_CONFIGTIME
796 BINDINGS_TO_BUILD
797 ALL_BINDINGS
798 OCAML_LIBDIR
799 ENABLE_VISIBILITY_INLINES_HIDDEN
800 RPATH
801 RDYNAMIC
802 LIBOBJS
803 LTLIBOBJS'
804 ac_subst_files=''
805 ac_precious_vars='build_alias
806 host_alias
807 target_alias
809 CFLAGS
810 LDFLAGS
811 CPPFLAGS
814 CXXFLAGS
815 CCC'
816 ac_subdirs_all='projects/llvm-gcc
817 projects/test-suite
818 projects/llvm-test
819 projects/poolalloc
820 projects/llvm-poolalloc
821 projects/sample
822 projects/privbracket
823 projects/llvm-stacker
824 projects/llvm-reopt
825 projects/llvm-java
826 projects/llvm-tv
827 projects/safecode
828 projects/llvm-kernel
829 tools/polly'
831 # Initialize some variables set by options.
832 ac_init_help=
833 ac_init_version=false
834 # The variables have the same names as the options, with
835 # dashes changed to underlines.
836 cache_file=/dev/null
837 exec_prefix=NONE
838 no_create=
839 no_recursion=
840 prefix=NONE
841 program_prefix=NONE
842 program_suffix=NONE
843 program_transform_name=s,x,x,
844 silent=
845 site=
846 srcdir=
847 verbose=
848 x_includes=NONE
849 x_libraries=NONE
851 # Installation directory options.
852 # These are left unexpanded so users can "make install exec_prefix=/foo"
853 # and all the variables that are supposed to be based on exec_prefix
854 # by default will actually change.
855 # Use braces instead of parens because sh, perl, etc. also accept them.
856 # (The list follows the same order as the GNU Coding Standards.)
857 bindir='${exec_prefix}/bin'
858 sbindir='${exec_prefix}/sbin'
859 libexecdir='${exec_prefix}/libexec'
860 datarootdir='${prefix}/share'
861 datadir='${datarootdir}'
862 sysconfdir='${prefix}/etc'
863 sharedstatedir='${prefix}/com'
864 localstatedir='${prefix}/var'
865 includedir='${prefix}/include'
866 oldincludedir='/usr/include'
867 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
868 infodir='${datarootdir}/info'
869 htmldir='${docdir}'
870 dvidir='${docdir}'
871 pdfdir='${docdir}'
872 psdir='${docdir}'
873 libdir='${exec_prefix}/lib'
874 localedir='${datarootdir}/locale'
875 mandir='${datarootdir}/man'
877 ac_prev=
878 ac_dashdash=
879 for ac_option
881 # If the previous option needs an argument, assign it.
882 if test -n "$ac_prev"; then
883 eval $ac_prev=\$ac_option
884 ac_prev=
885 continue
888 case $ac_option in
889 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
890 *) ac_optarg=yes ;;
891 esac
893 # Accept the important Cygnus configure options, so we can diagnose typos.
895 case $ac_dashdash$ac_option in
897 ac_dashdash=yes ;;
899 -bindir | --bindir | --bindi | --bind | --bin | --bi)
900 ac_prev=bindir ;;
901 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
902 bindir=$ac_optarg ;;
904 -build | --build | --buil | --bui | --bu)
905 ac_prev=build_alias ;;
906 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
907 build_alias=$ac_optarg ;;
909 -cache-file | --cache-file | --cache-fil | --cache-fi \
910 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
911 ac_prev=cache_file ;;
912 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
913 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
914 cache_file=$ac_optarg ;;
916 --config-cache | -C)
917 cache_file=config.cache ;;
919 -datadir | --datadir | --datadi | --datad)
920 ac_prev=datadir ;;
921 -datadir=* | --datadir=* | --datadi=* | --datad=*)
922 datadir=$ac_optarg ;;
924 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
925 | --dataroo | --dataro | --datar)
926 ac_prev=datarootdir ;;
927 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
928 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
929 datarootdir=$ac_optarg ;;
931 -disable-* | --disable-*)
932 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
933 # Reject names that are not valid shell variable names.
934 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
935 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
936 { (exit 1); exit 1; }; }
937 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
938 eval enable_$ac_feature=no ;;
940 -docdir | --docdir | --docdi | --doc | --do)
941 ac_prev=docdir ;;
942 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
943 docdir=$ac_optarg ;;
945 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
946 ac_prev=dvidir ;;
947 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
948 dvidir=$ac_optarg ;;
950 -enable-* | --enable-*)
951 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
952 # Reject names that are not valid shell variable names.
953 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
954 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
955 { (exit 1); exit 1; }; }
956 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
957 eval enable_$ac_feature=\$ac_optarg ;;
959 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
960 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
961 | --exec | --exe | --ex)
962 ac_prev=exec_prefix ;;
963 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
964 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
965 | --exec=* | --exe=* | --ex=*)
966 exec_prefix=$ac_optarg ;;
968 -gas | --gas | --ga | --g)
969 # Obsolete; use --with-gas.
970 with_gas=yes ;;
972 -help | --help | --hel | --he | -h)
973 ac_init_help=long ;;
974 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
975 ac_init_help=recursive ;;
976 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
977 ac_init_help=short ;;
979 -host | --host | --hos | --ho)
980 ac_prev=host_alias ;;
981 -host=* | --host=* | --hos=* | --ho=*)
982 host_alias=$ac_optarg ;;
984 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
985 ac_prev=htmldir ;;
986 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
987 | --ht=*)
988 htmldir=$ac_optarg ;;
990 -includedir | --includedir | --includedi | --included | --include \
991 | --includ | --inclu | --incl | --inc)
992 ac_prev=includedir ;;
993 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
994 | --includ=* | --inclu=* | --incl=* | --inc=*)
995 includedir=$ac_optarg ;;
997 -infodir | --infodir | --infodi | --infod | --info | --inf)
998 ac_prev=infodir ;;
999 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1000 infodir=$ac_optarg ;;
1002 -libdir | --libdir | --libdi | --libd)
1003 ac_prev=libdir ;;
1004 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1005 libdir=$ac_optarg ;;
1007 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1008 | --libexe | --libex | --libe)
1009 ac_prev=libexecdir ;;
1010 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1011 | --libexe=* | --libex=* | --libe=*)
1012 libexecdir=$ac_optarg ;;
1014 -localedir | --localedir | --localedi | --localed | --locale)
1015 ac_prev=localedir ;;
1016 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1017 localedir=$ac_optarg ;;
1019 -localstatedir | --localstatedir | --localstatedi | --localstated \
1020 | --localstate | --localstat | --localsta | --localst | --locals)
1021 ac_prev=localstatedir ;;
1022 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1023 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1024 localstatedir=$ac_optarg ;;
1026 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1027 ac_prev=mandir ;;
1028 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1029 mandir=$ac_optarg ;;
1031 -nfp | --nfp | --nf)
1032 # Obsolete; use --without-fp.
1033 with_fp=no ;;
1035 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1036 | --no-cr | --no-c | -n)
1037 no_create=yes ;;
1039 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1040 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1041 no_recursion=yes ;;
1043 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1044 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1045 | --oldin | --oldi | --old | --ol | --o)
1046 ac_prev=oldincludedir ;;
1047 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1048 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1049 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1050 oldincludedir=$ac_optarg ;;
1052 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1053 ac_prev=prefix ;;
1054 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1055 prefix=$ac_optarg ;;
1057 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1058 | --program-pre | --program-pr | --program-p)
1059 ac_prev=program_prefix ;;
1060 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1061 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1062 program_prefix=$ac_optarg ;;
1064 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1065 | --program-suf | --program-su | --program-s)
1066 ac_prev=program_suffix ;;
1067 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1068 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1069 program_suffix=$ac_optarg ;;
1071 -program-transform-name | --program-transform-name \
1072 | --program-transform-nam | --program-transform-na \
1073 | --program-transform-n | --program-transform- \
1074 | --program-transform | --program-transfor \
1075 | --program-transfo | --program-transf \
1076 | --program-trans | --program-tran \
1077 | --progr-tra | --program-tr | --program-t)
1078 ac_prev=program_transform_name ;;
1079 -program-transform-name=* | --program-transform-name=* \
1080 | --program-transform-nam=* | --program-transform-na=* \
1081 | --program-transform-n=* | --program-transform-=* \
1082 | --program-transform=* | --program-transfor=* \
1083 | --program-transfo=* | --program-transf=* \
1084 | --program-trans=* | --program-tran=* \
1085 | --progr-tra=* | --program-tr=* | --program-t=*)
1086 program_transform_name=$ac_optarg ;;
1088 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1089 ac_prev=pdfdir ;;
1090 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1091 pdfdir=$ac_optarg ;;
1093 -psdir | --psdir | --psdi | --psd | --ps)
1094 ac_prev=psdir ;;
1095 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1096 psdir=$ac_optarg ;;
1098 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1099 | -silent | --silent | --silen | --sile | --sil)
1100 silent=yes ;;
1102 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1103 ac_prev=sbindir ;;
1104 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1105 | --sbi=* | --sb=*)
1106 sbindir=$ac_optarg ;;
1108 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1109 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1110 | --sharedst | --shareds | --shared | --share | --shar \
1111 | --sha | --sh)
1112 ac_prev=sharedstatedir ;;
1113 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1114 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1115 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1116 | --sha=* | --sh=*)
1117 sharedstatedir=$ac_optarg ;;
1119 -site | --site | --sit)
1120 ac_prev=site ;;
1121 -site=* | --site=* | --sit=*)
1122 site=$ac_optarg ;;
1124 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1125 ac_prev=srcdir ;;
1126 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1127 srcdir=$ac_optarg ;;
1129 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1130 | --syscon | --sysco | --sysc | --sys | --sy)
1131 ac_prev=sysconfdir ;;
1132 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1133 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1134 sysconfdir=$ac_optarg ;;
1136 -target | --target | --targe | --targ | --tar | --ta | --t)
1137 ac_prev=target_alias ;;
1138 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1139 target_alias=$ac_optarg ;;
1141 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1142 verbose=yes ;;
1144 -version | --version | --versio | --versi | --vers | -V)
1145 ac_init_version=: ;;
1147 -with-* | --with-*)
1148 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1149 # Reject names that are not valid shell variable names.
1150 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1151 { echo "$as_me: error: invalid package name: $ac_package" >&2
1152 { (exit 1); exit 1; }; }
1153 ac_package=`echo $ac_package| sed 's/-/_/g'`
1154 eval with_$ac_package=\$ac_optarg ;;
1156 -without-* | --without-*)
1157 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1158 # Reject names that are not valid shell variable names.
1159 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1160 { echo "$as_me: error: invalid package name: $ac_package" >&2
1161 { (exit 1); exit 1; }; }
1162 ac_package=`echo $ac_package | sed 's/-/_/g'`
1163 eval with_$ac_package=no ;;
1165 --x)
1166 # Obsolete; use --with-x.
1167 with_x=yes ;;
1169 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1170 | --x-incl | --x-inc | --x-in | --x-i)
1171 ac_prev=x_includes ;;
1172 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1173 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1174 x_includes=$ac_optarg ;;
1176 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1177 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1178 ac_prev=x_libraries ;;
1179 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1180 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1181 x_libraries=$ac_optarg ;;
1183 -*) { echo "$as_me: error: unrecognized option: $ac_option
1184 Try \`$0 --help' for more information." >&2
1185 { (exit 1); exit 1; }; }
1188 *=*)
1189 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1190 # Reject names that are not valid shell variable names.
1191 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1192 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1193 { (exit 1); exit 1; }; }
1194 eval $ac_envvar=\$ac_optarg
1195 export $ac_envvar ;;
1198 # FIXME: should be removed in autoconf 3.0.
1199 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1200 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1201 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1202 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1205 esac
1206 done
1208 if test -n "$ac_prev"; then
1209 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1210 { echo "$as_me: error: missing argument to $ac_option" >&2
1211 { (exit 1); exit 1; }; }
1214 # Be sure to have absolute directory names.
1215 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1216 datadir sysconfdir sharedstatedir localstatedir includedir \
1217 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1218 libdir localedir mandir
1220 eval ac_val=\$$ac_var
1221 case $ac_val in
1222 [\\/$]* | ?:[\\/]* ) continue;;
1223 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1224 esac
1225 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1226 { (exit 1); exit 1; }; }
1227 done
1229 # There might be people who depend on the old broken behavior: `$host'
1230 # used to hold the argument of --host etc.
1231 # FIXME: To remove some day.
1232 build=$build_alias
1233 host=$host_alias
1234 target=$target_alias
1236 # FIXME: To remove some day.
1237 if test "x$host_alias" != x; then
1238 if test "x$build_alias" = x; then
1239 cross_compiling=maybe
1240 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1241 If a cross compiler is detected then cross compile mode will be used." >&2
1242 elif test "x$build_alias" != "x$host_alias"; then
1243 cross_compiling=yes
1247 ac_tool_prefix=
1248 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1250 test "$silent" = yes && exec 6>/dev/null
1253 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1254 ac_ls_di=`ls -di .` &&
1255 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1256 { echo "$as_me: error: Working directory cannot be determined" >&2
1257 { (exit 1); exit 1; }; }
1258 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1259 { echo "$as_me: error: pwd does not report name of working directory" >&2
1260 { (exit 1); exit 1; }; }
1263 # Find the source files, if location was not specified.
1264 if test -z "$srcdir"; then
1265 ac_srcdir_defaulted=yes
1266 # Try the directory containing this script, then the parent directory.
1267 ac_confdir=`$as_dirname -- "$0" ||
1268 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1269 X"$0" : 'X\(//\)[^/]' \| \
1270 X"$0" : 'X\(//\)$' \| \
1271 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1272 echo X"$0" |
1273 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1274 s//\1/
1277 /^X\(\/\/\)[^/].*/{
1278 s//\1/
1281 /^X\(\/\/\)$/{
1282 s//\1/
1285 /^X\(\/\).*/{
1286 s//\1/
1289 s/.*/./; q'`
1290 srcdir=$ac_confdir
1291 if test ! -r "$srcdir/$ac_unique_file"; then
1292 srcdir=..
1294 else
1295 ac_srcdir_defaulted=no
1297 if test ! -r "$srcdir/$ac_unique_file"; then
1298 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1299 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1300 { (exit 1); exit 1; }; }
1302 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1303 ac_abs_confdir=`(
1304 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1305 { (exit 1); exit 1; }; }
1306 pwd)`
1307 # When building in place, set srcdir=.
1308 if test "$ac_abs_confdir" = "$ac_pwd"; then
1309 srcdir=.
1311 # Remove unnecessary trailing slashes from srcdir.
1312 # Double slashes in file names in object file debugging info
1313 # mess up M-x gdb in Emacs.
1314 case $srcdir in
1315 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1316 esac
1317 for ac_var in $ac_precious_vars; do
1318 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1319 eval ac_env_${ac_var}_value=\$${ac_var}
1320 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1321 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1322 done
1325 # Report the --help message.
1327 if test "$ac_init_help" = "long"; then
1328 # Omit some internal or obsolete options to make the list less imposing.
1329 # This message is too long to be a string in the A/UX 3.1 sh.
1330 cat <<_ACEOF
1331 \`configure' configures llvm 3.0svn to adapt to many kinds of systems.
1333 Usage: $0 [OPTION]... [VAR=VALUE]...
1335 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1336 VAR=VALUE. See below for descriptions of some of the useful variables.
1338 Defaults for the options are specified in brackets.
1340 Configuration:
1341 -h, --help display this help and exit
1342 --help=short display options specific to this package
1343 --help=recursive display the short help of all the included packages
1344 -V, --version display version information and exit
1345 -q, --quiet, --silent do not print \`checking...' messages
1346 --cache-file=FILE cache test results in FILE [disabled]
1347 -C, --config-cache alias for \`--cache-file=config.cache'
1348 -n, --no-create do not create output files
1349 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1351 Installation directories:
1352 --prefix=PREFIX install architecture-independent files in PREFIX
1353 [$ac_default_prefix]
1354 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1355 [PREFIX]
1357 By default, \`make install' will install all the files in
1358 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1359 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1360 for instance \`--prefix=\$HOME'.
1362 For better control, use the options below.
1364 Fine tuning of the installation directories:
1365 --bindir=DIR user executables [EPREFIX/bin]
1366 --sbindir=DIR system admin executables [EPREFIX/sbin]
1367 --libexecdir=DIR program executables [EPREFIX/libexec]
1368 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1369 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1370 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1371 --libdir=DIR object code libraries [EPREFIX/lib]
1372 --includedir=DIR C header files [PREFIX/include]
1373 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1374 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1375 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1376 --infodir=DIR info documentation [DATAROOTDIR/info]
1377 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1378 --mandir=DIR man documentation [DATAROOTDIR/man]
1379 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1380 --htmldir=DIR html documentation [DOCDIR]
1381 --dvidir=DIR dvi documentation [DOCDIR]
1382 --pdfdir=DIR pdf documentation [DOCDIR]
1383 --psdir=DIR ps documentation [DOCDIR]
1384 _ACEOF
1386 cat <<\_ACEOF
1388 System types:
1389 --build=BUILD configure for building on BUILD [guessed]
1390 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1391 --target=TARGET configure for building compilers for TARGET [HOST]
1392 _ACEOF
1395 if test -n "$ac_init_help"; then
1396 case $ac_init_help in
1397 short | recursive ) echo "Configuration of llvm 3.0svn:";;
1398 esac
1399 cat <<\_ACEOF
1401 Optional Features:
1402 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1403 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1404 --enable-polly Use polly if available (default is YES)
1405 --enable-optimized Compile with optimizations enabled (default is NO)
1406 --enable-profiling Compile with profiling enabled (default is NO)
1407 --enable-assertions Compile with assertion checks enabled (default is
1408 YES)
1409 --enable-expensive-checks
1410 Compile with expensive debug checks enabled (default
1411 is NO)
1412 --enable-debug-runtime Build runtime libs with debug symbols (default is
1414 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1415 optimization is on and YES if it's off)
1416 --enable-jit Enable Just In Time Compiling (default is YES)
1417 --enable-docs Build documents (default is YES)
1418 --enable-doxygen Build doxygen documentation (default is NO)
1419 --enable-threads Use threads if available (default is YES)
1420 --enable-pthreads Use pthreads if available (default is YES)
1421 --enable-pic Build LLVM with Position Independent Code (default
1422 is YES)
1423 --enable-shared Build a shared library and link tools against it
1424 (default is NO)
1425 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1426 Win32 DLL (default is YES)
1427 --enable-timestamps Enable embedding timestamp information in build
1428 (default is YES)
1429 --enable-targets Build specific host targets: all or
1430 target1,target2,... Valid targets are: host, x86,
1431 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1432 xcore, msp430, systemz, blackfin, ptx, cbe, and cpp
1433 (default=all)
1434 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1435 %a (default is YES)
1436 --enable-bindings Build specific language bindings:
1437 all,auto,none,{binding-name} (default=auto)
1438 --enable-libffi Check for the presence of libffi (default is NO)
1439 --enable-ltdl-install install libltdl
1441 Optional Packages:
1442 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1443 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1444 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1445 searches PATH)
1446 --with-llvmgcc Specify location of llvm-gcc driver (default
1447 searches PATH)
1448 --with-llvmgxx Specify location of llvm-g++ driver (default
1449 searches PATH)
1450 --with-clang Specify location of clang compiler (default is
1451 --with-built-clang)
1452 --with-built-clang Use the compiled Clang as the LLVM compiler
1453 (default=check)
1454 --with-optimize-option Select the compiler options to use for optimized
1455 builds
1456 --with-extra-options Specify additional options to compile LLVM with
1457 --with-ocaml-libdir Specify install location for ocaml bindings (default
1458 is stdlib)
1459 --with-clang-resource-dir
1460 Relative directory from the Clang binary for
1461 resource files
1462 --with-c-include-dirs Colon separated list of directories clang will
1463 search for headers
1464 --with-cxx-include-root Directory with the libstdc++ headers.
1465 --with-cxx-include-arch Architecture of the libstdc++ headers.
1466 --with-cxx-include-32bit-dir
1467 32 bit multilib dir.
1468 --with-cxx-include-64bit-dir
1469 64 bit multilib directory.
1470 --with-binutils-include Specify path to binutils/include/ containing
1471 plugin-api.h file for gold plugin.
1472 --with-tclinclude directory where tcl headers are
1473 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1474 clang, or none; default=check)
1475 --with-udis86=<path> Use udis86 external x86 disassembler library
1476 --with-oprofile=<prefix>
1477 Tell OProfile >= 0.9.4 how to symbolize JIT output
1479 Some influential environment variables:
1480 CC C compiler command
1481 CFLAGS C compiler flags
1482 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1483 nonstandard directory <lib dir>
1484 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1485 you have headers in a nonstandard directory <include dir>
1486 CPP C preprocessor
1487 CXX C++ compiler command
1488 CXXFLAGS C++ compiler flags
1490 Use these variables to override the choices made by `configure' or to help
1491 it to find libraries and programs with nonstandard names/locations.
1493 Report bugs to <llvmbugs@cs.uiuc.edu>.
1494 _ACEOF
1495 ac_status=$?
1498 if test "$ac_init_help" = "recursive"; then
1499 # If there are subdirs, report their specific --help.
1500 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1501 test -d "$ac_dir" || continue
1502 ac_builddir=.
1504 case "$ac_dir" in
1505 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1507 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1508 # A ".." for each directory in $ac_dir_suffix.
1509 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1510 case $ac_top_builddir_sub in
1511 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1512 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1513 esac ;;
1514 esac
1515 ac_abs_top_builddir=$ac_pwd
1516 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1517 # for backward compatibility:
1518 ac_top_builddir=$ac_top_build_prefix
1520 case $srcdir in
1521 .) # We are building in place.
1522 ac_srcdir=.
1523 ac_top_srcdir=$ac_top_builddir_sub
1524 ac_abs_top_srcdir=$ac_pwd ;;
1525 [\\/]* | ?:[\\/]* ) # Absolute name.
1526 ac_srcdir=$srcdir$ac_dir_suffix;
1527 ac_top_srcdir=$srcdir
1528 ac_abs_top_srcdir=$srcdir ;;
1529 *) # Relative name.
1530 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1531 ac_top_srcdir=$ac_top_build_prefix$srcdir
1532 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1533 esac
1534 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1536 cd "$ac_dir" || { ac_status=$?; continue; }
1537 # Check for guested configure.
1538 if test -f "$ac_srcdir/configure.gnu"; then
1539 echo &&
1540 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1541 elif test -f "$ac_srcdir/configure"; then
1542 echo &&
1543 $SHELL "$ac_srcdir/configure" --help=recursive
1544 else
1545 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1546 fi || ac_status=$?
1547 cd "$ac_pwd" || { ac_status=$?; break; }
1548 done
1551 test -n "$ac_init_help" && exit $ac_status
1552 if $ac_init_version; then
1553 cat <<\_ACEOF
1554 llvm configure 3.0svn
1555 generated by GNU Autoconf 2.60
1557 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1558 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1559 This configure script is free software; the Free Software Foundation
1560 gives unlimited permission to copy, distribute and modify it.
1562 Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
1563 _ACEOF
1564 exit
1566 cat >config.log <<_ACEOF
1567 This file contains any messages produced by compilers while
1568 running configure, to aid debugging if configure makes a mistake.
1570 It was created by llvm $as_me 3.0svn, which was
1571 generated by GNU Autoconf 2.60. Invocation command line was
1573 $ $0 $@
1575 _ACEOF
1576 exec 5>>config.log
1578 cat <<_ASUNAME
1579 ## --------- ##
1580 ## Platform. ##
1581 ## --------- ##
1583 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1584 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1585 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1586 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1587 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1589 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1590 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1592 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1593 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1594 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1595 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1596 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1597 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1598 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1600 _ASUNAME
1602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1603 for as_dir in $PATH
1605 IFS=$as_save_IFS
1606 test -z "$as_dir" && as_dir=.
1607 echo "PATH: $as_dir"
1608 done
1609 IFS=$as_save_IFS
1611 } >&5
1613 cat >&5 <<_ACEOF
1616 ## ----------- ##
1617 ## Core tests. ##
1618 ## ----------- ##
1620 _ACEOF
1623 # Keep a trace of the command line.
1624 # Strip out --no-create and --no-recursion so they do not pile up.
1625 # Strip out --silent because we don't want to record it for future runs.
1626 # Also quote any args containing shell meta-characters.
1627 # Make two passes to allow for proper duplicate-argument suppression.
1628 ac_configure_args=
1629 ac_configure_args0=
1630 ac_configure_args1=
1631 ac_must_keep_next=false
1632 for ac_pass in 1 2
1634 for ac_arg
1636 case $ac_arg in
1637 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1638 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1639 | -silent | --silent | --silen | --sile | --sil)
1640 continue ;;
1641 *\'*)
1642 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1643 esac
1644 case $ac_pass in
1645 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1647 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1648 if test $ac_must_keep_next = true; then
1649 ac_must_keep_next=false # Got value, back to normal.
1650 else
1651 case $ac_arg in
1652 *=* | --config-cache | -C | -disable-* | --disable-* \
1653 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1654 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1655 | -with-* | --with-* | -without-* | --without-* | --x)
1656 case "$ac_configure_args0 " in
1657 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1658 esac
1660 -* ) ac_must_keep_next=true ;;
1661 esac
1663 ac_configure_args="$ac_configure_args '$ac_arg'"
1665 esac
1666 done
1667 done
1668 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1669 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1671 # When interrupted or exit'd, cleanup temporary files, and complete
1672 # config.log. We remove comments because anyway the quotes in there
1673 # would cause problems or look ugly.
1674 # WARNING: Use '\'' to represent an apostrophe within the trap.
1675 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1676 trap 'exit_status=$?
1677 # Save into config.log some information that might help in debugging.
1679 echo
1681 cat <<\_ASBOX
1682 ## ---------------- ##
1683 ## Cache variables. ##
1684 ## ---------------- ##
1685 _ASBOX
1686 echo
1687 # The following way of writing the cache mishandles newlines in values,
1689 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1690 eval ac_val=\$$ac_var
1691 case $ac_val in #(
1692 *${as_nl}*)
1693 case $ac_var in #(
1694 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1695 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1696 esac
1697 case $ac_var in #(
1698 _ | IFS | as_nl) ;; #(
1699 *) $as_unset $ac_var ;;
1700 esac ;;
1701 esac
1702 done
1703 (set) 2>&1 |
1704 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1705 *${as_nl}ac_space=\ *)
1706 sed -n \
1707 "s/'\''/'\''\\\\'\'''\''/g;
1708 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1709 ;; #(
1711 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1713 esac |
1714 sort
1716 echo
1718 cat <<\_ASBOX
1719 ## ----------------- ##
1720 ## Output variables. ##
1721 ## ----------------- ##
1722 _ASBOX
1723 echo
1724 for ac_var in $ac_subst_vars
1726 eval ac_val=\$$ac_var
1727 case $ac_val in
1728 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1729 esac
1730 echo "$ac_var='\''$ac_val'\''"
1731 done | sort
1732 echo
1734 if test -n "$ac_subst_files"; then
1735 cat <<\_ASBOX
1736 ## ------------------- ##
1737 ## File substitutions. ##
1738 ## ------------------- ##
1739 _ASBOX
1740 echo
1741 for ac_var in $ac_subst_files
1743 eval ac_val=\$$ac_var
1744 case $ac_val in
1745 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1746 esac
1747 echo "$ac_var='\''$ac_val'\''"
1748 done | sort
1749 echo
1752 if test -s confdefs.h; then
1753 cat <<\_ASBOX
1754 ## ----------- ##
1755 ## confdefs.h. ##
1756 ## ----------- ##
1757 _ASBOX
1758 echo
1759 cat confdefs.h
1760 echo
1762 test "$ac_signal" != 0 &&
1763 echo "$as_me: caught signal $ac_signal"
1764 echo "$as_me: exit $exit_status"
1765 } >&5
1766 rm -f core *.core core.conftest.* &&
1767 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1768 exit $exit_status
1770 for ac_signal in 1 2 13 15; do
1771 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1772 done
1773 ac_signal=0
1775 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1776 rm -f -r conftest* confdefs.h
1778 # Predefined preprocessor variables.
1780 cat >>confdefs.h <<_ACEOF
1781 #define PACKAGE_NAME "$PACKAGE_NAME"
1782 _ACEOF
1785 cat >>confdefs.h <<_ACEOF
1786 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1787 _ACEOF
1790 cat >>confdefs.h <<_ACEOF
1791 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1792 _ACEOF
1795 cat >>confdefs.h <<_ACEOF
1796 #define PACKAGE_STRING "$PACKAGE_STRING"
1797 _ACEOF
1800 cat >>confdefs.h <<_ACEOF
1801 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1802 _ACEOF
1805 # Let the site file select an alternate cache file if it wants to.
1806 # Prefer explicitly selected file to automatically selected ones.
1807 if test -n "$CONFIG_SITE"; then
1808 set x "$CONFIG_SITE"
1809 elif test "x$prefix" != xNONE; then
1810 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1811 else
1812 set x "$ac_default_prefix/share/config.site" \
1813 "$ac_default_prefix/etc/config.site"
1815 shift
1816 for ac_site_file
1818 if test -r "$ac_site_file"; then
1819 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1820 echo "$as_me: loading site script $ac_site_file" >&6;}
1821 sed 's/^/| /' "$ac_site_file" >&5
1822 . "$ac_site_file"
1824 done
1826 if test -r "$cache_file"; then
1827 # Some versions of bash will fail to source /dev/null (special
1828 # files actually), so we avoid doing that.
1829 if test -f "$cache_file"; then
1830 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1831 echo "$as_me: loading cache $cache_file" >&6;}
1832 case $cache_file in
1833 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1834 *) . "./$cache_file";;
1835 esac
1837 else
1838 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1839 echo "$as_me: creating cache $cache_file" >&6;}
1840 >$cache_file
1843 # Check that the precious variables saved in the cache have kept the same
1844 # value.
1845 ac_cache_corrupted=false
1846 for ac_var in $ac_precious_vars; do
1847 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1848 eval ac_new_set=\$ac_env_${ac_var}_set
1849 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1850 eval ac_new_val=\$ac_env_${ac_var}_value
1851 case $ac_old_set,$ac_new_set in
1852 set,)
1853 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1854 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1855 ac_cache_corrupted=: ;;
1856 ,set)
1857 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1858 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1859 ac_cache_corrupted=: ;;
1860 ,);;
1862 if test "x$ac_old_val" != "x$ac_new_val"; then
1863 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1864 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1865 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1866 echo "$as_me: former value: $ac_old_val" >&2;}
1867 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1868 echo "$as_me: current value: $ac_new_val" >&2;}
1869 ac_cache_corrupted=:
1870 fi;;
1871 esac
1872 # Pass precious variables to config.status.
1873 if test "$ac_new_set" = set; then
1874 case $ac_new_val in
1875 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1876 *) ac_arg=$ac_var=$ac_new_val ;;
1877 esac
1878 case " $ac_configure_args " in
1879 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1880 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1881 esac
1883 done
1884 if $ac_cache_corrupted; then
1885 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1886 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1887 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1888 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1889 { (exit 1); exit 1; }; }
1916 ac_ext=c
1917 ac_cpp='$CPP $CPPFLAGS'
1918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1924 LLVM_COPYRIGHT="Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign."
1932 ac_aux_dir=
1933 for ac_dir in autoconf "$srcdir"/autoconf; do
1934 if test -f "$ac_dir/install-sh"; then
1935 ac_aux_dir=$ac_dir
1936 ac_install_sh="$ac_aux_dir/install-sh -c"
1937 break
1938 elif test -f "$ac_dir/install.sh"; then
1939 ac_aux_dir=$ac_dir
1940 ac_install_sh="$ac_aux_dir/install.sh -c"
1941 break
1942 elif test -f "$ac_dir/shtool"; then
1943 ac_aux_dir=$ac_dir
1944 ac_install_sh="$ac_aux_dir/shtool install -c"
1945 break
1947 done
1948 if test -z "$ac_aux_dir"; then
1949 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1950 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1951 { (exit 1); exit 1; }; }
1954 # These three variables are undocumented and unsupported,
1955 # and are intended to be withdrawn in a future Autoconf release.
1956 # They can cause serious problems if a builder's source tree is in a directory
1957 # whose full name contains unusual characters.
1958 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1959 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1960 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1964 if test ${srcdir} != "." ; then
1965 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1966 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1967 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1968 { (exit 1); exit 1; }; }
1974 if test -d ${srcdir}/projects/llvm-gcc ; then
1975 subdirs="$subdirs projects/llvm-gcc"
1979 if test -d ${srcdir}/projects/test-suite ; then
1980 subdirs="$subdirs projects/test-suite"
1984 if test -d ${srcdir}/projects/llvm-test ; then
1985 subdirs="$subdirs projects/llvm-test"
1989 if test -d ${srcdir}/projects/poolalloc ; then
1990 subdirs="$subdirs projects/poolalloc"
1994 if test -d ${srcdir}/projects/llvm-poolalloc ; then
1995 subdirs="$subdirs projects/llvm-poolalloc"
1999 for i in `ls ${srcdir}/projects`
2001 if test -d ${srcdir}/projects/${i} ; then
2002 case ${i} in
2003 sample) subdirs="$subdirs projects/sample"
2005 privbracket) subdirs="$subdirs projects/privbracket"
2007 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2009 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2011 llvm-java) subdirs="$subdirs projects/llvm-java"
2013 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2015 safecode) subdirs="$subdirs projects/safecode"
2017 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2019 llvm-gcc) ;;
2020 test-suite) ;;
2021 llvm-test) ;;
2022 poolalloc) ;;
2023 llvm-poolalloc) ;;
2025 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2026 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2028 esac
2030 done
2032 # Check whether --enable-polly was given.
2033 if test "${enable_polly+set}" = set; then
2034 enableval=$enable_polly;
2035 else
2036 enableval=default
2039 case "$enableval" in
2040 yes) ENABLE_POLLY=1
2042 no) ENABLE_POLLY=0
2044 default) ENABLE_POLLY=1
2046 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
2047 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
2048 { (exit 1); exit 1; }; } ;;
2049 esac
2052 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
2053 LLVM_HAS_POLLY=1
2055 subdirs="$subdirs tools/polly"
2060 # Make sure we can run config.sub.
2061 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2062 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2063 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2064 { (exit 1); exit 1; }; }
2066 { echo "$as_me:$LINENO: checking build system type" >&5
2067 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2068 if test "${ac_cv_build+set}" = set; then
2069 echo $ECHO_N "(cached) $ECHO_C" >&6
2070 else
2071 ac_build_alias=$build_alias
2072 test "x$ac_build_alias" = x &&
2073 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2074 test "x$ac_build_alias" = x &&
2075 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2076 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2077 { (exit 1); exit 1; }; }
2078 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2079 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2080 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2081 { (exit 1); exit 1; }; }
2084 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2085 echo "${ECHO_T}$ac_cv_build" >&6; }
2086 case $ac_cv_build in
2087 *-*-*) ;;
2088 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2089 echo "$as_me: error: invalid value of canonical build" >&2;}
2090 { (exit 1); exit 1; }; };;
2091 esac
2092 build=$ac_cv_build
2093 ac_save_IFS=$IFS; IFS='-'
2094 set x $ac_cv_build
2095 shift
2096 build_cpu=$1
2097 build_vendor=$2
2098 shift; shift
2099 # Remember, the first character of IFS is used to create $*,
2100 # except with old shells:
2101 build_os=$*
2102 IFS=$ac_save_IFS
2103 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2106 { echo "$as_me:$LINENO: checking host system type" >&5
2107 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2108 if test "${ac_cv_host+set}" = set; then
2109 echo $ECHO_N "(cached) $ECHO_C" >&6
2110 else
2111 if test "x$host_alias" = x; then
2112 ac_cv_host=$ac_cv_build
2113 else
2114 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2115 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2116 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2117 { (exit 1); exit 1; }; }
2121 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2122 echo "${ECHO_T}$ac_cv_host" >&6; }
2123 case $ac_cv_host in
2124 *-*-*) ;;
2125 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2126 echo "$as_me: error: invalid value of canonical host" >&2;}
2127 { (exit 1); exit 1; }; };;
2128 esac
2129 host=$ac_cv_host
2130 ac_save_IFS=$IFS; IFS='-'
2131 set x $ac_cv_host
2132 shift
2133 host_cpu=$1
2134 host_vendor=$2
2135 shift; shift
2136 # Remember, the first character of IFS is used to create $*,
2137 # except with old shells:
2138 host_os=$*
2139 IFS=$ac_save_IFS
2140 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2143 { echo "$as_me:$LINENO: checking target system type" >&5
2144 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2145 if test "${ac_cv_target+set}" = set; then
2146 echo $ECHO_N "(cached) $ECHO_C" >&6
2147 else
2148 if test "x$target_alias" = x; then
2149 ac_cv_target=$ac_cv_host
2150 else
2151 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2152 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2153 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2154 { (exit 1); exit 1; }; }
2158 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2159 echo "${ECHO_T}$ac_cv_target" >&6; }
2160 case $ac_cv_target in
2161 *-*-*) ;;
2162 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2163 echo "$as_me: error: invalid value of canonical target" >&2;}
2164 { (exit 1); exit 1; }; };;
2165 esac
2166 target=$ac_cv_target
2167 ac_save_IFS=$IFS; IFS='-'
2168 set x $ac_cv_target
2169 shift
2170 target_cpu=$1
2171 target_vendor=$2
2172 shift; shift
2173 # Remember, the first character of IFS is used to create $*,
2174 # except with old shells:
2175 target_os=$*
2176 IFS=$ac_save_IFS
2177 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2180 # The aliases save the names the user supplied, while $host etc.
2181 # will get canonicalized.
2182 test -n "$target_alias" &&
2183 test "$program_prefix$program_suffix$program_transform_name" = \
2184 NONENONEs,x,x, &&
2185 program_prefix=${target_alias}-
2187 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2188 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2189 if test "${llvm_cv_os_type+set}" = set; then
2190 echo $ECHO_N "(cached) $ECHO_C" >&6
2191 else
2192 case $host in
2193 *-*-aix*)
2194 llvm_cv_link_all_option="-Wl,--whole-archive"
2195 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2196 llvm_cv_os_type="AIX"
2197 llvm_cv_platform_type="Unix" ;;
2198 *-*-irix*)
2199 llvm_cv_link_all_option="-Wl,--whole-archive"
2200 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2201 llvm_cv_os_type="IRIX"
2202 llvm_cv_platform_type="Unix" ;;
2203 *-*-cygwin*)
2204 llvm_cv_link_all_option="-Wl,--whole-archive"
2205 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2206 llvm_cv_os_type="Cygwin"
2207 llvm_cv_platform_type="Unix" ;;
2208 *-*-darwin*)
2209 llvm_cv_link_all_option="-Wl,-all_load"
2210 llvm_cv_no_link_all_option="-Wl,-noall_load"
2211 llvm_cv_os_type="Darwin"
2212 llvm_cv_platform_type="Unix" ;;
2213 *-*-minix*)
2214 llvm_cv_link_all_option="-Wl,-all_load"
2215 llvm_cv_no_link_all_option="-Wl,-noall_load"
2216 llvm_cv_os_type="Minix"
2217 llvm_cv_platform_type="Unix" ;;
2218 *-*-freebsd*)
2219 llvm_cv_link_all_option="-Wl,--whole-archive"
2220 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2221 llvm_cv_os_type="FreeBSD"
2222 llvm_cv_platform_type="Unix" ;;
2223 *-*-openbsd*)
2224 llvm_cv_link_all_option="-Wl,--whole-archive"
2225 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2226 llvm_cv_os_type="OpenBSD"
2227 llvm_cv_platform_type="Unix" ;;
2228 *-*-netbsd*)
2229 llvm_cv_link_all_option="-Wl,--whole-archive"
2230 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2231 llvm_cv_os_type="NetBSD"
2232 llvm_cv_platform_type="Unix" ;;
2233 *-*-dragonfly*)
2234 llvm_cv_link_all_option="-Wl,--whole-archive"
2235 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2236 llvm_cv_os_type="DragonFly"
2237 llvm_cv_platform_type="Unix" ;;
2238 *-*-hpux*)
2239 llvm_cv_link_all_option="-Wl,--whole-archive"
2240 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2241 llvm_cv_os_type="HP-UX"
2242 llvm_cv_platform_type="Unix" ;;
2243 *-*-interix*)
2244 llvm_cv_link_all_option="-Wl,--whole-archive"
2245 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2246 llvm_cv_os_type="Interix"
2247 llvm_cv_platform_type="Unix" ;;
2248 *-*-linux*)
2249 llvm_cv_link_all_option="-Wl,--whole-archive"
2250 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2251 llvm_cv_os_type="Linux"
2252 llvm_cv_platform_type="Unix" ;;
2253 *-*-solaris*)
2254 llvm_cv_link_all_option="-Wl,-z,allextract"
2255 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2256 llvm_cv_os_type="SunOS"
2257 llvm_cv_platform_type="Unix" ;;
2258 *-*-auroraux*)
2259 llvm_cv_link_all_option="-Wl,-z,allextract"
2260 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2261 llvm_cv_os_type="AuroraUX"
2262 llvm_cv_platform_type="Unix" ;;
2263 *-*-win32*)
2264 llvm_cv_link_all_option="-Wl,--whole-archive"
2265 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2266 llvm_cv_os_type="Win32"
2267 llvm_cv_platform_type="Win32" ;;
2268 *-*-mingw*)
2269 llvm_cv_link_all_option="-Wl,--whole-archive"
2270 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2271 llvm_cv_os_type="MingW"
2272 llvm_cv_platform_type="Win32" ;;
2273 *-*-haiku*)
2274 llvm_cv_link_all_option="-Wl,--whole-archive"
2275 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2276 llvm_cv_os_type="Haiku"
2277 llvm_cv_platform_type="Unix" ;;
2278 *-unknown-eabi*)
2279 llvm_cv_link_all_option="-Wl,--whole-archive"
2280 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2281 llvm_cv_os_type="Freestanding"
2282 llvm_cv_platform_type="Unix" ;;
2283 *-unknown-elf*)
2284 llvm_cv_link_all_option="-Wl,--whole-archive"
2285 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2286 llvm_cv_os_type="Freestanding"
2287 llvm_cv_platform_type="Unix" ;;
2289 llvm_cv_link_all_option=""
2290 llvm_cv_no_link_all_option=""
2291 llvm_cv_os_type="Unknown"
2292 llvm_cv_platform_type="Unknown" ;;
2293 esac
2295 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2296 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2298 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2299 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2300 if test "${llvm_cv_target_os_type+set}" = set; then
2301 echo $ECHO_N "(cached) $ECHO_C" >&6
2302 else
2303 case $target in
2304 *-*-aix*)
2305 llvm_cv_target_os_type="AIX" ;;
2306 *-*-irix*)
2307 llvm_cv_target_os_type="IRIX" ;;
2308 *-*-cygwin*)
2309 llvm_cv_target_os_type="Cygwin" ;;
2310 *-*-darwin*)
2311 llvm_cv_target_os_type="Darwin" ;;
2312 *-*-minix*)
2313 llvm_cv_target_os_type="Minix" ;;
2314 *-*-freebsd*)
2315 llvm_cv_target_os_type="FreeBSD" ;;
2316 *-*-openbsd*)
2317 llvm_cv_target_os_type="OpenBSD" ;;
2318 *-*-netbsd*)
2319 llvm_cv_target_os_type="NetBSD" ;;
2320 *-*-dragonfly*)
2321 llvm_cv_target_os_type="DragonFly" ;;
2322 *-*-hpux*)
2323 llvm_cv_target_os_type="HP-UX" ;;
2324 *-*-interix*)
2325 llvm_cv_target_os_type="Interix" ;;
2326 *-*-linux*)
2327 llvm_cv_target_os_type="Linux" ;;
2328 *-*-solaris*)
2329 llvm_cv_target_os_type="SunOS" ;;
2330 *-*-auroraux*)
2331 llvm_cv_target_os_type="AuroraUX" ;;
2332 *-*-win32*)
2333 llvm_cv_target_os_type="Win32" ;;
2334 *-*-mingw*)
2335 llvm_cv_target_os_type="MingW" ;;
2336 *-*-haiku*)
2337 llvm_cv_target_os_type="Haiku" ;;
2338 *-unknown-eabi*)
2339 llvm_cv_target_os_type="Freestanding" ;;
2341 llvm_cv_target_os_type="Unknown" ;;
2342 esac
2344 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2345 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2347 if test "$llvm_cv_os_type" = "Unknown" ; then
2348 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2349 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2350 { (exit 1); exit 1; }; }
2353 OS=$llvm_cv_os_type
2355 HOST_OS=$llvm_cv_os_type
2357 TARGET_OS=$llvm_cv_target_os_type
2360 LINKALL=$llvm_cv_link_all_option
2362 NOLINKALL=$llvm_cv_no_link_all_option
2365 case $llvm_cv_platform_type in
2366 Unix)
2368 cat >>confdefs.h <<\_ACEOF
2369 #define LLVM_ON_UNIX 1
2370 _ACEOF
2372 LLVM_ON_UNIX=1
2374 LLVM_ON_WIN32=0
2377 Win32)
2379 cat >>confdefs.h <<\_ACEOF
2380 #define LLVM_ON_WIN32 1
2381 _ACEOF
2383 LLVM_ON_UNIX=0
2385 LLVM_ON_WIN32=1
2388 esac
2390 { echo "$as_me:$LINENO: checking target architecture" >&5
2391 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2392 if test "${llvm_cv_target_arch+set}" = set; then
2393 echo $ECHO_N "(cached) $ECHO_C" >&6
2394 else
2395 case $target in
2396 i?86-*) llvm_cv_target_arch="x86" ;;
2397 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2398 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2399 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2400 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2401 arm*-*) llvm_cv_target_arch="ARM" ;;
2402 mips-*) llvm_cv_target_arch="Mips" ;;
2403 xcore-*) llvm_cv_target_arch="XCore" ;;
2404 msp430-*) llvm_cv_target_arch="MSP430" ;;
2405 s390x-*) llvm_cv_target_arch="SystemZ" ;;
2406 bfin-*) llvm_cv_target_arch="Blackfin" ;;
2407 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
2408 ptx-*) llvm_cv_target_arch="PTX" ;;
2409 *) llvm_cv_target_arch="Unknown" ;;
2410 esac
2412 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2413 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2415 if test "$llvm_cv_target_arch" = "Unknown" ; then
2416 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2417 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2420 # Determine the LLVM native architecture for the target
2421 case "$llvm_cv_target_arch" in
2422 x86) LLVM_NATIVE_ARCH="X86" ;;
2423 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2424 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2425 esac
2427 ARCH=$llvm_cv_target_arch
2430 ac_ext=c
2431 ac_cpp='$CPP $CPPFLAGS'
2432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2435 if test -n "$ac_tool_prefix"; then
2436 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2437 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2438 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2440 if test "${ac_cv_prog_CC+set}" = set; then
2441 echo $ECHO_N "(cached) $ECHO_C" >&6
2442 else
2443 if test -n "$CC"; then
2444 ac_cv_prog_CC="$CC" # Let the user override the test.
2445 else
2446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2447 for as_dir in $PATH
2449 IFS=$as_save_IFS
2450 test -z "$as_dir" && as_dir=.
2451 for ac_exec_ext in '' $ac_executable_extensions; do
2452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2453 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2455 break 2
2457 done
2458 done
2459 IFS=$as_save_IFS
2463 CC=$ac_cv_prog_CC
2464 if test -n "$CC"; then
2465 { echo "$as_me:$LINENO: result: $CC" >&5
2466 echo "${ECHO_T}$CC" >&6; }
2467 else
2468 { echo "$as_me:$LINENO: result: no" >&5
2469 echo "${ECHO_T}no" >&6; }
2474 if test -z "$ac_cv_prog_CC"; then
2475 ac_ct_CC=$CC
2476 # Extract the first word of "gcc", so it can be a program name with args.
2477 set dummy gcc; ac_word=$2
2478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2480 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2481 echo $ECHO_N "(cached) $ECHO_C" >&6
2482 else
2483 if test -n "$ac_ct_CC"; then
2484 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2485 else
2486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2487 for as_dir in $PATH
2489 IFS=$as_save_IFS
2490 test -z "$as_dir" && as_dir=.
2491 for ac_exec_ext in '' $ac_executable_extensions; do
2492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2493 ac_cv_prog_ac_ct_CC="gcc"
2494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2495 break 2
2497 done
2498 done
2499 IFS=$as_save_IFS
2503 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2504 if test -n "$ac_ct_CC"; then
2505 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2506 echo "${ECHO_T}$ac_ct_CC" >&6; }
2507 else
2508 { echo "$as_me:$LINENO: result: no" >&5
2509 echo "${ECHO_T}no" >&6; }
2512 if test "x$ac_ct_CC" = x; then
2513 CC=""
2514 else
2515 case $cross_compiling:$ac_tool_warned in
2516 yes:)
2517 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2518 whose name does not start with the host triplet. If you think this
2519 configuration is useful to you, please write to autoconf@gnu.org." >&5
2520 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2521 whose name does not start with the host triplet. If you think this
2522 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2523 ac_tool_warned=yes ;;
2524 esac
2525 CC=$ac_ct_CC
2527 else
2528 CC="$ac_cv_prog_CC"
2531 if test -z "$CC"; then
2532 if test -n "$ac_tool_prefix"; then
2533 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2534 set dummy ${ac_tool_prefix}cc; ac_word=$2
2535 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2537 if test "${ac_cv_prog_CC+set}" = set; then
2538 echo $ECHO_N "(cached) $ECHO_C" >&6
2539 else
2540 if test -n "$CC"; then
2541 ac_cv_prog_CC="$CC" # Let the user override the test.
2542 else
2543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2544 for as_dir in $PATH
2546 IFS=$as_save_IFS
2547 test -z "$as_dir" && as_dir=.
2548 for ac_exec_ext in '' $ac_executable_extensions; do
2549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2550 ac_cv_prog_CC="${ac_tool_prefix}cc"
2551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2552 break 2
2554 done
2555 done
2556 IFS=$as_save_IFS
2560 CC=$ac_cv_prog_CC
2561 if test -n "$CC"; then
2562 { echo "$as_me:$LINENO: result: $CC" >&5
2563 echo "${ECHO_T}$CC" >&6; }
2564 else
2565 { echo "$as_me:$LINENO: result: no" >&5
2566 echo "${ECHO_T}no" >&6; }
2572 if test -z "$CC"; then
2573 # Extract the first word of "cc", so it can be a program name with args.
2574 set dummy cc; ac_word=$2
2575 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2577 if test "${ac_cv_prog_CC+set}" = set; then
2578 echo $ECHO_N "(cached) $ECHO_C" >&6
2579 else
2580 if test -n "$CC"; then
2581 ac_cv_prog_CC="$CC" # Let the user override the test.
2582 else
2583 ac_prog_rejected=no
2584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2585 for as_dir in $PATH
2587 IFS=$as_save_IFS
2588 test -z "$as_dir" && as_dir=.
2589 for ac_exec_ext in '' $ac_executable_extensions; do
2590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2591 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2592 ac_prog_rejected=yes
2593 continue
2595 ac_cv_prog_CC="cc"
2596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2597 break 2
2599 done
2600 done
2601 IFS=$as_save_IFS
2603 if test $ac_prog_rejected = yes; then
2604 # We found a bogon in the path, so make sure we never use it.
2605 set dummy $ac_cv_prog_CC
2606 shift
2607 if test $# != 0; then
2608 # We chose a different compiler from the bogus one.
2609 # However, it has the same basename, so the bogon will be chosen
2610 # first if we set CC to just the basename; use the full file name.
2611 shift
2612 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2617 CC=$ac_cv_prog_CC
2618 if test -n "$CC"; then
2619 { echo "$as_me:$LINENO: result: $CC" >&5
2620 echo "${ECHO_T}$CC" >&6; }
2621 else
2622 { echo "$as_me:$LINENO: result: no" >&5
2623 echo "${ECHO_T}no" >&6; }
2628 if test -z "$CC"; then
2629 if test -n "$ac_tool_prefix"; then
2630 for ac_prog in cl.exe
2632 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2633 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2634 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2636 if test "${ac_cv_prog_CC+set}" = set; then
2637 echo $ECHO_N "(cached) $ECHO_C" >&6
2638 else
2639 if test -n "$CC"; then
2640 ac_cv_prog_CC="$CC" # Let the user override the test.
2641 else
2642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2643 for as_dir in $PATH
2645 IFS=$as_save_IFS
2646 test -z "$as_dir" && as_dir=.
2647 for ac_exec_ext in '' $ac_executable_extensions; do
2648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2649 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2651 break 2
2653 done
2654 done
2655 IFS=$as_save_IFS
2659 CC=$ac_cv_prog_CC
2660 if test -n "$CC"; then
2661 { echo "$as_me:$LINENO: result: $CC" >&5
2662 echo "${ECHO_T}$CC" >&6; }
2663 else
2664 { echo "$as_me:$LINENO: result: no" >&5
2665 echo "${ECHO_T}no" >&6; }
2669 test -n "$CC" && break
2670 done
2672 if test -z "$CC"; then
2673 ac_ct_CC=$CC
2674 for ac_prog in cl.exe
2676 # Extract the first word of "$ac_prog", so it can be a program name with args.
2677 set dummy $ac_prog; ac_word=$2
2678 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2680 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2681 echo $ECHO_N "(cached) $ECHO_C" >&6
2682 else
2683 if test -n "$ac_ct_CC"; then
2684 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2685 else
2686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687 for as_dir in $PATH
2689 IFS=$as_save_IFS
2690 test -z "$as_dir" && as_dir=.
2691 for ac_exec_ext in '' $ac_executable_extensions; do
2692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2693 ac_cv_prog_ac_ct_CC="$ac_prog"
2694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2695 break 2
2697 done
2698 done
2699 IFS=$as_save_IFS
2703 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2704 if test -n "$ac_ct_CC"; then
2705 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2706 echo "${ECHO_T}$ac_ct_CC" >&6; }
2707 else
2708 { echo "$as_me:$LINENO: result: no" >&5
2709 echo "${ECHO_T}no" >&6; }
2713 test -n "$ac_ct_CC" && break
2714 done
2716 if test "x$ac_ct_CC" = x; then
2717 CC=""
2718 else
2719 case $cross_compiling:$ac_tool_warned in
2720 yes:)
2721 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2722 whose name does not start with the host triplet. If you think this
2723 configuration is useful to you, please write to autoconf@gnu.org." >&5
2724 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2725 whose name does not start with the host triplet. If you think this
2726 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2727 ac_tool_warned=yes ;;
2728 esac
2729 CC=$ac_ct_CC
2736 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2737 See \`config.log' for more details." >&5
2738 echo "$as_me: error: no acceptable C compiler found in \$PATH
2739 See \`config.log' for more details." >&2;}
2740 { (exit 1); exit 1; }; }
2742 # Provide some information about the compiler.
2743 echo "$as_me:$LINENO: checking for C compiler version" >&5
2744 ac_compiler=`set X $ac_compile; echo $2`
2745 { (ac_try="$ac_compiler --version >&5"
2746 case "(($ac_try" in
2747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2748 *) ac_try_echo=$ac_try;;
2749 esac
2750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2751 (eval "$ac_compiler --version >&5") 2>&5
2752 ac_status=$?
2753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754 (exit $ac_status); }
2755 { (ac_try="$ac_compiler -v >&5"
2756 case "(($ac_try" in
2757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2758 *) ac_try_echo=$ac_try;;
2759 esac
2760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2761 (eval "$ac_compiler -v >&5") 2>&5
2762 ac_status=$?
2763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764 (exit $ac_status); }
2765 { (ac_try="$ac_compiler -V >&5"
2766 case "(($ac_try" in
2767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2768 *) ac_try_echo=$ac_try;;
2769 esac
2770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2771 (eval "$ac_compiler -V >&5") 2>&5
2772 ac_status=$?
2773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774 (exit $ac_status); }
2776 cat >conftest.$ac_ext <<_ACEOF
2777 /* confdefs.h. */
2778 _ACEOF
2779 cat confdefs.h >>conftest.$ac_ext
2780 cat >>conftest.$ac_ext <<_ACEOF
2781 /* end confdefs.h. */
2784 main ()
2788 return 0;
2790 _ACEOF
2791 ac_clean_files_save=$ac_clean_files
2792 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2793 # Try to create an executable without -o first, disregard a.out.
2794 # It will help us diagnose broken compilers, and finding out an intuition
2795 # of exeext.
2796 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2797 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2798 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2800 # List of possible output files, starting from the most likely.
2801 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2802 # only as a last resort. b.out is created by i960 compilers.
2803 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2805 # The IRIX 6 linker writes into existing files which may not be
2806 # executable, retaining their permissions. Remove them first so a
2807 # subsequent execution test works.
2808 ac_rmfiles=
2809 for ac_file in $ac_files
2811 case $ac_file in
2812 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2813 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2814 esac
2815 done
2816 rm -f $ac_rmfiles
2818 if { (ac_try="$ac_link_default"
2819 case "(($ac_try" in
2820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2821 *) ac_try_echo=$ac_try;;
2822 esac
2823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2824 (eval "$ac_link_default") 2>&5
2825 ac_status=$?
2826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827 (exit $ac_status); }; then
2828 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2829 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2830 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2831 # so that the user can short-circuit this test for compilers unknown to
2832 # Autoconf.
2833 for ac_file in $ac_files
2835 test -f "$ac_file" || continue
2836 case $ac_file in
2837 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2839 [ab].out )
2840 # We found the default executable, but exeext='' is most
2841 # certainly right.
2842 break;;
2843 *.* )
2844 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2845 then :; else
2846 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2848 # We set ac_cv_exeext here because the later test for it is not
2849 # safe: cross compilers may not add the suffix if given an `-o'
2850 # argument, so we may need to know it at that point already.
2851 # Even if this section looks crufty: it has the advantage of
2852 # actually working.
2853 break;;
2855 break;;
2856 esac
2857 done
2858 test "$ac_cv_exeext" = no && ac_cv_exeext=
2860 else
2861 echo "$as_me: failed program was:" >&5
2862 sed 's/^/| /' conftest.$ac_ext >&5
2864 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2865 See \`config.log' for more details." >&5
2866 echo "$as_me: error: C compiler cannot create executables
2867 See \`config.log' for more details." >&2;}
2868 { (exit 77); exit 77; }; }
2871 ac_exeext=$ac_cv_exeext
2872 { echo "$as_me:$LINENO: result: $ac_file" >&5
2873 echo "${ECHO_T}$ac_file" >&6; }
2875 # Check that the compiler produces executables we can run. If not, either
2876 # the compiler is broken, or we cross compile.
2877 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2878 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2879 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2880 # If not cross compiling, check that we can run a simple program.
2881 if test "$cross_compiling" != yes; then
2882 if { ac_try='./$ac_file'
2883 { (case "(($ac_try" in
2884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2885 *) ac_try_echo=$ac_try;;
2886 esac
2887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2888 (eval "$ac_try") 2>&5
2889 ac_status=$?
2890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891 (exit $ac_status); }; }; then
2892 cross_compiling=no
2893 else
2894 if test "$cross_compiling" = maybe; then
2895 cross_compiling=yes
2896 else
2897 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2898 If you meant to cross compile, use \`--host'.
2899 See \`config.log' for more details." >&5
2900 echo "$as_me: error: cannot run C compiled programs.
2901 If you meant to cross compile, use \`--host'.
2902 See \`config.log' for more details." >&2;}
2903 { (exit 1); exit 1; }; }
2907 { echo "$as_me:$LINENO: result: yes" >&5
2908 echo "${ECHO_T}yes" >&6; }
2910 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2911 ac_clean_files=$ac_clean_files_save
2912 # Check that the compiler produces executables we can run. If not, either
2913 # the compiler is broken, or we cross compile.
2914 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2915 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2916 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2917 echo "${ECHO_T}$cross_compiling" >&6; }
2919 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2920 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2921 if { (ac_try="$ac_link"
2922 case "(($ac_try" in
2923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2924 *) ac_try_echo=$ac_try;;
2925 esac
2926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2927 (eval "$ac_link") 2>&5
2928 ac_status=$?
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); }; then
2931 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2932 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2933 # work properly (i.e., refer to `conftest.exe'), while it won't with
2934 # `rm'.
2935 for ac_file in conftest.exe conftest conftest.*; do
2936 test -f "$ac_file" || continue
2937 case $ac_file in
2938 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2939 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2940 break;;
2941 * ) break;;
2942 esac
2943 done
2944 else
2945 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2946 See \`config.log' for more details." >&5
2947 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2948 See \`config.log' for more details." >&2;}
2949 { (exit 1); exit 1; }; }
2952 rm -f conftest$ac_cv_exeext
2953 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2954 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2956 rm -f conftest.$ac_ext
2957 EXEEXT=$ac_cv_exeext
2958 ac_exeext=$EXEEXT
2959 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2960 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2961 if test "${ac_cv_objext+set}" = set; then
2962 echo $ECHO_N "(cached) $ECHO_C" >&6
2963 else
2964 cat >conftest.$ac_ext <<_ACEOF
2965 /* confdefs.h. */
2966 _ACEOF
2967 cat confdefs.h >>conftest.$ac_ext
2968 cat >>conftest.$ac_ext <<_ACEOF
2969 /* end confdefs.h. */
2972 main ()
2976 return 0;
2978 _ACEOF
2979 rm -f conftest.o conftest.obj
2980 if { (ac_try="$ac_compile"
2981 case "(($ac_try" in
2982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2983 *) ac_try_echo=$ac_try;;
2984 esac
2985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2986 (eval "$ac_compile") 2>&5
2987 ac_status=$?
2988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989 (exit $ac_status); }; then
2990 for ac_file in conftest.o conftest.obj conftest.*; do
2991 test -f "$ac_file" || continue;
2992 case $ac_file in
2993 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2994 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2995 break;;
2996 esac
2997 done
2998 else
2999 echo "$as_me: failed program was:" >&5
3000 sed 's/^/| /' conftest.$ac_ext >&5
3002 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3003 See \`config.log' for more details." >&5
3004 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3005 See \`config.log' for more details." >&2;}
3006 { (exit 1); exit 1; }; }
3009 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3011 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3012 echo "${ECHO_T}$ac_cv_objext" >&6; }
3013 OBJEXT=$ac_cv_objext
3014 ac_objext=$OBJEXT
3015 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3016 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3017 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3018 echo $ECHO_N "(cached) $ECHO_C" >&6
3019 else
3020 cat >conftest.$ac_ext <<_ACEOF
3021 /* confdefs.h. */
3022 _ACEOF
3023 cat confdefs.h >>conftest.$ac_ext
3024 cat >>conftest.$ac_ext <<_ACEOF
3025 /* end confdefs.h. */
3028 main ()
3030 #ifndef __GNUC__
3031 choke me
3032 #endif
3035 return 0;
3037 _ACEOF
3038 rm -f conftest.$ac_objext
3039 if { (ac_try="$ac_compile"
3040 case "(($ac_try" in
3041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042 *) ac_try_echo=$ac_try;;
3043 esac
3044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3045 (eval "$ac_compile") 2>conftest.er1
3046 ac_status=$?
3047 grep -v '^ *+' conftest.er1 >conftest.err
3048 rm -f conftest.er1
3049 cat conftest.err >&5
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); } &&
3052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3053 { (case "(($ac_try" in
3054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3055 *) ac_try_echo=$ac_try;;
3056 esac
3057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3058 (eval "$ac_try") 2>&5
3059 ac_status=$?
3060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061 (exit $ac_status); }; } &&
3062 { ac_try='test -s conftest.$ac_objext'
3063 { (case "(($ac_try" in
3064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3065 *) ac_try_echo=$ac_try;;
3066 esac
3067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3068 (eval "$ac_try") 2>&5
3069 ac_status=$?
3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); }; }; then
3072 ac_compiler_gnu=yes
3073 else
3074 echo "$as_me: failed program was:" >&5
3075 sed 's/^/| /' conftest.$ac_ext >&5
3077 ac_compiler_gnu=no
3080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3081 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3084 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3085 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3086 GCC=`test $ac_compiler_gnu = yes && echo yes`
3087 ac_test_CFLAGS=${CFLAGS+set}
3088 ac_save_CFLAGS=$CFLAGS
3089 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3090 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3091 if test "${ac_cv_prog_cc_g+set}" = set; then
3092 echo $ECHO_N "(cached) $ECHO_C" >&6
3093 else
3094 ac_save_c_werror_flag=$ac_c_werror_flag
3095 ac_c_werror_flag=yes
3096 ac_cv_prog_cc_g=no
3097 CFLAGS="-g"
3098 cat >conftest.$ac_ext <<_ACEOF
3099 /* confdefs.h. */
3100 _ACEOF
3101 cat confdefs.h >>conftest.$ac_ext
3102 cat >>conftest.$ac_ext <<_ACEOF
3103 /* end confdefs.h. */
3106 main ()
3110 return 0;
3112 _ACEOF
3113 rm -f conftest.$ac_objext
3114 if { (ac_try="$ac_compile"
3115 case "(($ac_try" in
3116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117 *) ac_try_echo=$ac_try;;
3118 esac
3119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3120 (eval "$ac_compile") 2>conftest.er1
3121 ac_status=$?
3122 grep -v '^ *+' conftest.er1 >conftest.err
3123 rm -f conftest.er1
3124 cat conftest.err >&5
3125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126 (exit $ac_status); } &&
3127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3128 { (case "(($ac_try" in
3129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130 *) ac_try_echo=$ac_try;;
3131 esac
3132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3133 (eval "$ac_try") 2>&5
3134 ac_status=$?
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); }; } &&
3137 { ac_try='test -s conftest.$ac_objext'
3138 { (case "(($ac_try" in
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3141 esac
3142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3143 (eval "$ac_try") 2>&5
3144 ac_status=$?
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); }; }; then
3147 ac_cv_prog_cc_g=yes
3148 else
3149 echo "$as_me: failed program was:" >&5
3150 sed 's/^/| /' conftest.$ac_ext >&5
3152 CFLAGS=""
3153 cat >conftest.$ac_ext <<_ACEOF
3154 /* confdefs.h. */
3155 _ACEOF
3156 cat confdefs.h >>conftest.$ac_ext
3157 cat >>conftest.$ac_ext <<_ACEOF
3158 /* end confdefs.h. */
3161 main ()
3165 return 0;
3167 _ACEOF
3168 rm -f conftest.$ac_objext
3169 if { (ac_try="$ac_compile"
3170 case "(($ac_try" in
3171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172 *) ac_try_echo=$ac_try;;
3173 esac
3174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3175 (eval "$ac_compile") 2>conftest.er1
3176 ac_status=$?
3177 grep -v '^ *+' conftest.er1 >conftest.err
3178 rm -f conftest.er1
3179 cat conftest.err >&5
3180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181 (exit $ac_status); } &&
3182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3183 { (case "(($ac_try" in
3184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185 *) ac_try_echo=$ac_try;;
3186 esac
3187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3188 (eval "$ac_try") 2>&5
3189 ac_status=$?
3190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191 (exit $ac_status); }; } &&
3192 { ac_try='test -s conftest.$ac_objext'
3193 { (case "(($ac_try" in
3194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195 *) ac_try_echo=$ac_try;;
3196 esac
3197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3198 (eval "$ac_try") 2>&5
3199 ac_status=$?
3200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201 (exit $ac_status); }; }; then
3203 else
3204 echo "$as_me: failed program was:" >&5
3205 sed 's/^/| /' conftest.$ac_ext >&5
3207 ac_c_werror_flag=$ac_save_c_werror_flag
3208 CFLAGS="-g"
3209 cat >conftest.$ac_ext <<_ACEOF
3210 /* confdefs.h. */
3211 _ACEOF
3212 cat confdefs.h >>conftest.$ac_ext
3213 cat >>conftest.$ac_ext <<_ACEOF
3214 /* end confdefs.h. */
3217 main ()
3221 return 0;
3223 _ACEOF
3224 rm -f conftest.$ac_objext
3225 if { (ac_try="$ac_compile"
3226 case "(($ac_try" in
3227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3228 *) ac_try_echo=$ac_try;;
3229 esac
3230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3231 (eval "$ac_compile") 2>conftest.er1
3232 ac_status=$?
3233 grep -v '^ *+' conftest.er1 >conftest.err
3234 rm -f conftest.er1
3235 cat conftest.err >&5
3236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237 (exit $ac_status); } &&
3238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3239 { (case "(($ac_try" in
3240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3241 *) ac_try_echo=$ac_try;;
3242 esac
3243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3244 (eval "$ac_try") 2>&5
3245 ac_status=$?
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); }; } &&
3248 { ac_try='test -s conftest.$ac_objext'
3249 { (case "(($ac_try" in
3250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3251 *) ac_try_echo=$ac_try;;
3252 esac
3253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3254 (eval "$ac_try") 2>&5
3255 ac_status=$?
3256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257 (exit $ac_status); }; }; then
3258 ac_cv_prog_cc_g=yes
3259 else
3260 echo "$as_me: failed program was:" >&5
3261 sed 's/^/| /' conftest.$ac_ext >&5
3266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3273 ac_c_werror_flag=$ac_save_c_werror_flag
3275 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3276 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3277 if test "$ac_test_CFLAGS" = set; then
3278 CFLAGS=$ac_save_CFLAGS
3279 elif test $ac_cv_prog_cc_g = yes; then
3280 if test "$GCC" = yes; then
3281 CFLAGS="-g -O2"
3282 else
3283 CFLAGS="-g"
3285 else
3286 if test "$GCC" = yes; then
3287 CFLAGS="-O2"
3288 else
3289 CFLAGS=
3292 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3293 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3294 if test "${ac_cv_prog_cc_c89+set}" = set; then
3295 echo $ECHO_N "(cached) $ECHO_C" >&6
3296 else
3297 ac_cv_prog_cc_c89=no
3298 ac_save_CC=$CC
3299 cat >conftest.$ac_ext <<_ACEOF
3300 /* confdefs.h. */
3301 _ACEOF
3302 cat confdefs.h >>conftest.$ac_ext
3303 cat >>conftest.$ac_ext <<_ACEOF
3304 /* end confdefs.h. */
3305 #include <stdarg.h>
3306 #include <stdio.h>
3307 #include <sys/types.h>
3308 #include <sys/stat.h>
3309 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3310 struct buf { int x; };
3311 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3312 static char *e (p, i)
3313 char **p;
3314 int i;
3316 return p[i];
3318 static char *f (char * (*g) (char **, int), char **p, ...)
3320 char *s;
3321 va_list v;
3322 va_start (v,p);
3323 s = g (p, va_arg (v,int));
3324 va_end (v);
3325 return s;
3328 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3329 function prototypes and stuff, but not '\xHH' hex character constants.
3330 These don't provoke an error unfortunately, instead are silently treated
3331 as 'x'. The following induces an error, until -std is added to get
3332 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3333 array size at least. It's necessary to write '\x00'==0 to get something
3334 that's true only with -std. */
3335 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3337 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3338 inside strings and character constants. */
3339 #define FOO(x) 'x'
3340 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3342 int test (int i, double x);
3343 struct s1 {int (*f) (int a);};
3344 struct s2 {int (*f) (double a);};
3345 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3346 int argc;
3347 char **argv;
3349 main ()
3351 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3353 return 0;
3355 _ACEOF
3356 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3357 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3359 CC="$ac_save_CC $ac_arg"
3360 rm -f conftest.$ac_objext
3361 if { (ac_try="$ac_compile"
3362 case "(($ac_try" in
3363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364 *) ac_try_echo=$ac_try;;
3365 esac
3366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3367 (eval "$ac_compile") 2>conftest.er1
3368 ac_status=$?
3369 grep -v '^ *+' conftest.er1 >conftest.err
3370 rm -f conftest.er1
3371 cat conftest.err >&5
3372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373 (exit $ac_status); } &&
3374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3375 { (case "(($ac_try" in
3376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377 *) ac_try_echo=$ac_try;;
3378 esac
3379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3380 (eval "$ac_try") 2>&5
3381 ac_status=$?
3382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383 (exit $ac_status); }; } &&
3384 { ac_try='test -s conftest.$ac_objext'
3385 { (case "(($ac_try" in
3386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3387 *) ac_try_echo=$ac_try;;
3388 esac
3389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3390 (eval "$ac_try") 2>&5
3391 ac_status=$?
3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393 (exit $ac_status); }; }; then
3394 ac_cv_prog_cc_c89=$ac_arg
3395 else
3396 echo "$as_me: failed program was:" >&5
3397 sed 's/^/| /' conftest.$ac_ext >&5
3402 rm -f core conftest.err conftest.$ac_objext
3403 test "x$ac_cv_prog_cc_c89" != "xno" && break
3404 done
3405 rm -f conftest.$ac_ext
3406 CC=$ac_save_CC
3409 # AC_CACHE_VAL
3410 case "x$ac_cv_prog_cc_c89" in
3412 { echo "$as_me:$LINENO: result: none needed" >&5
3413 echo "${ECHO_T}none needed" >&6; } ;;
3414 xno)
3415 { echo "$as_me:$LINENO: result: unsupported" >&5
3416 echo "${ECHO_T}unsupported" >&6; } ;;
3418 CC="$CC $ac_cv_prog_cc_c89"
3419 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3420 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3421 esac
3424 ac_ext=c
3425 ac_cpp='$CPP $CPPFLAGS'
3426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3431 ac_ext=c
3432 ac_cpp='$CPP $CPPFLAGS'
3433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3436 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3437 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3438 # On Suns, sometimes $CPP names a directory.
3439 if test -n "$CPP" && test -d "$CPP"; then
3440 CPP=
3442 if test -z "$CPP"; then
3443 if test "${ac_cv_prog_CPP+set}" = set; then
3444 echo $ECHO_N "(cached) $ECHO_C" >&6
3445 else
3446 # Double quotes because CPP needs to be expanded
3447 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3449 ac_preproc_ok=false
3450 for ac_c_preproc_warn_flag in '' yes
3452 # Use a header file that comes with gcc, so configuring glibc
3453 # with a fresh cross-compiler works.
3454 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3455 # <limits.h> exists even on freestanding compilers.
3456 # On the NeXT, cc -E runs the code through the compiler's parser,
3457 # not just through cpp. "Syntax error" is here to catch this case.
3458 cat >conftest.$ac_ext <<_ACEOF
3459 /* confdefs.h. */
3460 _ACEOF
3461 cat confdefs.h >>conftest.$ac_ext
3462 cat >>conftest.$ac_ext <<_ACEOF
3463 /* end confdefs.h. */
3464 #ifdef __STDC__
3465 # include <limits.h>
3466 #else
3467 # include <assert.h>
3468 #endif
3469 Syntax error
3470 _ACEOF
3471 if { (ac_try="$ac_cpp conftest.$ac_ext"
3472 case "(($ac_try" in
3473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474 *) ac_try_echo=$ac_try;;
3475 esac
3476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3478 ac_status=$?
3479 grep -v '^ *+' conftest.er1 >conftest.err
3480 rm -f conftest.er1
3481 cat conftest.err >&5
3482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483 (exit $ac_status); } >/dev/null; then
3484 if test -s conftest.err; then
3485 ac_cpp_err=$ac_c_preproc_warn_flag
3486 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3487 else
3488 ac_cpp_err=
3490 else
3491 ac_cpp_err=yes
3493 if test -z "$ac_cpp_err"; then
3495 else
3496 echo "$as_me: failed program was:" >&5
3497 sed 's/^/| /' conftest.$ac_ext >&5
3499 # Broken: fails on valid input.
3500 continue
3503 rm -f conftest.err conftest.$ac_ext
3505 # OK, works on sane cases. Now check whether nonexistent headers
3506 # can be detected and how.
3507 cat >conftest.$ac_ext <<_ACEOF
3508 /* confdefs.h. */
3509 _ACEOF
3510 cat confdefs.h >>conftest.$ac_ext
3511 cat >>conftest.$ac_ext <<_ACEOF
3512 /* end confdefs.h. */
3513 #include <ac_nonexistent.h>
3514 _ACEOF
3515 if { (ac_try="$ac_cpp conftest.$ac_ext"
3516 case "(($ac_try" in
3517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3518 *) ac_try_echo=$ac_try;;
3519 esac
3520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3521 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3522 ac_status=$?
3523 grep -v '^ *+' conftest.er1 >conftest.err
3524 rm -f conftest.er1
3525 cat conftest.err >&5
3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 (exit $ac_status); } >/dev/null; then
3528 if test -s conftest.err; then
3529 ac_cpp_err=$ac_c_preproc_warn_flag
3530 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3531 else
3532 ac_cpp_err=
3534 else
3535 ac_cpp_err=yes
3537 if test -z "$ac_cpp_err"; then
3538 # Broken: success on invalid input.
3539 continue
3540 else
3541 echo "$as_me: failed program was:" >&5
3542 sed 's/^/| /' conftest.$ac_ext >&5
3544 # Passes both tests.
3545 ac_preproc_ok=:
3546 break
3549 rm -f conftest.err conftest.$ac_ext
3551 done
3552 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3553 rm -f conftest.err conftest.$ac_ext
3554 if $ac_preproc_ok; then
3555 break
3558 done
3559 ac_cv_prog_CPP=$CPP
3562 CPP=$ac_cv_prog_CPP
3563 else
3564 ac_cv_prog_CPP=$CPP
3566 { echo "$as_me:$LINENO: result: $CPP" >&5
3567 echo "${ECHO_T}$CPP" >&6; }
3568 ac_preproc_ok=false
3569 for ac_c_preproc_warn_flag in '' yes
3571 # Use a header file that comes with gcc, so configuring glibc
3572 # with a fresh cross-compiler works.
3573 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3574 # <limits.h> exists even on freestanding compilers.
3575 # On the NeXT, cc -E runs the code through the compiler's parser,
3576 # not just through cpp. "Syntax error" is here to catch this case.
3577 cat >conftest.$ac_ext <<_ACEOF
3578 /* confdefs.h. */
3579 _ACEOF
3580 cat confdefs.h >>conftest.$ac_ext
3581 cat >>conftest.$ac_ext <<_ACEOF
3582 /* end confdefs.h. */
3583 #ifdef __STDC__
3584 # include <limits.h>
3585 #else
3586 # include <assert.h>
3587 #endif
3588 Syntax error
3589 _ACEOF
3590 if { (ac_try="$ac_cpp conftest.$ac_ext"
3591 case "(($ac_try" in
3592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3593 *) ac_try_echo=$ac_try;;
3594 esac
3595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3596 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3597 ac_status=$?
3598 grep -v '^ *+' conftest.er1 >conftest.err
3599 rm -f conftest.er1
3600 cat conftest.err >&5
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); } >/dev/null; then
3603 if test -s conftest.err; then
3604 ac_cpp_err=$ac_c_preproc_warn_flag
3605 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3606 else
3607 ac_cpp_err=
3609 else
3610 ac_cpp_err=yes
3612 if test -z "$ac_cpp_err"; then
3614 else
3615 echo "$as_me: failed program was:" >&5
3616 sed 's/^/| /' conftest.$ac_ext >&5
3618 # Broken: fails on valid input.
3619 continue
3622 rm -f conftest.err conftest.$ac_ext
3624 # OK, works on sane cases. Now check whether nonexistent headers
3625 # can be detected and how.
3626 cat >conftest.$ac_ext <<_ACEOF
3627 /* confdefs.h. */
3628 _ACEOF
3629 cat confdefs.h >>conftest.$ac_ext
3630 cat >>conftest.$ac_ext <<_ACEOF
3631 /* end confdefs.h. */
3632 #include <ac_nonexistent.h>
3633 _ACEOF
3634 if { (ac_try="$ac_cpp conftest.$ac_ext"
3635 case "(($ac_try" in
3636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3637 *) ac_try_echo=$ac_try;;
3638 esac
3639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3640 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3641 ac_status=$?
3642 grep -v '^ *+' conftest.er1 >conftest.err
3643 rm -f conftest.er1
3644 cat conftest.err >&5
3645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646 (exit $ac_status); } >/dev/null; then
3647 if test -s conftest.err; then
3648 ac_cpp_err=$ac_c_preproc_warn_flag
3649 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3650 else
3651 ac_cpp_err=
3653 else
3654 ac_cpp_err=yes
3656 if test -z "$ac_cpp_err"; then
3657 # Broken: success on invalid input.
3658 continue
3659 else
3660 echo "$as_me: failed program was:" >&5
3661 sed 's/^/| /' conftest.$ac_ext >&5
3663 # Passes both tests.
3664 ac_preproc_ok=:
3665 break
3668 rm -f conftest.err conftest.$ac_ext
3670 done
3671 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3672 rm -f conftest.err conftest.$ac_ext
3673 if $ac_preproc_ok; then
3675 else
3676 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3677 See \`config.log' for more details." >&5
3678 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3679 See \`config.log' for more details." >&2;}
3680 { (exit 1); exit 1; }; }
3683 ac_ext=c
3684 ac_cpp='$CPP $CPPFLAGS'
3685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3690 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3691 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3692 if test "${ac_cv_path_GREP+set}" = set; then
3693 echo $ECHO_N "(cached) $ECHO_C" >&6
3694 else
3695 # Extract the first word of "grep ggrep" to use in msg output
3696 if test -z "$GREP"; then
3697 set dummy grep ggrep; ac_prog_name=$2
3698 if test "${ac_cv_path_GREP+set}" = set; then
3699 echo $ECHO_N "(cached) $ECHO_C" >&6
3700 else
3701 ac_path_GREP_found=false
3702 # Loop through the user's path and test for each of PROGNAME-LIST
3703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3704 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3706 IFS=$as_save_IFS
3707 test -z "$as_dir" && as_dir=.
3708 for ac_prog in grep ggrep; do
3709 for ac_exec_ext in '' $ac_executable_extensions; do
3710 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3711 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3712 # Check for GNU ac_path_GREP and select it if it is found.
3713 # Check for GNU $ac_path_GREP
3714 case `"$ac_path_GREP" --version 2>&1` in
3715 *GNU*)
3716 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3718 ac_count=0
3719 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3720 while :
3722 cat "conftest.in" "conftest.in" >"conftest.tmp"
3723 mv "conftest.tmp" "conftest.in"
3724 cp "conftest.in" "conftest.nl"
3725 echo 'GREP' >> "conftest.nl"
3726 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3727 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3728 ac_count=`expr $ac_count + 1`
3729 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3730 # Best one so far, save it but keep looking for a better one
3731 ac_cv_path_GREP="$ac_path_GREP"
3732 ac_path_GREP_max=$ac_count
3734 # 10*(2^10) chars as input seems more than enough
3735 test $ac_count -gt 10 && break
3736 done
3737 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3738 esac
3741 $ac_path_GREP_found && break 3
3742 done
3743 done
3745 done
3746 IFS=$as_save_IFS
3751 GREP="$ac_cv_path_GREP"
3752 if test -z "$GREP"; then
3753 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3754 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3755 { (exit 1); exit 1; }; }
3758 else
3759 ac_cv_path_GREP=$GREP
3764 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3765 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3766 GREP="$ac_cv_path_GREP"
3769 { echo "$as_me:$LINENO: checking for egrep" >&5
3770 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3771 if test "${ac_cv_path_EGREP+set}" = set; then
3772 echo $ECHO_N "(cached) $ECHO_C" >&6
3773 else
3774 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3775 then ac_cv_path_EGREP="$GREP -E"
3776 else
3777 # Extract the first word of "egrep" to use in msg output
3778 if test -z "$EGREP"; then
3779 set dummy egrep; ac_prog_name=$2
3780 if test "${ac_cv_path_EGREP+set}" = set; then
3781 echo $ECHO_N "(cached) $ECHO_C" >&6
3782 else
3783 ac_path_EGREP_found=false
3784 # Loop through the user's path and test for each of PROGNAME-LIST
3785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3786 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3788 IFS=$as_save_IFS
3789 test -z "$as_dir" && as_dir=.
3790 for ac_prog in egrep; do
3791 for ac_exec_ext in '' $ac_executable_extensions; do
3792 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3793 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3794 # Check for GNU ac_path_EGREP and select it if it is found.
3795 # Check for GNU $ac_path_EGREP
3796 case `"$ac_path_EGREP" --version 2>&1` in
3797 *GNU*)
3798 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3800 ac_count=0
3801 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3802 while :
3804 cat "conftest.in" "conftest.in" >"conftest.tmp"
3805 mv "conftest.tmp" "conftest.in"
3806 cp "conftest.in" "conftest.nl"
3807 echo 'EGREP' >> "conftest.nl"
3808 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3809 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3810 ac_count=`expr $ac_count + 1`
3811 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3812 # Best one so far, save it but keep looking for a better one
3813 ac_cv_path_EGREP="$ac_path_EGREP"
3814 ac_path_EGREP_max=$ac_count
3816 # 10*(2^10) chars as input seems more than enough
3817 test $ac_count -gt 10 && break
3818 done
3819 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3820 esac
3823 $ac_path_EGREP_found && break 3
3824 done
3825 done
3827 done
3828 IFS=$as_save_IFS
3833 EGREP="$ac_cv_path_EGREP"
3834 if test -z "$EGREP"; then
3835 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3836 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3837 { (exit 1); exit 1; }; }
3840 else
3841 ac_cv_path_EGREP=$EGREP
3847 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3848 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3849 EGREP="$ac_cv_path_EGREP"
3852 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3853 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3854 if test "${ac_cv_header_stdc+set}" = set; then
3855 echo $ECHO_N "(cached) $ECHO_C" >&6
3856 else
3857 cat >conftest.$ac_ext <<_ACEOF
3858 /* confdefs.h. */
3859 _ACEOF
3860 cat confdefs.h >>conftest.$ac_ext
3861 cat >>conftest.$ac_ext <<_ACEOF
3862 /* end confdefs.h. */
3863 #include <stdlib.h>
3864 #include <stdarg.h>
3865 #include <string.h>
3866 #include <float.h>
3869 main ()
3873 return 0;
3875 _ACEOF
3876 rm -f conftest.$ac_objext
3877 if { (ac_try="$ac_compile"
3878 case "(($ac_try" in
3879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3880 *) ac_try_echo=$ac_try;;
3881 esac
3882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3883 (eval "$ac_compile") 2>conftest.er1
3884 ac_status=$?
3885 grep -v '^ *+' conftest.er1 >conftest.err
3886 rm -f conftest.er1
3887 cat conftest.err >&5
3888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889 (exit $ac_status); } &&
3890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3891 { (case "(($ac_try" in
3892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3893 *) ac_try_echo=$ac_try;;
3894 esac
3895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3896 (eval "$ac_try") 2>&5
3897 ac_status=$?
3898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899 (exit $ac_status); }; } &&
3900 { ac_try='test -s conftest.$ac_objext'
3901 { (case "(($ac_try" in
3902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3903 *) ac_try_echo=$ac_try;;
3904 esac
3905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3906 (eval "$ac_try") 2>&5
3907 ac_status=$?
3908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3909 (exit $ac_status); }; }; then
3910 ac_cv_header_stdc=yes
3911 else
3912 echo "$as_me: failed program was:" >&5
3913 sed 's/^/| /' conftest.$ac_ext >&5
3915 ac_cv_header_stdc=no
3918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3920 if test $ac_cv_header_stdc = yes; then
3921 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3922 cat >conftest.$ac_ext <<_ACEOF
3923 /* confdefs.h. */
3924 _ACEOF
3925 cat confdefs.h >>conftest.$ac_ext
3926 cat >>conftest.$ac_ext <<_ACEOF
3927 /* end confdefs.h. */
3928 #include <string.h>
3930 _ACEOF
3931 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3932 $EGREP "memchr" >/dev/null 2>&1; then
3934 else
3935 ac_cv_header_stdc=no
3937 rm -f conftest*
3941 if test $ac_cv_header_stdc = yes; then
3942 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3943 cat >conftest.$ac_ext <<_ACEOF
3944 /* confdefs.h. */
3945 _ACEOF
3946 cat confdefs.h >>conftest.$ac_ext
3947 cat >>conftest.$ac_ext <<_ACEOF
3948 /* end confdefs.h. */
3949 #include <stdlib.h>
3951 _ACEOF
3952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3953 $EGREP "free" >/dev/null 2>&1; then
3955 else
3956 ac_cv_header_stdc=no
3958 rm -f conftest*
3962 if test $ac_cv_header_stdc = yes; then
3963 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3964 if test "$cross_compiling" = yes; then
3966 else
3967 cat >conftest.$ac_ext <<_ACEOF
3968 /* confdefs.h. */
3969 _ACEOF
3970 cat confdefs.h >>conftest.$ac_ext
3971 cat >>conftest.$ac_ext <<_ACEOF
3972 /* end confdefs.h. */
3973 #include <ctype.h>
3974 #include <stdlib.h>
3975 #if ((' ' & 0x0FF) == 0x020)
3976 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3977 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3978 #else
3979 # define ISLOWER(c) \
3980 (('a' <= (c) && (c) <= 'i') \
3981 || ('j' <= (c) && (c) <= 'r') \
3982 || ('s' <= (c) && (c) <= 'z'))
3983 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3984 #endif
3986 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3988 main ()
3990 int i;
3991 for (i = 0; i < 256; i++)
3992 if (XOR (islower (i), ISLOWER (i))
3993 || toupper (i) != TOUPPER (i))
3994 return 2;
3995 return 0;
3997 _ACEOF
3998 rm -f conftest$ac_exeext
3999 if { (ac_try="$ac_link"
4000 case "(($ac_try" in
4001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4002 *) ac_try_echo=$ac_try;;
4003 esac
4004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4005 (eval "$ac_link") 2>&5
4006 ac_status=$?
4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4009 { (case "(($ac_try" in
4010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4011 *) ac_try_echo=$ac_try;;
4012 esac
4013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4014 (eval "$ac_try") 2>&5
4015 ac_status=$?
4016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017 (exit $ac_status); }; }; then
4019 else
4020 echo "$as_me: program exited with status $ac_status" >&5
4021 echo "$as_me: failed program was:" >&5
4022 sed 's/^/| /' conftest.$ac_ext >&5
4024 ( exit $ac_status )
4025 ac_cv_header_stdc=no
4027 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4033 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4034 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4035 if test $ac_cv_header_stdc = yes; then
4037 cat >>confdefs.h <<\_ACEOF
4038 #define STDC_HEADERS 1
4039 _ACEOF
4043 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4053 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4054 inttypes.h stdint.h unistd.h
4056 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4057 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4059 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4060 echo $ECHO_N "(cached) $ECHO_C" >&6
4061 else
4062 cat >conftest.$ac_ext <<_ACEOF
4063 /* confdefs.h. */
4064 _ACEOF
4065 cat confdefs.h >>conftest.$ac_ext
4066 cat >>conftest.$ac_ext <<_ACEOF
4067 /* end confdefs.h. */
4068 $ac_includes_default
4070 #include <$ac_header>
4071 _ACEOF
4072 rm -f conftest.$ac_objext
4073 if { (ac_try="$ac_compile"
4074 case "(($ac_try" in
4075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4076 *) ac_try_echo=$ac_try;;
4077 esac
4078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4079 (eval "$ac_compile") 2>conftest.er1
4080 ac_status=$?
4081 grep -v '^ *+' conftest.er1 >conftest.err
4082 rm -f conftest.er1
4083 cat conftest.err >&5
4084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085 (exit $ac_status); } &&
4086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4087 { (case "(($ac_try" in
4088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4089 *) ac_try_echo=$ac_try;;
4090 esac
4091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4092 (eval "$ac_try") 2>&5
4093 ac_status=$?
4094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095 (exit $ac_status); }; } &&
4096 { ac_try='test -s conftest.$ac_objext'
4097 { (case "(($ac_try" in
4098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4099 *) ac_try_echo=$ac_try;;
4100 esac
4101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4102 (eval "$ac_try") 2>&5
4103 ac_status=$?
4104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105 (exit $ac_status); }; }; then
4106 eval "$as_ac_Header=yes"
4107 else
4108 echo "$as_me: failed program was:" >&5
4109 sed 's/^/| /' conftest.$ac_ext >&5
4111 eval "$as_ac_Header=no"
4114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4116 ac_res=`eval echo '${'$as_ac_Header'}'`
4117 { echo "$as_me:$LINENO: result: $ac_res" >&5
4118 echo "${ECHO_T}$ac_res" >&6; }
4119 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4120 cat >>confdefs.h <<_ACEOF
4121 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4122 _ACEOF
4126 done
4129 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4130 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4131 if test "${ac_cv_c_bigendian+set}" = set; then
4132 echo $ECHO_N "(cached) $ECHO_C" >&6
4133 else
4134 # See if sys/param.h defines the BYTE_ORDER macro.
4135 cat >conftest.$ac_ext <<_ACEOF
4136 /* confdefs.h. */
4137 _ACEOF
4138 cat confdefs.h >>conftest.$ac_ext
4139 cat >>conftest.$ac_ext <<_ACEOF
4140 /* end confdefs.h. */
4141 #include <sys/types.h>
4142 #include <sys/param.h>
4145 main ()
4147 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4148 bogus endian macros
4149 #endif
4152 return 0;
4154 _ACEOF
4155 rm -f conftest.$ac_objext
4156 if { (ac_try="$ac_compile"
4157 case "(($ac_try" in
4158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4159 *) ac_try_echo=$ac_try;;
4160 esac
4161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4162 (eval "$ac_compile") 2>conftest.er1
4163 ac_status=$?
4164 grep -v '^ *+' conftest.er1 >conftest.err
4165 rm -f conftest.er1
4166 cat conftest.err >&5
4167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168 (exit $ac_status); } &&
4169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4170 { (case "(($ac_try" in
4171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4172 *) ac_try_echo=$ac_try;;
4173 esac
4174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4175 (eval "$ac_try") 2>&5
4176 ac_status=$?
4177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178 (exit $ac_status); }; } &&
4179 { ac_try='test -s conftest.$ac_objext'
4180 { (case "(($ac_try" in
4181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4182 *) ac_try_echo=$ac_try;;
4183 esac
4184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4185 (eval "$ac_try") 2>&5
4186 ac_status=$?
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); }; }; then
4189 # It does; now see whether it defined to BIG_ENDIAN or not.
4190 cat >conftest.$ac_ext <<_ACEOF
4191 /* confdefs.h. */
4192 _ACEOF
4193 cat confdefs.h >>conftest.$ac_ext
4194 cat >>conftest.$ac_ext <<_ACEOF
4195 /* end confdefs.h. */
4196 #include <sys/types.h>
4197 #include <sys/param.h>
4200 main ()
4202 #if BYTE_ORDER != BIG_ENDIAN
4203 not big endian
4204 #endif
4207 return 0;
4209 _ACEOF
4210 rm -f conftest.$ac_objext
4211 if { (ac_try="$ac_compile"
4212 case "(($ac_try" in
4213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4214 *) ac_try_echo=$ac_try;;
4215 esac
4216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4217 (eval "$ac_compile") 2>conftest.er1
4218 ac_status=$?
4219 grep -v '^ *+' conftest.er1 >conftest.err
4220 rm -f conftest.er1
4221 cat conftest.err >&5
4222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223 (exit $ac_status); } &&
4224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4225 { (case "(($ac_try" in
4226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4227 *) ac_try_echo=$ac_try;;
4228 esac
4229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4230 (eval "$ac_try") 2>&5
4231 ac_status=$?
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); }; } &&
4234 { ac_try='test -s conftest.$ac_objext'
4235 { (case "(($ac_try" in
4236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4237 *) ac_try_echo=$ac_try;;
4238 esac
4239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4240 (eval "$ac_try") 2>&5
4241 ac_status=$?
4242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243 (exit $ac_status); }; }; then
4244 ac_cv_c_bigendian=yes
4245 else
4246 echo "$as_me: failed program was:" >&5
4247 sed 's/^/| /' conftest.$ac_ext >&5
4249 ac_cv_c_bigendian=no
4252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4253 else
4254 echo "$as_me: failed program was:" >&5
4255 sed 's/^/| /' conftest.$ac_ext >&5
4257 # It does not; compile a test program.
4258 if test "$cross_compiling" = yes; then
4259 # try to guess the endianness by grepping values into an object file
4260 ac_cv_c_bigendian=unknown
4261 cat >conftest.$ac_ext <<_ACEOF
4262 /* confdefs.h. */
4263 _ACEOF
4264 cat confdefs.h >>conftest.$ac_ext
4265 cat >>conftest.$ac_ext <<_ACEOF
4266 /* end confdefs.h. */
4267 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4268 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4269 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4270 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4271 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4272 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4274 main ()
4276 _ascii (); _ebcdic ();
4278 return 0;
4280 _ACEOF
4281 rm -f conftest.$ac_objext
4282 if { (ac_try="$ac_compile"
4283 case "(($ac_try" in
4284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4285 *) ac_try_echo=$ac_try;;
4286 esac
4287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4288 (eval "$ac_compile") 2>conftest.er1
4289 ac_status=$?
4290 grep -v '^ *+' conftest.er1 >conftest.err
4291 rm -f conftest.er1
4292 cat conftest.err >&5
4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294 (exit $ac_status); } &&
4295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4296 { (case "(($ac_try" in
4297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4298 *) ac_try_echo=$ac_try;;
4299 esac
4300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4301 (eval "$ac_try") 2>&5
4302 ac_status=$?
4303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304 (exit $ac_status); }; } &&
4305 { ac_try='test -s conftest.$ac_objext'
4306 { (case "(($ac_try" in
4307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4308 *) ac_try_echo=$ac_try;;
4309 esac
4310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4311 (eval "$ac_try") 2>&5
4312 ac_status=$?
4313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314 (exit $ac_status); }; }; then
4315 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4316 ac_cv_c_bigendian=yes
4318 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4319 if test "$ac_cv_c_bigendian" = unknown; then
4320 ac_cv_c_bigendian=no
4321 else
4322 # finding both strings is unlikely to happen, but who knows?
4323 ac_cv_c_bigendian=unknown
4326 else
4327 echo "$as_me: failed program was:" >&5
4328 sed 's/^/| /' conftest.$ac_ext >&5
4333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4334 else
4335 cat >conftest.$ac_ext <<_ACEOF
4336 /* confdefs.h. */
4337 _ACEOF
4338 cat confdefs.h >>conftest.$ac_ext
4339 cat >>conftest.$ac_ext <<_ACEOF
4340 /* end confdefs.h. */
4341 $ac_includes_default
4343 main ()
4346 /* Are we little or big endian? From Harbison&Steele. */
4347 union
4349 long int l;
4350 char c[sizeof (long int)];
4351 } u;
4352 u.l = 1;
4353 return u.c[sizeof (long int) - 1] == 1;
4356 return 0;
4358 _ACEOF
4359 rm -f conftest$ac_exeext
4360 if { (ac_try="$ac_link"
4361 case "(($ac_try" in
4362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4363 *) ac_try_echo=$ac_try;;
4364 esac
4365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4366 (eval "$ac_link") 2>&5
4367 ac_status=$?
4368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4370 { (case "(($ac_try" in
4371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4372 *) ac_try_echo=$ac_try;;
4373 esac
4374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4375 (eval "$ac_try") 2>&5
4376 ac_status=$?
4377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378 (exit $ac_status); }; }; then
4379 ac_cv_c_bigendian=no
4380 else
4381 echo "$as_me: program exited with status $ac_status" >&5
4382 echo "$as_me: failed program was:" >&5
4383 sed 's/^/| /' conftest.$ac_ext >&5
4385 ( exit $ac_status )
4386 ac_cv_c_bigendian=yes
4388 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4396 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4397 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4398 case $ac_cv_c_bigendian in
4399 yes)
4400 ENDIAN=big
4403 ENDIAN=little
4406 { { echo "$as_me:$LINENO: error: unknown endianness
4407 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4408 echo "$as_me: error: unknown endianness
4409 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4410 { (exit 1); exit 1; }; } ;;
4411 esac
4414 if test "$cross_compiling" = yes; then
4415 LLVM_CROSS_COMPILING=1
4418 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4419 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4420 if test "${ac_cv_build_exeext+set}" = set; then
4421 echo $ECHO_N "(cached) $ECHO_C" >&6
4422 else
4423 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4424 ac_cv_build_exeext=.exe
4425 else
4426 ac_build_prefix=${build_alias}-
4428 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4429 set dummy ${ac_build_prefix}gcc; ac_word=$2
4430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4432 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4433 echo $ECHO_N "(cached) $ECHO_C" >&6
4434 else
4435 if test -n "$BUILD_CC"; then
4436 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4437 else
4438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4439 for as_dir in $PATH
4441 IFS=$as_save_IFS
4442 test -z "$as_dir" && as_dir=.
4443 for ac_exec_ext in '' $ac_executable_extensions; do
4444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4445 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4447 break 2
4449 done
4450 done
4451 IFS=$as_save_IFS
4455 BUILD_CC=$ac_cv_prog_BUILD_CC
4456 if test -n "$BUILD_CC"; then
4457 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4458 echo "${ECHO_T}$BUILD_CC" >&6; }
4459 else
4460 { echo "$as_me:$LINENO: result: no" >&5
4461 echo "${ECHO_T}no" >&6; }
4465 if test -z "$BUILD_CC"; then
4466 # Extract the first word of "gcc", so it can be a program name with args.
4467 set dummy gcc; ac_word=$2
4468 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4470 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4471 echo $ECHO_N "(cached) $ECHO_C" >&6
4472 else
4473 if test -n "$BUILD_CC"; then
4474 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4475 else
4476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4477 for as_dir in $PATH
4479 IFS=$as_save_IFS
4480 test -z "$as_dir" && as_dir=.
4481 for ac_exec_ext in '' $ac_executable_extensions; do
4482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4483 ac_cv_prog_BUILD_CC="gcc"
4484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4485 break 2
4487 done
4488 done
4489 IFS=$as_save_IFS
4493 BUILD_CC=$ac_cv_prog_BUILD_CC
4494 if test -n "$BUILD_CC"; then
4495 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4496 echo "${ECHO_T}$BUILD_CC" >&6; }
4497 else
4498 { echo "$as_me:$LINENO: result: no" >&5
4499 echo "${ECHO_T}no" >&6; }
4503 if test -z "$BUILD_CC"; then
4504 # Extract the first word of "cc", so it can be a program name with args.
4505 set dummy cc; ac_word=$2
4506 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4508 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4509 echo $ECHO_N "(cached) $ECHO_C" >&6
4510 else
4511 if test -n "$BUILD_CC"; then
4512 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4513 else
4514 ac_prog_rejected=no
4515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4516 for as_dir in $PATH
4518 IFS=$as_save_IFS
4519 test -z "$as_dir" && as_dir=.
4520 for ac_exec_ext in '' $ac_executable_extensions; do
4521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4522 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4523 ac_prog_rejected=yes
4524 continue
4526 ac_cv_prog_BUILD_CC="cc"
4527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4528 break 2
4530 done
4531 done
4532 IFS=$as_save_IFS
4534 if test $ac_prog_rejected = yes; then
4535 # We found a bogon in the path, so make sure we never use it.
4536 set dummy $ac_cv_prog_BUILD_CC
4537 shift
4538 if test $# != 0; then
4539 # We chose a different compiler from the bogus one.
4540 # However, it has the same basename, so the bogon will be chosen
4541 # first if we set BUILD_CC to just the basename; use the full file name.
4542 shift
4543 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4548 BUILD_CC=$ac_cv_prog_BUILD_CC
4549 if test -n "$BUILD_CC"; then
4550 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4551 echo "${ECHO_T}$BUILD_CC" >&6; }
4552 else
4553 { echo "$as_me:$LINENO: result: no" >&5
4554 echo "${ECHO_T}no" >&6; }
4560 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4561 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4562 { (exit 1); exit 1; }; }
4563 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4564 rm -f conftest*
4565 echo 'int main () { return 0; }' > conftest.$ac_ext
4566 ac_cv_build_exeext=
4567 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4568 (eval $ac_build_link) 2>&5
4569 ac_status=$?
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); }; then
4572 for file in conftest.*; do
4573 case $file in
4574 *.c | *.o | *.obj | *.dSYM) ;;
4575 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4576 esac
4577 done
4578 else
4579 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4580 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4581 { (exit 1); exit 1; }; }
4583 rm -f conftest*
4584 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4588 BUILD_EXEEXT=""
4589 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4590 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4591 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4592 ac_build_exeext=$BUILD_EXEEXT
4594 ac_build_prefix=${build_alias}-
4595 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4596 set dummy ${ac_build_prefix}g++; ac_word=$2
4597 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4599 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4600 echo $ECHO_N "(cached) $ECHO_C" >&6
4601 else
4602 if test -n "$BUILD_CXX"; then
4603 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4604 else
4605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4606 for as_dir in $PATH
4608 IFS=$as_save_IFS
4609 test -z "$as_dir" && as_dir=.
4610 for ac_exec_ext in '' $ac_executable_extensions; do
4611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4612 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4614 break 2
4616 done
4617 done
4618 IFS=$as_save_IFS
4622 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4623 if test -n "$BUILD_CXX"; then
4624 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4625 echo "${ECHO_T}$BUILD_CXX" >&6; }
4626 else
4627 { echo "$as_me:$LINENO: result: no" >&5
4628 echo "${ECHO_T}no" >&6; }
4632 if test -z "$BUILD_CXX"; then
4633 # Extract the first word of "g++", so it can be a program name with args.
4634 set dummy g++; ac_word=$2
4635 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4637 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4638 echo $ECHO_N "(cached) $ECHO_C" >&6
4639 else
4640 if test -n "$BUILD_CXX"; then
4641 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4642 else
4643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4644 for as_dir in $PATH
4646 IFS=$as_save_IFS
4647 test -z "$as_dir" && as_dir=.
4648 for ac_exec_ext in '' $ac_executable_extensions; do
4649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4650 ac_cv_prog_BUILD_CXX="g++"
4651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4652 break 2
4654 done
4655 done
4656 IFS=$as_save_IFS
4660 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4661 if test -n "$BUILD_CXX"; then
4662 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4663 echo "${ECHO_T}$BUILD_CXX" >&6; }
4664 else
4665 { echo "$as_me:$LINENO: result: no" >&5
4666 echo "${ECHO_T}no" >&6; }
4670 if test -z "$BUILD_CXX"; then
4671 # Extract the first word of "c++", so it can be a program name with args.
4672 set dummy c++; ac_word=$2
4673 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4675 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4676 echo $ECHO_N "(cached) $ECHO_C" >&6
4677 else
4678 if test -n "$BUILD_CXX"; then
4679 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4680 else
4681 ac_prog_rejected=no
4682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4683 for as_dir in $PATH
4685 IFS=$as_save_IFS
4686 test -z "$as_dir" && as_dir=.
4687 for ac_exec_ext in '' $ac_executable_extensions; do
4688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4689 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4690 ac_prog_rejected=yes
4691 continue
4693 ac_cv_prog_BUILD_CXX="c++"
4694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4695 break 2
4697 done
4698 done
4699 IFS=$as_save_IFS
4701 if test $ac_prog_rejected = yes; then
4702 # We found a bogon in the path, so make sure we never use it.
4703 set dummy $ac_cv_prog_BUILD_CXX
4704 shift
4705 if test $# != 0; then
4706 # We chose a different compiler from the bogus one.
4707 # However, it has the same basename, so the bogon will be chosen
4708 # first if we set BUILD_CXX to just the basename; use the full file name.
4709 shift
4710 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4715 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4716 if test -n "$BUILD_CXX"; then
4717 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4718 echo "${ECHO_T}$BUILD_CXX" >&6; }
4719 else
4720 { echo "$as_me:$LINENO: result: no" >&5
4721 echo "${ECHO_T}no" >&6; }
4727 else
4728 LLVM_CROSS_COMPILING=0
4732 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4733 cvsbuild="yes"
4734 optimize="no"
4735 CVSBUILD=CVSBUILD=1
4737 else
4738 cvsbuild="no"
4739 optimize="yes"
4743 # Check whether --enable-optimized was given.
4744 if test "${enable_optimized+set}" = set; then
4745 enableval=$enable_optimized;
4746 else
4747 enableval=$optimize
4750 if test ${enableval} = "no" ; then
4751 ENABLE_OPTIMIZED=
4753 else
4754 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4758 # Check whether --enable-profiling was given.
4759 if test "${enable_profiling+set}" = set; then
4760 enableval=$enable_profiling;
4761 else
4762 enableval="no"
4765 if test ${enableval} = "no" ; then
4766 ENABLE_PROFILING=
4768 else
4769 ENABLE_PROFILING=ENABLE_PROFILING=1
4773 # Check whether --enable-assertions was given.
4774 if test "${enable_assertions+set}" = set; then
4775 enableval=$enable_assertions;
4776 else
4777 enableval="yes"
4780 if test ${enableval} = "yes" ; then
4781 DISABLE_ASSERTIONS=
4783 else
4784 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4788 # Check whether --enable-expensive-checks was given.
4789 if test "${enable_expensive_checks+set}" = set; then
4790 enableval=$enable_expensive_checks;
4791 else
4792 enableval="no"
4795 if test ${enableval} = "yes" ; then
4796 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4798 EXPENSIVE_CHECKS=yes
4800 else
4801 ENABLE_EXPENSIVE_CHECKS=
4803 EXPENSIVE_CHECKS=no
4807 # Check whether --enable-debug-runtime was given.
4808 if test "${enable_debug_runtime+set}" = set; then
4809 enableval=$enable_debug_runtime;
4810 else
4811 enableval=no
4814 if test ${enableval} = "no" ; then
4815 DEBUG_RUNTIME=
4817 else
4818 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4822 # Check whether --enable-debug-symbols was given.
4823 if test "${enable_debug_symbols+set}" = set; then
4824 enableval=$enable_debug_symbols;
4825 else
4826 enableval=no
4829 if test ${enableval} = "no" ; then
4830 DEBUG_SYMBOLS=
4832 else
4833 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4837 # Check whether --enable-jit was given.
4838 if test "${enable_jit+set}" = set; then
4839 enableval=$enable_jit;
4840 else
4841 enableval=default
4844 if test ${enableval} = "no"
4845 then
4846 JIT=
4848 else
4849 case "$llvm_cv_target_arch" in
4850 x86) TARGET_HAS_JIT=1
4852 Sparc) TARGET_HAS_JIT=0
4854 PowerPC) TARGET_HAS_JIT=1
4856 x86_64) TARGET_HAS_JIT=1
4858 Alpha) TARGET_HAS_JIT=0
4860 ARM) TARGET_HAS_JIT=1
4862 Mips) TARGET_HAS_JIT=0
4864 XCore) TARGET_HAS_JIT=0
4866 MSP430) TARGET_HAS_JIT=0
4868 SystemZ) TARGET_HAS_JIT=0
4870 Blackfin) TARGET_HAS_JIT=0
4872 MBlaze) TARGET_HAS_JIT=0
4874 PTX) TARGET_HAS_JIT=0
4876 *) TARGET_HAS_JIT=0
4878 esac
4881 # Check whether --enable-docs was given.
4882 if test "${enable_docs+set}" = set; then
4883 enableval=$enable_docs;
4884 else
4885 enableval=default
4888 case "$enableval" in
4889 yes) ENABLE_DOCS=1
4891 no) ENABLE_DOCS=0
4893 default) ENABLE_DOCS=1
4895 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
4896 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
4897 { (exit 1); exit 1; }; } ;;
4898 esac
4900 # Check whether --enable-doxygen was given.
4901 if test "${enable_doxygen+set}" = set; then
4902 enableval=$enable_doxygen;
4903 else
4904 enableval=default
4907 case "$enableval" in
4908 yes) ENABLE_DOXYGEN=1
4910 no) ENABLE_DOXYGEN=0
4912 default) ENABLE_DOXYGEN=0
4914 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4915 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4916 { (exit 1); exit 1; }; } ;;
4917 esac
4919 # Check whether --enable-threads was given.
4920 if test "${enable_threads+set}" = set; then
4921 enableval=$enable_threads;
4922 else
4923 enableval=default
4926 case "$enableval" in
4927 yes) ENABLE_THREADS=1
4929 no) ENABLE_THREADS=0
4931 default) ENABLE_THREADS=1
4933 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4934 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4935 { (exit 1); exit 1; }; } ;;
4936 esac
4938 cat >>confdefs.h <<_ACEOF
4939 #define ENABLE_THREADS $ENABLE_THREADS
4940 _ACEOF
4943 # Check whether --enable-pthreads was given.
4944 if test "${enable_pthreads+set}" = set; then
4945 enableval=$enable_pthreads;
4946 else
4947 enableval=default
4950 case "$enableval" in
4951 yes) ENABLE_PTHREADS=1
4953 no) ENABLE_PTHREADS=0
4955 default) ENABLE_PTHREADS=1
4957 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
4958 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
4959 { (exit 1); exit 1; }; } ;;
4960 esac
4962 # Check whether --enable-pic was given.
4963 if test "${enable_pic+set}" = set; then
4964 enableval=$enable_pic;
4965 else
4966 enableval=default
4969 case "$enableval" in
4970 yes) ENABLE_PIC=1
4972 no) ENABLE_PIC=0
4974 default) ENABLE_PIC=1
4976 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4977 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4978 { (exit 1); exit 1; }; } ;;
4979 esac
4981 cat >>confdefs.h <<_ACEOF
4982 #define ENABLE_PIC $ENABLE_PIC
4983 _ACEOF
4986 # Check whether --enable-shared was given.
4987 if test "${enable_shared+set}" = set; then
4988 enableval=$enable_shared;
4989 else
4990 enableval=default
4993 case "$enableval" in
4994 yes) ENABLE_SHARED=1
4996 no) ENABLE_SHARED=0
4998 default) ENABLE_SHARED=0
5000 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5001 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5002 { (exit 1); exit 1; }; } ;;
5003 esac
5005 # Check whether --enable-embed-stdcxx was given.
5006 if test "${enable_embed_stdcxx+set}" = set; then
5007 enableval=$enable_embed_stdcxx;
5008 else
5009 enableval=default
5012 case "$enableval" in
5013 yes) ENABLE_EMBED_STDCXX=1
5015 no) ENABLE_EMBED_STDCXX=0
5017 default) ENABLE_EMBED_STDCXX=1
5019 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5020 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5021 { (exit 1); exit 1; }; } ;;
5022 esac
5024 # Check whether --enable-timestamps was given.
5025 if test "${enable_timestamps+set}" = set; then
5026 enableval=$enable_timestamps;
5027 else
5028 enableval=default
5031 case "$enableval" in
5032 yes) ENABLE_TIMESTAMPS=1
5034 no) ENABLE_TIMESTAMPS=0
5036 default) ENABLE_TIMESTAMPS=1
5038 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5039 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5040 { (exit 1); exit 1; }; } ;;
5041 esac
5043 cat >>confdefs.h <<_ACEOF
5044 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5045 _ACEOF
5048 TARGETS_TO_BUILD=""
5049 # Check whether --enable-targets was given.
5050 if test "${enable_targets+set}" = set; then
5051 enableval=$enable_targets;
5052 else
5053 enableval=all
5056 if test "$enableval" = host-only ; then
5057 enableval=host
5059 case "$enableval" in
5060 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU XCore MSP430 SystemZ Blackfin CBackend CppBackend MBlaze PTX" ;;
5061 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5062 case "$a_target" in
5063 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5064 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5065 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5066 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5067 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5068 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5069 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5070 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5071 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5072 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5073 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5074 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5075 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5076 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5077 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5078 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5079 host) case "$llvm_cv_target_arch" in
5080 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5081 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5082 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5083 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5084 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5085 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5086 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5087 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5088 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5089 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5090 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5091 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5092 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5093 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5094 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5095 echo "$as_me: error: Can not set target to build" >&2;}
5096 { (exit 1); exit 1; }; } ;;
5097 esac ;;
5098 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5099 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5100 { (exit 1); exit 1; }; } ;;
5101 esac
5102 done
5104 esac
5105 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5108 # Determine whether we are building LLVM support for the native architecture.
5109 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5110 for a_target in $TARGETS_TO_BUILD; do
5111 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5113 cat >>confdefs.h <<_ACEOF
5114 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5115 _ACEOF
5117 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5118 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5119 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5120 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5121 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5124 cat >>confdefs.h <<_ACEOF
5125 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5126 _ACEOF
5129 cat >>confdefs.h <<_ACEOF
5130 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5131 _ACEOF
5134 cat >>confdefs.h <<_ACEOF
5135 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5136 _ACEOF
5138 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5140 cat >>confdefs.h <<_ACEOF
5141 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5142 _ACEOF
5146 done
5148 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5149 # target feature def files.
5150 LLVM_ENUM_TARGETS=""
5151 LLVM_ENUM_ASM_PRINTERS=""
5152 LLVM_ENUM_ASM_PARSERS=""
5153 LLVM_ENUM_DISASSEMBLERS=""
5154 for target_to_build in $TARGETS_TO_BUILD; do
5155 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5156 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5157 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5159 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5160 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5162 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5163 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5165 done
5171 # Check whether --enable-cbe-printf-a was given.
5172 if test "${enable_cbe_printf_a+set}" = set; then
5173 enableval=$enable_cbe_printf_a;
5174 else
5175 enableval=default
5178 case "$enableval" in
5179 yes) ENABLE_CBE_PRINTF_A=1
5181 no) ENABLE_CBE_PRINTF_A=0
5183 default) ENABLE_CBE_PRINTF_A=1
5185 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5186 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5187 { (exit 1); exit 1; }; } ;;
5188 esac
5190 cat >>confdefs.h <<_ACEOF
5191 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5192 _ACEOF
5196 # Check whether --with-llvmgccdir was given.
5197 if test "${with_llvmgccdir+set}" = set; then
5198 withval=$with_llvmgccdir;
5199 else
5200 withval=default
5203 case "$withval" in
5204 default) WITH_LLVMGCCDIR=default ;;
5205 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5206 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5207 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5208 { (exit 1); exit 1; }; } ;;
5209 esac
5212 # Check whether --with-llvmgcc was given.
5213 if test "${with_llvmgcc+set}" = set; then
5214 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5215 WITH_LLVMGCCDIR=""
5220 # Check whether --with-llvmgxx was given.
5221 if test "${with_llvmgxx+set}" = set; then
5222 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5223 WITH_LLVMGCCDIR=""
5227 if test -n "$LLVMGCC"; then
5228 LLVMGCCCOMMAND="$LLVMGCC"
5231 if test -n "$LLVMGXX"; then
5232 LLVMGXXCOMMAND="$LLVMGXX"
5235 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5236 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5237 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5238 { (exit 1); exit 1; }; };
5241 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5242 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5243 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5244 { (exit 1); exit 1; }; };
5248 # Check whether --with-clang was given.
5249 if test "${with_clang+set}" = set; then
5250 withval=$with_clang;
5251 else
5252 with_clang=default
5257 # Check whether --with-built-clang was given.
5258 if test "${with_built_clang+set}" = set; then
5259 withval=$with_built_clang;
5260 else
5261 with_built_clang=check
5265 { echo "$as_me:$LINENO: checking clang compiler" >&5
5266 echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5267 WITH_CLANGPATH=""
5268 WITH_BUILT_CLANG=0
5269 if test "$with_clang" != "default"; then
5270 WITH_CLANGPATH="$with_clang"
5271 if ! test -x "$WITH_CLANGPATH"; then
5272 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5273 echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5274 { (exit 1); exit 1; }; }
5276 elif test "$with_built_clang" = "yes"; then
5277 WITH_BUILT_CLANG=1
5278 elif test "$with_built_clang" = "no"; then
5279 WITH_BUILT_CLANG=0
5280 else
5281 if test "$with_built_clang" != "check"; then
5282 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5283 echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5284 { (exit 1); exit 1; }; }
5287 if test -f ${srcdir}/tools/clang/README.txt; then
5288 WITH_BUILT_CLANG=1
5292 if ! test -z "$WITH_CLANGPATH"; then
5293 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5294 echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5295 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5296 elif test "$WITH_BUILT_CLANG" = "1"; then
5297 { echo "$as_me:$LINENO: result: built" >&5
5298 echo "${ECHO_T}built" >&6; }
5299 else
5300 { echo "$as_me:$LINENO: result: none" >&5
5301 echo "${ECHO_T}none" >&6; }
5303 CLANGPATH=$WITH_CLANGPATH
5305 CLANGXXPATH=$WITH_CLANGXXPATH
5307 ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5311 # Check whether --with-optimize-option was given.
5312 if test "${with_optimize_option+set}" = set; then
5313 withval=$with_optimize_option;
5314 else
5315 withval=default
5318 { echo "$as_me:$LINENO: checking optimization flags" >&5
5319 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5320 case "$withval" in
5321 default)
5322 case "$llvm_cv_os_type" in
5323 FreeBSD) optimize_option=-O2 ;;
5324 MingW) optimize_option=-O2 ;;
5325 *) optimize_option=-O3 ;;
5326 esac ;;
5327 *) optimize_option="$withval" ;;
5328 esac
5329 OPTIMIZE_OPTION=$optimize_option
5331 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5332 echo "${ECHO_T}$optimize_option" >&6; }
5335 # Check whether --with-extra-options was given.
5336 if test "${with_extra_options+set}" = set; then
5337 withval=$with_extra_options;
5338 else
5339 withval=default
5342 case "$withval" in
5343 default) EXTRA_OPTIONS= ;;
5344 *) EXTRA_OPTIONS=$withval ;;
5345 esac
5346 EXTRA_OPTIONS=$EXTRA_OPTIONS
5349 # Check whether --enable-bindings was given.
5350 if test "${enable_bindings+set}" = set; then
5351 enableval=$enable_bindings;
5352 else
5353 enableval=default
5356 BINDINGS_TO_BUILD=""
5357 case "$enableval" in
5358 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5359 all ) BINDINGS_TO_BUILD="ocaml" ;;
5360 none | no) BINDINGS_TO_BUILD="" ;;
5361 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5362 case "$a_binding" in
5363 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5364 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5365 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5366 { (exit 1); exit 1; }; } ;;
5367 esac
5368 done
5370 esac
5373 # Check whether --with-ocaml-libdir was given.
5374 if test "${with_ocaml_libdir+set}" = set; then
5375 withval=$with_ocaml_libdir;
5376 else
5377 withval=auto
5380 case "$withval" in
5381 auto) with_ocaml_libdir="$withval" ;;
5382 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5383 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5384 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5385 { (exit 1); exit 1; }; } ;;
5386 esac
5389 # Check whether --with-clang-resource-dir was given.
5390 if test "${with_clang_resource_dir+set}" = set; then
5391 withval=$with_clang_resource_dir;
5392 else
5393 withval=""
5397 cat >>confdefs.h <<_ACEOF
5398 #define CLANG_RESOURCE_DIR "$withval"
5399 _ACEOF
5403 # Check whether --with-c-include-dirs was given.
5404 if test "${with_c_include_dirs+set}" = set; then
5405 withval=$with_c_include_dirs;
5406 else
5407 withval=""
5411 cat >>confdefs.h <<_ACEOF
5412 #define C_INCLUDE_DIRS "$withval"
5413 _ACEOF
5417 # Check whether --with-cxx-include-root was given.
5418 if test "${with_cxx_include_root+set}" = set; then
5419 withval=$with_cxx_include_root;
5420 else
5421 withval=""
5425 cat >>confdefs.h <<_ACEOF
5426 #define CXX_INCLUDE_ROOT "$withval"
5427 _ACEOF
5431 # Check whether --with-cxx-include-arch was given.
5432 if test "${with_cxx_include_arch+set}" = set; then
5433 withval=$with_cxx_include_arch;
5434 else
5435 withval=""
5439 cat >>confdefs.h <<_ACEOF
5440 #define CXX_INCLUDE_ARCH "$withval"
5441 _ACEOF
5445 # Check whether --with-cxx-include-32bit-dir was given.
5446 if test "${with_cxx_include_32bit_dir+set}" = set; then
5447 withval=$with_cxx_include_32bit_dir;
5448 else
5449 withval=""
5453 cat >>confdefs.h <<_ACEOF
5454 #define CXX_INCLUDE_32BIT_DIR "$withval"
5455 _ACEOF
5459 # Check whether --with-cxx-include-64bit-dir was given.
5460 if test "${with_cxx_include_64bit_dir+set}" = set; then
5461 withval=$with_cxx_include_64bit_dir;
5462 else
5463 withval=""
5467 cat >>confdefs.h <<_ACEOF
5468 #define CXX_INCLUDE_64BIT_DIR "$withval"
5469 _ACEOF
5473 # Check whether --with-binutils-include was given.
5474 if test "${with_binutils_include+set}" = set; then
5475 withval=$with_binutils_include;
5476 else
5477 withval=default
5480 case "$withval" in
5481 default) WITH_BINUTILS_INCDIR=default ;;
5482 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5483 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5484 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5485 { (exit 1); exit 1; }; } ;;
5486 esac
5487 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5488 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5490 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5491 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5492 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5493 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5494 { (exit 1); exit 1; }; };
5498 # Check whether --enable-libffi was given.
5499 if test "${enable_libffi+set}" = set; then
5500 enableval=$enable_libffi; case "$enableval" in
5501 yes) llvm_cv_enable_libffi="yes" ;;
5502 no) llvm_cv_enable_libffi="no" ;;
5503 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5504 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5505 { (exit 1); exit 1; }; } ;;
5506 esac
5507 else
5508 llvm_cv_enable_libffi=no
5513 ac_ext=c
5514 ac_cpp='$CPP $CPPFLAGS'
5515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5518 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5519 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5520 # On Suns, sometimes $CPP names a directory.
5521 if test -n "$CPP" && test -d "$CPP"; then
5522 CPP=
5524 if test -z "$CPP"; then
5525 if test "${ac_cv_prog_CPP+set}" = set; then
5526 echo $ECHO_N "(cached) $ECHO_C" >&6
5527 else
5528 # Double quotes because CPP needs to be expanded
5529 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5531 ac_preproc_ok=false
5532 for ac_c_preproc_warn_flag in '' yes
5534 # Use a header file that comes with gcc, so configuring glibc
5535 # with a fresh cross-compiler works.
5536 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5537 # <limits.h> exists even on freestanding compilers.
5538 # On the NeXT, cc -E runs the code through the compiler's parser,
5539 # not just through cpp. "Syntax error" is here to catch this case.
5540 cat >conftest.$ac_ext <<_ACEOF
5541 /* confdefs.h. */
5542 _ACEOF
5543 cat confdefs.h >>conftest.$ac_ext
5544 cat >>conftest.$ac_ext <<_ACEOF
5545 /* end confdefs.h. */
5546 #ifdef __STDC__
5547 # include <limits.h>
5548 #else
5549 # include <assert.h>
5550 #endif
5551 Syntax error
5552 _ACEOF
5553 if { (ac_try="$ac_cpp conftest.$ac_ext"
5554 case "(($ac_try" in
5555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5556 *) ac_try_echo=$ac_try;;
5557 esac
5558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5559 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5560 ac_status=$?
5561 grep -v '^ *+' conftest.er1 >conftest.err
5562 rm -f conftest.er1
5563 cat conftest.err >&5
5564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565 (exit $ac_status); } >/dev/null; then
5566 if test -s conftest.err; then
5567 ac_cpp_err=$ac_c_preproc_warn_flag
5568 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5569 else
5570 ac_cpp_err=
5572 else
5573 ac_cpp_err=yes
5575 if test -z "$ac_cpp_err"; then
5577 else
5578 echo "$as_me: failed program was:" >&5
5579 sed 's/^/| /' conftest.$ac_ext >&5
5581 # Broken: fails on valid input.
5582 continue
5585 rm -f conftest.err conftest.$ac_ext
5587 # OK, works on sane cases. Now check whether nonexistent headers
5588 # can be detected and how.
5589 cat >conftest.$ac_ext <<_ACEOF
5590 /* confdefs.h. */
5591 _ACEOF
5592 cat confdefs.h >>conftest.$ac_ext
5593 cat >>conftest.$ac_ext <<_ACEOF
5594 /* end confdefs.h. */
5595 #include <ac_nonexistent.h>
5596 _ACEOF
5597 if { (ac_try="$ac_cpp conftest.$ac_ext"
5598 case "(($ac_try" in
5599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5600 *) ac_try_echo=$ac_try;;
5601 esac
5602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5603 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5604 ac_status=$?
5605 grep -v '^ *+' conftest.er1 >conftest.err
5606 rm -f conftest.er1
5607 cat conftest.err >&5
5608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609 (exit $ac_status); } >/dev/null; then
5610 if test -s conftest.err; then
5611 ac_cpp_err=$ac_c_preproc_warn_flag
5612 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5613 else
5614 ac_cpp_err=
5616 else
5617 ac_cpp_err=yes
5619 if test -z "$ac_cpp_err"; then
5620 # Broken: success on invalid input.
5621 continue
5622 else
5623 echo "$as_me: failed program was:" >&5
5624 sed 's/^/| /' conftest.$ac_ext >&5
5626 # Passes both tests.
5627 ac_preproc_ok=:
5628 break
5631 rm -f conftest.err conftest.$ac_ext
5633 done
5634 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5635 rm -f conftest.err conftest.$ac_ext
5636 if $ac_preproc_ok; then
5637 break
5640 done
5641 ac_cv_prog_CPP=$CPP
5644 CPP=$ac_cv_prog_CPP
5645 else
5646 ac_cv_prog_CPP=$CPP
5648 { echo "$as_me:$LINENO: result: $CPP" >&5
5649 echo "${ECHO_T}$CPP" >&6; }
5650 ac_preproc_ok=false
5651 for ac_c_preproc_warn_flag in '' yes
5653 # Use a header file that comes with gcc, so configuring glibc
5654 # with a fresh cross-compiler works.
5655 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5656 # <limits.h> exists even on freestanding compilers.
5657 # On the NeXT, cc -E runs the code through the compiler's parser,
5658 # not just through cpp. "Syntax error" is here to catch this case.
5659 cat >conftest.$ac_ext <<_ACEOF
5660 /* confdefs.h. */
5661 _ACEOF
5662 cat confdefs.h >>conftest.$ac_ext
5663 cat >>conftest.$ac_ext <<_ACEOF
5664 /* end confdefs.h. */
5665 #ifdef __STDC__
5666 # include <limits.h>
5667 #else
5668 # include <assert.h>
5669 #endif
5670 Syntax error
5671 _ACEOF
5672 if { (ac_try="$ac_cpp conftest.$ac_ext"
5673 case "(($ac_try" in
5674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5675 *) ac_try_echo=$ac_try;;
5676 esac
5677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5678 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5679 ac_status=$?
5680 grep -v '^ *+' conftest.er1 >conftest.err
5681 rm -f conftest.er1
5682 cat conftest.err >&5
5683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684 (exit $ac_status); } >/dev/null; then
5685 if test -s conftest.err; then
5686 ac_cpp_err=$ac_c_preproc_warn_flag
5687 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5688 else
5689 ac_cpp_err=
5691 else
5692 ac_cpp_err=yes
5694 if test -z "$ac_cpp_err"; then
5696 else
5697 echo "$as_me: failed program was:" >&5
5698 sed 's/^/| /' conftest.$ac_ext >&5
5700 # Broken: fails on valid input.
5701 continue
5704 rm -f conftest.err conftest.$ac_ext
5706 # OK, works on sane cases. Now check whether nonexistent headers
5707 # can be detected and how.
5708 cat >conftest.$ac_ext <<_ACEOF
5709 /* confdefs.h. */
5710 _ACEOF
5711 cat confdefs.h >>conftest.$ac_ext
5712 cat >>conftest.$ac_ext <<_ACEOF
5713 /* end confdefs.h. */
5714 #include <ac_nonexistent.h>
5715 _ACEOF
5716 if { (ac_try="$ac_cpp conftest.$ac_ext"
5717 case "(($ac_try" in
5718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5719 *) ac_try_echo=$ac_try;;
5720 esac
5721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5722 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5723 ac_status=$?
5724 grep -v '^ *+' conftest.er1 >conftest.err
5725 rm -f conftest.er1
5726 cat conftest.err >&5
5727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728 (exit $ac_status); } >/dev/null; then
5729 if test -s conftest.err; then
5730 ac_cpp_err=$ac_c_preproc_warn_flag
5731 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5732 else
5733 ac_cpp_err=
5735 else
5736 ac_cpp_err=yes
5738 if test -z "$ac_cpp_err"; then
5739 # Broken: success on invalid input.
5740 continue
5741 else
5742 echo "$as_me: failed program was:" >&5
5743 sed 's/^/| /' conftest.$ac_ext >&5
5745 # Passes both tests.
5746 ac_preproc_ok=:
5747 break
5750 rm -f conftest.err conftest.$ac_ext
5752 done
5753 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5754 rm -f conftest.err conftest.$ac_ext
5755 if $ac_preproc_ok; then
5757 else
5758 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5759 See \`config.log' for more details." >&5
5760 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5761 See \`config.log' for more details." >&2;}
5762 { (exit 1); exit 1; }; }
5765 ac_ext=c
5766 ac_cpp='$CPP $CPPFLAGS'
5767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5771 ac_ext=c
5772 ac_cpp='$CPP $CPPFLAGS'
5773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5776 if test -n "$ac_tool_prefix"; then
5777 for ac_prog in gcc
5779 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5780 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5781 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5783 if test "${ac_cv_prog_CC+set}" = set; then
5784 echo $ECHO_N "(cached) $ECHO_C" >&6
5785 else
5786 if test -n "$CC"; then
5787 ac_cv_prog_CC="$CC" # Let the user override the test.
5788 else
5789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5790 for as_dir in $PATH
5792 IFS=$as_save_IFS
5793 test -z "$as_dir" && as_dir=.
5794 for ac_exec_ext in '' $ac_executable_extensions; do
5795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5796 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5798 break 2
5800 done
5801 done
5802 IFS=$as_save_IFS
5806 CC=$ac_cv_prog_CC
5807 if test -n "$CC"; then
5808 { echo "$as_me:$LINENO: result: $CC" >&5
5809 echo "${ECHO_T}$CC" >&6; }
5810 else
5811 { echo "$as_me:$LINENO: result: no" >&5
5812 echo "${ECHO_T}no" >&6; }
5816 test -n "$CC" && break
5817 done
5819 if test -z "$CC"; then
5820 ac_ct_CC=$CC
5821 for ac_prog in gcc
5823 # Extract the first word of "$ac_prog", so it can be a program name with args.
5824 set dummy $ac_prog; ac_word=$2
5825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5827 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5828 echo $ECHO_N "(cached) $ECHO_C" >&6
5829 else
5830 if test -n "$ac_ct_CC"; then
5831 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5832 else
5833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5834 for as_dir in $PATH
5836 IFS=$as_save_IFS
5837 test -z "$as_dir" && as_dir=.
5838 for ac_exec_ext in '' $ac_executable_extensions; do
5839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5840 ac_cv_prog_ac_ct_CC="$ac_prog"
5841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5842 break 2
5844 done
5845 done
5846 IFS=$as_save_IFS
5850 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5851 if test -n "$ac_ct_CC"; then
5852 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5853 echo "${ECHO_T}$ac_ct_CC" >&6; }
5854 else
5855 { echo "$as_me:$LINENO: result: no" >&5
5856 echo "${ECHO_T}no" >&6; }
5860 test -n "$ac_ct_CC" && break
5861 done
5863 if test "x$ac_ct_CC" = x; then
5864 CC=""
5865 else
5866 case $cross_compiling:$ac_tool_warned in
5867 yes:)
5868 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5869 whose name does not start with the host triplet. If you think this
5870 configuration is useful to you, please write to autoconf@gnu.org." >&5
5871 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5872 whose name does not start with the host triplet. If you think this
5873 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5874 ac_tool_warned=yes ;;
5875 esac
5876 CC=$ac_ct_CC
5881 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5882 See \`config.log' for more details." >&5
5883 echo "$as_me: error: no acceptable C compiler found in \$PATH
5884 See \`config.log' for more details." >&2;}
5885 { (exit 1); exit 1; }; }
5887 # Provide some information about the compiler.
5888 echo "$as_me:$LINENO: checking for C compiler version" >&5
5889 ac_compiler=`set X $ac_compile; echo $2`
5890 { (ac_try="$ac_compiler --version >&5"
5891 case "(($ac_try" in
5892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5893 *) ac_try_echo=$ac_try;;
5894 esac
5895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5896 (eval "$ac_compiler --version >&5") 2>&5
5897 ac_status=$?
5898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5899 (exit $ac_status); }
5900 { (ac_try="$ac_compiler -v >&5"
5901 case "(($ac_try" in
5902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5903 *) ac_try_echo=$ac_try;;
5904 esac
5905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5906 (eval "$ac_compiler -v >&5") 2>&5
5907 ac_status=$?
5908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5909 (exit $ac_status); }
5910 { (ac_try="$ac_compiler -V >&5"
5911 case "(($ac_try" in
5912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5913 *) ac_try_echo=$ac_try;;
5914 esac
5915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5916 (eval "$ac_compiler -V >&5") 2>&5
5917 ac_status=$?
5918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919 (exit $ac_status); }
5921 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5922 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5923 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5924 echo $ECHO_N "(cached) $ECHO_C" >&6
5925 else
5926 cat >conftest.$ac_ext <<_ACEOF
5927 /* confdefs.h. */
5928 _ACEOF
5929 cat confdefs.h >>conftest.$ac_ext
5930 cat >>conftest.$ac_ext <<_ACEOF
5931 /* end confdefs.h. */
5934 main ()
5936 #ifndef __GNUC__
5937 choke me
5938 #endif
5941 return 0;
5943 _ACEOF
5944 rm -f conftest.$ac_objext
5945 if { (ac_try="$ac_compile"
5946 case "(($ac_try" in
5947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5948 *) ac_try_echo=$ac_try;;
5949 esac
5950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5951 (eval "$ac_compile") 2>conftest.er1
5952 ac_status=$?
5953 grep -v '^ *+' conftest.er1 >conftest.err
5954 rm -f conftest.er1
5955 cat conftest.err >&5
5956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957 (exit $ac_status); } &&
5958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5959 { (case "(($ac_try" in
5960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5961 *) ac_try_echo=$ac_try;;
5962 esac
5963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5964 (eval "$ac_try") 2>&5
5965 ac_status=$?
5966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967 (exit $ac_status); }; } &&
5968 { ac_try='test -s conftest.$ac_objext'
5969 { (case "(($ac_try" in
5970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5971 *) ac_try_echo=$ac_try;;
5972 esac
5973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5974 (eval "$ac_try") 2>&5
5975 ac_status=$?
5976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977 (exit $ac_status); }; }; then
5978 ac_compiler_gnu=yes
5979 else
5980 echo "$as_me: failed program was:" >&5
5981 sed 's/^/| /' conftest.$ac_ext >&5
5983 ac_compiler_gnu=no
5986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5987 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5990 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5991 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5992 GCC=`test $ac_compiler_gnu = yes && echo yes`
5993 ac_test_CFLAGS=${CFLAGS+set}
5994 ac_save_CFLAGS=$CFLAGS
5995 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5996 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5997 if test "${ac_cv_prog_cc_g+set}" = set; then
5998 echo $ECHO_N "(cached) $ECHO_C" >&6
5999 else
6000 ac_save_c_werror_flag=$ac_c_werror_flag
6001 ac_c_werror_flag=yes
6002 ac_cv_prog_cc_g=no
6003 CFLAGS="-g"
6004 cat >conftest.$ac_ext <<_ACEOF
6005 /* confdefs.h. */
6006 _ACEOF
6007 cat confdefs.h >>conftest.$ac_ext
6008 cat >>conftest.$ac_ext <<_ACEOF
6009 /* end confdefs.h. */
6012 main ()
6016 return 0;
6018 _ACEOF
6019 rm -f conftest.$ac_objext
6020 if { (ac_try="$ac_compile"
6021 case "(($ac_try" in
6022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6023 *) ac_try_echo=$ac_try;;
6024 esac
6025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6026 (eval "$ac_compile") 2>conftest.er1
6027 ac_status=$?
6028 grep -v '^ *+' conftest.er1 >conftest.err
6029 rm -f conftest.er1
6030 cat conftest.err >&5
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); } &&
6033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6034 { (case "(($ac_try" in
6035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6036 *) ac_try_echo=$ac_try;;
6037 esac
6038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6039 (eval "$ac_try") 2>&5
6040 ac_status=$?
6041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042 (exit $ac_status); }; } &&
6043 { ac_try='test -s conftest.$ac_objext'
6044 { (case "(($ac_try" in
6045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6046 *) ac_try_echo=$ac_try;;
6047 esac
6048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6049 (eval "$ac_try") 2>&5
6050 ac_status=$?
6051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052 (exit $ac_status); }; }; then
6053 ac_cv_prog_cc_g=yes
6054 else
6055 echo "$as_me: failed program was:" >&5
6056 sed 's/^/| /' conftest.$ac_ext >&5
6058 CFLAGS=""
6059 cat >conftest.$ac_ext <<_ACEOF
6060 /* confdefs.h. */
6061 _ACEOF
6062 cat confdefs.h >>conftest.$ac_ext
6063 cat >>conftest.$ac_ext <<_ACEOF
6064 /* end confdefs.h. */
6067 main ()
6071 return 0;
6073 _ACEOF
6074 rm -f conftest.$ac_objext
6075 if { (ac_try="$ac_compile"
6076 case "(($ac_try" in
6077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6078 *) ac_try_echo=$ac_try;;
6079 esac
6080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6081 (eval "$ac_compile") 2>conftest.er1
6082 ac_status=$?
6083 grep -v '^ *+' conftest.er1 >conftest.err
6084 rm -f conftest.er1
6085 cat conftest.err >&5
6086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087 (exit $ac_status); } &&
6088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6089 { (case "(($ac_try" in
6090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6091 *) ac_try_echo=$ac_try;;
6092 esac
6093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6094 (eval "$ac_try") 2>&5
6095 ac_status=$?
6096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097 (exit $ac_status); }; } &&
6098 { ac_try='test -s conftest.$ac_objext'
6099 { (case "(($ac_try" in
6100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6101 *) ac_try_echo=$ac_try;;
6102 esac
6103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6104 (eval "$ac_try") 2>&5
6105 ac_status=$?
6106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6107 (exit $ac_status); }; }; then
6109 else
6110 echo "$as_me: failed program was:" >&5
6111 sed 's/^/| /' conftest.$ac_ext >&5
6113 ac_c_werror_flag=$ac_save_c_werror_flag
6114 CFLAGS="-g"
6115 cat >conftest.$ac_ext <<_ACEOF
6116 /* confdefs.h. */
6117 _ACEOF
6118 cat confdefs.h >>conftest.$ac_ext
6119 cat >>conftest.$ac_ext <<_ACEOF
6120 /* end confdefs.h. */
6123 main ()
6127 return 0;
6129 _ACEOF
6130 rm -f conftest.$ac_objext
6131 if { (ac_try="$ac_compile"
6132 case "(($ac_try" in
6133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6134 *) ac_try_echo=$ac_try;;
6135 esac
6136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6137 (eval "$ac_compile") 2>conftest.er1
6138 ac_status=$?
6139 grep -v '^ *+' conftest.er1 >conftest.err
6140 rm -f conftest.er1
6141 cat conftest.err >&5
6142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143 (exit $ac_status); } &&
6144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6145 { (case "(($ac_try" in
6146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6147 *) ac_try_echo=$ac_try;;
6148 esac
6149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6150 (eval "$ac_try") 2>&5
6151 ac_status=$?
6152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153 (exit $ac_status); }; } &&
6154 { ac_try='test -s conftest.$ac_objext'
6155 { (case "(($ac_try" in
6156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6157 *) ac_try_echo=$ac_try;;
6158 esac
6159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6160 (eval "$ac_try") 2>&5
6161 ac_status=$?
6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); }; }; then
6164 ac_cv_prog_cc_g=yes
6165 else
6166 echo "$as_me: failed program was:" >&5
6167 sed 's/^/| /' conftest.$ac_ext >&5
6172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6179 ac_c_werror_flag=$ac_save_c_werror_flag
6181 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6182 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6183 if test "$ac_test_CFLAGS" = set; then
6184 CFLAGS=$ac_save_CFLAGS
6185 elif test $ac_cv_prog_cc_g = yes; then
6186 if test "$GCC" = yes; then
6187 CFLAGS="-g -O2"
6188 else
6189 CFLAGS="-g"
6191 else
6192 if test "$GCC" = yes; then
6193 CFLAGS="-O2"
6194 else
6195 CFLAGS=
6198 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6199 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6200 if test "${ac_cv_prog_cc_c89+set}" = set; then
6201 echo $ECHO_N "(cached) $ECHO_C" >&6
6202 else
6203 ac_cv_prog_cc_c89=no
6204 ac_save_CC=$CC
6205 cat >conftest.$ac_ext <<_ACEOF
6206 /* confdefs.h. */
6207 _ACEOF
6208 cat confdefs.h >>conftest.$ac_ext
6209 cat >>conftest.$ac_ext <<_ACEOF
6210 /* end confdefs.h. */
6211 #include <stdarg.h>
6212 #include <stdio.h>
6213 #include <sys/types.h>
6214 #include <sys/stat.h>
6215 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6216 struct buf { int x; };
6217 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6218 static char *e (p, i)
6219 char **p;
6220 int i;
6222 return p[i];
6224 static char *f (char * (*g) (char **, int), char **p, ...)
6226 char *s;
6227 va_list v;
6228 va_start (v,p);
6229 s = g (p, va_arg (v,int));
6230 va_end (v);
6231 return s;
6234 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6235 function prototypes and stuff, but not '\xHH' hex character constants.
6236 These don't provoke an error unfortunately, instead are silently treated
6237 as 'x'. The following induces an error, until -std is added to get
6238 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6239 array size at least. It's necessary to write '\x00'==0 to get something
6240 that's true only with -std. */
6241 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6243 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6244 inside strings and character constants. */
6245 #define FOO(x) 'x'
6246 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6248 int test (int i, double x);
6249 struct s1 {int (*f) (int a);};
6250 struct s2 {int (*f) (double a);};
6251 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6252 int argc;
6253 char **argv;
6255 main ()
6257 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6259 return 0;
6261 _ACEOF
6262 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6263 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6265 CC="$ac_save_CC $ac_arg"
6266 rm -f conftest.$ac_objext
6267 if { (ac_try="$ac_compile"
6268 case "(($ac_try" in
6269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6270 *) ac_try_echo=$ac_try;;
6271 esac
6272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6273 (eval "$ac_compile") 2>conftest.er1
6274 ac_status=$?
6275 grep -v '^ *+' conftest.er1 >conftest.err
6276 rm -f conftest.er1
6277 cat conftest.err >&5
6278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279 (exit $ac_status); } &&
6280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6281 { (case "(($ac_try" in
6282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6283 *) ac_try_echo=$ac_try;;
6284 esac
6285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6286 (eval "$ac_try") 2>&5
6287 ac_status=$?
6288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289 (exit $ac_status); }; } &&
6290 { ac_try='test -s conftest.$ac_objext'
6291 { (case "(($ac_try" in
6292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6293 *) ac_try_echo=$ac_try;;
6294 esac
6295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6296 (eval "$ac_try") 2>&5
6297 ac_status=$?
6298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299 (exit $ac_status); }; }; then
6300 ac_cv_prog_cc_c89=$ac_arg
6301 else
6302 echo "$as_me: failed program was:" >&5
6303 sed 's/^/| /' conftest.$ac_ext >&5
6308 rm -f core conftest.err conftest.$ac_objext
6309 test "x$ac_cv_prog_cc_c89" != "xno" && break
6310 done
6311 rm -f conftest.$ac_ext
6312 CC=$ac_save_CC
6315 # AC_CACHE_VAL
6316 case "x$ac_cv_prog_cc_c89" in
6318 { echo "$as_me:$LINENO: result: none needed" >&5
6319 echo "${ECHO_T}none needed" >&6; } ;;
6320 xno)
6321 { echo "$as_me:$LINENO: result: unsupported" >&5
6322 echo "${ECHO_T}unsupported" >&6; } ;;
6324 CC="$CC $ac_cv_prog_cc_c89"
6325 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6326 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6327 esac
6330 ac_ext=c
6331 ac_cpp='$CPP $CPPFLAGS'
6332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6336 ac_ext=cpp
6337 ac_cpp='$CXXCPP $CPPFLAGS'
6338 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6339 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6340 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6341 if test -z "$CXX"; then
6342 if test -n "$CCC"; then
6343 CXX=$CCC
6344 else
6345 if test -n "$ac_tool_prefix"; then
6346 for ac_prog in g++
6348 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6349 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6350 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6352 if test "${ac_cv_prog_CXX+set}" = set; then
6353 echo $ECHO_N "(cached) $ECHO_C" >&6
6354 else
6355 if test -n "$CXX"; then
6356 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6357 else
6358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6359 for as_dir in $PATH
6361 IFS=$as_save_IFS
6362 test -z "$as_dir" && as_dir=.
6363 for ac_exec_ext in '' $ac_executable_extensions; do
6364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6365 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6367 break 2
6369 done
6370 done
6371 IFS=$as_save_IFS
6375 CXX=$ac_cv_prog_CXX
6376 if test -n "$CXX"; then
6377 { echo "$as_me:$LINENO: result: $CXX" >&5
6378 echo "${ECHO_T}$CXX" >&6; }
6379 else
6380 { echo "$as_me:$LINENO: result: no" >&5
6381 echo "${ECHO_T}no" >&6; }
6385 test -n "$CXX" && break
6386 done
6388 if test -z "$CXX"; then
6389 ac_ct_CXX=$CXX
6390 for ac_prog in g++
6392 # Extract the first word of "$ac_prog", so it can be a program name with args.
6393 set dummy $ac_prog; ac_word=$2
6394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6396 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6397 echo $ECHO_N "(cached) $ECHO_C" >&6
6398 else
6399 if test -n "$ac_ct_CXX"; then
6400 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6401 else
6402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6403 for as_dir in $PATH
6405 IFS=$as_save_IFS
6406 test -z "$as_dir" && as_dir=.
6407 for ac_exec_ext in '' $ac_executable_extensions; do
6408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6409 ac_cv_prog_ac_ct_CXX="$ac_prog"
6410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6411 break 2
6413 done
6414 done
6415 IFS=$as_save_IFS
6419 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6420 if test -n "$ac_ct_CXX"; then
6421 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6422 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6423 else
6424 { echo "$as_me:$LINENO: result: no" >&5
6425 echo "${ECHO_T}no" >&6; }
6429 test -n "$ac_ct_CXX" && break
6430 done
6432 if test "x$ac_ct_CXX" = x; then
6433 CXX="g++"
6434 else
6435 case $cross_compiling:$ac_tool_warned in
6436 yes:)
6437 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6438 whose name does not start with the host triplet. If you think this
6439 configuration is useful to you, please write to autoconf@gnu.org." >&5
6440 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6441 whose name does not start with the host triplet. If you think this
6442 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6443 ac_tool_warned=yes ;;
6444 esac
6445 CXX=$ac_ct_CXX
6451 # Provide some information about the compiler.
6452 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6453 ac_compiler=`set X $ac_compile; echo $2`
6454 { (ac_try="$ac_compiler --version >&5"
6455 case "(($ac_try" in
6456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6457 *) ac_try_echo=$ac_try;;
6458 esac
6459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6460 (eval "$ac_compiler --version >&5") 2>&5
6461 ac_status=$?
6462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463 (exit $ac_status); }
6464 { (ac_try="$ac_compiler -v >&5"
6465 case "(($ac_try" in
6466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6467 *) ac_try_echo=$ac_try;;
6468 esac
6469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6470 (eval "$ac_compiler -v >&5") 2>&5
6471 ac_status=$?
6472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473 (exit $ac_status); }
6474 { (ac_try="$ac_compiler -V >&5"
6475 case "(($ac_try" in
6476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6477 *) ac_try_echo=$ac_try;;
6478 esac
6479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6480 (eval "$ac_compiler -V >&5") 2>&5
6481 ac_status=$?
6482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6483 (exit $ac_status); }
6485 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6486 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6487 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6488 echo $ECHO_N "(cached) $ECHO_C" >&6
6489 else
6490 cat >conftest.$ac_ext <<_ACEOF
6491 /* confdefs.h. */
6492 _ACEOF
6493 cat confdefs.h >>conftest.$ac_ext
6494 cat >>conftest.$ac_ext <<_ACEOF
6495 /* end confdefs.h. */
6498 main ()
6500 #ifndef __GNUC__
6501 choke me
6502 #endif
6505 return 0;
6507 _ACEOF
6508 rm -f conftest.$ac_objext
6509 if { (ac_try="$ac_compile"
6510 case "(($ac_try" in
6511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6512 *) ac_try_echo=$ac_try;;
6513 esac
6514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6515 (eval "$ac_compile") 2>conftest.er1
6516 ac_status=$?
6517 grep -v '^ *+' conftest.er1 >conftest.err
6518 rm -f conftest.er1
6519 cat conftest.err >&5
6520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521 (exit $ac_status); } &&
6522 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6523 { (case "(($ac_try" in
6524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6525 *) ac_try_echo=$ac_try;;
6526 esac
6527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6528 (eval "$ac_try") 2>&5
6529 ac_status=$?
6530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531 (exit $ac_status); }; } &&
6532 { ac_try='test -s conftest.$ac_objext'
6533 { (case "(($ac_try" in
6534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6535 *) ac_try_echo=$ac_try;;
6536 esac
6537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6538 (eval "$ac_try") 2>&5
6539 ac_status=$?
6540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6541 (exit $ac_status); }; }; then
6542 ac_compiler_gnu=yes
6543 else
6544 echo "$as_me: failed program was:" >&5
6545 sed 's/^/| /' conftest.$ac_ext >&5
6547 ac_compiler_gnu=no
6550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6551 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6554 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6555 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6556 GXX=`test $ac_compiler_gnu = yes && echo yes`
6557 ac_test_CXXFLAGS=${CXXFLAGS+set}
6558 ac_save_CXXFLAGS=$CXXFLAGS
6559 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6560 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6561 if test "${ac_cv_prog_cxx_g+set}" = set; then
6562 echo $ECHO_N "(cached) $ECHO_C" >&6
6563 else
6564 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6565 ac_cxx_werror_flag=yes
6566 ac_cv_prog_cxx_g=no
6567 CXXFLAGS="-g"
6568 cat >conftest.$ac_ext <<_ACEOF
6569 /* confdefs.h. */
6570 _ACEOF
6571 cat confdefs.h >>conftest.$ac_ext
6572 cat >>conftest.$ac_ext <<_ACEOF
6573 /* end confdefs.h. */
6576 main ()
6580 return 0;
6582 _ACEOF
6583 rm -f conftest.$ac_objext
6584 if { (ac_try="$ac_compile"
6585 case "(($ac_try" in
6586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6587 *) ac_try_echo=$ac_try;;
6588 esac
6589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6590 (eval "$ac_compile") 2>conftest.er1
6591 ac_status=$?
6592 grep -v '^ *+' conftest.er1 >conftest.err
6593 rm -f conftest.er1
6594 cat conftest.err >&5
6595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596 (exit $ac_status); } &&
6597 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6598 { (case "(($ac_try" in
6599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6600 *) ac_try_echo=$ac_try;;
6601 esac
6602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6603 (eval "$ac_try") 2>&5
6604 ac_status=$?
6605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606 (exit $ac_status); }; } &&
6607 { ac_try='test -s conftest.$ac_objext'
6608 { (case "(($ac_try" in
6609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6610 *) ac_try_echo=$ac_try;;
6611 esac
6612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6613 (eval "$ac_try") 2>&5
6614 ac_status=$?
6615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616 (exit $ac_status); }; }; then
6617 ac_cv_prog_cxx_g=yes
6618 else
6619 echo "$as_me: failed program was:" >&5
6620 sed 's/^/| /' conftest.$ac_ext >&5
6622 CXXFLAGS=""
6623 cat >conftest.$ac_ext <<_ACEOF
6624 /* confdefs.h. */
6625 _ACEOF
6626 cat confdefs.h >>conftest.$ac_ext
6627 cat >>conftest.$ac_ext <<_ACEOF
6628 /* end confdefs.h. */
6631 main ()
6635 return 0;
6637 _ACEOF
6638 rm -f conftest.$ac_objext
6639 if { (ac_try="$ac_compile"
6640 case "(($ac_try" in
6641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6642 *) ac_try_echo=$ac_try;;
6643 esac
6644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6645 (eval "$ac_compile") 2>conftest.er1
6646 ac_status=$?
6647 grep -v '^ *+' conftest.er1 >conftest.err
6648 rm -f conftest.er1
6649 cat conftest.err >&5
6650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6651 (exit $ac_status); } &&
6652 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6653 { (case "(($ac_try" in
6654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6655 *) ac_try_echo=$ac_try;;
6656 esac
6657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6658 (eval "$ac_try") 2>&5
6659 ac_status=$?
6660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661 (exit $ac_status); }; } &&
6662 { ac_try='test -s conftest.$ac_objext'
6663 { (case "(($ac_try" in
6664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6665 *) ac_try_echo=$ac_try;;
6666 esac
6667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6668 (eval "$ac_try") 2>&5
6669 ac_status=$?
6670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6671 (exit $ac_status); }; }; then
6673 else
6674 echo "$as_me: failed program was:" >&5
6675 sed 's/^/| /' conftest.$ac_ext >&5
6677 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6678 CXXFLAGS="-g"
6679 cat >conftest.$ac_ext <<_ACEOF
6680 /* confdefs.h. */
6681 _ACEOF
6682 cat confdefs.h >>conftest.$ac_ext
6683 cat >>conftest.$ac_ext <<_ACEOF
6684 /* end confdefs.h. */
6687 main ()
6691 return 0;
6693 _ACEOF
6694 rm -f conftest.$ac_objext
6695 if { (ac_try="$ac_compile"
6696 case "(($ac_try" in
6697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6698 *) ac_try_echo=$ac_try;;
6699 esac
6700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6701 (eval "$ac_compile") 2>conftest.er1
6702 ac_status=$?
6703 grep -v '^ *+' conftest.er1 >conftest.err
6704 rm -f conftest.er1
6705 cat conftest.err >&5
6706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6707 (exit $ac_status); } &&
6708 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6709 { (case "(($ac_try" in
6710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6711 *) ac_try_echo=$ac_try;;
6712 esac
6713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6714 (eval "$ac_try") 2>&5
6715 ac_status=$?
6716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717 (exit $ac_status); }; } &&
6718 { ac_try='test -s conftest.$ac_objext'
6719 { (case "(($ac_try" in
6720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6721 *) ac_try_echo=$ac_try;;
6722 esac
6723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6724 (eval "$ac_try") 2>&5
6725 ac_status=$?
6726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6727 (exit $ac_status); }; }; then
6728 ac_cv_prog_cxx_g=yes
6729 else
6730 echo "$as_me: failed program was:" >&5
6731 sed 's/^/| /' conftest.$ac_ext >&5
6736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6743 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6745 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6746 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6747 if test "$ac_test_CXXFLAGS" = set; then
6748 CXXFLAGS=$ac_save_CXXFLAGS
6749 elif test $ac_cv_prog_cxx_g = yes; then
6750 if test "$GXX" = yes; then
6751 CXXFLAGS="-g -O2"
6752 else
6753 CXXFLAGS="-g"
6755 else
6756 if test "$GXX" = yes; then
6757 CXXFLAGS="-O2"
6758 else
6759 CXXFLAGS=
6762 ac_ext=c
6763 ac_cpp='$CPP $CPPFLAGS'
6764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6769 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6770 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6771 if test "${lt_cv_path_NM+set}" = set; then
6772 echo $ECHO_N "(cached) $ECHO_C" >&6
6773 else
6774 if test -n "$NM"; then
6775 # Let the user override the test.
6776 lt_cv_path_NM="$NM"
6777 else
6778 lt_nm_to_check="${ac_tool_prefix}nm"
6779 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6780 lt_nm_to_check="$lt_nm_to_check nm"
6782 for lt_tmp_nm in $lt_nm_to_check; do
6783 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6784 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6785 IFS="$lt_save_ifs"
6786 test -z "$ac_dir" && ac_dir=.
6787 tmp_nm="$ac_dir/$lt_tmp_nm"
6788 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6789 # Check to see if the nm accepts a BSD-compat flag.
6790 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6791 # nm: unknown option "B" ignored
6792 # Tru64's nm complains that /dev/null is an invalid object file
6793 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6794 */dev/null* | *'Invalid file or object type'*)
6795 lt_cv_path_NM="$tmp_nm -B"
6796 break
6799 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6800 */dev/null*)
6801 lt_cv_path_NM="$tmp_nm -p"
6802 break
6805 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6806 continue # so that we can try to find one that supports BSD flags
6808 esac
6810 esac
6812 done
6813 IFS="$lt_save_ifs"
6814 done
6815 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6818 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6819 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6820 NM="$lt_cv_path_NM"
6824 { echo "$as_me:$LINENO: checking for GNU make" >&5
6825 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6826 if test "${llvm_cv_gnu_make_command+set}" = set; then
6827 echo $ECHO_N "(cached) $ECHO_C" >&6
6828 else
6829 llvm_cv_gnu_make_command=''
6830 for a in "$MAKE" make gmake gnumake ; do
6831 if test -z "$a" ; then continue ; fi ;
6832 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6833 then
6834 llvm_cv_gnu_make_command=$a ;
6835 break;
6837 done
6839 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6840 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6841 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6842 ifGNUmake='' ;
6843 else
6844 ifGNUmake='#' ;
6845 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6846 echo "${ECHO_T}\"Not found\"" >&6; };
6850 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6851 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6852 LN_S=$as_ln_s
6853 if test "$LN_S" = "ln -s"; then
6854 { echo "$as_me:$LINENO: result: yes" >&5
6855 echo "${ECHO_T}yes" >&6; }
6856 else
6857 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6858 echo "${ECHO_T}no, using $LN_S" >&6; }
6861 # Extract the first word of "cmp", so it can be a program name with args.
6862 set dummy cmp; ac_word=$2
6863 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6865 if test "${ac_cv_path_CMP+set}" = set; then
6866 echo $ECHO_N "(cached) $ECHO_C" >&6
6867 else
6868 case $CMP in
6869 [\\/]* | ?:[\\/]*)
6870 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6874 for as_dir in $PATH
6876 IFS=$as_save_IFS
6877 test -z "$as_dir" && as_dir=.
6878 for ac_exec_ext in '' $ac_executable_extensions; do
6879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6880 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6882 break 2
6884 done
6885 done
6886 IFS=$as_save_IFS
6888 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6890 esac
6892 CMP=$ac_cv_path_CMP
6893 if test -n "$CMP"; then
6894 { echo "$as_me:$LINENO: result: $CMP" >&5
6895 echo "${ECHO_T}$CMP" >&6; }
6896 else
6897 { echo "$as_me:$LINENO: result: no" >&5
6898 echo "${ECHO_T}no" >&6; }
6902 # Extract the first word of "cp", so it can be a program name with args.
6903 set dummy cp; ac_word=$2
6904 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6906 if test "${ac_cv_path_CP+set}" = set; then
6907 echo $ECHO_N "(cached) $ECHO_C" >&6
6908 else
6909 case $CP in
6910 [\\/]* | ?:[\\/]*)
6911 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6915 for as_dir in $PATH
6917 IFS=$as_save_IFS
6918 test -z "$as_dir" && as_dir=.
6919 for ac_exec_ext in '' $ac_executable_extensions; do
6920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6921 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6923 break 2
6925 done
6926 done
6927 IFS=$as_save_IFS
6929 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6931 esac
6933 CP=$ac_cv_path_CP
6934 if test -n "$CP"; then
6935 { echo "$as_me:$LINENO: result: $CP" >&5
6936 echo "${ECHO_T}$CP" >&6; }
6937 else
6938 { echo "$as_me:$LINENO: result: no" >&5
6939 echo "${ECHO_T}no" >&6; }
6943 # Extract the first word of "date", so it can be a program name with args.
6944 set dummy date; ac_word=$2
6945 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6947 if test "${ac_cv_path_DATE+set}" = set; then
6948 echo $ECHO_N "(cached) $ECHO_C" >&6
6949 else
6950 case $DATE in
6951 [\\/]* | ?:[\\/]*)
6952 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6956 for as_dir in $PATH
6958 IFS=$as_save_IFS
6959 test -z "$as_dir" && as_dir=.
6960 for ac_exec_ext in '' $ac_executable_extensions; do
6961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6962 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6964 break 2
6966 done
6967 done
6968 IFS=$as_save_IFS
6970 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6972 esac
6974 DATE=$ac_cv_path_DATE
6975 if test -n "$DATE"; then
6976 { echo "$as_me:$LINENO: result: $DATE" >&5
6977 echo "${ECHO_T}$DATE" >&6; }
6978 else
6979 { echo "$as_me:$LINENO: result: no" >&5
6980 echo "${ECHO_T}no" >&6; }
6984 # Extract the first word of "find", so it can be a program name with args.
6985 set dummy find; ac_word=$2
6986 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6988 if test "${ac_cv_path_FIND+set}" = set; then
6989 echo $ECHO_N "(cached) $ECHO_C" >&6
6990 else
6991 case $FIND in
6992 [\\/]* | ?:[\\/]*)
6993 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6997 for as_dir in $PATH
6999 IFS=$as_save_IFS
7000 test -z "$as_dir" && as_dir=.
7001 for ac_exec_ext in '' $ac_executable_extensions; do
7002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7003 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7005 break 2
7007 done
7008 done
7009 IFS=$as_save_IFS
7011 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
7013 esac
7015 FIND=$ac_cv_path_FIND
7016 if test -n "$FIND"; then
7017 { echo "$as_me:$LINENO: result: $FIND" >&5
7018 echo "${ECHO_T}$FIND" >&6; }
7019 else
7020 { echo "$as_me:$LINENO: result: no" >&5
7021 echo "${ECHO_T}no" >&6; }
7025 # Extract the first word of "grep", so it can be a program name with args.
7026 set dummy grep; ac_word=$2
7027 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7029 if test "${ac_cv_path_GREP+set}" = set; then
7030 echo $ECHO_N "(cached) $ECHO_C" >&6
7031 else
7032 case $GREP in
7033 [\\/]* | ?:[\\/]*)
7034 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
7037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7038 for as_dir in $PATH
7040 IFS=$as_save_IFS
7041 test -z "$as_dir" && as_dir=.
7042 for ac_exec_ext in '' $ac_executable_extensions; do
7043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7044 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
7045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7046 break 2
7048 done
7049 done
7050 IFS=$as_save_IFS
7052 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
7054 esac
7056 GREP=$ac_cv_path_GREP
7057 if test -n "$GREP"; then
7058 { echo "$as_me:$LINENO: result: $GREP" >&5
7059 echo "${ECHO_T}$GREP" >&6; }
7060 else
7061 { echo "$as_me:$LINENO: result: no" >&5
7062 echo "${ECHO_T}no" >&6; }
7066 # Extract the first word of "mkdir", so it can be a program name with args.
7067 set dummy mkdir; ac_word=$2
7068 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7070 if test "${ac_cv_path_MKDIR+set}" = set; then
7071 echo $ECHO_N "(cached) $ECHO_C" >&6
7072 else
7073 case $MKDIR in
7074 [\\/]* | ?:[\\/]*)
7075 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7079 for as_dir in $PATH
7081 IFS=$as_save_IFS
7082 test -z "$as_dir" && as_dir=.
7083 for ac_exec_ext in '' $ac_executable_extensions; do
7084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7085 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7087 break 2
7089 done
7090 done
7091 IFS=$as_save_IFS
7093 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
7095 esac
7097 MKDIR=$ac_cv_path_MKDIR
7098 if test -n "$MKDIR"; then
7099 { echo "$as_me:$LINENO: result: $MKDIR" >&5
7100 echo "${ECHO_T}$MKDIR" >&6; }
7101 else
7102 { echo "$as_me:$LINENO: result: no" >&5
7103 echo "${ECHO_T}no" >&6; }
7107 # Extract the first word of "mv", so it can be a program name with args.
7108 set dummy mv; ac_word=$2
7109 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7111 if test "${ac_cv_path_MV+set}" = set; then
7112 echo $ECHO_N "(cached) $ECHO_C" >&6
7113 else
7114 case $MV in
7115 [\\/]* | ?:[\\/]*)
7116 ac_cv_path_MV="$MV" # Let the user override the test with a path.
7119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7120 for as_dir in $PATH
7122 IFS=$as_save_IFS
7123 test -z "$as_dir" && as_dir=.
7124 for ac_exec_ext in '' $ac_executable_extensions; do
7125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7126 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
7127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7128 break 2
7130 done
7131 done
7132 IFS=$as_save_IFS
7134 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7136 esac
7138 MV=$ac_cv_path_MV
7139 if test -n "$MV"; then
7140 { echo "$as_me:$LINENO: result: $MV" >&5
7141 echo "${ECHO_T}$MV" >&6; }
7142 else
7143 { echo "$as_me:$LINENO: result: no" >&5
7144 echo "${ECHO_T}no" >&6; }
7148 if test -n "$ac_tool_prefix"; then
7149 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7150 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7151 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7153 if test "${ac_cv_prog_RANLIB+set}" = set; then
7154 echo $ECHO_N "(cached) $ECHO_C" >&6
7155 else
7156 if test -n "$RANLIB"; then
7157 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7158 else
7159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7160 for as_dir in $PATH
7162 IFS=$as_save_IFS
7163 test -z "$as_dir" && as_dir=.
7164 for ac_exec_ext in '' $ac_executable_extensions; do
7165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7166 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7168 break 2
7170 done
7171 done
7172 IFS=$as_save_IFS
7176 RANLIB=$ac_cv_prog_RANLIB
7177 if test -n "$RANLIB"; then
7178 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7179 echo "${ECHO_T}$RANLIB" >&6; }
7180 else
7181 { echo "$as_me:$LINENO: result: no" >&5
7182 echo "${ECHO_T}no" >&6; }
7187 if test -z "$ac_cv_prog_RANLIB"; then
7188 ac_ct_RANLIB=$RANLIB
7189 # Extract the first word of "ranlib", so it can be a program name with args.
7190 set dummy ranlib; ac_word=$2
7191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7193 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7194 echo $ECHO_N "(cached) $ECHO_C" >&6
7195 else
7196 if test -n "$ac_ct_RANLIB"; then
7197 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7198 else
7199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7200 for as_dir in $PATH
7202 IFS=$as_save_IFS
7203 test -z "$as_dir" && as_dir=.
7204 for ac_exec_ext in '' $ac_executable_extensions; do
7205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7206 ac_cv_prog_ac_ct_RANLIB="ranlib"
7207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7208 break 2
7210 done
7211 done
7212 IFS=$as_save_IFS
7216 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7217 if test -n "$ac_ct_RANLIB"; then
7218 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7219 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7220 else
7221 { echo "$as_me:$LINENO: result: no" >&5
7222 echo "${ECHO_T}no" >&6; }
7225 if test "x$ac_ct_RANLIB" = x; then
7226 RANLIB=":"
7227 else
7228 case $cross_compiling:$ac_tool_warned in
7229 yes:)
7230 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7231 whose name does not start with the host triplet. If you think this
7232 configuration is useful to you, please write to autoconf@gnu.org." >&5
7233 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7234 whose name does not start with the host triplet. If you think this
7235 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7236 ac_tool_warned=yes ;;
7237 esac
7238 RANLIB=$ac_ct_RANLIB
7240 else
7241 RANLIB="$ac_cv_prog_RANLIB"
7244 if test -n "$ac_tool_prefix"; then
7245 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7246 set dummy ${ac_tool_prefix}ar; ac_word=$2
7247 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7249 if test "${ac_cv_prog_AR+set}" = set; then
7250 echo $ECHO_N "(cached) $ECHO_C" >&6
7251 else
7252 if test -n "$AR"; then
7253 ac_cv_prog_AR="$AR" # Let the user override the test.
7254 else
7255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7256 for as_dir in $PATH
7258 IFS=$as_save_IFS
7259 test -z "$as_dir" && as_dir=.
7260 for ac_exec_ext in '' $ac_executable_extensions; do
7261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7262 ac_cv_prog_AR="${ac_tool_prefix}ar"
7263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7264 break 2
7266 done
7267 done
7268 IFS=$as_save_IFS
7272 AR=$ac_cv_prog_AR
7273 if test -n "$AR"; then
7274 { echo "$as_me:$LINENO: result: $AR" >&5
7275 echo "${ECHO_T}$AR" >&6; }
7276 else
7277 { echo "$as_me:$LINENO: result: no" >&5
7278 echo "${ECHO_T}no" >&6; }
7283 if test -z "$ac_cv_prog_AR"; then
7284 ac_ct_AR=$AR
7285 # Extract the first word of "ar", so it can be a program name with args.
7286 set dummy ar; ac_word=$2
7287 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7289 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7290 echo $ECHO_N "(cached) $ECHO_C" >&6
7291 else
7292 if test -n "$ac_ct_AR"; then
7293 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7294 else
7295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7296 for as_dir in $PATH
7298 IFS=$as_save_IFS
7299 test -z "$as_dir" && as_dir=.
7300 for ac_exec_ext in '' $ac_executable_extensions; do
7301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7302 ac_cv_prog_ac_ct_AR="ar"
7303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7304 break 2
7306 done
7307 done
7308 IFS=$as_save_IFS
7312 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7313 if test -n "$ac_ct_AR"; then
7314 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7315 echo "${ECHO_T}$ac_ct_AR" >&6; }
7316 else
7317 { echo "$as_me:$LINENO: result: no" >&5
7318 echo "${ECHO_T}no" >&6; }
7321 if test "x$ac_ct_AR" = x; then
7322 AR="false"
7323 else
7324 case $cross_compiling:$ac_tool_warned in
7325 yes:)
7326 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7327 whose name does not start with the host triplet. If you think this
7328 configuration is useful to you, please write to autoconf@gnu.org." >&5
7329 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7330 whose name does not start with the host triplet. If you think this
7331 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7332 ac_tool_warned=yes ;;
7333 esac
7334 AR=$ac_ct_AR
7336 else
7337 AR="$ac_cv_prog_AR"
7340 # Extract the first word of "rm", so it can be a program name with args.
7341 set dummy rm; ac_word=$2
7342 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7344 if test "${ac_cv_path_RM+set}" = set; then
7345 echo $ECHO_N "(cached) $ECHO_C" >&6
7346 else
7347 case $RM in
7348 [\\/]* | ?:[\\/]*)
7349 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7353 for as_dir in $PATH
7355 IFS=$as_save_IFS
7356 test -z "$as_dir" && as_dir=.
7357 for ac_exec_ext in '' $ac_executable_extensions; do
7358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7359 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7361 break 2
7363 done
7364 done
7365 IFS=$as_save_IFS
7367 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7369 esac
7371 RM=$ac_cv_path_RM
7372 if test -n "$RM"; then
7373 { echo "$as_me:$LINENO: result: $RM" >&5
7374 echo "${ECHO_T}$RM" >&6; }
7375 else
7376 { echo "$as_me:$LINENO: result: no" >&5
7377 echo "${ECHO_T}no" >&6; }
7381 # Extract the first word of "sed", so it can be a program name with args.
7382 set dummy sed; ac_word=$2
7383 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7385 if test "${ac_cv_path_SED+set}" = set; then
7386 echo $ECHO_N "(cached) $ECHO_C" >&6
7387 else
7388 case $SED in
7389 [\\/]* | ?:[\\/]*)
7390 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7394 for as_dir in $PATH
7396 IFS=$as_save_IFS
7397 test -z "$as_dir" && as_dir=.
7398 for ac_exec_ext in '' $ac_executable_extensions; do
7399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7400 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7402 break 2
7404 done
7405 done
7406 IFS=$as_save_IFS
7408 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7410 esac
7412 SED=$ac_cv_path_SED
7413 if test -n "$SED"; then
7414 { echo "$as_me:$LINENO: result: $SED" >&5
7415 echo "${ECHO_T}$SED" >&6; }
7416 else
7417 { echo "$as_me:$LINENO: result: no" >&5
7418 echo "${ECHO_T}no" >&6; }
7422 # Extract the first word of "tar", so it can be a program name with args.
7423 set dummy tar; ac_word=$2
7424 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7426 if test "${ac_cv_path_TAR+set}" = set; then
7427 echo $ECHO_N "(cached) $ECHO_C" >&6
7428 else
7429 case $TAR in
7430 [\\/]* | ?:[\\/]*)
7431 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7435 for as_dir in $PATH
7437 IFS=$as_save_IFS
7438 test -z "$as_dir" && as_dir=.
7439 for ac_exec_ext in '' $ac_executable_extensions; do
7440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7441 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7443 break 2
7445 done
7446 done
7447 IFS=$as_save_IFS
7449 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7451 esac
7453 TAR=$ac_cv_path_TAR
7454 if test -n "$TAR"; then
7455 { echo "$as_me:$LINENO: result: $TAR" >&5
7456 echo "${ECHO_T}$TAR" >&6; }
7457 else
7458 { echo "$as_me:$LINENO: result: no" >&5
7459 echo "${ECHO_T}no" >&6; }
7463 # Extract the first word of "pwd", so it can be a program name with args.
7464 set dummy pwd; ac_word=$2
7465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7467 if test "${ac_cv_path_BINPWD+set}" = set; then
7468 echo $ECHO_N "(cached) $ECHO_C" >&6
7469 else
7470 case $BINPWD in
7471 [\\/]* | ?:[\\/]*)
7472 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7476 for as_dir in $PATH
7478 IFS=$as_save_IFS
7479 test -z "$as_dir" && as_dir=.
7480 for ac_exec_ext in '' $ac_executable_extensions; do
7481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7482 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7484 break 2
7486 done
7487 done
7488 IFS=$as_save_IFS
7490 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7492 esac
7494 BINPWD=$ac_cv_path_BINPWD
7495 if test -n "$BINPWD"; then
7496 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7497 echo "${ECHO_T}$BINPWD" >&6; }
7498 else
7499 { echo "$as_me:$LINENO: result: no" >&5
7500 echo "${ECHO_T}no" >&6; }
7505 # Extract the first word of "Graphviz", so it can be a program name with args.
7506 set dummy Graphviz; ac_word=$2
7507 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7509 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7510 echo $ECHO_N "(cached) $ECHO_C" >&6
7511 else
7512 case $GRAPHVIZ in
7513 [\\/]* | ?:[\\/]*)
7514 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7518 for as_dir in $PATH
7520 IFS=$as_save_IFS
7521 test -z "$as_dir" && as_dir=.
7522 for ac_exec_ext in '' $ac_executable_extensions; do
7523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7524 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7526 break 2
7528 done
7529 done
7530 IFS=$as_save_IFS
7532 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7534 esac
7536 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7537 if test -n "$GRAPHVIZ"; then
7538 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7539 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7540 else
7541 { echo "$as_me:$LINENO: result: no" >&5
7542 echo "${ECHO_T}no" >&6; }
7546 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7548 cat >>confdefs.h <<\_ACEOF
7549 #define HAVE_GRAPHVIZ 1
7550 _ACEOF
7552 if test "$llvm_cv_os_type" = "MingW" ; then
7553 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7556 cat >>confdefs.h <<_ACEOF
7557 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7558 _ACEOF
7561 # Extract the first word of "dot", so it can be a program name with args.
7562 set dummy dot; ac_word=$2
7563 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7565 if test "${ac_cv_path_DOT+set}" = set; then
7566 echo $ECHO_N "(cached) $ECHO_C" >&6
7567 else
7568 case $DOT in
7569 [\\/]* | ?:[\\/]*)
7570 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7574 for as_dir in $PATH
7576 IFS=$as_save_IFS
7577 test -z "$as_dir" && as_dir=.
7578 for ac_exec_ext in '' $ac_executable_extensions; do
7579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7580 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7582 break 2
7584 done
7585 done
7586 IFS=$as_save_IFS
7588 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7590 esac
7592 DOT=$ac_cv_path_DOT
7593 if test -n "$DOT"; then
7594 { echo "$as_me:$LINENO: result: $DOT" >&5
7595 echo "${ECHO_T}$DOT" >&6; }
7596 else
7597 { echo "$as_me:$LINENO: result: no" >&5
7598 echo "${ECHO_T}no" >&6; }
7602 if test "$DOT" != "echo dot" ; then
7604 cat >>confdefs.h <<\_ACEOF
7605 #define HAVE_DOT 1
7606 _ACEOF
7608 if test "$llvm_cv_os_type" = "MingW" ; then
7609 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7612 cat >>confdefs.h <<_ACEOF
7613 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7614 _ACEOF
7617 # Extract the first word of "fdp", so it can be a program name with args.
7618 set dummy fdp; ac_word=$2
7619 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7621 if test "${ac_cv_path_FDP+set}" = set; then
7622 echo $ECHO_N "(cached) $ECHO_C" >&6
7623 else
7624 case $FDP in
7625 [\\/]* | ?:[\\/]*)
7626 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7630 for as_dir in $PATH
7632 IFS=$as_save_IFS
7633 test -z "$as_dir" && as_dir=.
7634 for ac_exec_ext in '' $ac_executable_extensions; do
7635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7636 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7638 break 2
7640 done
7641 done
7642 IFS=$as_save_IFS
7644 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7646 esac
7648 FDP=$ac_cv_path_FDP
7649 if test -n "$FDP"; then
7650 { echo "$as_me:$LINENO: result: $FDP" >&5
7651 echo "${ECHO_T}$FDP" >&6; }
7652 else
7653 { echo "$as_me:$LINENO: result: no" >&5
7654 echo "${ECHO_T}no" >&6; }
7658 if test "$FDP" != "echo fdp" ; then
7660 cat >>confdefs.h <<\_ACEOF
7661 #define HAVE_FDP 1
7662 _ACEOF
7664 if test "$llvm_cv_os_type" = "MingW" ; then
7665 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7668 cat >>confdefs.h <<_ACEOF
7669 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7670 _ACEOF
7673 # Extract the first word of "neato", so it can be a program name with args.
7674 set dummy neato; ac_word=$2
7675 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7677 if test "${ac_cv_path_NEATO+set}" = set; then
7678 echo $ECHO_N "(cached) $ECHO_C" >&6
7679 else
7680 case $NEATO in
7681 [\\/]* | ?:[\\/]*)
7682 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7686 for as_dir in $PATH
7688 IFS=$as_save_IFS
7689 test -z "$as_dir" && as_dir=.
7690 for ac_exec_ext in '' $ac_executable_extensions; do
7691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7692 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7694 break 2
7696 done
7697 done
7698 IFS=$as_save_IFS
7700 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7702 esac
7704 NEATO=$ac_cv_path_NEATO
7705 if test -n "$NEATO"; then
7706 { echo "$as_me:$LINENO: result: $NEATO" >&5
7707 echo "${ECHO_T}$NEATO" >&6; }
7708 else
7709 { echo "$as_me:$LINENO: result: no" >&5
7710 echo "${ECHO_T}no" >&6; }
7714 if test "$NEATO" != "echo neato" ; then
7716 cat >>confdefs.h <<\_ACEOF
7717 #define HAVE_NEATO 1
7718 _ACEOF
7720 if test "$llvm_cv_os_type" = "MingW" ; then
7721 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7724 cat >>confdefs.h <<_ACEOF
7725 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7726 _ACEOF
7729 # Extract the first word of "twopi", so it can be a program name with args.
7730 set dummy twopi; ac_word=$2
7731 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7733 if test "${ac_cv_path_TWOPI+set}" = set; then
7734 echo $ECHO_N "(cached) $ECHO_C" >&6
7735 else
7736 case $TWOPI in
7737 [\\/]* | ?:[\\/]*)
7738 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7742 for as_dir in $PATH
7744 IFS=$as_save_IFS
7745 test -z "$as_dir" && as_dir=.
7746 for ac_exec_ext in '' $ac_executable_extensions; do
7747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7748 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7750 break 2
7752 done
7753 done
7754 IFS=$as_save_IFS
7756 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7758 esac
7760 TWOPI=$ac_cv_path_TWOPI
7761 if test -n "$TWOPI"; then
7762 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7763 echo "${ECHO_T}$TWOPI" >&6; }
7764 else
7765 { echo "$as_me:$LINENO: result: no" >&5
7766 echo "${ECHO_T}no" >&6; }
7770 if test "$TWOPI" != "echo twopi" ; then
7772 cat >>confdefs.h <<\_ACEOF
7773 #define HAVE_TWOPI 1
7774 _ACEOF
7776 if test "$llvm_cv_os_type" = "MingW" ; then
7777 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7780 cat >>confdefs.h <<_ACEOF
7781 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7782 _ACEOF
7785 # Extract the first word of "circo", so it can be a program name with args.
7786 set dummy circo; ac_word=$2
7787 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7789 if test "${ac_cv_path_CIRCO+set}" = set; then
7790 echo $ECHO_N "(cached) $ECHO_C" >&6
7791 else
7792 case $CIRCO in
7793 [\\/]* | ?:[\\/]*)
7794 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7798 for as_dir in $PATH
7800 IFS=$as_save_IFS
7801 test -z "$as_dir" && as_dir=.
7802 for ac_exec_ext in '' $ac_executable_extensions; do
7803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7804 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7806 break 2
7808 done
7809 done
7810 IFS=$as_save_IFS
7812 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7814 esac
7816 CIRCO=$ac_cv_path_CIRCO
7817 if test -n "$CIRCO"; then
7818 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7819 echo "${ECHO_T}$CIRCO" >&6; }
7820 else
7821 { echo "$as_me:$LINENO: result: no" >&5
7822 echo "${ECHO_T}no" >&6; }
7826 if test "$CIRCO" != "echo circo" ; then
7828 cat >>confdefs.h <<\_ACEOF
7829 #define HAVE_CIRCO 1
7830 _ACEOF
7832 if test "$llvm_cv_os_type" = "MingW" ; then
7833 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7836 cat >>confdefs.h <<_ACEOF
7837 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7838 _ACEOF
7841 for ac_prog in gv gsview32
7843 # Extract the first word of "$ac_prog", so it can be a program name with args.
7844 set dummy $ac_prog; ac_word=$2
7845 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7847 if test "${ac_cv_path_GV+set}" = set; then
7848 echo $ECHO_N "(cached) $ECHO_C" >&6
7849 else
7850 case $GV in
7851 [\\/]* | ?:[\\/]*)
7852 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7856 for as_dir in $PATH
7858 IFS=$as_save_IFS
7859 test -z "$as_dir" && as_dir=.
7860 for ac_exec_ext in '' $ac_executable_extensions; do
7861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7862 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7864 break 2
7866 done
7867 done
7868 IFS=$as_save_IFS
7871 esac
7873 GV=$ac_cv_path_GV
7874 if test -n "$GV"; then
7875 { echo "$as_me:$LINENO: result: $GV" >&5
7876 echo "${ECHO_T}$GV" >&6; }
7877 else
7878 { echo "$as_me:$LINENO: result: no" >&5
7879 echo "${ECHO_T}no" >&6; }
7883 test -n "$GV" && break
7884 done
7885 test -n "$GV" || GV="echo gv"
7887 if test "$GV" != "echo gv" ; then
7889 cat >>confdefs.h <<\_ACEOF
7890 #define HAVE_GV 1
7891 _ACEOF
7893 if test "$llvm_cv_os_type" = "MingW" ; then
7894 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7897 cat >>confdefs.h <<_ACEOF
7898 #define LLVM_PATH_GV "$GV${EXEEXT}"
7899 _ACEOF
7902 # Extract the first word of "dotty", so it can be a program name with args.
7903 set dummy dotty; ac_word=$2
7904 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7906 if test "${ac_cv_path_DOTTY+set}" = set; then
7907 echo $ECHO_N "(cached) $ECHO_C" >&6
7908 else
7909 case $DOTTY in
7910 [\\/]* | ?:[\\/]*)
7911 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7915 for as_dir in $PATH
7917 IFS=$as_save_IFS
7918 test -z "$as_dir" && as_dir=.
7919 for ac_exec_ext in '' $ac_executable_extensions; do
7920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7921 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7923 break 2
7925 done
7926 done
7927 IFS=$as_save_IFS
7929 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7931 esac
7933 DOTTY=$ac_cv_path_DOTTY
7934 if test -n "$DOTTY"; then
7935 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7936 echo "${ECHO_T}$DOTTY" >&6; }
7937 else
7938 { echo "$as_me:$LINENO: result: no" >&5
7939 echo "${ECHO_T}no" >&6; }
7943 if test "$DOTTY" != "echo dotty" ; then
7945 cat >>confdefs.h <<\_ACEOF
7946 #define HAVE_DOTTY 1
7947 _ACEOF
7949 if test "$llvm_cv_os_type" = "MingW" ; then
7950 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7953 cat >>confdefs.h <<_ACEOF
7954 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7955 _ACEOF
7958 # Extract the first word of "xdot.py", so it can be a program name with args.
7959 set dummy xdot.py; ac_word=$2
7960 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7962 if test "${ac_cv_path_XDOT_PY+set}" = set; then
7963 echo $ECHO_N "(cached) $ECHO_C" >&6
7964 else
7965 case $XDOT_PY in
7966 [\\/]* | ?:[\\/]*)
7967 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7971 for as_dir in $PATH
7973 IFS=$as_save_IFS
7974 test -z "$as_dir" && as_dir=.
7975 for ac_exec_ext in '' $ac_executable_extensions; do
7976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7977 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7979 break 2
7981 done
7982 done
7983 IFS=$as_save_IFS
7985 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7987 esac
7989 XDOT_PY=$ac_cv_path_XDOT_PY
7990 if test -n "$XDOT_PY"; then
7991 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7992 echo "${ECHO_T}$XDOT_PY" >&6; }
7993 else
7994 { echo "$as_me:$LINENO: result: no" >&5
7995 echo "${ECHO_T}no" >&6; }
7999 if test "$XDOT_PY" != "echo xdot.py" ; then
8001 cat >>confdefs.h <<\_ACEOF
8002 #define HAVE_XDOT_PY 1
8003 _ACEOF
8005 if test "$llvm_cv_os_type" = "MingW" ; then
8006 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
8009 cat >>confdefs.h <<_ACEOF
8010 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
8011 _ACEOF
8016 # Extract the first word of "perl", so it can be a program name with args.
8017 set dummy perl; ac_word=$2
8018 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8020 if test "${ac_cv_path_PERL+set}" = set; then
8021 echo $ECHO_N "(cached) $ECHO_C" >&6
8022 else
8023 case $PERL in
8024 [\\/]* | ?:[\\/]*)
8025 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
8028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8029 for as_dir in $PATH
8031 IFS=$as_save_IFS
8032 test -z "$as_dir" && as_dir=.
8033 for ac_exec_ext in '' $ac_executable_extensions; do
8034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8035 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
8036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8037 break 2
8039 done
8040 done
8041 IFS=$as_save_IFS
8043 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
8045 esac
8047 PERL=$ac_cv_path_PERL
8048 if test -n "$PERL"; then
8049 { echo "$as_me:$LINENO: result: $PERL" >&5
8050 echo "${ECHO_T}$PERL" >&6; }
8051 else
8052 { echo "$as_me:$LINENO: result: no" >&5
8053 echo "${ECHO_T}no" >&6; }
8057 if test "$PERL" != "none"; then
8058 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
8059 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
8060 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
8061 { echo "$as_me:$LINENO: result: yes" >&5
8062 echo "${ECHO_T}yes" >&6; }
8063 else
8064 PERL=none
8065 { echo "$as_me:$LINENO: result: not found" >&5
8066 echo "${ECHO_T}not found" >&6; }
8071 if test x"$PERL" = xnone; then
8072 HAVE_PERL=0
8074 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
8075 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
8076 { (exit 1); exit 1; }; }
8077 else
8078 HAVE_PERL=1
8082 # Find a good install program. We prefer a C program (faster),
8083 # so one script is as good as another. But avoid the broken or
8084 # incompatible versions:
8085 # SysV /etc/install, /usr/sbin/install
8086 # SunOS /usr/etc/install
8087 # IRIX /sbin/install
8088 # AIX /bin/install
8089 # AmigaOS /C/install, which installs bootblocks on floppy discs
8090 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8091 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8092 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8093 # OS/2's system install, which has a completely different semantic
8094 # ./install, which can be erroneously created by make from ./install.sh.
8095 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8096 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
8097 if test -z "$INSTALL"; then
8098 if test "${ac_cv_path_install+set}" = set; then
8099 echo $ECHO_N "(cached) $ECHO_C" >&6
8100 else
8101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8102 for as_dir in $PATH
8104 IFS=$as_save_IFS
8105 test -z "$as_dir" && as_dir=.
8106 # Account for people who put trailing slashes in PATH elements.
8107 case $as_dir/ in
8108 ./ | .// | /cC/* | \
8109 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8110 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8111 /usr/ucb/* ) ;;
8113 # OSF1 and SCO ODT 3.0 have their own names for install.
8114 # Don't use installbsd from OSF since it installs stuff as root
8115 # by default.
8116 for ac_prog in ginstall scoinst install; do
8117 for ac_exec_ext in '' $ac_executable_extensions; do
8118 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
8119 if test $ac_prog = install &&
8120 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8121 # AIX install. It has an incompatible calling convention.
8123 elif test $ac_prog = install &&
8124 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8125 # program-specific install script used by HP pwplus--don't use.
8127 else
8128 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8129 break 3
8132 done
8133 done
8135 esac
8136 done
8137 IFS=$as_save_IFS
8141 if test "${ac_cv_path_install+set}" = set; then
8142 INSTALL=$ac_cv_path_install
8143 else
8144 # As a last resort, use the slow shell script. Don't cache a
8145 # value for INSTALL within a source directory, because that will
8146 # break other packages using the cache if that directory is
8147 # removed, or if the value is a relative name.
8148 INSTALL=$ac_install_sh
8151 { echo "$as_me:$LINENO: result: $INSTALL" >&5
8152 echo "${ECHO_T}$INSTALL" >&6; }
8154 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8155 # It thinks the first close brace ends the variable substitution.
8156 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8158 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8160 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8162 case "$INSTALL" in
8163 [\\/$]* | ?:[\\/]* ) ;;
8164 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
8165 esac
8167 # Extract the first word of "bzip2", so it can be a program name with args.
8168 set dummy bzip2; ac_word=$2
8169 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8171 if test "${ac_cv_path_BZIP2+set}" = set; then
8172 echo $ECHO_N "(cached) $ECHO_C" >&6
8173 else
8174 case $BZIP2 in
8175 [\\/]* | ?:[\\/]*)
8176 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
8179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8180 for as_dir in $PATH
8182 IFS=$as_save_IFS
8183 test -z "$as_dir" && as_dir=.
8184 for ac_exec_ext in '' $ac_executable_extensions; do
8185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8186 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
8187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8188 break 2
8190 done
8191 done
8192 IFS=$as_save_IFS
8195 esac
8197 BZIP2=$ac_cv_path_BZIP2
8198 if test -n "$BZIP2"; then
8199 { echo "$as_me:$LINENO: result: $BZIP2" >&5
8200 echo "${ECHO_T}$BZIP2" >&6; }
8201 else
8202 { echo "$as_me:$LINENO: result: no" >&5
8203 echo "${ECHO_T}no" >&6; }
8207 # Extract the first word of "cat", so it can be a program name with args.
8208 set dummy cat; ac_word=$2
8209 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8211 if test "${ac_cv_path_CAT+set}" = set; then
8212 echo $ECHO_N "(cached) $ECHO_C" >&6
8213 else
8214 case $CAT in
8215 [\\/]* | ?:[\\/]*)
8216 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
8219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8220 for as_dir in $PATH
8222 IFS=$as_save_IFS
8223 test -z "$as_dir" && as_dir=.
8224 for ac_exec_ext in '' $ac_executable_extensions; do
8225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8226 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
8227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8228 break 2
8230 done
8231 done
8232 IFS=$as_save_IFS
8235 esac
8237 CAT=$ac_cv_path_CAT
8238 if test -n "$CAT"; then
8239 { echo "$as_me:$LINENO: result: $CAT" >&5
8240 echo "${ECHO_T}$CAT" >&6; }
8241 else
8242 { echo "$as_me:$LINENO: result: no" >&5
8243 echo "${ECHO_T}no" >&6; }
8247 # Extract the first word of "doxygen", so it can be a program name with args.
8248 set dummy doxygen; ac_word=$2
8249 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8251 if test "${ac_cv_path_DOXYGEN+set}" = set; then
8252 echo $ECHO_N "(cached) $ECHO_C" >&6
8253 else
8254 case $DOXYGEN in
8255 [\\/]* | ?:[\\/]*)
8256 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8260 for as_dir in $PATH
8262 IFS=$as_save_IFS
8263 test -z "$as_dir" && as_dir=.
8264 for ac_exec_ext in '' $ac_executable_extensions; do
8265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8266 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
8267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8268 break 2
8270 done
8271 done
8272 IFS=$as_save_IFS
8275 esac
8277 DOXYGEN=$ac_cv_path_DOXYGEN
8278 if test -n "$DOXYGEN"; then
8279 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8280 echo "${ECHO_T}$DOXYGEN" >&6; }
8281 else
8282 { echo "$as_me:$LINENO: result: no" >&5
8283 echo "${ECHO_T}no" >&6; }
8287 # Extract the first word of "groff", so it can be a program name with args.
8288 set dummy groff; ac_word=$2
8289 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8291 if test "${ac_cv_path_GROFF+set}" = set; then
8292 echo $ECHO_N "(cached) $ECHO_C" >&6
8293 else
8294 case $GROFF in
8295 [\\/]* | ?:[\\/]*)
8296 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8300 for as_dir in $PATH
8302 IFS=$as_save_IFS
8303 test -z "$as_dir" && as_dir=.
8304 for ac_exec_ext in '' $ac_executable_extensions; do
8305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8306 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
8307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8308 break 2
8310 done
8311 done
8312 IFS=$as_save_IFS
8315 esac
8317 GROFF=$ac_cv_path_GROFF
8318 if test -n "$GROFF"; then
8319 { echo "$as_me:$LINENO: result: $GROFF" >&5
8320 echo "${ECHO_T}$GROFF" >&6; }
8321 else
8322 { echo "$as_me:$LINENO: result: no" >&5
8323 echo "${ECHO_T}no" >&6; }
8327 # Extract the first word of "gzip", so it can be a program name with args.
8328 set dummy gzip; ac_word=$2
8329 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8331 if test "${ac_cv_path_GZIPBIN+set}" = set; then
8332 echo $ECHO_N "(cached) $ECHO_C" >&6
8333 else
8334 case $GZIPBIN in
8335 [\\/]* | ?:[\\/]*)
8336 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
8339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8340 for as_dir in $PATH
8342 IFS=$as_save_IFS
8343 test -z "$as_dir" && as_dir=.
8344 for ac_exec_ext in '' $ac_executable_extensions; do
8345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8346 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
8347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8348 break 2
8350 done
8351 done
8352 IFS=$as_save_IFS
8355 esac
8357 GZIPBIN=$ac_cv_path_GZIPBIN
8358 if test -n "$GZIPBIN"; then
8359 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
8360 echo "${ECHO_T}$GZIPBIN" >&6; }
8361 else
8362 { echo "$as_me:$LINENO: result: no" >&5
8363 echo "${ECHO_T}no" >&6; }
8367 # Extract the first word of "pod2html", so it can be a program name with args.
8368 set dummy pod2html; ac_word=$2
8369 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8371 if test "${ac_cv_path_POD2HTML+set}" = set; then
8372 echo $ECHO_N "(cached) $ECHO_C" >&6
8373 else
8374 case $POD2HTML in
8375 [\\/]* | ?:[\\/]*)
8376 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8380 for as_dir in $PATH
8382 IFS=$as_save_IFS
8383 test -z "$as_dir" && as_dir=.
8384 for ac_exec_ext in '' $ac_executable_extensions; do
8385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8386 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8388 break 2
8390 done
8391 done
8392 IFS=$as_save_IFS
8395 esac
8397 POD2HTML=$ac_cv_path_POD2HTML
8398 if test -n "$POD2HTML"; then
8399 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8400 echo "${ECHO_T}$POD2HTML" >&6; }
8401 else
8402 { echo "$as_me:$LINENO: result: no" >&5
8403 echo "${ECHO_T}no" >&6; }
8407 # Extract the first word of "pod2man", so it can be a program name with args.
8408 set dummy pod2man; ac_word=$2
8409 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8411 if test "${ac_cv_path_POD2MAN+set}" = set; then
8412 echo $ECHO_N "(cached) $ECHO_C" >&6
8413 else
8414 case $POD2MAN in
8415 [\\/]* | ?:[\\/]*)
8416 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8420 for as_dir in $PATH
8422 IFS=$as_save_IFS
8423 test -z "$as_dir" && as_dir=.
8424 for ac_exec_ext in '' $ac_executable_extensions; do
8425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8426 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8428 break 2
8430 done
8431 done
8432 IFS=$as_save_IFS
8435 esac
8437 POD2MAN=$ac_cv_path_POD2MAN
8438 if test -n "$POD2MAN"; then
8439 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8440 echo "${ECHO_T}$POD2MAN" >&6; }
8441 else
8442 { echo "$as_me:$LINENO: result: no" >&5
8443 echo "${ECHO_T}no" >&6; }
8447 # Extract the first word of "pdfroff", so it can be a program name with args.
8448 set dummy pdfroff; ac_word=$2
8449 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8451 if test "${ac_cv_path_PDFROFF+set}" = set; then
8452 echo $ECHO_N "(cached) $ECHO_C" >&6
8453 else
8454 case $PDFROFF in
8455 [\\/]* | ?:[\\/]*)
8456 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
8459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8460 for as_dir in $PATH
8462 IFS=$as_save_IFS
8463 test -z "$as_dir" && as_dir=.
8464 for ac_exec_ext in '' $ac_executable_extensions; do
8465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8466 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
8467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8468 break 2
8470 done
8471 done
8472 IFS=$as_save_IFS
8475 esac
8477 PDFROFF=$ac_cv_path_PDFROFF
8478 if test -n "$PDFROFF"; then
8479 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
8480 echo "${ECHO_T}$PDFROFF" >&6; }
8481 else
8482 { echo "$as_me:$LINENO: result: no" >&5
8483 echo "${ECHO_T}no" >&6; }
8487 # Extract the first word of "runtest", so it can be a program name with args.
8488 set dummy runtest; ac_word=$2
8489 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8491 if test "${ac_cv_path_RUNTEST+set}" = set; then
8492 echo $ECHO_N "(cached) $ECHO_C" >&6
8493 else
8494 case $RUNTEST in
8495 [\\/]* | ?:[\\/]*)
8496 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8500 for as_dir in $PATH
8502 IFS=$as_save_IFS
8503 test -z "$as_dir" && as_dir=.
8504 for ac_exec_ext in '' $ac_executable_extensions; do
8505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8506 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8508 break 2
8510 done
8511 done
8512 IFS=$as_save_IFS
8515 esac
8517 RUNTEST=$ac_cv_path_RUNTEST
8518 if test -n "$RUNTEST"; then
8519 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8520 echo "${ECHO_T}$RUNTEST" >&6; }
8521 else
8522 { echo "$as_me:$LINENO: result: no" >&5
8523 echo "${ECHO_T}no" >&6; }
8528 no_itcl=true
8529 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8530 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8532 # Check whether --with-tclinclude was given.
8533 if test "${with_tclinclude+set}" = set; then
8534 withval=$with_tclinclude; with_tclinclude=${withval}
8535 else
8536 with_tclinclude=''
8539 if test "${ac_cv_path_tclsh+set}" = set; then
8540 echo $ECHO_N "(cached) $ECHO_C" >&6
8541 else
8543 if test x"${with_tclinclude}" != x ; then
8544 if test -f ${with_tclinclude}/tclsh ; then
8545 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8546 elif test -f ${with_tclinclude}/src/tclsh ; then
8547 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8548 else
8549 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8550 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8551 { (exit 1); exit 1; }; }
8557 if test x"${ac_cv_path_tclsh}" = x ; then
8558 { echo "$as_me:$LINENO: result: none" >&5
8559 echo "${ECHO_T}none" >&6; }
8560 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
8562 # Extract the first word of "$ac_prog", so it can be a program name with args.
8563 set dummy $ac_prog; ac_word=$2
8564 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8566 if test "${ac_cv_path_TCLSH+set}" = set; then
8567 echo $ECHO_N "(cached) $ECHO_C" >&6
8568 else
8569 case $TCLSH in
8570 [\\/]* | ?:[\\/]*)
8571 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8575 for as_dir in $PATH
8577 IFS=$as_save_IFS
8578 test -z "$as_dir" && as_dir=.
8579 for ac_exec_ext in '' $ac_executable_extensions; do
8580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8581 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8583 break 2
8585 done
8586 done
8587 IFS=$as_save_IFS
8590 esac
8592 TCLSH=$ac_cv_path_TCLSH
8593 if test -n "$TCLSH"; then
8594 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8595 echo "${ECHO_T}$TCLSH" >&6; }
8596 else
8597 { echo "$as_me:$LINENO: result: no" >&5
8598 echo "${ECHO_T}no" >&6; }
8602 test -n "$TCLSH" && break
8603 done
8605 if test x"${TCLSH}" = x ; then
8606 ac_cv_path_tclsh='';
8607 else
8608 ac_cv_path_tclsh="${TCLSH}";
8610 else
8611 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8612 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8613 TCLSH="${ac_cv_path_tclsh}"
8617 # Extract the first word of "zip", so it can be a program name with args.
8618 set dummy zip; ac_word=$2
8619 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8621 if test "${ac_cv_path_ZIP+set}" = set; then
8622 echo $ECHO_N "(cached) $ECHO_C" >&6
8623 else
8624 case $ZIP in
8625 [\\/]* | ?:[\\/]*)
8626 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8630 for as_dir in $PATH
8632 IFS=$as_save_IFS
8633 test -z "$as_dir" && as_dir=.
8634 for ac_exec_ext in '' $ac_executable_extensions; do
8635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8636 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8638 break 2
8640 done
8641 done
8642 IFS=$as_save_IFS
8645 esac
8647 ZIP=$ac_cv_path_ZIP
8648 if test -n "$ZIP"; then
8649 { echo "$as_me:$LINENO: result: $ZIP" >&5
8650 echo "${ECHO_T}$ZIP" >&6; }
8651 else
8652 { echo "$as_me:$LINENO: result: no" >&5
8653 echo "${ECHO_T}no" >&6; }
8657 for ac_prog in ocamlc
8659 # Extract the first word of "$ac_prog", so it can be a program name with args.
8660 set dummy $ac_prog; ac_word=$2
8661 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8663 if test "${ac_cv_path_OCAMLC+set}" = set; then
8664 echo $ECHO_N "(cached) $ECHO_C" >&6
8665 else
8666 case $OCAMLC in
8667 [\\/]* | ?:[\\/]*)
8668 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8672 for as_dir in $PATH
8674 IFS=$as_save_IFS
8675 test -z "$as_dir" && as_dir=.
8676 for ac_exec_ext in '' $ac_executable_extensions; do
8677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8678 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8680 break 2
8682 done
8683 done
8684 IFS=$as_save_IFS
8687 esac
8689 OCAMLC=$ac_cv_path_OCAMLC
8690 if test -n "$OCAMLC"; then
8691 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8692 echo "${ECHO_T}$OCAMLC" >&6; }
8693 else
8694 { echo "$as_me:$LINENO: result: no" >&5
8695 echo "${ECHO_T}no" >&6; }
8699 test -n "$OCAMLC" && break
8700 done
8702 for ac_prog in ocamlopt
8704 # Extract the first word of "$ac_prog", so it can be a program name with args.
8705 set dummy $ac_prog; ac_word=$2
8706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8708 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8709 echo $ECHO_N "(cached) $ECHO_C" >&6
8710 else
8711 case $OCAMLOPT in
8712 [\\/]* | ?:[\\/]*)
8713 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8717 for as_dir in $PATH
8719 IFS=$as_save_IFS
8720 test -z "$as_dir" && as_dir=.
8721 for ac_exec_ext in '' $ac_executable_extensions; do
8722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8723 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8725 break 2
8727 done
8728 done
8729 IFS=$as_save_IFS
8732 esac
8734 OCAMLOPT=$ac_cv_path_OCAMLOPT
8735 if test -n "$OCAMLOPT"; then
8736 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8737 echo "${ECHO_T}$OCAMLOPT" >&6; }
8738 else
8739 { echo "$as_me:$LINENO: result: no" >&5
8740 echo "${ECHO_T}no" >&6; }
8744 test -n "$OCAMLOPT" && break
8745 done
8747 for ac_prog in ocamldep
8749 # Extract the first word of "$ac_prog", so it can be a program name with args.
8750 set dummy $ac_prog; ac_word=$2
8751 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8753 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8754 echo $ECHO_N "(cached) $ECHO_C" >&6
8755 else
8756 case $OCAMLDEP in
8757 [\\/]* | ?:[\\/]*)
8758 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8762 for as_dir in $PATH
8764 IFS=$as_save_IFS
8765 test -z "$as_dir" && as_dir=.
8766 for ac_exec_ext in '' $ac_executable_extensions; do
8767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8768 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8770 break 2
8772 done
8773 done
8774 IFS=$as_save_IFS
8777 esac
8779 OCAMLDEP=$ac_cv_path_OCAMLDEP
8780 if test -n "$OCAMLDEP"; then
8781 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8782 echo "${ECHO_T}$OCAMLDEP" >&6; }
8783 else
8784 { echo "$as_me:$LINENO: result: no" >&5
8785 echo "${ECHO_T}no" >&6; }
8789 test -n "$OCAMLDEP" && break
8790 done
8792 for ac_prog in ocamldoc
8794 # Extract the first word of "$ac_prog", so it can be a program name with args.
8795 set dummy $ac_prog; ac_word=$2
8796 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8798 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8799 echo $ECHO_N "(cached) $ECHO_C" >&6
8800 else
8801 case $OCAMLDOC in
8802 [\\/]* | ?:[\\/]*)
8803 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8807 for as_dir in $PATH
8809 IFS=$as_save_IFS
8810 test -z "$as_dir" && as_dir=.
8811 for ac_exec_ext in '' $ac_executable_extensions; do
8812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8813 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8815 break 2
8817 done
8818 done
8819 IFS=$as_save_IFS
8822 esac
8824 OCAMLDOC=$ac_cv_path_OCAMLDOC
8825 if test -n "$OCAMLDOC"; then
8826 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8827 echo "${ECHO_T}$OCAMLDOC" >&6; }
8828 else
8829 { echo "$as_me:$LINENO: result: no" >&5
8830 echo "${ECHO_T}no" >&6; }
8834 test -n "$OCAMLDOC" && break
8835 done
8837 for ac_prog in gas as
8839 # Extract the first word of "$ac_prog", so it can be a program name with args.
8840 set dummy $ac_prog; ac_word=$2
8841 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8843 if test "${ac_cv_path_GAS+set}" = set; then
8844 echo $ECHO_N "(cached) $ECHO_C" >&6
8845 else
8846 case $GAS in
8847 [\\/]* | ?:[\\/]*)
8848 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8852 for as_dir in $PATH
8854 IFS=$as_save_IFS
8855 test -z "$as_dir" && as_dir=.
8856 for ac_exec_ext in '' $ac_executable_extensions; do
8857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8858 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8860 break 2
8862 done
8863 done
8864 IFS=$as_save_IFS
8867 esac
8869 GAS=$ac_cv_path_GAS
8870 if test -n "$GAS"; then
8871 { echo "$as_me:$LINENO: result: $GAS" >&5
8872 echo "${ECHO_T}$GAS" >&6; }
8873 else
8874 { echo "$as_me:$LINENO: result: no" >&5
8875 echo "${ECHO_T}no" >&6; }
8879 test -n "$GAS" && break
8880 done
8883 { echo "$as_me:$LINENO: checking for linker version" >&5
8884 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
8885 if test "${llvm_cv_link_version+set}" = set; then
8886 echo $ECHO_N "(cached) $ECHO_C" >&6
8887 else
8889 version_string="$(ld -v 2>&1 | head -1)"
8891 # Check for ld64.
8892 if (echo "$version_string" | grep -q "ld64"); then
8893 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
8894 else
8895 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
8899 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
8900 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
8902 cat >>confdefs.h <<_ACEOF
8903 #define HOST_LINK_VERSION "$llvm_cv_link_version"
8904 _ACEOF
8908 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8909 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8910 if test "${llvm_cv_link_use_r+set}" = set; then
8911 echo $ECHO_N "(cached) $ECHO_C" >&6
8912 else
8913 ac_ext=c
8914 ac_cpp='$CPP $CPPFLAGS'
8915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8919 oldcflags="$CFLAGS"
8920 CFLAGS="$CFLAGS -Wl,-R."
8921 cat >conftest.$ac_ext <<_ACEOF
8922 /* confdefs.h. */
8923 _ACEOF
8924 cat confdefs.h >>conftest.$ac_ext
8925 cat >>conftest.$ac_ext <<_ACEOF
8926 /* end confdefs.h. */
8929 main ()
8933 return 0;
8935 _ACEOF
8936 rm -f conftest.$ac_objext conftest$ac_exeext
8937 if { (ac_try="$ac_link"
8938 case "(($ac_try" in
8939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8940 *) ac_try_echo=$ac_try;;
8941 esac
8942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8943 (eval "$ac_link") 2>conftest.er1
8944 ac_status=$?
8945 grep -v '^ *+' conftest.er1 >conftest.err
8946 rm -f conftest.er1
8947 cat conftest.err >&5
8948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949 (exit $ac_status); } &&
8950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8951 { (case "(($ac_try" in
8952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8953 *) ac_try_echo=$ac_try;;
8954 esac
8955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8956 (eval "$ac_try") 2>&5
8957 ac_status=$?
8958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959 (exit $ac_status); }; } &&
8960 { ac_try='test -s conftest$ac_exeext'
8961 { (case "(($ac_try" in
8962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8963 *) ac_try_echo=$ac_try;;
8964 esac
8965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8966 (eval "$ac_try") 2>&5
8967 ac_status=$?
8968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969 (exit $ac_status); }; }; then
8970 llvm_cv_link_use_r=yes
8971 else
8972 echo "$as_me: failed program was:" >&5
8973 sed 's/^/| /' conftest.$ac_ext >&5
8975 llvm_cv_link_use_r=no
8978 rm -f core conftest.err conftest.$ac_objext \
8979 conftest$ac_exeext conftest.$ac_ext
8980 CFLAGS="$oldcflags"
8981 ac_ext=c
8982 ac_cpp='$CPP $CPPFLAGS'
8983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8989 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8990 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8991 if test "$llvm_cv_link_use_r" = yes ; then
8993 cat >>confdefs.h <<\_ACEOF
8994 #define HAVE_LINK_R 1
8995 _ACEOF
9000 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
9001 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
9002 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
9003 echo $ECHO_N "(cached) $ECHO_C" >&6
9004 else
9005 ac_ext=c
9006 ac_cpp='$CPP $CPPFLAGS'
9007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9011 oldcflags="$CFLAGS"
9012 CFLAGS="$CFLAGS -Wl,-export-dynamic"
9013 cat >conftest.$ac_ext <<_ACEOF
9014 /* confdefs.h. */
9015 _ACEOF
9016 cat confdefs.h >>conftest.$ac_ext
9017 cat >>conftest.$ac_ext <<_ACEOF
9018 /* end confdefs.h. */
9021 main ()
9025 return 0;
9027 _ACEOF
9028 rm -f conftest.$ac_objext conftest$ac_exeext
9029 if { (ac_try="$ac_link"
9030 case "(($ac_try" in
9031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9032 *) ac_try_echo=$ac_try;;
9033 esac
9034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9035 (eval "$ac_link") 2>conftest.er1
9036 ac_status=$?
9037 grep -v '^ *+' conftest.er1 >conftest.err
9038 rm -f conftest.er1
9039 cat conftest.err >&5
9040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9041 (exit $ac_status); } &&
9042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9043 { (case "(($ac_try" in
9044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9045 *) ac_try_echo=$ac_try;;
9046 esac
9047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9048 (eval "$ac_try") 2>&5
9049 ac_status=$?
9050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051 (exit $ac_status); }; } &&
9052 { ac_try='test -s conftest$ac_exeext'
9053 { (case "(($ac_try" in
9054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9055 *) ac_try_echo=$ac_try;;
9056 esac
9057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9058 (eval "$ac_try") 2>&5
9059 ac_status=$?
9060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9061 (exit $ac_status); }; }; then
9062 llvm_cv_link_use_export_dynamic=yes
9063 else
9064 echo "$as_me: failed program was:" >&5
9065 sed 's/^/| /' conftest.$ac_ext >&5
9067 llvm_cv_link_use_export_dynamic=no
9070 rm -f core conftest.err conftest.$ac_objext \
9071 conftest$ac_exeext conftest.$ac_ext
9072 CFLAGS="$oldcflags"
9073 ac_ext=c
9074 ac_cpp='$CPP $CPPFLAGS'
9075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9081 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
9082 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
9083 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
9085 cat >>confdefs.h <<\_ACEOF
9086 #define HAVE_LINK_EXPORT_DYNAMIC 1
9087 _ACEOF
9092 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
9093 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
9094 if test "${llvm_cv_link_use_version_script+set}" = set; then
9095 echo $ECHO_N "(cached) $ECHO_C" >&6
9096 else
9097 ac_ext=c
9098 ac_cpp='$CPP $CPPFLAGS'
9099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9103 oldcflags="$CFLAGS"
9105 # The following code is from the autoconf manual,
9106 # "11.13: Limitations of Usual Tools".
9107 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
9108 # Use mktemp if possible; otherwise fall back on mkdir,
9109 # with $RANDOM to make collisions less likely.
9110 : ${TMPDIR=/tmp}
9112 tmp=`
9113 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
9114 ` &&
9115 test -n "$tmp" && test -d "$tmp"
9116 } || {
9117 tmp=$TMPDIR/foo$$-$RANDOM
9118 (umask 077 && mkdir "$tmp")
9119 } || exit $?
9121 echo "{" > "$tmp/export.map"
9122 echo " global: main;" >> "$tmp/export.map"
9123 echo " local: *;" >> "$tmp/export.map"
9124 echo "};" >> "$tmp/export.map"
9126 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
9127 cat >conftest.$ac_ext <<_ACEOF
9128 /* confdefs.h. */
9129 _ACEOF
9130 cat confdefs.h >>conftest.$ac_ext
9131 cat >>conftest.$ac_ext <<_ACEOF
9132 /* end confdefs.h. */
9135 main ()
9139 return 0;
9141 _ACEOF
9142 rm -f conftest.$ac_objext conftest$ac_exeext
9143 if { (ac_try="$ac_link"
9144 case "(($ac_try" in
9145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9146 *) ac_try_echo=$ac_try;;
9147 esac
9148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9149 (eval "$ac_link") 2>conftest.er1
9150 ac_status=$?
9151 grep -v '^ *+' conftest.er1 >conftest.err
9152 rm -f conftest.er1
9153 cat conftest.err >&5
9154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9155 (exit $ac_status); } &&
9156 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9157 { (case "(($ac_try" in
9158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9159 *) ac_try_echo=$ac_try;;
9160 esac
9161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9162 (eval "$ac_try") 2>&5
9163 ac_status=$?
9164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165 (exit $ac_status); }; } &&
9166 { ac_try='test -s conftest$ac_exeext'
9167 { (case "(($ac_try" in
9168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9169 *) ac_try_echo=$ac_try;;
9170 esac
9171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9172 (eval "$ac_try") 2>&5
9173 ac_status=$?
9174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175 (exit $ac_status); }; }; then
9176 llvm_cv_link_use_version_script=yes
9177 else
9178 echo "$as_me: failed program was:" >&5
9179 sed 's/^/| /' conftest.$ac_ext >&5
9181 llvm_cv_link_use_version_script=no
9184 rm -f core conftest.err conftest.$ac_objext \
9185 conftest$ac_exeext conftest.$ac_ext
9186 rm "$tmp/export.map"
9187 rmdir "$tmp"
9188 CFLAGS="$oldcflags"
9189 ac_ext=c
9190 ac_cpp='$CPP $CPPFLAGS'
9191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9197 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
9198 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
9199 if test "$llvm_cv_link_use_version_script" = yes ; then
9200 HAVE_LINK_VERSION_SCRIPT=1
9207 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9208 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9209 if test "${ac_cv_c_const+set}" = set; then
9210 echo $ECHO_N "(cached) $ECHO_C" >&6
9211 else
9212 cat >conftest.$ac_ext <<_ACEOF
9213 /* confdefs.h. */
9214 _ACEOF
9215 cat confdefs.h >>conftest.$ac_ext
9216 cat >>conftest.$ac_ext <<_ACEOF
9217 /* end confdefs.h. */
9220 main ()
9222 /* FIXME: Include the comments suggested by Paul. */
9223 #ifndef __cplusplus
9224 /* Ultrix mips cc rejects this. */
9225 typedef int charset[2];
9226 const charset x;
9227 /* SunOS 4.1.1 cc rejects this. */
9228 char const *const *ccp;
9229 char **p;
9230 /* NEC SVR4.0.2 mips cc rejects this. */
9231 struct point {int x, y;};
9232 static struct point const zero = {0,0};
9233 /* AIX XL C 1.02.0.0 rejects this.
9234 It does not let you subtract one const X* pointer from another in
9235 an arm of an if-expression whose if-part is not a constant
9236 expression */
9237 const char *g = "string";
9238 ccp = &g + (g ? g-g : 0);
9239 /* HPUX 7.0 cc rejects these. */
9240 ++ccp;
9241 p = (char**) ccp;
9242 ccp = (char const *const *) p;
9243 { /* SCO 3.2v4 cc rejects this. */
9244 char *t;
9245 char const *s = 0 ? (char *) 0 : (char const *) 0;
9247 *t++ = 0;
9248 if (s) return 0;
9250 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9251 int x[] = {25, 17};
9252 const int *foo = &x[0];
9253 ++foo;
9255 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9256 typedef const int *iptr;
9257 iptr p = 0;
9258 ++p;
9260 { /* AIX XL C 1.02.0.0 rejects this saying
9261 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9262 struct s { int j; const int *ap[3]; };
9263 struct s *b; b->j = 5;
9265 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9266 const int foo = 10;
9267 if (!foo) return 0;
9269 return !x[0] && !zero.x;
9270 #endif
9273 return 0;
9275 _ACEOF
9276 rm -f conftest.$ac_objext
9277 if { (ac_try="$ac_compile"
9278 case "(($ac_try" in
9279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9280 *) ac_try_echo=$ac_try;;
9281 esac
9282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9283 (eval "$ac_compile") 2>conftest.er1
9284 ac_status=$?
9285 grep -v '^ *+' conftest.er1 >conftest.err
9286 rm -f conftest.er1
9287 cat conftest.err >&5
9288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289 (exit $ac_status); } &&
9290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9291 { (case "(($ac_try" in
9292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9293 *) ac_try_echo=$ac_try;;
9294 esac
9295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9296 (eval "$ac_try") 2>&5
9297 ac_status=$?
9298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9299 (exit $ac_status); }; } &&
9300 { ac_try='test -s conftest.$ac_objext'
9301 { (case "(($ac_try" in
9302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9303 *) ac_try_echo=$ac_try;;
9304 esac
9305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9306 (eval "$ac_try") 2>&5
9307 ac_status=$?
9308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9309 (exit $ac_status); }; }; then
9310 ac_cv_c_const=yes
9311 else
9312 echo "$as_me: failed program was:" >&5
9313 sed 's/^/| /' conftest.$ac_ext >&5
9315 ac_cv_c_const=no
9318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9320 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9321 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9322 if test $ac_cv_c_const = no; then
9324 cat >>confdefs.h <<\_ACEOF
9325 #define const
9326 _ACEOF
9335 ac_header_dirent=no
9336 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9337 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9338 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9339 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9340 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9341 echo $ECHO_N "(cached) $ECHO_C" >&6
9342 else
9343 cat >conftest.$ac_ext <<_ACEOF
9344 /* confdefs.h. */
9345 _ACEOF
9346 cat confdefs.h >>conftest.$ac_ext
9347 cat >>conftest.$ac_ext <<_ACEOF
9348 /* end confdefs.h. */
9349 #include <sys/types.h>
9350 #include <$ac_hdr>
9353 main ()
9355 if ((DIR *) 0)
9356 return 0;
9358 return 0;
9360 _ACEOF
9361 rm -f conftest.$ac_objext
9362 if { (ac_try="$ac_compile"
9363 case "(($ac_try" in
9364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9365 *) ac_try_echo=$ac_try;;
9366 esac
9367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9368 (eval "$ac_compile") 2>conftest.er1
9369 ac_status=$?
9370 grep -v '^ *+' conftest.er1 >conftest.err
9371 rm -f conftest.er1
9372 cat conftest.err >&5
9373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374 (exit $ac_status); } &&
9375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9376 { (case "(($ac_try" in
9377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9378 *) ac_try_echo=$ac_try;;
9379 esac
9380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9381 (eval "$ac_try") 2>&5
9382 ac_status=$?
9383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384 (exit $ac_status); }; } &&
9385 { ac_try='test -s conftest.$ac_objext'
9386 { (case "(($ac_try" in
9387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9388 *) ac_try_echo=$ac_try;;
9389 esac
9390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9391 (eval "$ac_try") 2>&5
9392 ac_status=$?
9393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394 (exit $ac_status); }; }; then
9395 eval "$as_ac_Header=yes"
9396 else
9397 echo "$as_me: failed program was:" >&5
9398 sed 's/^/| /' conftest.$ac_ext >&5
9400 eval "$as_ac_Header=no"
9403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9405 ac_res=`eval echo '${'$as_ac_Header'}'`
9406 { echo "$as_me:$LINENO: result: $ac_res" >&5
9407 echo "${ECHO_T}$ac_res" >&6; }
9408 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9409 cat >>confdefs.h <<_ACEOF
9410 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9411 _ACEOF
9413 ac_header_dirent=$ac_hdr; break
9416 done
9417 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9418 if test $ac_header_dirent = dirent.h; then
9419 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9420 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9421 if test "${ac_cv_search_opendir+set}" = set; then
9422 echo $ECHO_N "(cached) $ECHO_C" >&6
9423 else
9424 ac_func_search_save_LIBS=$LIBS
9425 cat >conftest.$ac_ext <<_ACEOF
9426 /* confdefs.h. */
9427 _ACEOF
9428 cat confdefs.h >>conftest.$ac_ext
9429 cat >>conftest.$ac_ext <<_ACEOF
9430 /* end confdefs.h. */
9432 /* Override any GCC internal prototype to avoid an error.
9433 Use char because int might match the return type of a GCC
9434 builtin and then its argument prototype would still apply. */
9435 #ifdef __cplusplus
9436 extern "C"
9437 #endif
9438 char opendir ();
9440 main ()
9442 return opendir ();
9444 return 0;
9446 _ACEOF
9447 for ac_lib in '' dir; do
9448 if test -z "$ac_lib"; then
9449 ac_res="none required"
9450 else
9451 ac_res=-l$ac_lib
9452 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9454 rm -f conftest.$ac_objext conftest$ac_exeext
9455 if { (ac_try="$ac_link"
9456 case "(($ac_try" in
9457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9458 *) ac_try_echo=$ac_try;;
9459 esac
9460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9461 (eval "$ac_link") 2>conftest.er1
9462 ac_status=$?
9463 grep -v '^ *+' conftest.er1 >conftest.err
9464 rm -f conftest.er1
9465 cat conftest.err >&5
9466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9467 (exit $ac_status); } &&
9468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9469 { (case "(($ac_try" in
9470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9471 *) ac_try_echo=$ac_try;;
9472 esac
9473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9474 (eval "$ac_try") 2>&5
9475 ac_status=$?
9476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9477 (exit $ac_status); }; } &&
9478 { ac_try='test -s conftest$ac_exeext'
9479 { (case "(($ac_try" in
9480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9481 *) ac_try_echo=$ac_try;;
9482 esac
9483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9484 (eval "$ac_try") 2>&5
9485 ac_status=$?
9486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9487 (exit $ac_status); }; }; then
9488 ac_cv_search_opendir=$ac_res
9489 else
9490 echo "$as_me: failed program was:" >&5
9491 sed 's/^/| /' conftest.$ac_ext >&5
9496 rm -f core conftest.err conftest.$ac_objext \
9497 conftest$ac_exeext
9498 if test "${ac_cv_search_opendir+set}" = set; then
9499 break
9501 done
9502 if test "${ac_cv_search_opendir+set}" = set; then
9504 else
9505 ac_cv_search_opendir=no
9507 rm conftest.$ac_ext
9508 LIBS=$ac_func_search_save_LIBS
9510 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9511 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9512 ac_res=$ac_cv_search_opendir
9513 if test "$ac_res" != no; then
9514 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9518 else
9519 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9520 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9521 if test "${ac_cv_search_opendir+set}" = set; then
9522 echo $ECHO_N "(cached) $ECHO_C" >&6
9523 else
9524 ac_func_search_save_LIBS=$LIBS
9525 cat >conftest.$ac_ext <<_ACEOF
9526 /* confdefs.h. */
9527 _ACEOF
9528 cat confdefs.h >>conftest.$ac_ext
9529 cat >>conftest.$ac_ext <<_ACEOF
9530 /* end confdefs.h. */
9532 /* Override any GCC internal prototype to avoid an error.
9533 Use char because int might match the return type of a GCC
9534 builtin and then its argument prototype would still apply. */
9535 #ifdef __cplusplus
9536 extern "C"
9537 #endif
9538 char opendir ();
9540 main ()
9542 return opendir ();
9544 return 0;
9546 _ACEOF
9547 for ac_lib in '' x; do
9548 if test -z "$ac_lib"; then
9549 ac_res="none required"
9550 else
9551 ac_res=-l$ac_lib
9552 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9554 rm -f conftest.$ac_objext conftest$ac_exeext
9555 if { (ac_try="$ac_link"
9556 case "(($ac_try" in
9557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9558 *) ac_try_echo=$ac_try;;
9559 esac
9560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9561 (eval "$ac_link") 2>conftest.er1
9562 ac_status=$?
9563 grep -v '^ *+' conftest.er1 >conftest.err
9564 rm -f conftest.er1
9565 cat conftest.err >&5
9566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567 (exit $ac_status); } &&
9568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9569 { (case "(($ac_try" in
9570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9571 *) ac_try_echo=$ac_try;;
9572 esac
9573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9574 (eval "$ac_try") 2>&5
9575 ac_status=$?
9576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577 (exit $ac_status); }; } &&
9578 { ac_try='test -s conftest$ac_exeext'
9579 { (case "(($ac_try" in
9580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9581 *) ac_try_echo=$ac_try;;
9582 esac
9583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9584 (eval "$ac_try") 2>&5
9585 ac_status=$?
9586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9587 (exit $ac_status); }; }; then
9588 ac_cv_search_opendir=$ac_res
9589 else
9590 echo "$as_me: failed program was:" >&5
9591 sed 's/^/| /' conftest.$ac_ext >&5
9596 rm -f core conftest.err conftest.$ac_objext \
9597 conftest$ac_exeext
9598 if test "${ac_cv_search_opendir+set}" = set; then
9599 break
9601 done
9602 if test "${ac_cv_search_opendir+set}" = set; then
9604 else
9605 ac_cv_search_opendir=no
9607 rm conftest.$ac_ext
9608 LIBS=$ac_func_search_save_LIBS
9610 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9611 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9612 ac_res=$ac_cv_search_opendir
9613 if test "$ac_res" != no; then
9614 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9621 for ac_header in dlfcn.h
9623 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9624 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9625 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9626 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9627 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9628 echo $ECHO_N "(cached) $ECHO_C" >&6
9630 ac_res=`eval echo '${'$as_ac_Header'}'`
9631 { echo "$as_me:$LINENO: result: $ac_res" >&5
9632 echo "${ECHO_T}$ac_res" >&6; }
9633 else
9634 # Is the header compilable?
9635 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9636 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9637 cat >conftest.$ac_ext <<_ACEOF
9638 /* confdefs.h. */
9639 _ACEOF
9640 cat confdefs.h >>conftest.$ac_ext
9641 cat >>conftest.$ac_ext <<_ACEOF
9642 /* end confdefs.h. */
9643 $ac_includes_default
9644 #include <$ac_header>
9645 _ACEOF
9646 rm -f conftest.$ac_objext
9647 if { (ac_try="$ac_compile"
9648 case "(($ac_try" in
9649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9650 *) ac_try_echo=$ac_try;;
9651 esac
9652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9653 (eval "$ac_compile") 2>conftest.er1
9654 ac_status=$?
9655 grep -v '^ *+' conftest.er1 >conftest.err
9656 rm -f conftest.er1
9657 cat conftest.err >&5
9658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9659 (exit $ac_status); } &&
9660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9661 { (case "(($ac_try" in
9662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9663 *) ac_try_echo=$ac_try;;
9664 esac
9665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9666 (eval "$ac_try") 2>&5
9667 ac_status=$?
9668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669 (exit $ac_status); }; } &&
9670 { ac_try='test -s conftest.$ac_objext'
9671 { (case "(($ac_try" in
9672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9673 *) ac_try_echo=$ac_try;;
9674 esac
9675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9676 (eval "$ac_try") 2>&5
9677 ac_status=$?
9678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679 (exit $ac_status); }; }; then
9680 ac_header_compiler=yes
9681 else
9682 echo "$as_me: failed program was:" >&5
9683 sed 's/^/| /' conftest.$ac_ext >&5
9685 ac_header_compiler=no
9688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9689 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9690 echo "${ECHO_T}$ac_header_compiler" >&6; }
9692 # Is the header present?
9693 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9694 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9695 cat >conftest.$ac_ext <<_ACEOF
9696 /* confdefs.h. */
9697 _ACEOF
9698 cat confdefs.h >>conftest.$ac_ext
9699 cat >>conftest.$ac_ext <<_ACEOF
9700 /* end confdefs.h. */
9701 #include <$ac_header>
9702 _ACEOF
9703 if { (ac_try="$ac_cpp conftest.$ac_ext"
9704 case "(($ac_try" in
9705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9706 *) ac_try_echo=$ac_try;;
9707 esac
9708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9709 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9710 ac_status=$?
9711 grep -v '^ *+' conftest.er1 >conftest.err
9712 rm -f conftest.er1
9713 cat conftest.err >&5
9714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715 (exit $ac_status); } >/dev/null; then
9716 if test -s conftest.err; then
9717 ac_cpp_err=$ac_c_preproc_warn_flag
9718 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9719 else
9720 ac_cpp_err=
9722 else
9723 ac_cpp_err=yes
9725 if test -z "$ac_cpp_err"; then
9726 ac_header_preproc=yes
9727 else
9728 echo "$as_me: failed program was:" >&5
9729 sed 's/^/| /' conftest.$ac_ext >&5
9731 ac_header_preproc=no
9734 rm -f conftest.err conftest.$ac_ext
9735 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9736 echo "${ECHO_T}$ac_header_preproc" >&6; }
9738 # So? What about this header?
9739 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9740 yes:no: )
9741 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9742 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9743 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9744 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9745 ac_header_preproc=yes
9747 no:yes:* )
9748 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9749 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9750 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9751 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9752 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9753 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9754 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9755 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9756 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9757 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9758 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9759 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9760 ( cat <<\_ASBOX
9761 ## ----------------------------------- ##
9762 ## Report this to llvmbugs@cs.uiuc.edu ##
9763 ## ----------------------------------- ##
9764 _ASBOX
9765 ) | sed "s/^/$as_me: WARNING: /" >&2
9767 esac
9768 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9769 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9770 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9771 echo $ECHO_N "(cached) $ECHO_C" >&6
9772 else
9773 eval "$as_ac_Header=\$ac_header_preproc"
9775 ac_res=`eval echo '${'$as_ac_Header'}'`
9776 { echo "$as_me:$LINENO: result: $ac_res" >&5
9777 echo "${ECHO_T}$ac_res" >&6; }
9780 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9781 cat >>confdefs.h <<_ACEOF
9782 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9783 _ACEOF
9787 done
9789 # Check whether --enable-ltdl-install was given.
9790 if test "${enable_ltdl_install+set}" = set; then
9791 enableval=$enable_ltdl_install;
9797 if test x"${enable_ltdl_install-no}" != xno; then
9798 INSTALL_LTDL_TRUE=
9799 INSTALL_LTDL_FALSE='#'
9800 else
9801 INSTALL_LTDL_TRUE='#'
9802 INSTALL_LTDL_FALSE=
9807 if test x"${enable_ltdl_convenience-no}" != xno; then
9808 CONVENIENCE_LTDL_TRUE=
9809 CONVENIENCE_LTDL_FALSE='#'
9810 else
9811 CONVENIENCE_LTDL_TRUE='#'
9812 CONVENIENCE_LTDL_FALSE=
9816 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9817 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9818 library_names_spec=
9819 libname_spec='lib$name'
9820 soname_spec=
9821 shrext_cmds=".so"
9822 postinstall_cmds=
9823 postuninstall_cmds=
9824 finish_cmds=
9825 finish_eval=
9826 shlibpath_var=
9827 shlibpath_overrides_runpath=unknown
9828 version_type=none
9829 dynamic_linker="$host_os ld.so"
9830 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9831 if test "$GCC" = yes; then
9832 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9833 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9834 # if the path contains ";" then we assume it to be the separator
9835 # otherwise default to the standard path separator (i.e. ":") - it is
9836 # assumed that no part of a normal pathname contains ";" but that should
9837 # okay in the real world where ";" in dirpaths is itself problematic.
9838 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9839 else
9840 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9842 else
9843 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9845 need_lib_prefix=unknown
9846 hardcode_into_libs=no
9848 # when you set need_version to no, make sure it does not cause -set_version
9849 # flags to be left without arguments
9850 need_version=unknown
9852 case $host_os in
9853 aix3*)
9854 version_type=linux
9855 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9856 shlibpath_var=LIBPATH
9858 # AIX 3 has no versioning support, so we append a major version to the name.
9859 soname_spec='${libname}${release}${shared_ext}$major'
9862 aix4* | aix5*)
9863 version_type=linux
9864 need_lib_prefix=no
9865 need_version=no
9866 hardcode_into_libs=yes
9867 if test "$host_cpu" = ia64; then
9868 # AIX 5 supports IA64
9869 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9870 shlibpath_var=LD_LIBRARY_PATH
9871 else
9872 # With GCC up to 2.95.x, collect2 would create an import file
9873 # for dependence libraries. The import file would start with
9874 # the line `#! .'. This would cause the generated library to
9875 # depend on `.', always an invalid library. This was fixed in
9876 # development snapshots of GCC prior to 3.0.
9877 case $host_os in
9878 aix4 | aix4.[01] | aix4.[01].*)
9879 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9880 echo ' yes '
9881 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9883 else
9884 can_build_shared=no
9887 esac
9888 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9889 # soname into executable. Probably we can add versioning support to
9890 # collect2, so additional links can be useful in future.
9891 if test "$aix_use_runtimelinking" = yes; then
9892 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9893 # instead of lib<name>.a to let people know that these are not
9894 # typical AIX shared libraries.
9895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9896 else
9897 # We preserve .a as extension for shared libraries through AIX4.2
9898 # and later when we are not doing run time linking.
9899 library_names_spec='${libname}${release}.a $libname.a'
9900 soname_spec='${libname}${release}${shared_ext}$major'
9902 shlibpath_var=LIBPATH
9906 amigaos*)
9907 library_names_spec='$libname.ixlibrary $libname.a'
9908 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9909 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'
9912 beos*)
9913 library_names_spec='${libname}${shared_ext}'
9914 dynamic_linker="$host_os ld.so"
9915 shlibpath_var=LIBRARY_PATH
9918 bsdi[45]*)
9919 version_type=linux
9920 need_version=no
9921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9922 soname_spec='${libname}${release}${shared_ext}$major'
9923 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9924 shlibpath_var=LD_LIBRARY_PATH
9925 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9926 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9927 # the default ld.so.conf also contains /usr/contrib/lib and
9928 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9929 # libtool to hard-code these into programs
9932 cygwin* | mingw* | pw32*)
9933 version_type=windows
9934 shrext_cmds=".dll"
9935 need_version=no
9936 need_lib_prefix=no
9938 case $GCC,$host_os in
9939 yes,cygwin* | yes,mingw* | yes,pw32*)
9940 library_names_spec='$libname.dll.a'
9941 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9942 postinstall_cmds='base_file=`basename \${file}`~
9943 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9944 dldir=$destdir/`dirname \$dlpath`~
9945 test -d \$dldir || mkdir -p \$dldir~
9946 $install_prog $dir/$dlname \$dldir/$dlname~
9947 chmod a+x \$dldir/$dlname'
9948 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9949 dlpath=$dir/\$dldll~
9950 $rm \$dlpath'
9951 shlibpath_overrides_runpath=yes
9953 case $host_os in
9954 cygwin*)
9955 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9956 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9957 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9959 mingw*)
9960 # MinGW DLLs use traditional 'lib' prefix
9961 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9962 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9963 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9964 # It is most probably a Windows format PATH printed by
9965 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9966 # path with ; separators, and with drive letters. We can handle the
9967 # drive letters (cygwin fileutils understands them), so leave them,
9968 # especially as we might pass files found there to a mingw objdump,
9969 # which wouldn't understand a cygwinified path. Ahh.
9970 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9971 else
9972 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9975 pw32*)
9976 # pw32 DLLs use 'pw' prefix rather than 'lib'
9977 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9979 esac
9983 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9985 esac
9986 dynamic_linker='Win32 ld.exe'
9987 # FIXME: first we should search . and the directory the executable is in
9988 shlibpath_var=PATH
9991 darwin* | rhapsody*)
9992 dynamic_linker="$host_os dyld"
9993 version_type=darwin
9994 need_lib_prefix=no
9995 need_version=no
9996 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9997 soname_spec='${libname}${release}${major}$shared_ext'
9998 shlibpath_overrides_runpath=yes
9999 shlibpath_var=DYLD_LIBRARY_PATH
10000 shrext_cmds='.dylib'
10001 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10002 if test "$GCC" = yes; then
10003 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"`
10004 else
10005 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10007 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10010 dgux*)
10011 version_type=linux
10012 need_lib_prefix=no
10013 need_version=no
10014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10015 soname_spec='${libname}${release}${shared_ext}$major'
10016 shlibpath_var=LD_LIBRARY_PATH
10019 freebsd1*)
10020 dynamic_linker=no
10023 kfreebsd*-gnu)
10024 version_type=linux
10025 need_lib_prefix=no
10026 need_version=no
10027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10028 soname_spec='${libname}${release}${shared_ext}$major'
10029 shlibpath_var=LD_LIBRARY_PATH
10030 shlibpath_overrides_runpath=no
10031 hardcode_into_libs=yes
10032 dynamic_linker='GNU ld.so'
10035 freebsd* | dragonfly*)
10036 # DragonFly does not have aout. When/if they implement a new
10037 # versioning mechanism, adjust this.
10038 if test -x /usr/bin/objformat; then
10039 objformat=`/usr/bin/objformat`
10040 else
10041 case $host_os in
10042 freebsd[123]*) objformat=aout ;;
10043 *) objformat=elf ;;
10044 esac
10046 version_type=freebsd-$objformat
10047 case $version_type in
10048 freebsd-elf*)
10049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10050 need_version=no
10051 need_lib_prefix=no
10053 freebsd-*)
10054 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10055 need_version=yes
10057 esac
10058 shlibpath_var=LD_LIBRARY_PATH
10059 case $host_os in
10060 freebsd2*)
10061 shlibpath_overrides_runpath=yes
10063 freebsd3.[01]* | freebsdelf3.[01]*)
10064 shlibpath_overrides_runpath=yes
10065 hardcode_into_libs=yes
10067 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10068 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10069 shlibpath_overrides_runpath=no
10070 hardcode_into_libs=yes
10072 freebsd*) # from 4.6 on
10073 shlibpath_overrides_runpath=yes
10074 hardcode_into_libs=yes
10076 esac
10079 gnu*)
10080 version_type=linux
10081 need_lib_prefix=no
10082 need_version=no
10083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10084 soname_spec='${libname}${release}${shared_ext}$major'
10085 shlibpath_var=LD_LIBRARY_PATH
10086 hardcode_into_libs=yes
10089 hpux9* | hpux10* | hpux11*)
10090 # Give a soname corresponding to the major version so that dld.sl refuses to
10091 # link against other versions.
10092 version_type=sunos
10093 need_lib_prefix=no
10094 need_version=no
10095 case $host_cpu in
10096 ia64*)
10097 shrext_cmds='.so'
10098 hardcode_into_libs=yes
10099 dynamic_linker="$host_os dld.so"
10100 shlibpath_var=LD_LIBRARY_PATH
10101 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10103 soname_spec='${libname}${release}${shared_ext}$major'
10104 if test "X$HPUX_IA64_MODE" = X32; then
10105 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10106 else
10107 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10109 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10111 hppa*64*)
10112 shrext_cmds='.sl'
10113 hardcode_into_libs=yes
10114 dynamic_linker="$host_os dld.sl"
10115 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10116 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10118 soname_spec='${libname}${release}${shared_ext}$major'
10119 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10120 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10123 shrext_cmds='.sl'
10124 dynamic_linker="$host_os dld.sl"
10125 shlibpath_var=SHLIB_PATH
10126 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10128 soname_spec='${libname}${release}${shared_ext}$major'
10130 esac
10131 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10132 postinstall_cmds='chmod 555 $lib'
10135 interix3*)
10136 version_type=linux
10137 need_lib_prefix=no
10138 need_version=no
10139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10140 soname_spec='${libname}${release}${shared_ext}$major'
10141 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10142 shlibpath_var=LD_LIBRARY_PATH
10143 shlibpath_overrides_runpath=no
10144 hardcode_into_libs=yes
10147 irix5* | irix6* | nonstopux*)
10148 case $host_os in
10149 nonstopux*) version_type=nonstopux ;;
10151 if test "$lt_cv_prog_gnu_ld" = yes; then
10152 version_type=linux
10153 else
10154 version_type=irix
10155 fi ;;
10156 esac
10157 need_lib_prefix=no
10158 need_version=no
10159 soname_spec='${libname}${release}${shared_ext}$major'
10160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10161 case $host_os in
10162 irix5* | nonstopux*)
10163 libsuff= shlibsuff=
10166 case $LD in # libtool.m4 will add one of these switches to LD
10167 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10168 libsuff= shlibsuff= libmagic=32-bit;;
10169 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10170 libsuff=32 shlibsuff=N32 libmagic=N32;;
10171 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10172 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10173 *) libsuff= shlibsuff= libmagic=never-match;;
10174 esac
10176 esac
10177 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10178 shlibpath_overrides_runpath=no
10179 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10180 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10181 hardcode_into_libs=yes
10184 # No shared lib support for Linux oldld, aout, or coff.
10185 linux*oldld* | linux*aout* | linux*coff*)
10186 dynamic_linker=no
10189 # This must be Linux ELF.
10190 linux*)
10191 version_type=linux
10192 need_lib_prefix=no
10193 need_version=no
10194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10195 soname_spec='${libname}${release}${shared_ext}$major'
10196 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10197 shlibpath_var=LD_LIBRARY_PATH
10198 shlibpath_overrides_runpath=no
10199 # This implies no fast_install, which is unacceptable.
10200 # Some rework will be needed to allow for fast_install
10201 # before this can be enabled.
10202 hardcode_into_libs=yes
10204 # Append ld.so.conf contents to the search path
10205 if test -f /etc/ld.so.conf; then
10206 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' ' '`
10207 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10210 # We used to test for /lib/ld.so.1 and disable shared libraries on
10211 # powerpc, because MkLinux only supported shared libraries with the
10212 # GNU dynamic linker. Since this was broken with cross compilers,
10213 # most powerpc-linux boxes support dynamic linking these days and
10214 # people can always --disable-shared, the test was removed, and we
10215 # assume the GNU/Linux dynamic linker is in use.
10216 dynamic_linker='GNU/Linux ld.so'
10219 knetbsd*-gnu)
10220 version_type=linux
10221 need_lib_prefix=no
10222 need_version=no
10223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10224 soname_spec='${libname}${release}${shared_ext}$major'
10225 shlibpath_var=LD_LIBRARY_PATH
10226 shlibpath_overrides_runpath=no
10227 hardcode_into_libs=yes
10228 dynamic_linker='GNU ld.so'
10231 netbsd*)
10232 version_type=sunos
10233 need_lib_prefix=no
10234 need_version=no
10235 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10237 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10238 dynamic_linker='NetBSD (a.out) ld.so'
10239 else
10240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10241 soname_spec='${libname}${release}${shared_ext}$major'
10242 dynamic_linker='NetBSD ld.elf_so'
10244 shlibpath_var=LD_LIBRARY_PATH
10245 shlibpath_overrides_runpath=yes
10246 hardcode_into_libs=yes
10249 newsos6)
10250 version_type=linux
10251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10252 shlibpath_var=LD_LIBRARY_PATH
10253 shlibpath_overrides_runpath=yes
10256 nto-qnx*)
10257 version_type=linux
10258 need_lib_prefix=no
10259 need_version=no
10260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10261 soname_spec='${libname}${release}${shared_ext}$major'
10262 shlibpath_var=LD_LIBRARY_PATH
10263 shlibpath_overrides_runpath=yes
10266 openbsd*)
10267 version_type=sunos
10268 sys_lib_dlsearch_path_spec="/usr/lib"
10269 need_lib_prefix=no
10270 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10271 case $host_os in
10272 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10273 *) need_version=no ;;
10274 esac
10275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10276 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10277 shlibpath_var=LD_LIBRARY_PATH
10278 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10279 case $host_os in
10280 openbsd2.[89] | openbsd2.[89].*)
10281 shlibpath_overrides_runpath=no
10284 shlibpath_overrides_runpath=yes
10286 esac
10287 else
10288 shlibpath_overrides_runpath=yes
10292 os2*)
10293 libname_spec='$name'
10294 shrext_cmds=".dll"
10295 need_lib_prefix=no
10296 library_names_spec='$libname${shared_ext} $libname.a'
10297 dynamic_linker='OS/2 ld.exe'
10298 shlibpath_var=LIBPATH
10301 osf3* | osf4* | osf5*)
10302 version_type=osf
10303 need_lib_prefix=no
10304 need_version=no
10305 soname_spec='${libname}${release}${shared_ext}$major'
10306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10307 shlibpath_var=LD_LIBRARY_PATH
10308 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10309 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10312 solaris*)
10313 version_type=linux
10314 need_lib_prefix=no
10315 need_version=no
10316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10317 soname_spec='${libname}${release}${shared_ext}$major'
10318 shlibpath_var=LD_LIBRARY_PATH
10319 shlibpath_overrides_runpath=yes
10320 hardcode_into_libs=yes
10321 # ldd complains unless libraries are executable
10322 postinstall_cmds='chmod +x $lib'
10325 sunos4*)
10326 version_type=sunos
10327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10328 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10329 shlibpath_var=LD_LIBRARY_PATH
10330 shlibpath_overrides_runpath=yes
10331 if test "$with_gnu_ld" = yes; then
10332 need_lib_prefix=no
10334 need_version=yes
10337 sysv4 | sysv4.3*)
10338 version_type=linux
10339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10340 soname_spec='${libname}${release}${shared_ext}$major'
10341 shlibpath_var=LD_LIBRARY_PATH
10342 case $host_vendor in
10343 sni)
10344 shlibpath_overrides_runpath=no
10345 need_lib_prefix=no
10346 export_dynamic_flag_spec='${wl}-Blargedynsym'
10347 runpath_var=LD_RUN_PATH
10349 siemens)
10350 need_lib_prefix=no
10352 motorola)
10353 need_lib_prefix=no
10354 need_version=no
10355 shlibpath_overrides_runpath=no
10356 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10358 esac
10361 sysv4*MP*)
10362 if test -d /usr/nec ;then
10363 version_type=linux
10364 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10365 soname_spec='$libname${shared_ext}.$major'
10366 shlibpath_var=LD_LIBRARY_PATH
10370 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10371 version_type=freebsd-elf
10372 need_lib_prefix=no
10373 need_version=no
10374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10375 soname_spec='${libname}${release}${shared_ext}$major'
10376 shlibpath_var=LD_LIBRARY_PATH
10377 hardcode_into_libs=yes
10378 if test "$with_gnu_ld" = yes; then
10379 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10380 shlibpath_overrides_runpath=no
10381 else
10382 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10383 shlibpath_overrides_runpath=yes
10384 case $host_os in
10385 sco3.2v5*)
10386 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10388 esac
10390 sys_lib_dlsearch_path_spec='/usr/lib'
10393 uts4*)
10394 version_type=linux
10395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10396 soname_spec='${libname}${release}${shared_ext}$major'
10397 shlibpath_var=LD_LIBRARY_PATH
10401 dynamic_linker=no
10403 esac
10404 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10405 echo "${ECHO_T}$dynamic_linker" >&6; }
10406 test "$dynamic_linker" = no && can_build_shared=no
10408 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10409 if test "$GCC" = yes; then
10410 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10414 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10415 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10416 if test "${libltdl_cv_shlibext+set}" = set; then
10417 echo $ECHO_N "(cached) $ECHO_C" >&6
10418 else
10420 module=yes
10421 eval libltdl_cv_shlibext=$shrext_cmds
10424 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10425 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
10426 if test -n "$libltdl_cv_shlibext"; then
10428 cat >>confdefs.h <<_ACEOF
10429 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10430 _ACEOF
10435 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10436 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10437 if test "${libltdl_cv_shlibpath_var+set}" = set; then
10438 echo $ECHO_N "(cached) $ECHO_C" >&6
10439 else
10440 libltdl_cv_shlibpath_var="$shlibpath_var"
10442 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10443 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
10444 if test -n "$libltdl_cv_shlibpath_var"; then
10446 cat >>confdefs.h <<_ACEOF
10447 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10448 _ACEOF
10453 { echo "$as_me:$LINENO: checking for the default library search path" >&5
10454 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10455 if test "${libltdl_cv_sys_search_path+set}" = set; then
10456 echo $ECHO_N "(cached) $ECHO_C" >&6
10457 else
10458 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10460 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10461 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
10462 if test -n "$libltdl_cv_sys_search_path"; then
10463 sys_search_path=
10464 for dir in $libltdl_cv_sys_search_path; do
10465 if test -z "$sys_search_path"; then
10466 sys_search_path="$dir"
10467 else
10468 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10470 done
10472 cat >>confdefs.h <<_ACEOF
10473 #define LTDL_SYSSEARCHPATH "$sys_search_path"
10474 _ACEOF
10478 { echo "$as_me:$LINENO: checking for objdir" >&5
10479 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10480 if test "${libltdl_cv_objdir+set}" = set; then
10481 echo $ECHO_N "(cached) $ECHO_C" >&6
10482 else
10483 libltdl_cv_objdir="$objdir"
10484 if test -n "$objdir"; then
10486 else
10487 rm -f .libs 2>/dev/null
10488 mkdir .libs 2>/dev/null
10489 if test -d .libs; then
10490 libltdl_cv_objdir=.libs
10491 else
10492 # MS-DOS does not allow filenames that begin with a dot.
10493 libltdl_cv_objdir=_libs
10495 rmdir .libs 2>/dev/null
10499 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10500 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
10502 cat >>confdefs.h <<_ACEOF
10503 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
10504 _ACEOF
10511 # Check for command to grab the raw symbol name followed by C symbol from nm.
10512 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10513 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10514 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10515 echo $ECHO_N "(cached) $ECHO_C" >&6
10516 else
10518 # These are sane defaults that work on at least a few old systems.
10519 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10521 # Character class describing NM global symbol codes.
10522 symcode='[BCDEGRST]'
10524 # Regexp to match symbols that can be accessed directly from C.
10525 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10527 # Transform an extracted symbol line into a proper C declaration
10528 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10530 # Transform an extracted symbol line into symbol name and symbol address
10531 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'"
10533 # Define system-specific variables.
10534 case $host_os in
10535 aix*)
10536 symcode='[BCDT]'
10538 cygwin* | mingw* | pw32*)
10539 symcode='[ABCDGISTW]'
10541 hpux*) # Its linker distinguishes data from code symbols
10542 if test "$host_cpu" = ia64; then
10543 symcode='[ABCDEGRST]'
10545 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10546 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'"
10548 linux*)
10549 if test "$host_cpu" = ia64; then
10550 symcode='[ABCDGIRSTW]'
10551 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10552 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'"
10555 irix* | nonstopux*)
10556 symcode='[BCDEGRST]'
10558 osf*)
10559 symcode='[BCDEGQRST]'
10561 solaris*)
10562 symcode='[BDRT]'
10564 sco3.2v5*)
10565 symcode='[DT]'
10567 sysv4.2uw2*)
10568 symcode='[DT]'
10570 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10571 symcode='[ABDT]'
10573 sysv4)
10574 symcode='[DFNSTU]'
10576 esac
10578 # Handle CRLF in mingw tool chain
10579 opt_cr=
10580 case $build_os in
10581 mingw*)
10582 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10584 esac
10586 # If we're using GNU nm, then use its standard symbol codes.
10587 case `$NM -V 2>&1` in
10588 *GNU* | *'with BFD'*)
10589 symcode='[ABCDGIRSTW]' ;;
10590 esac
10592 # Try without a prefix undercore, then with it.
10593 for ac_symprfx in "" "_"; do
10595 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10596 symxfrm="\\1 $ac_symprfx\\2 \\2"
10598 # Write the raw and C identifiers.
10599 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10601 # Check to see that the pipe works correctly.
10602 pipe_works=no
10604 rm -f conftest*
10605 cat > conftest.$ac_ext <<EOF
10606 #ifdef __cplusplus
10607 extern "C" {
10608 #endif
10609 char nm_test_var;
10610 void nm_test_func(){}
10611 #ifdef __cplusplus
10613 #endif
10614 int main(){nm_test_var='a';nm_test_func();return(0);}
10617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10618 (eval $ac_compile) 2>&5
10619 ac_status=$?
10620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10621 (exit $ac_status); }; then
10622 # Now try to grab the symbols.
10623 nlist=conftest.nm
10624 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10625 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10626 ac_status=$?
10627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10628 (exit $ac_status); } && test -s "$nlist"; then
10629 # Try sorting and uniquifying the output.
10630 if sort "$nlist" | uniq > "$nlist"T; then
10631 mv -f "$nlist"T "$nlist"
10632 else
10633 rm -f "$nlist"T
10636 # Make sure that we snagged all the symbols we need.
10637 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10638 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10639 cat <<EOF > conftest.$ac_ext
10640 #ifdef __cplusplus
10641 extern "C" {
10642 #endif
10645 # Now generate the symbol file.
10646 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10648 cat <<EOF >> conftest.$ac_ext
10649 #if defined (__STDC__) && __STDC__
10650 # define lt_ptr_t void *
10651 #else
10652 # define lt_ptr_t char *
10653 # define const
10654 #endif
10656 /* The mapping between symbol names and symbols. */
10657 const struct {
10658 const char *name;
10659 lt_ptr_t address;
10661 lt_preloaded_symbols[] =
10664 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10665 cat <<\EOF >> conftest.$ac_ext
10666 {0, (lt_ptr_t) 0}
10669 #ifdef __cplusplus
10671 #endif
10673 # Now try linking the two files.
10674 mv conftest.$ac_objext conftstm.$ac_objext
10675 lt_save_LIBS="$LIBS"
10676 lt_save_CFLAGS="$CFLAGS"
10677 LIBS="conftstm.$ac_objext"
10678 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10680 (eval $ac_link) 2>&5
10681 ac_status=$?
10682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10683 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10684 pipe_works=yes
10686 LIBS="$lt_save_LIBS"
10687 CFLAGS="$lt_save_CFLAGS"
10688 else
10689 echo "cannot find nm_test_func in $nlist" >&5
10691 else
10692 echo "cannot find nm_test_var in $nlist" >&5
10694 else
10695 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10697 else
10698 echo "$progname: failed program was:" >&5
10699 cat conftest.$ac_ext >&5
10701 rm -f conftest* conftst*
10703 # Do not use the global_symbol_pipe unless it works.
10704 if test "$pipe_works" = yes; then
10705 break
10706 else
10707 lt_cv_sys_global_symbol_pipe=
10709 done
10713 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10714 lt_cv_sys_global_symbol_to_cdecl=
10716 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10717 { echo "$as_me:$LINENO: result: failed" >&5
10718 echo "${ECHO_T}failed" >&6; }
10719 else
10720 { echo "$as_me:$LINENO: result: ok" >&5
10721 echo "${ECHO_T}ok" >&6; }
10725 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10726 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10727 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10728 echo $ECHO_N "(cached) $ECHO_C" >&6
10729 else
10730 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10731 libltdl_cv_preloaded_symbols=yes
10732 else
10733 libltdl_cv_preloaded_symbols=no
10737 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10738 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10739 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10741 cat >>confdefs.h <<\_ACEOF
10742 #define HAVE_PRELOADED_SYMBOLS 1
10743 _ACEOF
10747 LIBADD_DL=
10749 ac_ext=c
10750 ac_cpp='$CPP $CPPFLAGS'
10751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10756 { echo "$as_me:$LINENO: checking for shl_load" >&5
10757 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10758 if test "${ac_cv_func_shl_load+set}" = set; then
10759 echo $ECHO_N "(cached) $ECHO_C" >&6
10760 else
10761 cat >conftest.$ac_ext <<_ACEOF
10762 /* confdefs.h. */
10763 _ACEOF
10764 cat confdefs.h >>conftest.$ac_ext
10765 cat >>conftest.$ac_ext <<_ACEOF
10766 /* end confdefs.h. */
10767 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10768 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10769 #define shl_load innocuous_shl_load
10771 /* System header to define __stub macros and hopefully few prototypes,
10772 which can conflict with char shl_load (); below.
10773 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10774 <limits.h> exists even on freestanding compilers. */
10776 #ifdef __STDC__
10777 # include <limits.h>
10778 #else
10779 # include <assert.h>
10780 #endif
10782 #undef shl_load
10784 /* Override any GCC internal prototype to avoid an error.
10785 Use char because int might match the return type of a GCC
10786 builtin and then its argument prototype would still apply. */
10787 #ifdef __cplusplus
10788 extern "C"
10789 #endif
10790 char shl_load ();
10791 /* The GNU C library defines this for functions which it implements
10792 to always fail with ENOSYS. Some functions are actually named
10793 something starting with __ and the normal name is an alias. */
10794 #if defined __stub_shl_load || defined __stub___shl_load
10795 choke me
10796 #endif
10799 main ()
10801 return shl_load ();
10803 return 0;
10805 _ACEOF
10806 rm -f conftest.$ac_objext conftest$ac_exeext
10807 if { (ac_try="$ac_link"
10808 case "(($ac_try" in
10809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10810 *) ac_try_echo=$ac_try;;
10811 esac
10812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10813 (eval "$ac_link") 2>conftest.er1
10814 ac_status=$?
10815 grep -v '^ *+' conftest.er1 >conftest.err
10816 rm -f conftest.er1
10817 cat conftest.err >&5
10818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10819 (exit $ac_status); } &&
10820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10821 { (case "(($ac_try" in
10822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10823 *) ac_try_echo=$ac_try;;
10824 esac
10825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10826 (eval "$ac_try") 2>&5
10827 ac_status=$?
10828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829 (exit $ac_status); }; } &&
10830 { ac_try='test -s conftest$ac_exeext'
10831 { (case "(($ac_try" in
10832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10833 *) ac_try_echo=$ac_try;;
10834 esac
10835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10836 (eval "$ac_try") 2>&5
10837 ac_status=$?
10838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839 (exit $ac_status); }; }; then
10840 ac_cv_func_shl_load=yes
10841 else
10842 echo "$as_me: failed program was:" >&5
10843 sed 's/^/| /' conftest.$ac_ext >&5
10845 ac_cv_func_shl_load=no
10848 rm -f core conftest.err conftest.$ac_objext \
10849 conftest$ac_exeext conftest.$ac_ext
10851 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10852 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10853 if test $ac_cv_func_shl_load = yes; then
10855 cat >>confdefs.h <<\_ACEOF
10856 #define HAVE_SHL_LOAD 1
10857 _ACEOF
10859 else
10860 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10861 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10862 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10863 echo $ECHO_N "(cached) $ECHO_C" >&6
10864 else
10865 ac_check_lib_save_LIBS=$LIBS
10866 LIBS="-ldld $LIBS"
10867 cat >conftest.$ac_ext <<_ACEOF
10868 /* confdefs.h. */
10869 _ACEOF
10870 cat confdefs.h >>conftest.$ac_ext
10871 cat >>conftest.$ac_ext <<_ACEOF
10872 /* end confdefs.h. */
10874 /* Override any GCC internal prototype to avoid an error.
10875 Use char because int might match the return type of a GCC
10876 builtin and then its argument prototype would still apply. */
10877 #ifdef __cplusplus
10878 extern "C"
10879 #endif
10880 char shl_load ();
10882 main ()
10884 return shl_load ();
10886 return 0;
10888 _ACEOF
10889 rm -f conftest.$ac_objext conftest$ac_exeext
10890 if { (ac_try="$ac_link"
10891 case "(($ac_try" in
10892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10893 *) ac_try_echo=$ac_try;;
10894 esac
10895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10896 (eval "$ac_link") 2>conftest.er1
10897 ac_status=$?
10898 grep -v '^ *+' conftest.er1 >conftest.err
10899 rm -f conftest.er1
10900 cat conftest.err >&5
10901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902 (exit $ac_status); } &&
10903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10904 { (case "(($ac_try" in
10905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10906 *) ac_try_echo=$ac_try;;
10907 esac
10908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10909 (eval "$ac_try") 2>&5
10910 ac_status=$?
10911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912 (exit $ac_status); }; } &&
10913 { ac_try='test -s conftest$ac_exeext'
10914 { (case "(($ac_try" in
10915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10916 *) ac_try_echo=$ac_try;;
10917 esac
10918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10919 (eval "$ac_try") 2>&5
10920 ac_status=$?
10921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922 (exit $ac_status); }; }; then
10923 ac_cv_lib_dld_shl_load=yes
10924 else
10925 echo "$as_me: failed program was:" >&5
10926 sed 's/^/| /' conftest.$ac_ext >&5
10928 ac_cv_lib_dld_shl_load=no
10931 rm -f core conftest.err conftest.$ac_objext \
10932 conftest$ac_exeext conftest.$ac_ext
10933 LIBS=$ac_check_lib_save_LIBS
10935 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10936 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10937 if test $ac_cv_lib_dld_shl_load = yes; then
10939 cat >>confdefs.h <<\_ACEOF
10940 #define HAVE_SHL_LOAD 1
10941 _ACEOF
10943 LIBADD_DL="$LIBADD_DL -ldld"
10944 else
10945 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10946 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10947 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10948 echo $ECHO_N "(cached) $ECHO_C" >&6
10949 else
10950 ac_check_lib_save_LIBS=$LIBS
10951 LIBS="-ldl $LIBS"
10952 cat >conftest.$ac_ext <<_ACEOF
10953 /* confdefs.h. */
10954 _ACEOF
10955 cat confdefs.h >>conftest.$ac_ext
10956 cat >>conftest.$ac_ext <<_ACEOF
10957 /* end confdefs.h. */
10959 /* Override any GCC internal prototype to avoid an error.
10960 Use char because int might match the return type of a GCC
10961 builtin and then its argument prototype would still apply. */
10962 #ifdef __cplusplus
10963 extern "C"
10964 #endif
10965 char dlopen ();
10967 main ()
10969 return dlopen ();
10971 return 0;
10973 _ACEOF
10974 rm -f conftest.$ac_objext conftest$ac_exeext
10975 if { (ac_try="$ac_link"
10976 case "(($ac_try" in
10977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10978 *) ac_try_echo=$ac_try;;
10979 esac
10980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10981 (eval "$ac_link") 2>conftest.er1
10982 ac_status=$?
10983 grep -v '^ *+' conftest.er1 >conftest.err
10984 rm -f conftest.er1
10985 cat conftest.err >&5
10986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10987 (exit $ac_status); } &&
10988 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10989 { (case "(($ac_try" in
10990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10991 *) ac_try_echo=$ac_try;;
10992 esac
10993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10994 (eval "$ac_try") 2>&5
10995 ac_status=$?
10996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997 (exit $ac_status); }; } &&
10998 { ac_try='test -s conftest$ac_exeext'
10999 { (case "(($ac_try" in
11000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11001 *) ac_try_echo=$ac_try;;
11002 esac
11003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11004 (eval "$ac_try") 2>&5
11005 ac_status=$?
11006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007 (exit $ac_status); }; }; then
11008 ac_cv_lib_dl_dlopen=yes
11009 else
11010 echo "$as_me: failed program was:" >&5
11011 sed 's/^/| /' conftest.$ac_ext >&5
11013 ac_cv_lib_dl_dlopen=no
11016 rm -f core conftest.err conftest.$ac_objext \
11017 conftest$ac_exeext conftest.$ac_ext
11018 LIBS=$ac_check_lib_save_LIBS
11020 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11021 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11022 if test $ac_cv_lib_dl_dlopen = yes; then
11024 cat >>confdefs.h <<\_ACEOF
11025 #define HAVE_LIBDL 1
11026 _ACEOF
11028 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
11029 else
11030 cat >conftest.$ac_ext <<_ACEOF
11031 /* confdefs.h. */
11032 _ACEOF
11033 cat confdefs.h >>conftest.$ac_ext
11034 cat >>conftest.$ac_ext <<_ACEOF
11035 /* end confdefs.h. */
11036 #if HAVE_DLFCN_H
11037 # include <dlfcn.h>
11038 #endif
11041 main ()
11043 dlopen(0, 0);
11045 return 0;
11047 _ACEOF
11048 rm -f conftest.$ac_objext conftest$ac_exeext
11049 if { (ac_try="$ac_link"
11050 case "(($ac_try" in
11051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11052 *) ac_try_echo=$ac_try;;
11053 esac
11054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11055 (eval "$ac_link") 2>conftest.er1
11056 ac_status=$?
11057 grep -v '^ *+' conftest.er1 >conftest.err
11058 rm -f conftest.er1
11059 cat conftest.err >&5
11060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061 (exit $ac_status); } &&
11062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11063 { (case "(($ac_try" in
11064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11065 *) ac_try_echo=$ac_try;;
11066 esac
11067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11068 (eval "$ac_try") 2>&5
11069 ac_status=$?
11070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11071 (exit $ac_status); }; } &&
11072 { ac_try='test -s conftest$ac_exeext'
11073 { (case "(($ac_try" in
11074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11075 *) ac_try_echo=$ac_try;;
11076 esac
11077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11078 (eval "$ac_try") 2>&5
11079 ac_status=$?
11080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081 (exit $ac_status); }; }; then
11083 cat >>confdefs.h <<\_ACEOF
11084 #define HAVE_LIBDL 1
11085 _ACEOF
11086 libltdl_cv_func_dlopen="yes"
11087 else
11088 echo "$as_me: failed program was:" >&5
11089 sed 's/^/| /' conftest.$ac_ext >&5
11091 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11092 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11093 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11094 echo $ECHO_N "(cached) $ECHO_C" >&6
11095 else
11096 ac_check_lib_save_LIBS=$LIBS
11097 LIBS="-lsvld $LIBS"
11098 cat >conftest.$ac_ext <<_ACEOF
11099 /* confdefs.h. */
11100 _ACEOF
11101 cat confdefs.h >>conftest.$ac_ext
11102 cat >>conftest.$ac_ext <<_ACEOF
11103 /* end confdefs.h. */
11105 /* Override any GCC internal prototype to avoid an error.
11106 Use char because int might match the return type of a GCC
11107 builtin and then its argument prototype would still apply. */
11108 #ifdef __cplusplus
11109 extern "C"
11110 #endif
11111 char dlopen ();
11113 main ()
11115 return dlopen ();
11117 return 0;
11119 _ACEOF
11120 rm -f conftest.$ac_objext conftest$ac_exeext
11121 if { (ac_try="$ac_link"
11122 case "(($ac_try" in
11123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11124 *) ac_try_echo=$ac_try;;
11125 esac
11126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11127 (eval "$ac_link") 2>conftest.er1
11128 ac_status=$?
11129 grep -v '^ *+' conftest.er1 >conftest.err
11130 rm -f conftest.er1
11131 cat conftest.err >&5
11132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11133 (exit $ac_status); } &&
11134 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11135 { (case "(($ac_try" in
11136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11137 *) ac_try_echo=$ac_try;;
11138 esac
11139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11140 (eval "$ac_try") 2>&5
11141 ac_status=$?
11142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143 (exit $ac_status); }; } &&
11144 { ac_try='test -s conftest$ac_exeext'
11145 { (case "(($ac_try" in
11146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11147 *) ac_try_echo=$ac_try;;
11148 esac
11149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11150 (eval "$ac_try") 2>&5
11151 ac_status=$?
11152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153 (exit $ac_status); }; }; then
11154 ac_cv_lib_svld_dlopen=yes
11155 else
11156 echo "$as_me: failed program was:" >&5
11157 sed 's/^/| /' conftest.$ac_ext >&5
11159 ac_cv_lib_svld_dlopen=no
11162 rm -f core conftest.err conftest.$ac_objext \
11163 conftest$ac_exeext conftest.$ac_ext
11164 LIBS=$ac_check_lib_save_LIBS
11166 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11167 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11168 if test $ac_cv_lib_svld_dlopen = yes; then
11170 cat >>confdefs.h <<\_ACEOF
11171 #define HAVE_LIBDL 1
11172 _ACEOF
11174 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
11175 else
11176 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11177 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11178 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11179 echo $ECHO_N "(cached) $ECHO_C" >&6
11180 else
11181 ac_check_lib_save_LIBS=$LIBS
11182 LIBS="-ldld $LIBS"
11183 cat >conftest.$ac_ext <<_ACEOF
11184 /* confdefs.h. */
11185 _ACEOF
11186 cat confdefs.h >>conftest.$ac_ext
11187 cat >>conftest.$ac_ext <<_ACEOF
11188 /* end confdefs.h. */
11190 /* Override any GCC internal prototype to avoid an error.
11191 Use char because int might match the return type of a GCC
11192 builtin and then its argument prototype would still apply. */
11193 #ifdef __cplusplus
11194 extern "C"
11195 #endif
11196 char dld_link ();
11198 main ()
11200 return dld_link ();
11202 return 0;
11204 _ACEOF
11205 rm -f conftest.$ac_objext conftest$ac_exeext
11206 if { (ac_try="$ac_link"
11207 case "(($ac_try" in
11208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11209 *) ac_try_echo=$ac_try;;
11210 esac
11211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11212 (eval "$ac_link") 2>conftest.er1
11213 ac_status=$?
11214 grep -v '^ *+' conftest.er1 >conftest.err
11215 rm -f conftest.er1
11216 cat conftest.err >&5
11217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11218 (exit $ac_status); } &&
11219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11220 { (case "(($ac_try" in
11221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11222 *) ac_try_echo=$ac_try;;
11223 esac
11224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11225 (eval "$ac_try") 2>&5
11226 ac_status=$?
11227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228 (exit $ac_status); }; } &&
11229 { ac_try='test -s conftest$ac_exeext'
11230 { (case "(($ac_try" in
11231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11232 *) ac_try_echo=$ac_try;;
11233 esac
11234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11235 (eval "$ac_try") 2>&5
11236 ac_status=$?
11237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11238 (exit $ac_status); }; }; then
11239 ac_cv_lib_dld_dld_link=yes
11240 else
11241 echo "$as_me: failed program was:" >&5
11242 sed 's/^/| /' conftest.$ac_ext >&5
11244 ac_cv_lib_dld_dld_link=no
11247 rm -f core conftest.err conftest.$ac_objext \
11248 conftest$ac_exeext conftest.$ac_ext
11249 LIBS=$ac_check_lib_save_LIBS
11251 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11252 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11253 if test $ac_cv_lib_dld_dld_link = yes; then
11255 cat >>confdefs.h <<\_ACEOF
11256 #define HAVE_DLD 1
11257 _ACEOF
11259 LIBADD_DL="$LIBADD_DL -ldld"
11260 else
11261 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11262 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11263 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11264 echo $ECHO_N "(cached) $ECHO_C" >&6
11265 else
11266 cat >conftest.$ac_ext <<_ACEOF
11267 /* confdefs.h. */
11268 _ACEOF
11269 cat confdefs.h >>conftest.$ac_ext
11270 cat >>conftest.$ac_ext <<_ACEOF
11271 /* end confdefs.h. */
11272 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11273 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11274 #define _dyld_func_lookup innocuous__dyld_func_lookup
11276 /* System header to define __stub macros and hopefully few prototypes,
11277 which can conflict with char _dyld_func_lookup (); below.
11278 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11279 <limits.h> exists even on freestanding compilers. */
11281 #ifdef __STDC__
11282 # include <limits.h>
11283 #else
11284 # include <assert.h>
11285 #endif
11287 #undef _dyld_func_lookup
11289 /* Override any GCC internal prototype to avoid an error.
11290 Use char because int might match the return type of a GCC
11291 builtin and then its argument prototype would still apply. */
11292 #ifdef __cplusplus
11293 extern "C"
11294 #endif
11295 char _dyld_func_lookup ();
11296 /* The GNU C library defines this for functions which it implements
11297 to always fail with ENOSYS. Some functions are actually named
11298 something starting with __ and the normal name is an alias. */
11299 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11300 choke me
11301 #endif
11304 main ()
11306 return _dyld_func_lookup ();
11308 return 0;
11310 _ACEOF
11311 rm -f conftest.$ac_objext conftest$ac_exeext
11312 if { (ac_try="$ac_link"
11313 case "(($ac_try" in
11314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11315 *) ac_try_echo=$ac_try;;
11316 esac
11317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11318 (eval "$ac_link") 2>conftest.er1
11319 ac_status=$?
11320 grep -v '^ *+' conftest.er1 >conftest.err
11321 rm -f conftest.er1
11322 cat conftest.err >&5
11323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324 (exit $ac_status); } &&
11325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11326 { (case "(($ac_try" in
11327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11328 *) ac_try_echo=$ac_try;;
11329 esac
11330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11331 (eval "$ac_try") 2>&5
11332 ac_status=$?
11333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11334 (exit $ac_status); }; } &&
11335 { ac_try='test -s conftest$ac_exeext'
11336 { (case "(($ac_try" in
11337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11338 *) ac_try_echo=$ac_try;;
11339 esac
11340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11341 (eval "$ac_try") 2>&5
11342 ac_status=$?
11343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11344 (exit $ac_status); }; }; then
11345 ac_cv_func__dyld_func_lookup=yes
11346 else
11347 echo "$as_me: failed program was:" >&5
11348 sed 's/^/| /' conftest.$ac_ext >&5
11350 ac_cv_func__dyld_func_lookup=no
11353 rm -f core conftest.err conftest.$ac_objext \
11354 conftest$ac_exeext conftest.$ac_ext
11356 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11357 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11358 if test $ac_cv_func__dyld_func_lookup = yes; then
11360 cat >>confdefs.h <<\_ACEOF
11361 #define HAVE_DYLD 1
11362 _ACEOF
11375 rm -f core conftest.err conftest.$ac_objext \
11376 conftest$ac_exeext conftest.$ac_ext
11387 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11388 then
11389 lt_save_LIBS="$LIBS"
11390 LIBS="$LIBS $LIBADD_DL"
11392 for ac_func in dlerror
11394 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11395 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11396 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11397 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11398 echo $ECHO_N "(cached) $ECHO_C" >&6
11399 else
11400 cat >conftest.$ac_ext <<_ACEOF
11401 /* confdefs.h. */
11402 _ACEOF
11403 cat confdefs.h >>conftest.$ac_ext
11404 cat >>conftest.$ac_ext <<_ACEOF
11405 /* end confdefs.h. */
11406 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11407 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11408 #define $ac_func innocuous_$ac_func
11410 /* System header to define __stub macros and hopefully few prototypes,
11411 which can conflict with char $ac_func (); below.
11412 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11413 <limits.h> exists even on freestanding compilers. */
11415 #ifdef __STDC__
11416 # include <limits.h>
11417 #else
11418 # include <assert.h>
11419 #endif
11421 #undef $ac_func
11423 /* Override any GCC internal prototype to avoid an error.
11424 Use char because int might match the return type of a GCC
11425 builtin and then its argument prototype would still apply. */
11426 #ifdef __cplusplus
11427 extern "C"
11428 #endif
11429 char $ac_func ();
11430 /* The GNU C library defines this for functions which it implements
11431 to always fail with ENOSYS. Some functions are actually named
11432 something starting with __ and the normal name is an alias. */
11433 #if defined __stub_$ac_func || defined __stub___$ac_func
11434 choke me
11435 #endif
11438 main ()
11440 return $ac_func ();
11442 return 0;
11444 _ACEOF
11445 rm -f conftest.$ac_objext conftest$ac_exeext
11446 if { (ac_try="$ac_link"
11447 case "(($ac_try" in
11448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11449 *) ac_try_echo=$ac_try;;
11450 esac
11451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11452 (eval "$ac_link") 2>conftest.er1
11453 ac_status=$?
11454 grep -v '^ *+' conftest.er1 >conftest.err
11455 rm -f conftest.er1
11456 cat conftest.err >&5
11457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458 (exit $ac_status); } &&
11459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11460 { (case "(($ac_try" in
11461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11462 *) ac_try_echo=$ac_try;;
11463 esac
11464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11465 (eval "$ac_try") 2>&5
11466 ac_status=$?
11467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11468 (exit $ac_status); }; } &&
11469 { ac_try='test -s conftest$ac_exeext'
11470 { (case "(($ac_try" in
11471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11472 *) ac_try_echo=$ac_try;;
11473 esac
11474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11475 (eval "$ac_try") 2>&5
11476 ac_status=$?
11477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11478 (exit $ac_status); }; }; then
11479 eval "$as_ac_var=yes"
11480 else
11481 echo "$as_me: failed program was:" >&5
11482 sed 's/^/| /' conftest.$ac_ext >&5
11484 eval "$as_ac_var=no"
11487 rm -f core conftest.err conftest.$ac_objext \
11488 conftest$ac_exeext conftest.$ac_ext
11490 ac_res=`eval echo '${'$as_ac_var'}'`
11491 { echo "$as_me:$LINENO: result: $ac_res" >&5
11492 echo "${ECHO_T}$ac_res" >&6; }
11493 if test `eval echo '${'$as_ac_var'}'` = yes; then
11494 cat >>confdefs.h <<_ACEOF
11495 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11496 _ACEOF
11499 done
11501 LIBS="$lt_save_LIBS"
11503 ac_ext=c
11504 ac_cpp='$CPP $CPPFLAGS'
11505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11511 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11512 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11513 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11514 echo $ECHO_N "(cached) $ECHO_C" >&6
11515 else
11516 ac_cv_sys_symbol_underscore=no
11517 cat > conftest.$ac_ext <<EOF
11518 void nm_test_func(){}
11519 int main(){nm_test_func;return 0;}
11521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11522 (eval $ac_compile) 2>&5
11523 ac_status=$?
11524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11525 (exit $ac_status); }; then
11526 # Now try to grab the symbols.
11527 ac_nlist=conftest.nm
11528 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11529 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11530 ac_status=$?
11531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532 (exit $ac_status); } && test -s "$ac_nlist"; then
11533 # See whether the symbols have a leading underscore.
11534 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11535 ac_cv_sys_symbol_underscore=yes
11536 else
11537 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11539 else
11540 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11543 else
11544 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11546 else
11547 echo "configure: failed program was:" >&5
11548 cat conftest.c >&5
11550 rm -rf conftest*
11553 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11554 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11557 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11558 if test x"$libltdl_cv_func_dlopen" = xyes ||
11559 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11560 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11561 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11562 if test "${libltdl_cv_need_uscore+set}" = set; then
11563 echo $ECHO_N "(cached) $ECHO_C" >&6
11564 else
11565 libltdl_cv_need_uscore=unknown
11566 save_LIBS="$LIBS"
11567 LIBS="$LIBS $LIBADD_DL"
11568 if test "$cross_compiling" = yes; then :
11569 libltdl_cv_need_uscore=cross
11570 else
11571 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11572 lt_status=$lt_dlunknown
11573 cat > conftest.$ac_ext <<EOF
11574 #line 11574 "configure"
11575 #include "confdefs.h"
11577 #if HAVE_DLFCN_H
11578 #include <dlfcn.h>
11579 #endif
11581 #include <stdio.h>
11583 #ifdef RTLD_GLOBAL
11584 # define LT_DLGLOBAL RTLD_GLOBAL
11585 #else
11586 # ifdef DL_GLOBAL
11587 # define LT_DLGLOBAL DL_GLOBAL
11588 # else
11589 # define LT_DLGLOBAL 0
11590 # endif
11591 #endif
11593 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11594 find out it does not work in some platform. */
11595 #ifndef LT_DLLAZY_OR_NOW
11596 # ifdef RTLD_LAZY
11597 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11598 # else
11599 # ifdef DL_LAZY
11600 # define LT_DLLAZY_OR_NOW DL_LAZY
11601 # else
11602 # ifdef RTLD_NOW
11603 # define LT_DLLAZY_OR_NOW RTLD_NOW
11604 # else
11605 # ifdef DL_NOW
11606 # define LT_DLLAZY_OR_NOW DL_NOW
11607 # else
11608 # define LT_DLLAZY_OR_NOW 0
11609 # endif
11610 # endif
11611 # endif
11612 # endif
11613 #endif
11615 #ifdef __cplusplus
11616 extern "C" void exit (int);
11617 #endif
11619 void fnord() { int i=42;}
11620 int main ()
11622 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11623 int status = $lt_dlunknown;
11625 if (self)
11627 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11628 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11629 /* dlclose (self); */
11631 else
11632 puts (dlerror ());
11634 exit (status);
11637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11638 (eval $ac_link) 2>&5
11639 ac_status=$?
11640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11642 (./conftest; exit; ) >&5 2>/dev/null
11643 lt_status=$?
11644 case x$lt_status in
11645 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11646 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11647 x$lt_dlunknown|x*) ;;
11648 esac
11649 else :
11650 # compilation failed
11654 rm -fr conftest*
11656 LIBS="$save_LIBS"
11659 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11660 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11664 if test x"$libltdl_cv_need_uscore" = xyes; then
11666 cat >>confdefs.h <<\_ACEOF
11667 #define NEED_USCORE 1
11668 _ACEOF
11673 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11674 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11675 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11676 echo $ECHO_N "(cached) $ECHO_C" >&6
11677 else
11678 # PORTME does your system automatically load deplibs for dlopen?
11679 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11680 # For now, we just catch OSes we know something about -- in the
11681 # future, we'll try test this programmatically.
11682 libltdl_cv_sys_dlopen_deplibs=unknown
11683 case "$host_os" in
11684 aix3*|aix4.1.*|aix4.2.*)
11685 # Unknown whether this is true for these versions of AIX, but
11686 # we want this `case' here to explicitly catch those versions.
11687 libltdl_cv_sys_dlopen_deplibs=unknown
11689 aix[45]*)
11690 libltdl_cv_sys_dlopen_deplibs=yes
11692 darwin*)
11693 # Assuming the user has installed a libdl from somewhere, this is true
11694 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11695 libltdl_cv_sys_dlopen_deplibs=yes
11697 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11698 # GNU and its variants, using gnu ld.so (Glibc)
11699 libltdl_cv_sys_dlopen_deplibs=yes
11701 hpux10*|hpux11*)
11702 libltdl_cv_sys_dlopen_deplibs=yes
11704 interix*)
11705 libltdl_cv_sys_dlopen_deplibs=yes
11707 irix[12345]*|irix6.[01]*)
11708 # Catch all versions of IRIX before 6.2, and indicate that we don't
11709 # know how it worked for any of those versions.
11710 libltdl_cv_sys_dlopen_deplibs=unknown
11712 irix*)
11713 # The case above catches anything before 6.2, and it's known that
11714 # at 6.2 and later dlopen does load deplibs.
11715 libltdl_cv_sys_dlopen_deplibs=yes
11717 netbsd*)
11718 libltdl_cv_sys_dlopen_deplibs=yes
11720 openbsd*)
11721 libltdl_cv_sys_dlopen_deplibs=yes
11723 osf[1234]*)
11724 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11725 # it did *not* use an RPATH in a shared library to find objects the
11726 # library depends on, so we explicitly say `no'.
11727 libltdl_cv_sys_dlopen_deplibs=no
11729 osf5.0|osf5.0a|osf5.1)
11730 # dlopen *does* load deplibs and with the right loader patch applied
11731 # it even uses RPATH in a shared library to search for shared objects
11732 # that the library depends on, but there's no easy way to know if that
11733 # patch is installed. Since this is the case, all we can really
11734 # say is unknown -- it depends on the patch being installed. If
11735 # it is, this changes to `yes'. Without it, it would be `no'.
11736 libltdl_cv_sys_dlopen_deplibs=unknown
11738 osf*)
11739 # the two cases above should catch all versions of osf <= 5.1. Read
11740 # the comments above for what we know about them.
11741 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11742 # is used to find them so we can finally say `yes'.
11743 libltdl_cv_sys_dlopen_deplibs=yes
11745 solaris*)
11746 libltdl_cv_sys_dlopen_deplibs=yes
11748 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11749 libltdl_cv_sys_dlopen_deplibs=yes
11751 esac
11754 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11755 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11756 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11758 cat >>confdefs.h <<\_ACEOF
11759 #define LTDL_DLOPEN_DEPLIBS 1
11760 _ACEOF
11765 for ac_header in argz.h
11767 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11768 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11769 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11770 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11771 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11772 echo $ECHO_N "(cached) $ECHO_C" >&6
11774 ac_res=`eval echo '${'$as_ac_Header'}'`
11775 { echo "$as_me:$LINENO: result: $ac_res" >&5
11776 echo "${ECHO_T}$ac_res" >&6; }
11777 else
11778 # Is the header compilable?
11779 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11780 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11781 cat >conftest.$ac_ext <<_ACEOF
11782 /* confdefs.h. */
11783 _ACEOF
11784 cat confdefs.h >>conftest.$ac_ext
11785 cat >>conftest.$ac_ext <<_ACEOF
11786 /* end confdefs.h. */
11787 $ac_includes_default
11788 #include <$ac_header>
11789 _ACEOF
11790 rm -f conftest.$ac_objext
11791 if { (ac_try="$ac_compile"
11792 case "(($ac_try" in
11793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11794 *) ac_try_echo=$ac_try;;
11795 esac
11796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11797 (eval "$ac_compile") 2>conftest.er1
11798 ac_status=$?
11799 grep -v '^ *+' conftest.er1 >conftest.err
11800 rm -f conftest.er1
11801 cat conftest.err >&5
11802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803 (exit $ac_status); } &&
11804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11805 { (case "(($ac_try" in
11806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11807 *) ac_try_echo=$ac_try;;
11808 esac
11809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11810 (eval "$ac_try") 2>&5
11811 ac_status=$?
11812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11813 (exit $ac_status); }; } &&
11814 { ac_try='test -s conftest.$ac_objext'
11815 { (case "(($ac_try" in
11816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11817 *) ac_try_echo=$ac_try;;
11818 esac
11819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11820 (eval "$ac_try") 2>&5
11821 ac_status=$?
11822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823 (exit $ac_status); }; }; then
11824 ac_header_compiler=yes
11825 else
11826 echo "$as_me: failed program was:" >&5
11827 sed 's/^/| /' conftest.$ac_ext >&5
11829 ac_header_compiler=no
11832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11833 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11834 echo "${ECHO_T}$ac_header_compiler" >&6; }
11836 # Is the header present?
11837 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11838 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11839 cat >conftest.$ac_ext <<_ACEOF
11840 /* confdefs.h. */
11841 _ACEOF
11842 cat confdefs.h >>conftest.$ac_ext
11843 cat >>conftest.$ac_ext <<_ACEOF
11844 /* end confdefs.h. */
11845 #include <$ac_header>
11846 _ACEOF
11847 if { (ac_try="$ac_cpp conftest.$ac_ext"
11848 case "(($ac_try" in
11849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11850 *) ac_try_echo=$ac_try;;
11851 esac
11852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11853 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11854 ac_status=$?
11855 grep -v '^ *+' conftest.er1 >conftest.err
11856 rm -f conftest.er1
11857 cat conftest.err >&5
11858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859 (exit $ac_status); } >/dev/null; then
11860 if test -s conftest.err; then
11861 ac_cpp_err=$ac_c_preproc_warn_flag
11862 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11863 else
11864 ac_cpp_err=
11866 else
11867 ac_cpp_err=yes
11869 if test -z "$ac_cpp_err"; then
11870 ac_header_preproc=yes
11871 else
11872 echo "$as_me: failed program was:" >&5
11873 sed 's/^/| /' conftest.$ac_ext >&5
11875 ac_header_preproc=no
11878 rm -f conftest.err conftest.$ac_ext
11879 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11880 echo "${ECHO_T}$ac_header_preproc" >&6; }
11882 # So? What about this header?
11883 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11884 yes:no: )
11885 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11886 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11887 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11888 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11889 ac_header_preproc=yes
11891 no:yes:* )
11892 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11893 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11894 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11895 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11896 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11897 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11898 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11899 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11900 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11901 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11902 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11903 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11904 ( cat <<\_ASBOX
11905 ## ----------------------------------- ##
11906 ## Report this to llvmbugs@cs.uiuc.edu ##
11907 ## ----------------------------------- ##
11908 _ASBOX
11909 ) | sed "s/^/$as_me: WARNING: /" >&2
11911 esac
11912 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11913 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11914 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11915 echo $ECHO_N "(cached) $ECHO_C" >&6
11916 else
11917 eval "$as_ac_Header=\$ac_header_preproc"
11919 ac_res=`eval echo '${'$as_ac_Header'}'`
11920 { echo "$as_me:$LINENO: result: $ac_res" >&5
11921 echo "${ECHO_T}$ac_res" >&6; }
11924 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11925 cat >>confdefs.h <<_ACEOF
11926 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11927 _ACEOF
11931 done
11934 { echo "$as_me:$LINENO: checking for error_t" >&5
11935 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11936 if test "${ac_cv_type_error_t+set}" = set; then
11937 echo $ECHO_N "(cached) $ECHO_C" >&6
11938 else
11939 cat >conftest.$ac_ext <<_ACEOF
11940 /* confdefs.h. */
11941 _ACEOF
11942 cat confdefs.h >>conftest.$ac_ext
11943 cat >>conftest.$ac_ext <<_ACEOF
11944 /* end confdefs.h. */
11945 #if HAVE_ARGZ_H
11946 # include <argz.h>
11947 #endif
11949 typedef error_t ac__type_new_;
11951 main ()
11953 if ((ac__type_new_ *) 0)
11954 return 0;
11955 if (sizeof (ac__type_new_))
11956 return 0;
11958 return 0;
11960 _ACEOF
11961 rm -f conftest.$ac_objext
11962 if { (ac_try="$ac_compile"
11963 case "(($ac_try" in
11964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11965 *) ac_try_echo=$ac_try;;
11966 esac
11967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11968 (eval "$ac_compile") 2>conftest.er1
11969 ac_status=$?
11970 grep -v '^ *+' conftest.er1 >conftest.err
11971 rm -f conftest.er1
11972 cat conftest.err >&5
11973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974 (exit $ac_status); } &&
11975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11976 { (case "(($ac_try" in
11977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11978 *) ac_try_echo=$ac_try;;
11979 esac
11980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11981 (eval "$ac_try") 2>&5
11982 ac_status=$?
11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); }; } &&
11985 { ac_try='test -s conftest.$ac_objext'
11986 { (case "(($ac_try" in
11987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11988 *) ac_try_echo=$ac_try;;
11989 esac
11990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11991 (eval "$ac_try") 2>&5
11992 ac_status=$?
11993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994 (exit $ac_status); }; }; then
11995 ac_cv_type_error_t=yes
11996 else
11997 echo "$as_me: failed program was:" >&5
11998 sed 's/^/| /' conftest.$ac_ext >&5
12000 ac_cv_type_error_t=no
12003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12005 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
12006 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
12007 if test $ac_cv_type_error_t = yes; then
12009 cat >>confdefs.h <<_ACEOF
12010 #define HAVE_ERROR_T 1
12011 _ACEOF
12014 else
12016 cat >>confdefs.h <<\_ACEOF
12017 #define error_t int
12018 _ACEOF
12028 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
12030 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12031 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12032 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12033 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12034 echo $ECHO_N "(cached) $ECHO_C" >&6
12035 else
12036 cat >conftest.$ac_ext <<_ACEOF
12037 /* confdefs.h. */
12038 _ACEOF
12039 cat confdefs.h >>conftest.$ac_ext
12040 cat >>conftest.$ac_ext <<_ACEOF
12041 /* end confdefs.h. */
12042 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12043 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12044 #define $ac_func innocuous_$ac_func
12046 /* System header to define __stub macros and hopefully few prototypes,
12047 which can conflict with char $ac_func (); below.
12048 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12049 <limits.h> exists even on freestanding compilers. */
12051 #ifdef __STDC__
12052 # include <limits.h>
12053 #else
12054 # include <assert.h>
12055 #endif
12057 #undef $ac_func
12059 /* Override any GCC internal prototype to avoid an error.
12060 Use char because int might match the return type of a GCC
12061 builtin and then its argument prototype would still apply. */
12062 #ifdef __cplusplus
12063 extern "C"
12064 #endif
12065 char $ac_func ();
12066 /* The GNU C library defines this for functions which it implements
12067 to always fail with ENOSYS. Some functions are actually named
12068 something starting with __ and the normal name is an alias. */
12069 #if defined __stub_$ac_func || defined __stub___$ac_func
12070 choke me
12071 #endif
12074 main ()
12076 return $ac_func ();
12078 return 0;
12080 _ACEOF
12081 rm -f conftest.$ac_objext conftest$ac_exeext
12082 if { (ac_try="$ac_link"
12083 case "(($ac_try" in
12084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12085 *) ac_try_echo=$ac_try;;
12086 esac
12087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12088 (eval "$ac_link") 2>conftest.er1
12089 ac_status=$?
12090 grep -v '^ *+' conftest.er1 >conftest.err
12091 rm -f conftest.er1
12092 cat conftest.err >&5
12093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094 (exit $ac_status); } &&
12095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12096 { (case "(($ac_try" in
12097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12098 *) ac_try_echo=$ac_try;;
12099 esac
12100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12101 (eval "$ac_try") 2>&5
12102 ac_status=$?
12103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104 (exit $ac_status); }; } &&
12105 { ac_try='test -s conftest$ac_exeext'
12106 { (case "(($ac_try" in
12107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12108 *) ac_try_echo=$ac_try;;
12109 esac
12110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12111 (eval "$ac_try") 2>&5
12112 ac_status=$?
12113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12114 (exit $ac_status); }; }; then
12115 eval "$as_ac_var=yes"
12116 else
12117 echo "$as_me: failed program was:" >&5
12118 sed 's/^/| /' conftest.$ac_ext >&5
12120 eval "$as_ac_var=no"
12123 rm -f core conftest.err conftest.$ac_objext \
12124 conftest$ac_exeext conftest.$ac_ext
12126 ac_res=`eval echo '${'$as_ac_var'}'`
12127 { echo "$as_me:$LINENO: result: $ac_res" >&5
12128 echo "${ECHO_T}$ac_res" >&6; }
12129 if test `eval echo '${'$as_ac_var'}'` = yes; then
12130 cat >>confdefs.h <<_ACEOF
12131 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12132 _ACEOF
12135 done
12164 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
12165 stdio.h unistd.h
12167 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12168 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12169 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12170 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12172 echo $ECHO_N "(cached) $ECHO_C" >&6
12174 ac_res=`eval echo '${'$as_ac_Header'}'`
12175 { echo "$as_me:$LINENO: result: $ac_res" >&5
12176 echo "${ECHO_T}$ac_res" >&6; }
12177 else
12178 # Is the header compilable?
12179 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12180 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12181 cat >conftest.$ac_ext <<_ACEOF
12182 /* confdefs.h. */
12183 _ACEOF
12184 cat confdefs.h >>conftest.$ac_ext
12185 cat >>conftest.$ac_ext <<_ACEOF
12186 /* end confdefs.h. */
12187 $ac_includes_default
12188 #include <$ac_header>
12189 _ACEOF
12190 rm -f conftest.$ac_objext
12191 if { (ac_try="$ac_compile"
12192 case "(($ac_try" in
12193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12194 *) ac_try_echo=$ac_try;;
12195 esac
12196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12197 (eval "$ac_compile") 2>conftest.er1
12198 ac_status=$?
12199 grep -v '^ *+' conftest.er1 >conftest.err
12200 rm -f conftest.er1
12201 cat conftest.err >&5
12202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203 (exit $ac_status); } &&
12204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12205 { (case "(($ac_try" in
12206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12207 *) ac_try_echo=$ac_try;;
12208 esac
12209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12210 (eval "$ac_try") 2>&5
12211 ac_status=$?
12212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213 (exit $ac_status); }; } &&
12214 { ac_try='test -s conftest.$ac_objext'
12215 { (case "(($ac_try" in
12216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12217 *) ac_try_echo=$ac_try;;
12218 esac
12219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12220 (eval "$ac_try") 2>&5
12221 ac_status=$?
12222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223 (exit $ac_status); }; }; then
12224 ac_header_compiler=yes
12225 else
12226 echo "$as_me: failed program was:" >&5
12227 sed 's/^/| /' conftest.$ac_ext >&5
12229 ac_header_compiler=no
12232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12233 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12234 echo "${ECHO_T}$ac_header_compiler" >&6; }
12236 # Is the header present?
12237 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12238 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12239 cat >conftest.$ac_ext <<_ACEOF
12240 /* confdefs.h. */
12241 _ACEOF
12242 cat confdefs.h >>conftest.$ac_ext
12243 cat >>conftest.$ac_ext <<_ACEOF
12244 /* end confdefs.h. */
12245 #include <$ac_header>
12246 _ACEOF
12247 if { (ac_try="$ac_cpp conftest.$ac_ext"
12248 case "(($ac_try" in
12249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12250 *) ac_try_echo=$ac_try;;
12251 esac
12252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12253 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12254 ac_status=$?
12255 grep -v '^ *+' conftest.er1 >conftest.err
12256 rm -f conftest.er1
12257 cat conftest.err >&5
12258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12259 (exit $ac_status); } >/dev/null; then
12260 if test -s conftest.err; then
12261 ac_cpp_err=$ac_c_preproc_warn_flag
12262 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12263 else
12264 ac_cpp_err=
12266 else
12267 ac_cpp_err=yes
12269 if test -z "$ac_cpp_err"; then
12270 ac_header_preproc=yes
12271 else
12272 echo "$as_me: failed program was:" >&5
12273 sed 's/^/| /' conftest.$ac_ext >&5
12275 ac_header_preproc=no
12278 rm -f conftest.err conftest.$ac_ext
12279 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12280 echo "${ECHO_T}$ac_header_preproc" >&6; }
12282 # So? What about this header?
12283 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12284 yes:no: )
12285 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12286 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12287 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12288 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12289 ac_header_preproc=yes
12291 no:yes:* )
12292 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12293 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12294 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12295 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12296 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12297 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12298 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12299 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12300 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12301 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12302 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12303 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12304 ( cat <<\_ASBOX
12305 ## ----------------------------------- ##
12306 ## Report this to llvmbugs@cs.uiuc.edu ##
12307 ## ----------------------------------- ##
12308 _ASBOX
12309 ) | sed "s/^/$as_me: WARNING: /" >&2
12311 esac
12312 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12313 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12314 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12315 echo $ECHO_N "(cached) $ECHO_C" >&6
12316 else
12317 eval "$as_ac_Header=\$ac_header_preproc"
12319 ac_res=`eval echo '${'$as_ac_Header'}'`
12320 { echo "$as_me:$LINENO: result: $ac_res" >&5
12321 echo "${ECHO_T}$ac_res" >&6; }
12324 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12325 cat >>confdefs.h <<_ACEOF
12326 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12327 _ACEOF
12331 done
12337 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
12339 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12340 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12341 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12342 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12343 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12344 echo $ECHO_N "(cached) $ECHO_C" >&6
12346 ac_res=`eval echo '${'$as_ac_Header'}'`
12347 { echo "$as_me:$LINENO: result: $ac_res" >&5
12348 echo "${ECHO_T}$ac_res" >&6; }
12349 else
12350 # Is the header compilable?
12351 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12352 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12353 cat >conftest.$ac_ext <<_ACEOF
12354 /* confdefs.h. */
12355 _ACEOF
12356 cat confdefs.h >>conftest.$ac_ext
12357 cat >>conftest.$ac_ext <<_ACEOF
12358 /* end confdefs.h. */
12359 $ac_includes_default
12360 #include <$ac_header>
12361 _ACEOF
12362 rm -f conftest.$ac_objext
12363 if { (ac_try="$ac_compile"
12364 case "(($ac_try" in
12365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12366 *) ac_try_echo=$ac_try;;
12367 esac
12368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12369 (eval "$ac_compile") 2>conftest.er1
12370 ac_status=$?
12371 grep -v '^ *+' conftest.er1 >conftest.err
12372 rm -f conftest.er1
12373 cat conftest.err >&5
12374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375 (exit $ac_status); } &&
12376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12377 { (case "(($ac_try" in
12378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12379 *) ac_try_echo=$ac_try;;
12380 esac
12381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12382 (eval "$ac_try") 2>&5
12383 ac_status=$?
12384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12385 (exit $ac_status); }; } &&
12386 { ac_try='test -s conftest.$ac_objext'
12387 { (case "(($ac_try" in
12388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12389 *) ac_try_echo=$ac_try;;
12390 esac
12391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12392 (eval "$ac_try") 2>&5
12393 ac_status=$?
12394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12395 (exit $ac_status); }; }; then
12396 ac_header_compiler=yes
12397 else
12398 echo "$as_me: failed program was:" >&5
12399 sed 's/^/| /' conftest.$ac_ext >&5
12401 ac_header_compiler=no
12404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12405 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12406 echo "${ECHO_T}$ac_header_compiler" >&6; }
12408 # Is the header present?
12409 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12410 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12411 cat >conftest.$ac_ext <<_ACEOF
12412 /* confdefs.h. */
12413 _ACEOF
12414 cat confdefs.h >>conftest.$ac_ext
12415 cat >>conftest.$ac_ext <<_ACEOF
12416 /* end confdefs.h. */
12417 #include <$ac_header>
12418 _ACEOF
12419 if { (ac_try="$ac_cpp conftest.$ac_ext"
12420 case "(($ac_try" in
12421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12422 *) ac_try_echo=$ac_try;;
12423 esac
12424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12425 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12426 ac_status=$?
12427 grep -v '^ *+' conftest.er1 >conftest.err
12428 rm -f conftest.er1
12429 cat conftest.err >&5
12430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431 (exit $ac_status); } >/dev/null; then
12432 if test -s conftest.err; then
12433 ac_cpp_err=$ac_c_preproc_warn_flag
12434 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12435 else
12436 ac_cpp_err=
12438 else
12439 ac_cpp_err=yes
12441 if test -z "$ac_cpp_err"; then
12442 ac_header_preproc=yes
12443 else
12444 echo "$as_me: failed program was:" >&5
12445 sed 's/^/| /' conftest.$ac_ext >&5
12447 ac_header_preproc=no
12450 rm -f conftest.err conftest.$ac_ext
12451 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12452 echo "${ECHO_T}$ac_header_preproc" >&6; }
12454 # So? What about this header?
12455 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12456 yes:no: )
12457 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12458 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12459 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12460 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12461 ac_header_preproc=yes
12463 no:yes:* )
12464 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12465 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12466 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12467 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12468 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12469 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12470 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12471 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12473 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12474 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12475 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12476 ( cat <<\_ASBOX
12477 ## ----------------------------------- ##
12478 ## Report this to llvmbugs@cs.uiuc.edu ##
12479 ## ----------------------------------- ##
12480 _ASBOX
12481 ) | sed "s/^/$as_me: WARNING: /" >&2
12483 esac
12484 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12486 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12487 echo $ECHO_N "(cached) $ECHO_C" >&6
12488 else
12489 eval "$as_ac_Header=\$ac_header_preproc"
12491 ac_res=`eval echo '${'$as_ac_Header'}'`
12492 { echo "$as_me:$LINENO: result: $ac_res" >&5
12493 echo "${ECHO_T}$ac_res" >&6; }
12496 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12497 cat >>confdefs.h <<_ACEOF
12498 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12499 _ACEOF
12503 done
12507 for ac_header in string.h strings.h
12509 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12510 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12511 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12514 echo $ECHO_N "(cached) $ECHO_C" >&6
12516 ac_res=`eval echo '${'$as_ac_Header'}'`
12517 { echo "$as_me:$LINENO: result: $ac_res" >&5
12518 echo "${ECHO_T}$ac_res" >&6; }
12519 else
12520 # Is the header compilable?
12521 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12522 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12523 cat >conftest.$ac_ext <<_ACEOF
12524 /* confdefs.h. */
12525 _ACEOF
12526 cat confdefs.h >>conftest.$ac_ext
12527 cat >>conftest.$ac_ext <<_ACEOF
12528 /* end confdefs.h. */
12529 $ac_includes_default
12530 #include <$ac_header>
12531 _ACEOF
12532 rm -f conftest.$ac_objext
12533 if { (ac_try="$ac_compile"
12534 case "(($ac_try" in
12535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12536 *) ac_try_echo=$ac_try;;
12537 esac
12538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12539 (eval "$ac_compile") 2>conftest.er1
12540 ac_status=$?
12541 grep -v '^ *+' conftest.er1 >conftest.err
12542 rm -f conftest.er1
12543 cat conftest.err >&5
12544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545 (exit $ac_status); } &&
12546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12547 { (case "(($ac_try" in
12548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12549 *) ac_try_echo=$ac_try;;
12550 esac
12551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12552 (eval "$ac_try") 2>&5
12553 ac_status=$?
12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); }; } &&
12556 { ac_try='test -s conftest.$ac_objext'
12557 { (case "(($ac_try" in
12558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12559 *) ac_try_echo=$ac_try;;
12560 esac
12561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12562 (eval "$ac_try") 2>&5
12563 ac_status=$?
12564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565 (exit $ac_status); }; }; then
12566 ac_header_compiler=yes
12567 else
12568 echo "$as_me: failed program was:" >&5
12569 sed 's/^/| /' conftest.$ac_ext >&5
12571 ac_header_compiler=no
12574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12575 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12576 echo "${ECHO_T}$ac_header_compiler" >&6; }
12578 # Is the header present?
12579 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12580 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12581 cat >conftest.$ac_ext <<_ACEOF
12582 /* confdefs.h. */
12583 _ACEOF
12584 cat confdefs.h >>conftest.$ac_ext
12585 cat >>conftest.$ac_ext <<_ACEOF
12586 /* end confdefs.h. */
12587 #include <$ac_header>
12588 _ACEOF
12589 if { (ac_try="$ac_cpp conftest.$ac_ext"
12590 case "(($ac_try" in
12591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12592 *) ac_try_echo=$ac_try;;
12593 esac
12594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12595 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12596 ac_status=$?
12597 grep -v '^ *+' conftest.er1 >conftest.err
12598 rm -f conftest.er1
12599 cat conftest.err >&5
12600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12601 (exit $ac_status); } >/dev/null; then
12602 if test -s conftest.err; then
12603 ac_cpp_err=$ac_c_preproc_warn_flag
12604 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12605 else
12606 ac_cpp_err=
12608 else
12609 ac_cpp_err=yes
12611 if test -z "$ac_cpp_err"; then
12612 ac_header_preproc=yes
12613 else
12614 echo "$as_me: failed program was:" >&5
12615 sed 's/^/| /' conftest.$ac_ext >&5
12617 ac_header_preproc=no
12620 rm -f conftest.err conftest.$ac_ext
12621 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12622 echo "${ECHO_T}$ac_header_preproc" >&6; }
12624 # So? What about this header?
12625 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12626 yes:no: )
12627 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12628 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12629 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12630 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12631 ac_header_preproc=yes
12633 no:yes:* )
12634 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12635 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12636 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12637 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12638 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12639 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12640 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12641 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12643 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12644 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12645 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12646 ( cat <<\_ASBOX
12647 ## ----------------------------------- ##
12648 ## Report this to llvmbugs@cs.uiuc.edu ##
12649 ## ----------------------------------- ##
12650 _ASBOX
12651 ) | sed "s/^/$as_me: WARNING: /" >&2
12653 esac
12654 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12655 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12656 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12657 echo $ECHO_N "(cached) $ECHO_C" >&6
12658 else
12659 eval "$as_ac_Header=\$ac_header_preproc"
12661 ac_res=`eval echo '${'$as_ac_Header'}'`
12662 { echo "$as_me:$LINENO: result: $ac_res" >&5
12663 echo "${ECHO_T}$ac_res" >&6; }
12666 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12667 cat >>confdefs.h <<_ACEOF
12668 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12669 _ACEOF
12670 break
12673 done
12678 for ac_func in strchr index
12680 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12681 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12682 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12683 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12684 echo $ECHO_N "(cached) $ECHO_C" >&6
12685 else
12686 cat >conftest.$ac_ext <<_ACEOF
12687 /* confdefs.h. */
12688 _ACEOF
12689 cat confdefs.h >>conftest.$ac_ext
12690 cat >>conftest.$ac_ext <<_ACEOF
12691 /* end confdefs.h. */
12692 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12693 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12694 #define $ac_func innocuous_$ac_func
12696 /* System header to define __stub macros and hopefully few prototypes,
12697 which can conflict with char $ac_func (); below.
12698 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12699 <limits.h> exists even on freestanding compilers. */
12701 #ifdef __STDC__
12702 # include <limits.h>
12703 #else
12704 # include <assert.h>
12705 #endif
12707 #undef $ac_func
12709 /* Override any GCC internal prototype to avoid an error.
12710 Use char because int might match the return type of a GCC
12711 builtin and then its argument prototype would still apply. */
12712 #ifdef __cplusplus
12713 extern "C"
12714 #endif
12715 char $ac_func ();
12716 /* The GNU C library defines this for functions which it implements
12717 to always fail with ENOSYS. Some functions are actually named
12718 something starting with __ and the normal name is an alias. */
12719 #if defined __stub_$ac_func || defined __stub___$ac_func
12720 choke me
12721 #endif
12724 main ()
12726 return $ac_func ();
12728 return 0;
12730 _ACEOF
12731 rm -f conftest.$ac_objext conftest$ac_exeext
12732 if { (ac_try="$ac_link"
12733 case "(($ac_try" in
12734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12735 *) ac_try_echo=$ac_try;;
12736 esac
12737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12738 (eval "$ac_link") 2>conftest.er1
12739 ac_status=$?
12740 grep -v '^ *+' conftest.er1 >conftest.err
12741 rm -f conftest.er1
12742 cat conftest.err >&5
12743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744 (exit $ac_status); } &&
12745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12746 { (case "(($ac_try" in
12747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12748 *) ac_try_echo=$ac_try;;
12749 esac
12750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12751 (eval "$ac_try") 2>&5
12752 ac_status=$?
12753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754 (exit $ac_status); }; } &&
12755 { ac_try='test -s conftest$ac_exeext'
12756 { (case "(($ac_try" in
12757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12758 *) ac_try_echo=$ac_try;;
12759 esac
12760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12761 (eval "$ac_try") 2>&5
12762 ac_status=$?
12763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764 (exit $ac_status); }; }; then
12765 eval "$as_ac_var=yes"
12766 else
12767 echo "$as_me: failed program was:" >&5
12768 sed 's/^/| /' conftest.$ac_ext >&5
12770 eval "$as_ac_var=no"
12773 rm -f core conftest.err conftest.$ac_objext \
12774 conftest$ac_exeext conftest.$ac_ext
12776 ac_res=`eval echo '${'$as_ac_var'}'`
12777 { echo "$as_me:$LINENO: result: $ac_res" >&5
12778 echo "${ECHO_T}$ac_res" >&6; }
12779 if test `eval echo '${'$as_ac_var'}'` = yes; then
12780 cat >>confdefs.h <<_ACEOF
12781 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12782 _ACEOF
12783 break
12785 done
12789 for ac_func in strrchr rindex
12791 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12792 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12793 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12794 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12795 echo $ECHO_N "(cached) $ECHO_C" >&6
12796 else
12797 cat >conftest.$ac_ext <<_ACEOF
12798 /* confdefs.h. */
12799 _ACEOF
12800 cat confdefs.h >>conftest.$ac_ext
12801 cat >>conftest.$ac_ext <<_ACEOF
12802 /* end confdefs.h. */
12803 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12804 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12805 #define $ac_func innocuous_$ac_func
12807 /* System header to define __stub macros and hopefully few prototypes,
12808 which can conflict with char $ac_func (); below.
12809 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12810 <limits.h> exists even on freestanding compilers. */
12812 #ifdef __STDC__
12813 # include <limits.h>
12814 #else
12815 # include <assert.h>
12816 #endif
12818 #undef $ac_func
12820 /* Override any GCC internal prototype to avoid an error.
12821 Use char because int might match the return type of a GCC
12822 builtin and then its argument prototype would still apply. */
12823 #ifdef __cplusplus
12824 extern "C"
12825 #endif
12826 char $ac_func ();
12827 /* The GNU C library defines this for functions which it implements
12828 to always fail with ENOSYS. Some functions are actually named
12829 something starting with __ and the normal name is an alias. */
12830 #if defined __stub_$ac_func || defined __stub___$ac_func
12831 choke me
12832 #endif
12835 main ()
12837 return $ac_func ();
12839 return 0;
12841 _ACEOF
12842 rm -f conftest.$ac_objext conftest$ac_exeext
12843 if { (ac_try="$ac_link"
12844 case "(($ac_try" in
12845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12846 *) ac_try_echo=$ac_try;;
12847 esac
12848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12849 (eval "$ac_link") 2>conftest.er1
12850 ac_status=$?
12851 grep -v '^ *+' conftest.er1 >conftest.err
12852 rm -f conftest.er1
12853 cat conftest.err >&5
12854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855 (exit $ac_status); } &&
12856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12857 { (case "(($ac_try" in
12858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12859 *) ac_try_echo=$ac_try;;
12860 esac
12861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12862 (eval "$ac_try") 2>&5
12863 ac_status=$?
12864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865 (exit $ac_status); }; } &&
12866 { ac_try='test -s conftest$ac_exeext'
12867 { (case "(($ac_try" in
12868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12869 *) ac_try_echo=$ac_try;;
12870 esac
12871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12872 (eval "$ac_try") 2>&5
12873 ac_status=$?
12874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12875 (exit $ac_status); }; }; then
12876 eval "$as_ac_var=yes"
12877 else
12878 echo "$as_me: failed program was:" >&5
12879 sed 's/^/| /' conftest.$ac_ext >&5
12881 eval "$as_ac_var=no"
12884 rm -f core conftest.err conftest.$ac_objext \
12885 conftest$ac_exeext conftest.$ac_ext
12887 ac_res=`eval echo '${'$as_ac_var'}'`
12888 { echo "$as_me:$LINENO: result: $ac_res" >&5
12889 echo "${ECHO_T}$ac_res" >&6; }
12890 if test `eval echo '${'$as_ac_var'}'` = yes; then
12891 cat >>confdefs.h <<_ACEOF
12892 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12893 _ACEOF
12894 break
12896 done
12900 for ac_func in memcpy bcopy
12902 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12903 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12904 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12905 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12906 echo $ECHO_N "(cached) $ECHO_C" >&6
12907 else
12908 cat >conftest.$ac_ext <<_ACEOF
12909 /* confdefs.h. */
12910 _ACEOF
12911 cat confdefs.h >>conftest.$ac_ext
12912 cat >>conftest.$ac_ext <<_ACEOF
12913 /* end confdefs.h. */
12914 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12915 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12916 #define $ac_func innocuous_$ac_func
12918 /* System header to define __stub macros and hopefully few prototypes,
12919 which can conflict with char $ac_func (); below.
12920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12921 <limits.h> exists even on freestanding compilers. */
12923 #ifdef __STDC__
12924 # include <limits.h>
12925 #else
12926 # include <assert.h>
12927 #endif
12929 #undef $ac_func
12931 /* Override any GCC internal prototype to avoid an error.
12932 Use char because int might match the return type of a GCC
12933 builtin and then its argument prototype would still apply. */
12934 #ifdef __cplusplus
12935 extern "C"
12936 #endif
12937 char $ac_func ();
12938 /* The GNU C library defines this for functions which it implements
12939 to always fail with ENOSYS. Some functions are actually named
12940 something starting with __ and the normal name is an alias. */
12941 #if defined __stub_$ac_func || defined __stub___$ac_func
12942 choke me
12943 #endif
12946 main ()
12948 return $ac_func ();
12950 return 0;
12952 _ACEOF
12953 rm -f conftest.$ac_objext conftest$ac_exeext
12954 if { (ac_try="$ac_link"
12955 case "(($ac_try" in
12956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12957 *) ac_try_echo=$ac_try;;
12958 esac
12959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12960 (eval "$ac_link") 2>conftest.er1
12961 ac_status=$?
12962 grep -v '^ *+' conftest.er1 >conftest.err
12963 rm -f conftest.er1
12964 cat conftest.err >&5
12965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966 (exit $ac_status); } &&
12967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12968 { (case "(($ac_try" in
12969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12970 *) ac_try_echo=$ac_try;;
12971 esac
12972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12973 (eval "$ac_try") 2>&5
12974 ac_status=$?
12975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976 (exit $ac_status); }; } &&
12977 { ac_try='test -s conftest$ac_exeext'
12978 { (case "(($ac_try" in
12979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12980 *) ac_try_echo=$ac_try;;
12981 esac
12982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12983 (eval "$ac_try") 2>&5
12984 ac_status=$?
12985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12986 (exit $ac_status); }; }; then
12987 eval "$as_ac_var=yes"
12988 else
12989 echo "$as_me: failed program was:" >&5
12990 sed 's/^/| /' conftest.$ac_ext >&5
12992 eval "$as_ac_var=no"
12995 rm -f core conftest.err conftest.$ac_objext \
12996 conftest$ac_exeext conftest.$ac_ext
12998 ac_res=`eval echo '${'$as_ac_var'}'`
12999 { echo "$as_me:$LINENO: result: $ac_res" >&5
13000 echo "${ECHO_T}$ac_res" >&6; }
13001 if test `eval echo '${'$as_ac_var'}'` = yes; then
13002 cat >>confdefs.h <<_ACEOF
13003 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13004 _ACEOF
13005 break
13007 done
13011 for ac_func in memmove strcmp
13013 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13014 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13015 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13016 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13017 echo $ECHO_N "(cached) $ECHO_C" >&6
13018 else
13019 cat >conftest.$ac_ext <<_ACEOF
13020 /* confdefs.h. */
13021 _ACEOF
13022 cat confdefs.h >>conftest.$ac_ext
13023 cat >>conftest.$ac_ext <<_ACEOF
13024 /* end confdefs.h. */
13025 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13026 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13027 #define $ac_func innocuous_$ac_func
13029 /* System header to define __stub macros and hopefully few prototypes,
13030 which can conflict with char $ac_func (); below.
13031 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13032 <limits.h> exists even on freestanding compilers. */
13034 #ifdef __STDC__
13035 # include <limits.h>
13036 #else
13037 # include <assert.h>
13038 #endif
13040 #undef $ac_func
13042 /* Override any GCC internal prototype to avoid an error.
13043 Use char because int might match the return type of a GCC
13044 builtin and then its argument prototype would still apply. */
13045 #ifdef __cplusplus
13046 extern "C"
13047 #endif
13048 char $ac_func ();
13049 /* The GNU C library defines this for functions which it implements
13050 to always fail with ENOSYS. Some functions are actually named
13051 something starting with __ and the normal name is an alias. */
13052 #if defined __stub_$ac_func || defined __stub___$ac_func
13053 choke me
13054 #endif
13057 main ()
13059 return $ac_func ();
13061 return 0;
13063 _ACEOF
13064 rm -f conftest.$ac_objext conftest$ac_exeext
13065 if { (ac_try="$ac_link"
13066 case "(($ac_try" in
13067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13068 *) ac_try_echo=$ac_try;;
13069 esac
13070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13071 (eval "$ac_link") 2>conftest.er1
13072 ac_status=$?
13073 grep -v '^ *+' conftest.er1 >conftest.err
13074 rm -f conftest.er1
13075 cat conftest.err >&5
13076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13077 (exit $ac_status); } &&
13078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13079 { (case "(($ac_try" in
13080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13081 *) ac_try_echo=$ac_try;;
13082 esac
13083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13084 (eval "$ac_try") 2>&5
13085 ac_status=$?
13086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13087 (exit $ac_status); }; } &&
13088 { ac_try='test -s conftest$ac_exeext'
13089 { (case "(($ac_try" in
13090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13091 *) ac_try_echo=$ac_try;;
13092 esac
13093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13094 (eval "$ac_try") 2>&5
13095 ac_status=$?
13096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13097 (exit $ac_status); }; }; then
13098 eval "$as_ac_var=yes"
13099 else
13100 echo "$as_me: failed program was:" >&5
13101 sed 's/^/| /' conftest.$ac_ext >&5
13103 eval "$as_ac_var=no"
13106 rm -f core conftest.err conftest.$ac_objext \
13107 conftest$ac_exeext conftest.$ac_ext
13109 ac_res=`eval echo '${'$as_ac_var'}'`
13110 { echo "$as_me:$LINENO: result: $ac_res" >&5
13111 echo "${ECHO_T}$ac_res" >&6; }
13112 if test `eval echo '${'$as_ac_var'}'` = yes; then
13113 cat >>confdefs.h <<_ACEOF
13114 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13115 _ACEOF
13118 done
13123 for ac_func in closedir opendir readdir
13125 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13126 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13127 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13128 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13129 echo $ECHO_N "(cached) $ECHO_C" >&6
13130 else
13131 cat >conftest.$ac_ext <<_ACEOF
13132 /* confdefs.h. */
13133 _ACEOF
13134 cat confdefs.h >>conftest.$ac_ext
13135 cat >>conftest.$ac_ext <<_ACEOF
13136 /* end confdefs.h. */
13137 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13138 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13139 #define $ac_func innocuous_$ac_func
13141 /* System header to define __stub macros and hopefully few prototypes,
13142 which can conflict with char $ac_func (); below.
13143 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13144 <limits.h> exists even on freestanding compilers. */
13146 #ifdef __STDC__
13147 # include <limits.h>
13148 #else
13149 # include <assert.h>
13150 #endif
13152 #undef $ac_func
13154 /* Override any GCC internal prototype to avoid an error.
13155 Use char because int might match the return type of a GCC
13156 builtin and then its argument prototype would still apply. */
13157 #ifdef __cplusplus
13158 extern "C"
13159 #endif
13160 char $ac_func ();
13161 /* The GNU C library defines this for functions which it implements
13162 to always fail with ENOSYS. Some functions are actually named
13163 something starting with __ and the normal name is an alias. */
13164 #if defined __stub_$ac_func || defined __stub___$ac_func
13165 choke me
13166 #endif
13169 main ()
13171 return $ac_func ();
13173 return 0;
13175 _ACEOF
13176 rm -f conftest.$ac_objext conftest$ac_exeext
13177 if { (ac_try="$ac_link"
13178 case "(($ac_try" in
13179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13180 *) ac_try_echo=$ac_try;;
13181 esac
13182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13183 (eval "$ac_link") 2>conftest.er1
13184 ac_status=$?
13185 grep -v '^ *+' conftest.er1 >conftest.err
13186 rm -f conftest.er1
13187 cat conftest.err >&5
13188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13189 (exit $ac_status); } &&
13190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13191 { (case "(($ac_try" in
13192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13193 *) ac_try_echo=$ac_try;;
13194 esac
13195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13196 (eval "$ac_try") 2>&5
13197 ac_status=$?
13198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13199 (exit $ac_status); }; } &&
13200 { ac_try='test -s conftest$ac_exeext'
13201 { (case "(($ac_try" in
13202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13203 *) ac_try_echo=$ac_try;;
13204 esac
13205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13206 (eval "$ac_try") 2>&5
13207 ac_status=$?
13208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13209 (exit $ac_status); }; }; then
13210 eval "$as_ac_var=yes"
13211 else
13212 echo "$as_me: failed program was:" >&5
13213 sed 's/^/| /' conftest.$ac_ext >&5
13215 eval "$as_ac_var=no"
13218 rm -f core conftest.err conftest.$ac_objext \
13219 conftest$ac_exeext conftest.$ac_ext
13221 ac_res=`eval echo '${'$as_ac_var'}'`
13222 { echo "$as_me:$LINENO: result: $ac_res" >&5
13223 echo "${ECHO_T}$ac_res" >&6; }
13224 if test `eval echo '${'$as_ac_var'}'` = yes; then
13225 cat >>confdefs.h <<_ACEOF
13226 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13227 _ACEOF
13230 done
13234 if test "$WITH_LLVMGCCDIR" = "default" ; then
13235 LLVMGCC="llvm-gcc${EXEEXT}"
13236 LLVMGXX="llvm-g++${EXEEXT}"
13237 LLVMGCCCOMMAND="$LLVMGCC"
13238 LLVMGXXCOMMAND="$LLVMGXX"
13239 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13241 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13243 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
13244 set dummy $LLVMGCC; ac_word=$2
13245 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13247 if test "${ac_cv_path_LLVMGCC+set}" = set; then
13248 echo $ECHO_N "(cached) $ECHO_C" >&6
13249 else
13250 case $LLVMGCC in
13251 [\\/]* | ?:[\\/]*)
13252 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
13255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13256 for as_dir in $PATH
13258 IFS=$as_save_IFS
13259 test -z "$as_dir" && as_dir=.
13260 for ac_exec_ext in '' $ac_executable_extensions; do
13261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13262 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
13263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13264 break 2
13266 done
13267 done
13268 IFS=$as_save_IFS
13271 esac
13273 LLVMGCC=$ac_cv_path_LLVMGCC
13274 if test -n "$LLVMGCC"; then
13275 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
13276 echo "${ECHO_T}$LLVMGCC" >&6; }
13277 else
13278 { echo "$as_me:$LINENO: result: no" >&5
13279 echo "${ECHO_T}no" >&6; }
13283 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
13284 set dummy $LLVMGXX; ac_word=$2
13285 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13287 if test "${ac_cv_path_LLVMGXX+set}" = set; then
13288 echo $ECHO_N "(cached) $ECHO_C" >&6
13289 else
13290 case $LLVMGXX in
13291 [\\/]* | ?:[\\/]*)
13292 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
13295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13296 for as_dir in $PATH
13298 IFS=$as_save_IFS
13299 test -z "$as_dir" && as_dir=.
13300 for ac_exec_ext in '' $ac_executable_extensions; do
13301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13302 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
13303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13304 break 2
13306 done
13307 done
13308 IFS=$as_save_IFS
13311 esac
13313 LLVMGXX=$ac_cv_path_LLVMGXX
13314 if test -n "$LLVMGXX"; then
13315 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13316 echo "${ECHO_T}$LLVMGXX" >&6; }
13317 else
13318 { echo "$as_me:$LINENO: result: no" >&5
13319 echo "${ECHO_T}no" >&6; }
13323 else
13324 if test -z "$LLVMGCC"; then
13325 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
13326 LLVMGCCCOMMAND="$LLVMGCC"
13328 if test -z "$LLVMGXX"; then
13329 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
13330 LLVMGXXCOMMAND="$LLVMGXX"
13333 LLVMGCC=$LLVMGCC
13335 LLVMGXX=$LLVMGXX
13337 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13339 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13344 # Check whether --with-llvmcc was given.
13345 if test "${with_llvmcc+set}" = set; then
13346 withval=$with_llvmcc;
13347 else
13348 with_llvmcc=check
13351 { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13352 echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13353 if test "$with_llvmcc" != "check"; then
13354 if (test "$with_llvmcc" != "llvm-gcc" &&
13355 test "$with_llvmcc" != "clang" &&
13356 test "$with_llvmcc" != "none"); then
13357 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13358 echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13359 { (exit 1); exit 1; }; }
13361 WITH_LLVMCC="$with_llvmcc"
13362 elif test -n "$LLVMGCC"; then
13363 WITH_LLVMCC=llvm-gcc
13364 elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13365 WITH_LLVMCC=clang
13366 else
13367 WITH_LLVMCC=none
13369 { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13370 echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13371 LLVMCC_OPTION=$WITH_LLVMCC
13374 { echo "$as_me:$LINENO: checking tool compatibility" >&5
13375 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
13377 ICC=no
13378 IXX=no
13379 case $CC in
13380 icc*|icpc*)
13381 ICC=yes
13382 IXX=yes
13386 esac
13388 if test "$GCC" != "yes" && test "$ICC" != "yes"
13389 then
13390 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13391 echo "$as_me: error: gcc|icc required but not found" >&2;}
13392 { (exit 1); exit 1; }; }
13395 if test "$GXX" != "yes" && test "$IXX" != "yes"
13396 then
13397 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
13398 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
13399 { (exit 1); exit 1; }; }
13402 if test "$GCC" = "yes"
13403 then
13404 cat >conftest.$ac_ext <<_ACEOF
13405 #if !defined(__GNUC__) || __GNUC__ < 3
13406 #error Unsupported GCC version
13407 #endif
13409 _ACEOF
13410 rm -f conftest.$ac_objext
13411 if { (ac_try="$ac_compile"
13412 case "(($ac_try" in
13413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13414 *) ac_try_echo=$ac_try;;
13415 esac
13416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13417 (eval "$ac_compile") 2>conftest.er1
13418 ac_status=$?
13419 grep -v '^ *+' conftest.er1 >conftest.err
13420 rm -f conftest.er1
13421 cat conftest.err >&5
13422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13423 (exit $ac_status); } &&
13424 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13425 { (case "(($ac_try" in
13426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13427 *) ac_try_echo=$ac_try;;
13428 esac
13429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13430 (eval "$ac_try") 2>&5
13431 ac_status=$?
13432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13433 (exit $ac_status); }; } &&
13434 { ac_try='test -s conftest.$ac_objext'
13435 { (case "(($ac_try" in
13436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13437 *) ac_try_echo=$ac_try;;
13438 esac
13439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13440 (eval "$ac_try") 2>&5
13441 ac_status=$?
13442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13443 (exit $ac_status); }; }; then
13445 else
13446 echo "$as_me: failed program was:" >&5
13447 sed 's/^/| /' conftest.$ac_ext >&5
13449 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13450 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13451 { (exit 1); exit 1; }; }
13454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13457 if test -z "$llvm_cv_gnu_make_command"
13458 then
13459 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13460 echo "$as_me: error: GNU Make required but not found" >&2;}
13461 { (exit 1); exit 1; }; }
13464 { echo "$as_me:$LINENO: result: ok" >&5
13465 echo "${ECHO_T}ok" >&6; }
13467 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
13468 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
13469 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13471 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13473 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13474 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
13478 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
13479 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13480 if test "${ac_cv_lib_m_sin+set}" = set; then
13481 echo $ECHO_N "(cached) $ECHO_C" >&6
13482 else
13483 ac_check_lib_save_LIBS=$LIBS
13484 LIBS="-lm $LIBS"
13485 cat >conftest.$ac_ext <<_ACEOF
13486 /* confdefs.h. */
13487 _ACEOF
13488 cat confdefs.h >>conftest.$ac_ext
13489 cat >>conftest.$ac_ext <<_ACEOF
13490 /* end confdefs.h. */
13492 /* Override any GCC internal prototype to avoid an error.
13493 Use char because int might match the return type of a GCC
13494 builtin and then its argument prototype would still apply. */
13495 #ifdef __cplusplus
13496 extern "C"
13497 #endif
13498 char sin ();
13500 main ()
13502 return sin ();
13504 return 0;
13506 _ACEOF
13507 rm -f conftest.$ac_objext conftest$ac_exeext
13508 if { (ac_try="$ac_link"
13509 case "(($ac_try" in
13510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13511 *) ac_try_echo=$ac_try;;
13512 esac
13513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13514 (eval "$ac_link") 2>conftest.er1
13515 ac_status=$?
13516 grep -v '^ *+' conftest.er1 >conftest.err
13517 rm -f conftest.er1
13518 cat conftest.err >&5
13519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520 (exit $ac_status); } &&
13521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13522 { (case "(($ac_try" in
13523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13524 *) ac_try_echo=$ac_try;;
13525 esac
13526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13527 (eval "$ac_try") 2>&5
13528 ac_status=$?
13529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530 (exit $ac_status); }; } &&
13531 { ac_try='test -s conftest$ac_exeext'
13532 { (case "(($ac_try" in
13533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13534 *) ac_try_echo=$ac_try;;
13535 esac
13536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13537 (eval "$ac_try") 2>&5
13538 ac_status=$?
13539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13540 (exit $ac_status); }; }; then
13541 ac_cv_lib_m_sin=yes
13542 else
13543 echo "$as_me: failed program was:" >&5
13544 sed 's/^/| /' conftest.$ac_ext >&5
13546 ac_cv_lib_m_sin=no
13549 rm -f core conftest.err conftest.$ac_objext \
13550 conftest$ac_exeext conftest.$ac_ext
13551 LIBS=$ac_check_lib_save_LIBS
13553 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13554 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13555 if test $ac_cv_lib_m_sin = yes; then
13556 cat >>confdefs.h <<_ACEOF
13557 #define HAVE_LIBM 1
13558 _ACEOF
13560 LIBS="-lm $LIBS"
13564 if test "$llvm_cv_os_type" = "MingW" ; then
13566 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13567 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13568 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13569 echo $ECHO_N "(cached) $ECHO_C" >&6
13570 else
13571 ac_check_lib_save_LIBS=$LIBS
13572 LIBS="-limagehlp $LIBS"
13573 cat >conftest.$ac_ext <<_ACEOF
13574 /* confdefs.h. */
13575 _ACEOF
13576 cat confdefs.h >>conftest.$ac_ext
13577 cat >>conftest.$ac_ext <<_ACEOF
13578 /* end confdefs.h. */
13582 main ()
13584 return main ();
13586 return 0;
13588 _ACEOF
13589 rm -f conftest.$ac_objext conftest$ac_exeext
13590 if { (ac_try="$ac_link"
13591 case "(($ac_try" in
13592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13593 *) ac_try_echo=$ac_try;;
13594 esac
13595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13596 (eval "$ac_link") 2>conftest.er1
13597 ac_status=$?
13598 grep -v '^ *+' conftest.er1 >conftest.err
13599 rm -f conftest.er1
13600 cat conftest.err >&5
13601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13602 (exit $ac_status); } &&
13603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13604 { (case "(($ac_try" in
13605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13606 *) ac_try_echo=$ac_try;;
13607 esac
13608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13609 (eval "$ac_try") 2>&5
13610 ac_status=$?
13611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13612 (exit $ac_status); }; } &&
13613 { ac_try='test -s conftest$ac_exeext'
13614 { (case "(($ac_try" in
13615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13616 *) ac_try_echo=$ac_try;;
13617 esac
13618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13619 (eval "$ac_try") 2>&5
13620 ac_status=$?
13621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622 (exit $ac_status); }; }; then
13623 ac_cv_lib_imagehlp_main=yes
13624 else
13625 echo "$as_me: failed program was:" >&5
13626 sed 's/^/| /' conftest.$ac_ext >&5
13628 ac_cv_lib_imagehlp_main=no
13631 rm -f core conftest.err conftest.$ac_objext \
13632 conftest$ac_exeext conftest.$ac_ext
13633 LIBS=$ac_check_lib_save_LIBS
13635 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13636 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13637 if test $ac_cv_lib_imagehlp_main = yes; then
13638 cat >>confdefs.h <<_ACEOF
13639 #define HAVE_LIBIMAGEHLP 1
13640 _ACEOF
13642 LIBS="-limagehlp $LIBS"
13647 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13648 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13649 if test "${ac_cv_lib_psapi_main+set}" = set; then
13650 echo $ECHO_N "(cached) $ECHO_C" >&6
13651 else
13652 ac_check_lib_save_LIBS=$LIBS
13653 LIBS="-lpsapi $LIBS"
13654 cat >conftest.$ac_ext <<_ACEOF
13655 /* confdefs.h. */
13656 _ACEOF
13657 cat confdefs.h >>conftest.$ac_ext
13658 cat >>conftest.$ac_ext <<_ACEOF
13659 /* end confdefs.h. */
13663 main ()
13665 return main ();
13667 return 0;
13669 _ACEOF
13670 rm -f conftest.$ac_objext conftest$ac_exeext
13671 if { (ac_try="$ac_link"
13672 case "(($ac_try" in
13673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13674 *) ac_try_echo=$ac_try;;
13675 esac
13676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13677 (eval "$ac_link") 2>conftest.er1
13678 ac_status=$?
13679 grep -v '^ *+' conftest.er1 >conftest.err
13680 rm -f conftest.er1
13681 cat conftest.err >&5
13682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13683 (exit $ac_status); } &&
13684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13685 { (case "(($ac_try" in
13686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13687 *) ac_try_echo=$ac_try;;
13688 esac
13689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13690 (eval "$ac_try") 2>&5
13691 ac_status=$?
13692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13693 (exit $ac_status); }; } &&
13694 { ac_try='test -s conftest$ac_exeext'
13695 { (case "(($ac_try" in
13696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13697 *) ac_try_echo=$ac_try;;
13698 esac
13699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13700 (eval "$ac_try") 2>&5
13701 ac_status=$?
13702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13703 (exit $ac_status); }; }; then
13704 ac_cv_lib_psapi_main=yes
13705 else
13706 echo "$as_me: failed program was:" >&5
13707 sed 's/^/| /' conftest.$ac_ext >&5
13709 ac_cv_lib_psapi_main=no
13712 rm -f core conftest.err conftest.$ac_objext \
13713 conftest$ac_exeext conftest.$ac_ext
13714 LIBS=$ac_check_lib_save_LIBS
13716 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13717 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13718 if test $ac_cv_lib_psapi_main = yes; then
13719 cat >>confdefs.h <<_ACEOF
13720 #define HAVE_LIBPSAPI 1
13721 _ACEOF
13723 LIBS="-lpsapi $LIBS"
13729 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13730 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13731 if test "${ac_cv_search_dlopen+set}" = set; then
13732 echo $ECHO_N "(cached) $ECHO_C" >&6
13733 else
13734 ac_func_search_save_LIBS=$LIBS
13735 cat >conftest.$ac_ext <<_ACEOF
13736 /* confdefs.h. */
13737 _ACEOF
13738 cat confdefs.h >>conftest.$ac_ext
13739 cat >>conftest.$ac_ext <<_ACEOF
13740 /* end confdefs.h. */
13742 /* Override any GCC internal prototype to avoid an error.
13743 Use char because int might match the return type of a GCC
13744 builtin and then its argument prototype would still apply. */
13745 #ifdef __cplusplus
13746 extern "C"
13747 #endif
13748 char dlopen ();
13750 main ()
13752 return dlopen ();
13754 return 0;
13756 _ACEOF
13757 for ac_lib in '' dl; do
13758 if test -z "$ac_lib"; then
13759 ac_res="none required"
13760 else
13761 ac_res=-l$ac_lib
13762 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13764 rm -f conftest.$ac_objext conftest$ac_exeext
13765 if { (ac_try="$ac_link"
13766 case "(($ac_try" in
13767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13768 *) ac_try_echo=$ac_try;;
13769 esac
13770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13771 (eval "$ac_link") 2>conftest.er1
13772 ac_status=$?
13773 grep -v '^ *+' conftest.er1 >conftest.err
13774 rm -f conftest.er1
13775 cat conftest.err >&5
13776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13777 (exit $ac_status); } &&
13778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13779 { (case "(($ac_try" in
13780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13781 *) ac_try_echo=$ac_try;;
13782 esac
13783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13784 (eval "$ac_try") 2>&5
13785 ac_status=$?
13786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13787 (exit $ac_status); }; } &&
13788 { ac_try='test -s conftest$ac_exeext'
13789 { (case "(($ac_try" in
13790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13791 *) ac_try_echo=$ac_try;;
13792 esac
13793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13794 (eval "$ac_try") 2>&5
13795 ac_status=$?
13796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797 (exit $ac_status); }; }; then
13798 ac_cv_search_dlopen=$ac_res
13799 else
13800 echo "$as_me: failed program was:" >&5
13801 sed 's/^/| /' conftest.$ac_ext >&5
13806 rm -f core conftest.err conftest.$ac_objext \
13807 conftest$ac_exeext
13808 if test "${ac_cv_search_dlopen+set}" = set; then
13809 break
13811 done
13812 if test "${ac_cv_search_dlopen+set}" = set; then
13814 else
13815 ac_cv_search_dlopen=no
13817 rm conftest.$ac_ext
13818 LIBS=$ac_func_search_save_LIBS
13820 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13821 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13822 ac_res=$ac_cv_search_dlopen
13823 if test "$ac_res" != no; then
13824 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13826 cat >>confdefs.h <<\_ACEOF
13827 #define HAVE_DLOPEN 1
13828 _ACEOF
13830 else
13831 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13832 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
13836 if test "$llvm_cv_enable_libffi" = "yes" ; then
13837 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13838 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13839 if test "${ac_cv_search_ffi_call+set}" = set; then
13840 echo $ECHO_N "(cached) $ECHO_C" >&6
13841 else
13842 ac_func_search_save_LIBS=$LIBS
13843 cat >conftest.$ac_ext <<_ACEOF
13844 /* confdefs.h. */
13845 _ACEOF
13846 cat confdefs.h >>conftest.$ac_ext
13847 cat >>conftest.$ac_ext <<_ACEOF
13848 /* end confdefs.h. */
13850 /* Override any GCC internal prototype to avoid an error.
13851 Use char because int might match the return type of a GCC
13852 builtin and then its argument prototype would still apply. */
13853 #ifdef __cplusplus
13854 extern "C"
13855 #endif
13856 char ffi_call ();
13858 main ()
13860 return ffi_call ();
13862 return 0;
13864 _ACEOF
13865 for ac_lib in '' ffi; do
13866 if test -z "$ac_lib"; then
13867 ac_res="none required"
13868 else
13869 ac_res=-l$ac_lib
13870 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13872 rm -f conftest.$ac_objext conftest$ac_exeext
13873 if { (ac_try="$ac_link"
13874 case "(($ac_try" in
13875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13876 *) ac_try_echo=$ac_try;;
13877 esac
13878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13879 (eval "$ac_link") 2>conftest.er1
13880 ac_status=$?
13881 grep -v '^ *+' conftest.er1 >conftest.err
13882 rm -f conftest.er1
13883 cat conftest.err >&5
13884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13885 (exit $ac_status); } &&
13886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13887 { (case "(($ac_try" in
13888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13889 *) ac_try_echo=$ac_try;;
13890 esac
13891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13892 (eval "$ac_try") 2>&5
13893 ac_status=$?
13894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13895 (exit $ac_status); }; } &&
13896 { ac_try='test -s conftest$ac_exeext'
13897 { (case "(($ac_try" in
13898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13899 *) ac_try_echo=$ac_try;;
13900 esac
13901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13902 (eval "$ac_try") 2>&5
13903 ac_status=$?
13904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13905 (exit $ac_status); }; }; then
13906 ac_cv_search_ffi_call=$ac_res
13907 else
13908 echo "$as_me: failed program was:" >&5
13909 sed 's/^/| /' conftest.$ac_ext >&5
13914 rm -f core conftest.err conftest.$ac_objext \
13915 conftest$ac_exeext
13916 if test "${ac_cv_search_ffi_call+set}" = set; then
13917 break
13919 done
13920 if test "${ac_cv_search_ffi_call+set}" = set; then
13922 else
13923 ac_cv_search_ffi_call=no
13925 rm conftest.$ac_ext
13926 LIBS=$ac_func_search_save_LIBS
13928 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13929 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
13930 ac_res=$ac_cv_search_ffi_call
13931 if test "$ac_res" != no; then
13932 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13934 cat >>confdefs.h <<\_ACEOF
13935 #define HAVE_FFI_CALL 1
13936 _ACEOF
13938 else
13939 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13940 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13941 { (exit 1); exit 1; }; }
13946 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13947 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13948 if test "${ac_cv_search_mallinfo+set}" = set; then
13949 echo $ECHO_N "(cached) $ECHO_C" >&6
13950 else
13951 ac_func_search_save_LIBS=$LIBS
13952 cat >conftest.$ac_ext <<_ACEOF
13953 /* confdefs.h. */
13954 _ACEOF
13955 cat confdefs.h >>conftest.$ac_ext
13956 cat >>conftest.$ac_ext <<_ACEOF
13957 /* end confdefs.h. */
13959 /* Override any GCC internal prototype to avoid an error.
13960 Use char because int might match the return type of a GCC
13961 builtin and then its argument prototype would still apply. */
13962 #ifdef __cplusplus
13963 extern "C"
13964 #endif
13965 char mallinfo ();
13967 main ()
13969 return mallinfo ();
13971 return 0;
13973 _ACEOF
13974 for ac_lib in '' malloc; do
13975 if test -z "$ac_lib"; then
13976 ac_res="none required"
13977 else
13978 ac_res=-l$ac_lib
13979 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13981 rm -f conftest.$ac_objext conftest$ac_exeext
13982 if { (ac_try="$ac_link"
13983 case "(($ac_try" in
13984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13985 *) ac_try_echo=$ac_try;;
13986 esac
13987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13988 (eval "$ac_link") 2>conftest.er1
13989 ac_status=$?
13990 grep -v '^ *+' conftest.er1 >conftest.err
13991 rm -f conftest.er1
13992 cat conftest.err >&5
13993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13994 (exit $ac_status); } &&
13995 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13996 { (case "(($ac_try" in
13997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13998 *) ac_try_echo=$ac_try;;
13999 esac
14000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14001 (eval "$ac_try") 2>&5
14002 ac_status=$?
14003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14004 (exit $ac_status); }; } &&
14005 { ac_try='test -s conftest$ac_exeext'
14006 { (case "(($ac_try" in
14007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14008 *) ac_try_echo=$ac_try;;
14009 esac
14010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14011 (eval "$ac_try") 2>&5
14012 ac_status=$?
14013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14014 (exit $ac_status); }; }; then
14015 ac_cv_search_mallinfo=$ac_res
14016 else
14017 echo "$as_me: failed program was:" >&5
14018 sed 's/^/| /' conftest.$ac_ext >&5
14023 rm -f core conftest.err conftest.$ac_objext \
14024 conftest$ac_exeext
14025 if test "${ac_cv_search_mallinfo+set}" = set; then
14026 break
14028 done
14029 if test "${ac_cv_search_mallinfo+set}" = set; then
14031 else
14032 ac_cv_search_mallinfo=no
14034 rm conftest.$ac_ext
14035 LIBS=$ac_func_search_save_LIBS
14037 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
14038 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
14039 ac_res=$ac_cv_search_mallinfo
14040 if test "$ac_res" != no; then
14041 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14043 cat >>confdefs.h <<\_ACEOF
14044 #define HAVE_MALLINFO 1
14045 _ACEOF
14050 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
14052 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
14053 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
14054 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
14055 echo $ECHO_N "(cached) $ECHO_C" >&6
14056 else
14057 ac_check_lib_save_LIBS=$LIBS
14058 LIBS="-lpthread $LIBS"
14059 cat >conftest.$ac_ext <<_ACEOF
14060 /* confdefs.h. */
14061 _ACEOF
14062 cat confdefs.h >>conftest.$ac_ext
14063 cat >>conftest.$ac_ext <<_ACEOF
14064 /* end confdefs.h. */
14066 /* Override any GCC internal prototype to avoid an error.
14067 Use char because int might match the return type of a GCC
14068 builtin and then its argument prototype would still apply. */
14069 #ifdef __cplusplus
14070 extern "C"
14071 #endif
14072 char pthread_mutex_init ();
14074 main ()
14076 return pthread_mutex_init ();
14078 return 0;
14080 _ACEOF
14081 rm -f conftest.$ac_objext conftest$ac_exeext
14082 if { (ac_try="$ac_link"
14083 case "(($ac_try" in
14084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14085 *) ac_try_echo=$ac_try;;
14086 esac
14087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14088 (eval "$ac_link") 2>conftest.er1
14089 ac_status=$?
14090 grep -v '^ *+' conftest.er1 >conftest.err
14091 rm -f conftest.er1
14092 cat conftest.err >&5
14093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14094 (exit $ac_status); } &&
14095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14096 { (case "(($ac_try" in
14097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14098 *) ac_try_echo=$ac_try;;
14099 esac
14100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14101 (eval "$ac_try") 2>&5
14102 ac_status=$?
14103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14104 (exit $ac_status); }; } &&
14105 { ac_try='test -s conftest$ac_exeext'
14106 { (case "(($ac_try" in
14107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14108 *) ac_try_echo=$ac_try;;
14109 esac
14110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14111 (eval "$ac_try") 2>&5
14112 ac_status=$?
14113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114 (exit $ac_status); }; }; then
14115 ac_cv_lib_pthread_pthread_mutex_init=yes
14116 else
14117 echo "$as_me: failed program was:" >&5
14118 sed 's/^/| /' conftest.$ac_ext >&5
14120 ac_cv_lib_pthread_pthread_mutex_init=no
14123 rm -f core conftest.err conftest.$ac_objext \
14124 conftest$ac_exeext conftest.$ac_ext
14125 LIBS=$ac_check_lib_save_LIBS
14127 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
14128 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
14129 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
14130 cat >>confdefs.h <<_ACEOF
14131 #define HAVE_LIBPTHREAD 1
14132 _ACEOF
14134 LIBS="-lpthread $LIBS"
14138 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
14139 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
14140 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14141 echo $ECHO_N "(cached) $ECHO_C" >&6
14142 else
14143 ac_func_search_save_LIBS=$LIBS
14144 cat >conftest.$ac_ext <<_ACEOF
14145 /* confdefs.h. */
14146 _ACEOF
14147 cat confdefs.h >>conftest.$ac_ext
14148 cat >>conftest.$ac_ext <<_ACEOF
14149 /* end confdefs.h. */
14151 /* Override any GCC internal prototype to avoid an error.
14152 Use char because int might match the return type of a GCC
14153 builtin and then its argument prototype would still apply. */
14154 #ifdef __cplusplus
14155 extern "C"
14156 #endif
14157 char pthread_mutex_lock ();
14159 main ()
14161 return pthread_mutex_lock ();
14163 return 0;
14165 _ACEOF
14166 for ac_lib in '' pthread; do
14167 if test -z "$ac_lib"; then
14168 ac_res="none required"
14169 else
14170 ac_res=-l$ac_lib
14171 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14173 rm -f conftest.$ac_objext conftest$ac_exeext
14174 if { (ac_try="$ac_link"
14175 case "(($ac_try" in
14176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14177 *) ac_try_echo=$ac_try;;
14178 esac
14179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14180 (eval "$ac_link") 2>conftest.er1
14181 ac_status=$?
14182 grep -v '^ *+' conftest.er1 >conftest.err
14183 rm -f conftest.er1
14184 cat conftest.err >&5
14185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186 (exit $ac_status); } &&
14187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14188 { (case "(($ac_try" in
14189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14190 *) ac_try_echo=$ac_try;;
14191 esac
14192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14193 (eval "$ac_try") 2>&5
14194 ac_status=$?
14195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14196 (exit $ac_status); }; } &&
14197 { ac_try='test -s conftest$ac_exeext'
14198 { (case "(($ac_try" in
14199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14200 *) ac_try_echo=$ac_try;;
14201 esac
14202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14203 (eval "$ac_try") 2>&5
14204 ac_status=$?
14205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14206 (exit $ac_status); }; }; then
14207 ac_cv_search_pthread_mutex_lock=$ac_res
14208 else
14209 echo "$as_me: failed program was:" >&5
14210 sed 's/^/| /' conftest.$ac_ext >&5
14215 rm -f core conftest.err conftest.$ac_objext \
14216 conftest$ac_exeext
14217 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14218 break
14220 done
14221 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14223 else
14224 ac_cv_search_pthread_mutex_lock=no
14226 rm conftest.$ac_ext
14227 LIBS=$ac_func_search_save_LIBS
14229 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
14230 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
14231 ac_res=$ac_cv_search_pthread_mutex_lock
14232 if test "$ac_res" != no; then
14233 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14235 cat >>confdefs.h <<\_ACEOF
14236 #define HAVE_PTHREAD_MUTEX_LOCK 1
14237 _ACEOF
14241 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
14242 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
14243 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14244 echo $ECHO_N "(cached) $ECHO_C" >&6
14245 else
14246 ac_func_search_save_LIBS=$LIBS
14247 cat >conftest.$ac_ext <<_ACEOF
14248 /* confdefs.h. */
14249 _ACEOF
14250 cat confdefs.h >>conftest.$ac_ext
14251 cat >>conftest.$ac_ext <<_ACEOF
14252 /* end confdefs.h. */
14254 /* Override any GCC internal prototype to avoid an error.
14255 Use char because int might match the return type of a GCC
14256 builtin and then its argument prototype would still apply. */
14257 #ifdef __cplusplus
14258 extern "C"
14259 #endif
14260 char pthread_rwlock_init ();
14262 main ()
14264 return pthread_rwlock_init ();
14266 return 0;
14268 _ACEOF
14269 for ac_lib in '' pthread; do
14270 if test -z "$ac_lib"; then
14271 ac_res="none required"
14272 else
14273 ac_res=-l$ac_lib
14274 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14276 rm -f conftest.$ac_objext conftest$ac_exeext
14277 if { (ac_try="$ac_link"
14278 case "(($ac_try" in
14279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14280 *) ac_try_echo=$ac_try;;
14281 esac
14282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14283 (eval "$ac_link") 2>conftest.er1
14284 ac_status=$?
14285 grep -v '^ *+' conftest.er1 >conftest.err
14286 rm -f conftest.er1
14287 cat conftest.err >&5
14288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14289 (exit $ac_status); } &&
14290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14291 { (case "(($ac_try" in
14292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14293 *) ac_try_echo=$ac_try;;
14294 esac
14295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14296 (eval "$ac_try") 2>&5
14297 ac_status=$?
14298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14299 (exit $ac_status); }; } &&
14300 { ac_try='test -s conftest$ac_exeext'
14301 { (case "(($ac_try" in
14302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14303 *) ac_try_echo=$ac_try;;
14304 esac
14305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14306 (eval "$ac_try") 2>&5
14307 ac_status=$?
14308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14309 (exit $ac_status); }; }; then
14310 ac_cv_search_pthread_rwlock_init=$ac_res
14311 else
14312 echo "$as_me: failed program was:" >&5
14313 sed 's/^/| /' conftest.$ac_ext >&5
14318 rm -f core conftest.err conftest.$ac_objext \
14319 conftest$ac_exeext
14320 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14321 break
14323 done
14324 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14326 else
14327 ac_cv_search_pthread_rwlock_init=no
14329 rm conftest.$ac_ext
14330 LIBS=$ac_func_search_save_LIBS
14332 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14333 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
14334 ac_res=$ac_cv_search_pthread_rwlock_init
14335 if test "$ac_res" != no; then
14336 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14338 cat >>confdefs.h <<\_ACEOF
14339 #define HAVE_PTHREAD_RWLOCK_INIT 1
14340 _ACEOF
14344 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14345 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14346 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14347 echo $ECHO_N "(cached) $ECHO_C" >&6
14348 else
14349 ac_func_search_save_LIBS=$LIBS
14350 cat >conftest.$ac_ext <<_ACEOF
14351 /* confdefs.h. */
14352 _ACEOF
14353 cat confdefs.h >>conftest.$ac_ext
14354 cat >>conftest.$ac_ext <<_ACEOF
14355 /* end confdefs.h. */
14357 /* Override any GCC internal prototype to avoid an error.
14358 Use char because int might match the return type of a GCC
14359 builtin and then its argument prototype would still apply. */
14360 #ifdef __cplusplus
14361 extern "C"
14362 #endif
14363 char pthread_getspecific ();
14365 main ()
14367 return pthread_getspecific ();
14369 return 0;
14371 _ACEOF
14372 for ac_lib in '' pthread; do
14373 if test -z "$ac_lib"; then
14374 ac_res="none required"
14375 else
14376 ac_res=-l$ac_lib
14377 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14379 rm -f conftest.$ac_objext conftest$ac_exeext
14380 if { (ac_try="$ac_link"
14381 case "(($ac_try" in
14382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14383 *) ac_try_echo=$ac_try;;
14384 esac
14385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14386 (eval "$ac_link") 2>conftest.er1
14387 ac_status=$?
14388 grep -v '^ *+' conftest.er1 >conftest.err
14389 rm -f conftest.er1
14390 cat conftest.err >&5
14391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392 (exit $ac_status); } &&
14393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14394 { (case "(($ac_try" in
14395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14396 *) ac_try_echo=$ac_try;;
14397 esac
14398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14399 (eval "$ac_try") 2>&5
14400 ac_status=$?
14401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402 (exit $ac_status); }; } &&
14403 { ac_try='test -s conftest$ac_exeext'
14404 { (case "(($ac_try" in
14405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14406 *) ac_try_echo=$ac_try;;
14407 esac
14408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14409 (eval "$ac_try") 2>&5
14410 ac_status=$?
14411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14412 (exit $ac_status); }; }; then
14413 ac_cv_search_pthread_getspecific=$ac_res
14414 else
14415 echo "$as_me: failed program was:" >&5
14416 sed 's/^/| /' conftest.$ac_ext >&5
14421 rm -f core conftest.err conftest.$ac_objext \
14422 conftest$ac_exeext
14423 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14424 break
14426 done
14427 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14429 else
14430 ac_cv_search_pthread_getspecific=no
14432 rm conftest.$ac_ext
14433 LIBS=$ac_func_search_save_LIBS
14435 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14436 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
14437 ac_res=$ac_cv_search_pthread_getspecific
14438 if test "$ac_res" != no; then
14439 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14441 cat >>confdefs.h <<\_ACEOF
14442 #define HAVE_PTHREAD_GETSPECIFIC 1
14443 _ACEOF
14450 # Check whether --with-udis86 was given.
14451 if test "${with_udis86+set}" = set; then
14452 withval=$with_udis86;
14453 USE_UDIS86=1
14455 case "$withval" in
14456 /usr/lib|yes) ;;
14457 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14458 esac
14460 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14461 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14462 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14463 echo $ECHO_N "(cached) $ECHO_C" >&6
14464 else
14465 ac_check_lib_save_LIBS=$LIBS
14466 LIBS="-ludis86 $LIBS"
14467 cat >conftest.$ac_ext <<_ACEOF
14468 /* confdefs.h. */
14469 _ACEOF
14470 cat confdefs.h >>conftest.$ac_ext
14471 cat >>conftest.$ac_ext <<_ACEOF
14472 /* end confdefs.h. */
14474 /* Override any GCC internal prototype to avoid an error.
14475 Use char because int might match the return type of a GCC
14476 builtin and then its argument prototype would still apply. */
14477 #ifdef __cplusplus
14478 extern "C"
14479 #endif
14480 char ud_init ();
14482 main ()
14484 return ud_init ();
14486 return 0;
14488 _ACEOF
14489 rm -f conftest.$ac_objext conftest$ac_exeext
14490 if { (ac_try="$ac_link"
14491 case "(($ac_try" in
14492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14493 *) ac_try_echo=$ac_try;;
14494 esac
14495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14496 (eval "$ac_link") 2>conftest.er1
14497 ac_status=$?
14498 grep -v '^ *+' conftest.er1 >conftest.err
14499 rm -f conftest.er1
14500 cat conftest.err >&5
14501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14502 (exit $ac_status); } &&
14503 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14504 { (case "(($ac_try" in
14505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14506 *) ac_try_echo=$ac_try;;
14507 esac
14508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14509 (eval "$ac_try") 2>&5
14510 ac_status=$?
14511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512 (exit $ac_status); }; } &&
14513 { ac_try='test -s conftest$ac_exeext'
14514 { (case "(($ac_try" in
14515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14516 *) ac_try_echo=$ac_try;;
14517 esac
14518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14519 (eval "$ac_try") 2>&5
14520 ac_status=$?
14521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522 (exit $ac_status); }; }; then
14523 ac_cv_lib_udis86_ud_init=yes
14524 else
14525 echo "$as_me: failed program was:" >&5
14526 sed 's/^/| /' conftest.$ac_ext >&5
14528 ac_cv_lib_udis86_ud_init=no
14531 rm -f core conftest.err conftest.$ac_objext \
14532 conftest$ac_exeext conftest.$ac_ext
14533 LIBS=$ac_check_lib_save_LIBS
14535 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14536 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14537 if test $ac_cv_lib_udis86_ud_init = yes; then
14538 cat >>confdefs.h <<_ACEOF
14539 #define HAVE_LIBUDIS86 1
14540 _ACEOF
14542 LIBS="-ludis86 $LIBS"
14544 else
14546 echo "Error! You need to have libudis86 around."
14547 exit -1
14552 else
14553 USE_UDIS86=0
14558 cat >>confdefs.h <<_ACEOF
14559 #define USE_UDIS86 $USE_UDIS86
14560 _ACEOF
14564 # Check whether --with-oprofile was given.
14565 if test "${with_oprofile+set}" = set; then
14566 withval=$with_oprofile;
14567 USE_OPROFILE=1
14569 case "$withval" in
14570 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
14571 no) llvm_cv_oppath=
14572 USE_OPROFILE=0
14574 *) llvm_cv_oppath="${withval}/lib/oprofile"
14575 CPPFLAGS="-I${withval}/include";;
14576 esac
14577 if test -n "$llvm_cv_oppath" ; then
14578 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
14579 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14580 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14581 if test "${ac_cv_search_bfd_init+set}" = set; then
14582 echo $ECHO_N "(cached) $ECHO_C" >&6
14583 else
14584 ac_func_search_save_LIBS=$LIBS
14585 cat >conftest.$ac_ext <<_ACEOF
14586 /* confdefs.h. */
14587 _ACEOF
14588 cat confdefs.h >>conftest.$ac_ext
14589 cat >>conftest.$ac_ext <<_ACEOF
14590 /* end confdefs.h. */
14592 /* Override any GCC internal prototype to avoid an error.
14593 Use char because int might match the return type of a GCC
14594 builtin and then its argument prototype would still apply. */
14595 #ifdef __cplusplus
14596 extern "C"
14597 #endif
14598 char bfd_init ();
14600 main ()
14602 return bfd_init ();
14604 return 0;
14606 _ACEOF
14607 for ac_lib in '' bfd; do
14608 if test -z "$ac_lib"; then
14609 ac_res="none required"
14610 else
14611 ac_res=-l$ac_lib
14612 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14614 rm -f conftest.$ac_objext conftest$ac_exeext
14615 if { (ac_try="$ac_link"
14616 case "(($ac_try" in
14617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14618 *) ac_try_echo=$ac_try;;
14619 esac
14620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14621 (eval "$ac_link") 2>conftest.er1
14622 ac_status=$?
14623 grep -v '^ *+' conftest.er1 >conftest.err
14624 rm -f conftest.er1
14625 cat conftest.err >&5
14626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627 (exit $ac_status); } &&
14628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14629 { (case "(($ac_try" in
14630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14631 *) ac_try_echo=$ac_try;;
14632 esac
14633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14634 (eval "$ac_try") 2>&5
14635 ac_status=$?
14636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637 (exit $ac_status); }; } &&
14638 { ac_try='test -s conftest$ac_exeext'
14639 { (case "(($ac_try" in
14640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14641 *) ac_try_echo=$ac_try;;
14642 esac
14643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14644 (eval "$ac_try") 2>&5
14645 ac_status=$?
14646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14647 (exit $ac_status); }; }; then
14648 ac_cv_search_bfd_init=$ac_res
14649 else
14650 echo "$as_me: failed program was:" >&5
14651 sed 's/^/| /' conftest.$ac_ext >&5
14656 rm -f core conftest.err conftest.$ac_objext \
14657 conftest$ac_exeext
14658 if test "${ac_cv_search_bfd_init+set}" = set; then
14659 break
14661 done
14662 if test "${ac_cv_search_bfd_init+set}" = set; then
14664 else
14665 ac_cv_search_bfd_init=no
14667 rm conftest.$ac_ext
14668 LIBS=$ac_func_search_save_LIBS
14670 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14671 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
14672 ac_res=$ac_cv_search_bfd_init
14673 if test "$ac_res" != no; then
14674 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14678 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14679 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14680 if test "${ac_cv_search_op_open_agent+set}" = set; then
14681 echo $ECHO_N "(cached) $ECHO_C" >&6
14682 else
14683 ac_func_search_save_LIBS=$LIBS
14684 cat >conftest.$ac_ext <<_ACEOF
14685 /* confdefs.h. */
14686 _ACEOF
14687 cat confdefs.h >>conftest.$ac_ext
14688 cat >>conftest.$ac_ext <<_ACEOF
14689 /* end confdefs.h. */
14691 /* Override any GCC internal prototype to avoid an error.
14692 Use char because int might match the return type of a GCC
14693 builtin and then its argument prototype would still apply. */
14694 #ifdef __cplusplus
14695 extern "C"
14696 #endif
14697 char op_open_agent ();
14699 main ()
14701 return op_open_agent ();
14703 return 0;
14705 _ACEOF
14706 for ac_lib in '' opagent; do
14707 if test -z "$ac_lib"; then
14708 ac_res="none required"
14709 else
14710 ac_res=-l$ac_lib
14711 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14713 rm -f conftest.$ac_objext conftest$ac_exeext
14714 if { (ac_try="$ac_link"
14715 case "(($ac_try" in
14716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14717 *) ac_try_echo=$ac_try;;
14718 esac
14719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14720 (eval "$ac_link") 2>conftest.er1
14721 ac_status=$?
14722 grep -v '^ *+' conftest.er1 >conftest.err
14723 rm -f conftest.er1
14724 cat conftest.err >&5
14725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14726 (exit $ac_status); } &&
14727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14728 { (case "(($ac_try" in
14729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14730 *) ac_try_echo=$ac_try;;
14731 esac
14732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14733 (eval "$ac_try") 2>&5
14734 ac_status=$?
14735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14736 (exit $ac_status); }; } &&
14737 { ac_try='test -s conftest$ac_exeext'
14738 { (case "(($ac_try" in
14739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14740 *) ac_try_echo=$ac_try;;
14741 esac
14742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14743 (eval "$ac_try") 2>&5
14744 ac_status=$?
14745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14746 (exit $ac_status); }; }; then
14747 ac_cv_search_op_open_agent=$ac_res
14748 else
14749 echo "$as_me: failed program was:" >&5
14750 sed 's/^/| /' conftest.$ac_ext >&5
14755 rm -f core conftest.err conftest.$ac_objext \
14756 conftest$ac_exeext
14757 if test "${ac_cv_search_op_open_agent+set}" = set; then
14758 break
14760 done
14761 if test "${ac_cv_search_op_open_agent+set}" = set; then
14763 else
14764 ac_cv_search_op_open_agent=no
14766 rm conftest.$ac_ext
14767 LIBS=$ac_func_search_save_LIBS
14769 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14770 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
14771 ac_res=$ac_cv_search_op_open_agent
14772 if test "$ac_res" != no; then
14773 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14775 else
14777 echo "Error! You need to have libopagent around."
14778 exit -1
14782 if test "${ac_cv_header_opagent_h+set}" = set; then
14783 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14784 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14785 if test "${ac_cv_header_opagent_h+set}" = set; then
14786 echo $ECHO_N "(cached) $ECHO_C" >&6
14788 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14789 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14790 else
14791 # Is the header compilable?
14792 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
14793 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14794 cat >conftest.$ac_ext <<_ACEOF
14795 /* confdefs.h. */
14796 _ACEOF
14797 cat confdefs.h >>conftest.$ac_ext
14798 cat >>conftest.$ac_ext <<_ACEOF
14799 /* end confdefs.h. */
14800 $ac_includes_default
14801 #include <opagent.h>
14802 _ACEOF
14803 rm -f conftest.$ac_objext
14804 if { (ac_try="$ac_compile"
14805 case "(($ac_try" in
14806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14807 *) ac_try_echo=$ac_try;;
14808 esac
14809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14810 (eval "$ac_compile") 2>conftest.er1
14811 ac_status=$?
14812 grep -v '^ *+' conftest.er1 >conftest.err
14813 rm -f conftest.er1
14814 cat conftest.err >&5
14815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14816 (exit $ac_status); } &&
14817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14818 { (case "(($ac_try" in
14819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14820 *) ac_try_echo=$ac_try;;
14821 esac
14822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14823 (eval "$ac_try") 2>&5
14824 ac_status=$?
14825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14826 (exit $ac_status); }; } &&
14827 { ac_try='test -s conftest.$ac_objext'
14828 { (case "(($ac_try" in
14829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14830 *) ac_try_echo=$ac_try;;
14831 esac
14832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14833 (eval "$ac_try") 2>&5
14834 ac_status=$?
14835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14836 (exit $ac_status); }; }; then
14837 ac_header_compiler=yes
14838 else
14839 echo "$as_me: failed program was:" >&5
14840 sed 's/^/| /' conftest.$ac_ext >&5
14842 ac_header_compiler=no
14845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14846 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14847 echo "${ECHO_T}$ac_header_compiler" >&6; }
14849 # Is the header present?
14850 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
14851 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14852 cat >conftest.$ac_ext <<_ACEOF
14853 /* confdefs.h. */
14854 _ACEOF
14855 cat confdefs.h >>conftest.$ac_ext
14856 cat >>conftest.$ac_ext <<_ACEOF
14857 /* end confdefs.h. */
14858 #include <opagent.h>
14859 _ACEOF
14860 if { (ac_try="$ac_cpp conftest.$ac_ext"
14861 case "(($ac_try" in
14862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14863 *) ac_try_echo=$ac_try;;
14864 esac
14865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14866 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14867 ac_status=$?
14868 grep -v '^ *+' conftest.er1 >conftest.err
14869 rm -f conftest.er1
14870 cat conftest.err >&5
14871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14872 (exit $ac_status); } >/dev/null; then
14873 if test -s conftest.err; then
14874 ac_cpp_err=$ac_c_preproc_warn_flag
14875 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14876 else
14877 ac_cpp_err=
14879 else
14880 ac_cpp_err=yes
14882 if test -z "$ac_cpp_err"; then
14883 ac_header_preproc=yes
14884 else
14885 echo "$as_me: failed program was:" >&5
14886 sed 's/^/| /' conftest.$ac_ext >&5
14888 ac_header_preproc=no
14891 rm -f conftest.err conftest.$ac_ext
14892 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14893 echo "${ECHO_T}$ac_header_preproc" >&6; }
14895 # So? What about this header?
14896 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14897 yes:no: )
14898 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14899 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14900 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14901 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14902 ac_header_preproc=yes
14904 no:yes:* )
14905 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14906 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14907 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14908 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14909 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14910 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14911 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14912 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14913 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14914 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14915 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14916 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14917 ( cat <<\_ASBOX
14918 ## ----------------------------------- ##
14919 ## Report this to llvmbugs@cs.uiuc.edu ##
14920 ## ----------------------------------- ##
14921 _ASBOX
14922 ) | sed "s/^/$as_me: WARNING: /" >&2
14924 esac
14925 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14926 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14927 if test "${ac_cv_header_opagent_h+set}" = set; then
14928 echo $ECHO_N "(cached) $ECHO_C" >&6
14929 else
14930 ac_cv_header_opagent_h=$ac_header_preproc
14932 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14933 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14936 if test $ac_cv_header_opagent_h = yes; then
14938 else
14940 echo "Error! You need to have opagent.h around."
14941 exit -1
14948 else
14950 USE_OPROFILE=0
14956 cat >>confdefs.h <<_ACEOF
14957 #define USE_OPROFILE $USE_OPROFILE
14958 _ACEOF
14967 ac_header_dirent=no
14968 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14969 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14970 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14971 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14972 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14973 echo $ECHO_N "(cached) $ECHO_C" >&6
14974 else
14975 cat >conftest.$ac_ext <<_ACEOF
14976 /* confdefs.h. */
14977 _ACEOF
14978 cat confdefs.h >>conftest.$ac_ext
14979 cat >>conftest.$ac_ext <<_ACEOF
14980 /* end confdefs.h. */
14981 #include <sys/types.h>
14982 #include <$ac_hdr>
14985 main ()
14987 if ((DIR *) 0)
14988 return 0;
14990 return 0;
14992 _ACEOF
14993 rm -f conftest.$ac_objext
14994 if { (ac_try="$ac_compile"
14995 case "(($ac_try" in
14996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14997 *) ac_try_echo=$ac_try;;
14998 esac
14999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15000 (eval "$ac_compile") 2>conftest.er1
15001 ac_status=$?
15002 grep -v '^ *+' conftest.er1 >conftest.err
15003 rm -f conftest.er1
15004 cat conftest.err >&5
15005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006 (exit $ac_status); } &&
15007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15008 { (case "(($ac_try" in
15009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15010 *) ac_try_echo=$ac_try;;
15011 esac
15012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15013 (eval "$ac_try") 2>&5
15014 ac_status=$?
15015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016 (exit $ac_status); }; } &&
15017 { ac_try='test -s conftest.$ac_objext'
15018 { (case "(($ac_try" in
15019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15020 *) ac_try_echo=$ac_try;;
15021 esac
15022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15023 (eval "$ac_try") 2>&5
15024 ac_status=$?
15025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026 (exit $ac_status); }; }; then
15027 eval "$as_ac_Header=yes"
15028 else
15029 echo "$as_me: failed program was:" >&5
15030 sed 's/^/| /' conftest.$ac_ext >&5
15032 eval "$as_ac_Header=no"
15035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15037 ac_res=`eval echo '${'$as_ac_Header'}'`
15038 { echo "$as_me:$LINENO: result: $ac_res" >&5
15039 echo "${ECHO_T}$ac_res" >&6; }
15040 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15041 cat >>confdefs.h <<_ACEOF
15042 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15043 _ACEOF
15045 ac_header_dirent=$ac_hdr; break
15048 done
15049 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15050 if test $ac_header_dirent = dirent.h; then
15051 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15052 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15053 if test "${ac_cv_search_opendir+set}" = set; then
15054 echo $ECHO_N "(cached) $ECHO_C" >&6
15055 else
15056 ac_func_search_save_LIBS=$LIBS
15057 cat >conftest.$ac_ext <<_ACEOF
15058 /* confdefs.h. */
15059 _ACEOF
15060 cat confdefs.h >>conftest.$ac_ext
15061 cat >>conftest.$ac_ext <<_ACEOF
15062 /* end confdefs.h. */
15064 /* Override any GCC internal prototype to avoid an error.
15065 Use char because int might match the return type of a GCC
15066 builtin and then its argument prototype would still apply. */
15067 #ifdef __cplusplus
15068 extern "C"
15069 #endif
15070 char opendir ();
15072 main ()
15074 return opendir ();
15076 return 0;
15078 _ACEOF
15079 for ac_lib in '' dir; do
15080 if test -z "$ac_lib"; then
15081 ac_res="none required"
15082 else
15083 ac_res=-l$ac_lib
15084 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15086 rm -f conftest.$ac_objext conftest$ac_exeext
15087 if { (ac_try="$ac_link"
15088 case "(($ac_try" in
15089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15090 *) ac_try_echo=$ac_try;;
15091 esac
15092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15093 (eval "$ac_link") 2>conftest.er1
15094 ac_status=$?
15095 grep -v '^ *+' conftest.er1 >conftest.err
15096 rm -f conftest.er1
15097 cat conftest.err >&5
15098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099 (exit $ac_status); } &&
15100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15101 { (case "(($ac_try" in
15102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15103 *) ac_try_echo=$ac_try;;
15104 esac
15105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15106 (eval "$ac_try") 2>&5
15107 ac_status=$?
15108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15109 (exit $ac_status); }; } &&
15110 { ac_try='test -s conftest$ac_exeext'
15111 { (case "(($ac_try" in
15112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15113 *) ac_try_echo=$ac_try;;
15114 esac
15115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15116 (eval "$ac_try") 2>&5
15117 ac_status=$?
15118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15119 (exit $ac_status); }; }; then
15120 ac_cv_search_opendir=$ac_res
15121 else
15122 echo "$as_me: failed program was:" >&5
15123 sed 's/^/| /' conftest.$ac_ext >&5
15128 rm -f core conftest.err conftest.$ac_objext \
15129 conftest$ac_exeext
15130 if test "${ac_cv_search_opendir+set}" = set; then
15131 break
15133 done
15134 if test "${ac_cv_search_opendir+set}" = set; then
15136 else
15137 ac_cv_search_opendir=no
15139 rm conftest.$ac_ext
15140 LIBS=$ac_func_search_save_LIBS
15142 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15143 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15144 ac_res=$ac_cv_search_opendir
15145 if test "$ac_res" != no; then
15146 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15150 else
15151 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15152 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15153 if test "${ac_cv_search_opendir+set}" = set; then
15154 echo $ECHO_N "(cached) $ECHO_C" >&6
15155 else
15156 ac_func_search_save_LIBS=$LIBS
15157 cat >conftest.$ac_ext <<_ACEOF
15158 /* confdefs.h. */
15159 _ACEOF
15160 cat confdefs.h >>conftest.$ac_ext
15161 cat >>conftest.$ac_ext <<_ACEOF
15162 /* end confdefs.h. */
15164 /* Override any GCC internal prototype to avoid an error.
15165 Use char because int might match the return type of a GCC
15166 builtin and then its argument prototype would still apply. */
15167 #ifdef __cplusplus
15168 extern "C"
15169 #endif
15170 char opendir ();
15172 main ()
15174 return opendir ();
15176 return 0;
15178 _ACEOF
15179 for ac_lib in '' x; do
15180 if test -z "$ac_lib"; then
15181 ac_res="none required"
15182 else
15183 ac_res=-l$ac_lib
15184 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15186 rm -f conftest.$ac_objext conftest$ac_exeext
15187 if { (ac_try="$ac_link"
15188 case "(($ac_try" in
15189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15190 *) ac_try_echo=$ac_try;;
15191 esac
15192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15193 (eval "$ac_link") 2>conftest.er1
15194 ac_status=$?
15195 grep -v '^ *+' conftest.er1 >conftest.err
15196 rm -f conftest.er1
15197 cat conftest.err >&5
15198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199 (exit $ac_status); } &&
15200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15201 { (case "(($ac_try" in
15202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15203 *) ac_try_echo=$ac_try;;
15204 esac
15205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15206 (eval "$ac_try") 2>&5
15207 ac_status=$?
15208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15209 (exit $ac_status); }; } &&
15210 { ac_try='test -s conftest$ac_exeext'
15211 { (case "(($ac_try" in
15212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15213 *) ac_try_echo=$ac_try;;
15214 esac
15215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15216 (eval "$ac_try") 2>&5
15217 ac_status=$?
15218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219 (exit $ac_status); }; }; then
15220 ac_cv_search_opendir=$ac_res
15221 else
15222 echo "$as_me: failed program was:" >&5
15223 sed 's/^/| /' conftest.$ac_ext >&5
15228 rm -f core conftest.err conftest.$ac_objext \
15229 conftest$ac_exeext
15230 if test "${ac_cv_search_opendir+set}" = set; then
15231 break
15233 done
15234 if test "${ac_cv_search_opendir+set}" = set; then
15236 else
15237 ac_cv_search_opendir=no
15239 rm conftest.$ac_ext
15240 LIBS=$ac_func_search_save_LIBS
15242 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15243 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15244 ac_res=$ac_cv_search_opendir
15245 if test "$ac_res" != no; then
15246 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15252 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
15253 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
15254 if test "${ac_cv_header_mmap_anon+set}" = set; then
15255 echo $ECHO_N "(cached) $ECHO_C" >&6
15256 else
15257 ac_ext=c
15258 ac_cpp='$CPP $CPPFLAGS'
15259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15263 cat >conftest.$ac_ext <<_ACEOF
15264 /* confdefs.h. */
15265 _ACEOF
15266 cat confdefs.h >>conftest.$ac_ext
15267 cat >>conftest.$ac_ext <<_ACEOF
15268 /* end confdefs.h. */
15269 #include <sys/mman.h>
15270 #include <unistd.h>
15271 #include <fcntl.h>
15273 main ()
15275 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
15277 return 0;
15279 _ACEOF
15280 rm -f conftest.$ac_objext
15281 if { (ac_try="$ac_compile"
15282 case "(($ac_try" in
15283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15284 *) ac_try_echo=$ac_try;;
15285 esac
15286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15287 (eval "$ac_compile") 2>conftest.er1
15288 ac_status=$?
15289 grep -v '^ *+' conftest.er1 >conftest.err
15290 rm -f conftest.er1
15291 cat conftest.err >&5
15292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15293 (exit $ac_status); } &&
15294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15295 { (case "(($ac_try" in
15296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15297 *) ac_try_echo=$ac_try;;
15298 esac
15299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15300 (eval "$ac_try") 2>&5
15301 ac_status=$?
15302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15303 (exit $ac_status); }; } &&
15304 { ac_try='test -s conftest.$ac_objext'
15305 { (case "(($ac_try" in
15306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15307 *) ac_try_echo=$ac_try;;
15308 esac
15309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15310 (eval "$ac_try") 2>&5
15311 ac_status=$?
15312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15313 (exit $ac_status); }; }; then
15314 ac_cv_header_mmap_anon=yes
15315 else
15316 echo "$as_me: failed program was:" >&5
15317 sed 's/^/| /' conftest.$ac_ext >&5
15319 ac_cv_header_mmap_anon=no
15322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15323 ac_ext=c
15324 ac_cpp='$CPP $CPPFLAGS'
15325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15331 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15332 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
15333 if test "$ac_cv_header_mmap_anon" = yes; then
15335 cat >>confdefs.h <<\_ACEOF
15336 #define HAVE_MMAP_ANONYMOUS 1
15337 _ACEOF
15341 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15342 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15343 if test "${ac_cv_header_stat_broken+set}" = set; then
15344 echo $ECHO_N "(cached) $ECHO_C" >&6
15345 else
15346 cat >conftest.$ac_ext <<_ACEOF
15347 /* confdefs.h. */
15348 _ACEOF
15349 cat confdefs.h >>conftest.$ac_ext
15350 cat >>conftest.$ac_ext <<_ACEOF
15351 /* end confdefs.h. */
15352 #include <sys/types.h>
15353 #include <sys/stat.h>
15355 #if defined S_ISBLK && defined S_IFDIR
15356 # if S_ISBLK (S_IFDIR)
15357 You lose.
15358 # endif
15359 #endif
15361 #if defined S_ISBLK && defined S_IFCHR
15362 # if S_ISBLK (S_IFCHR)
15363 You lose.
15364 # endif
15365 #endif
15367 #if defined S_ISLNK && defined S_IFREG
15368 # if S_ISLNK (S_IFREG)
15369 You lose.
15370 # endif
15371 #endif
15373 #if defined S_ISSOCK && defined S_IFREG
15374 # if S_ISSOCK (S_IFREG)
15375 You lose.
15376 # endif
15377 #endif
15379 _ACEOF
15380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15381 $EGREP "You lose" >/dev/null 2>&1; then
15382 ac_cv_header_stat_broken=yes
15383 else
15384 ac_cv_header_stat_broken=no
15386 rm -f conftest*
15389 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15390 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
15391 if test $ac_cv_header_stat_broken = yes; then
15393 cat >>confdefs.h <<\_ACEOF
15394 #define STAT_MACROS_BROKEN 1
15395 _ACEOF
15399 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15400 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15401 if test "${ac_cv_header_stdc+set}" = set; then
15402 echo $ECHO_N "(cached) $ECHO_C" >&6
15403 else
15404 cat >conftest.$ac_ext <<_ACEOF
15405 /* confdefs.h. */
15406 _ACEOF
15407 cat confdefs.h >>conftest.$ac_ext
15408 cat >>conftest.$ac_ext <<_ACEOF
15409 /* end confdefs.h. */
15410 #include <stdlib.h>
15411 #include <stdarg.h>
15412 #include <string.h>
15413 #include <float.h>
15416 main ()
15420 return 0;
15422 _ACEOF
15423 rm -f conftest.$ac_objext
15424 if { (ac_try="$ac_compile"
15425 case "(($ac_try" in
15426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15427 *) ac_try_echo=$ac_try;;
15428 esac
15429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15430 (eval "$ac_compile") 2>conftest.er1
15431 ac_status=$?
15432 grep -v '^ *+' conftest.er1 >conftest.err
15433 rm -f conftest.er1
15434 cat conftest.err >&5
15435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15436 (exit $ac_status); } &&
15437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15438 { (case "(($ac_try" in
15439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15440 *) ac_try_echo=$ac_try;;
15441 esac
15442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15443 (eval "$ac_try") 2>&5
15444 ac_status=$?
15445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15446 (exit $ac_status); }; } &&
15447 { ac_try='test -s conftest.$ac_objext'
15448 { (case "(($ac_try" in
15449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15450 *) ac_try_echo=$ac_try;;
15451 esac
15452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15453 (eval "$ac_try") 2>&5
15454 ac_status=$?
15455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456 (exit $ac_status); }; }; then
15457 ac_cv_header_stdc=yes
15458 else
15459 echo "$as_me: failed program was:" >&5
15460 sed 's/^/| /' conftest.$ac_ext >&5
15462 ac_cv_header_stdc=no
15465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15467 if test $ac_cv_header_stdc = yes; then
15468 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15469 cat >conftest.$ac_ext <<_ACEOF
15470 /* confdefs.h. */
15471 _ACEOF
15472 cat confdefs.h >>conftest.$ac_ext
15473 cat >>conftest.$ac_ext <<_ACEOF
15474 /* end confdefs.h. */
15475 #include <string.h>
15477 _ACEOF
15478 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15479 $EGREP "memchr" >/dev/null 2>&1; then
15481 else
15482 ac_cv_header_stdc=no
15484 rm -f conftest*
15488 if test $ac_cv_header_stdc = yes; then
15489 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15490 cat >conftest.$ac_ext <<_ACEOF
15491 /* confdefs.h. */
15492 _ACEOF
15493 cat confdefs.h >>conftest.$ac_ext
15494 cat >>conftest.$ac_ext <<_ACEOF
15495 /* end confdefs.h. */
15496 #include <stdlib.h>
15498 _ACEOF
15499 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15500 $EGREP "free" >/dev/null 2>&1; then
15502 else
15503 ac_cv_header_stdc=no
15505 rm -f conftest*
15509 if test $ac_cv_header_stdc = yes; then
15510 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15511 if test "$cross_compiling" = yes; then
15513 else
15514 cat >conftest.$ac_ext <<_ACEOF
15515 /* confdefs.h. */
15516 _ACEOF
15517 cat confdefs.h >>conftest.$ac_ext
15518 cat >>conftest.$ac_ext <<_ACEOF
15519 /* end confdefs.h. */
15520 #include <ctype.h>
15521 #include <stdlib.h>
15522 #if ((' ' & 0x0FF) == 0x020)
15523 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15524 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15525 #else
15526 # define ISLOWER(c) \
15527 (('a' <= (c) && (c) <= 'i') \
15528 || ('j' <= (c) && (c) <= 'r') \
15529 || ('s' <= (c) && (c) <= 'z'))
15530 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15531 #endif
15533 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15535 main ()
15537 int i;
15538 for (i = 0; i < 256; i++)
15539 if (XOR (islower (i), ISLOWER (i))
15540 || toupper (i) != TOUPPER (i))
15541 return 2;
15542 return 0;
15544 _ACEOF
15545 rm -f conftest$ac_exeext
15546 if { (ac_try="$ac_link"
15547 case "(($ac_try" in
15548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15549 *) ac_try_echo=$ac_try;;
15550 esac
15551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15552 (eval "$ac_link") 2>&5
15553 ac_status=$?
15554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15555 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15556 { (case "(($ac_try" in
15557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15558 *) ac_try_echo=$ac_try;;
15559 esac
15560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15561 (eval "$ac_try") 2>&5
15562 ac_status=$?
15563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15564 (exit $ac_status); }; }; then
15566 else
15567 echo "$as_me: program exited with status $ac_status" >&5
15568 echo "$as_me: failed program was:" >&5
15569 sed 's/^/| /' conftest.$ac_ext >&5
15571 ( exit $ac_status )
15572 ac_cv_header_stdc=no
15574 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15580 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15581 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15582 if test $ac_cv_header_stdc = yes; then
15584 cat >>confdefs.h <<\_ACEOF
15585 #define STDC_HEADERS 1
15586 _ACEOF
15590 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15591 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15592 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15593 echo $ECHO_N "(cached) $ECHO_C" >&6
15594 else
15595 cat >conftest.$ac_ext <<_ACEOF
15596 /* confdefs.h. */
15597 _ACEOF
15598 cat confdefs.h >>conftest.$ac_ext
15599 cat >>conftest.$ac_ext <<_ACEOF
15600 /* end confdefs.h. */
15601 #include <sys/types.h>
15602 #include <sys/wait.h>
15603 #ifndef WEXITSTATUS
15604 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15605 #endif
15606 #ifndef WIFEXITED
15607 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15608 #endif
15611 main ()
15613 int s;
15614 wait (&s);
15615 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15617 return 0;
15619 _ACEOF
15620 rm -f conftest.$ac_objext
15621 if { (ac_try="$ac_compile"
15622 case "(($ac_try" in
15623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15624 *) ac_try_echo=$ac_try;;
15625 esac
15626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15627 (eval "$ac_compile") 2>conftest.er1
15628 ac_status=$?
15629 grep -v '^ *+' conftest.er1 >conftest.err
15630 rm -f conftest.er1
15631 cat conftest.err >&5
15632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633 (exit $ac_status); } &&
15634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15635 { (case "(($ac_try" in
15636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15637 *) ac_try_echo=$ac_try;;
15638 esac
15639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15640 (eval "$ac_try") 2>&5
15641 ac_status=$?
15642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15643 (exit $ac_status); }; } &&
15644 { ac_try='test -s conftest.$ac_objext'
15645 { (case "(($ac_try" in
15646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15647 *) ac_try_echo=$ac_try;;
15648 esac
15649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15650 (eval "$ac_try") 2>&5
15651 ac_status=$?
15652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15653 (exit $ac_status); }; }; then
15654 ac_cv_header_sys_wait_h=yes
15655 else
15656 echo "$as_me: failed program was:" >&5
15657 sed 's/^/| /' conftest.$ac_ext >&5
15659 ac_cv_header_sys_wait_h=no
15662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15664 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15665 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15666 if test $ac_cv_header_sys_wait_h = yes; then
15668 cat >>confdefs.h <<\_ACEOF
15669 #define HAVE_SYS_WAIT_H 1
15670 _ACEOF
15674 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15675 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15676 if test "${ac_cv_header_time+set}" = set; then
15677 echo $ECHO_N "(cached) $ECHO_C" >&6
15678 else
15679 cat >conftest.$ac_ext <<_ACEOF
15680 /* confdefs.h. */
15681 _ACEOF
15682 cat confdefs.h >>conftest.$ac_ext
15683 cat >>conftest.$ac_ext <<_ACEOF
15684 /* end confdefs.h. */
15685 #include <sys/types.h>
15686 #include <sys/time.h>
15687 #include <time.h>
15690 main ()
15692 if ((struct tm *) 0)
15693 return 0;
15695 return 0;
15697 _ACEOF
15698 rm -f conftest.$ac_objext
15699 if { (ac_try="$ac_compile"
15700 case "(($ac_try" in
15701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15702 *) ac_try_echo=$ac_try;;
15703 esac
15704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15705 (eval "$ac_compile") 2>conftest.er1
15706 ac_status=$?
15707 grep -v '^ *+' conftest.er1 >conftest.err
15708 rm -f conftest.er1
15709 cat conftest.err >&5
15710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15711 (exit $ac_status); } &&
15712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15713 { (case "(($ac_try" in
15714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15715 *) ac_try_echo=$ac_try;;
15716 esac
15717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15718 (eval "$ac_try") 2>&5
15719 ac_status=$?
15720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15721 (exit $ac_status); }; } &&
15722 { ac_try='test -s conftest.$ac_objext'
15723 { (case "(($ac_try" in
15724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15725 *) ac_try_echo=$ac_try;;
15726 esac
15727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15728 (eval "$ac_try") 2>&5
15729 ac_status=$?
15730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15731 (exit $ac_status); }; }; then
15732 ac_cv_header_time=yes
15733 else
15734 echo "$as_me: failed program was:" >&5
15735 sed 's/^/| /' conftest.$ac_ext >&5
15737 ac_cv_header_time=no
15740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15742 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15743 echo "${ECHO_T}$ac_cv_header_time" >&6; }
15744 if test $ac_cv_header_time = yes; then
15746 cat >>confdefs.h <<\_ACEOF
15747 #define TIME_WITH_SYS_TIME 1
15748 _ACEOF
15759 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15761 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15762 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15763 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15764 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15765 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15766 echo $ECHO_N "(cached) $ECHO_C" >&6
15768 ac_res=`eval echo '${'$as_ac_Header'}'`
15769 { echo "$as_me:$LINENO: result: $ac_res" >&5
15770 echo "${ECHO_T}$ac_res" >&6; }
15771 else
15772 # Is the header compilable?
15773 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15774 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15775 cat >conftest.$ac_ext <<_ACEOF
15776 /* confdefs.h. */
15777 _ACEOF
15778 cat confdefs.h >>conftest.$ac_ext
15779 cat >>conftest.$ac_ext <<_ACEOF
15780 /* end confdefs.h. */
15781 $ac_includes_default
15782 #include <$ac_header>
15783 _ACEOF
15784 rm -f conftest.$ac_objext
15785 if { (ac_try="$ac_compile"
15786 case "(($ac_try" in
15787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15788 *) ac_try_echo=$ac_try;;
15789 esac
15790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15791 (eval "$ac_compile") 2>conftest.er1
15792 ac_status=$?
15793 grep -v '^ *+' conftest.er1 >conftest.err
15794 rm -f conftest.er1
15795 cat conftest.err >&5
15796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15797 (exit $ac_status); } &&
15798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15799 { (case "(($ac_try" in
15800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15801 *) ac_try_echo=$ac_try;;
15802 esac
15803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15804 (eval "$ac_try") 2>&5
15805 ac_status=$?
15806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15807 (exit $ac_status); }; } &&
15808 { ac_try='test -s conftest.$ac_objext'
15809 { (case "(($ac_try" in
15810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15811 *) ac_try_echo=$ac_try;;
15812 esac
15813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15814 (eval "$ac_try") 2>&5
15815 ac_status=$?
15816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15817 (exit $ac_status); }; }; then
15818 ac_header_compiler=yes
15819 else
15820 echo "$as_me: failed program was:" >&5
15821 sed 's/^/| /' conftest.$ac_ext >&5
15823 ac_header_compiler=no
15826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15827 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15828 echo "${ECHO_T}$ac_header_compiler" >&6; }
15830 # Is the header present?
15831 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15832 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15833 cat >conftest.$ac_ext <<_ACEOF
15834 /* confdefs.h. */
15835 _ACEOF
15836 cat confdefs.h >>conftest.$ac_ext
15837 cat >>conftest.$ac_ext <<_ACEOF
15838 /* end confdefs.h. */
15839 #include <$ac_header>
15840 _ACEOF
15841 if { (ac_try="$ac_cpp conftest.$ac_ext"
15842 case "(($ac_try" in
15843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15844 *) ac_try_echo=$ac_try;;
15845 esac
15846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15847 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15848 ac_status=$?
15849 grep -v '^ *+' conftest.er1 >conftest.err
15850 rm -f conftest.er1
15851 cat conftest.err >&5
15852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15853 (exit $ac_status); } >/dev/null; then
15854 if test -s conftest.err; then
15855 ac_cpp_err=$ac_c_preproc_warn_flag
15856 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15857 else
15858 ac_cpp_err=
15860 else
15861 ac_cpp_err=yes
15863 if test -z "$ac_cpp_err"; then
15864 ac_header_preproc=yes
15865 else
15866 echo "$as_me: failed program was:" >&5
15867 sed 's/^/| /' conftest.$ac_ext >&5
15869 ac_header_preproc=no
15872 rm -f conftest.err conftest.$ac_ext
15873 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15874 echo "${ECHO_T}$ac_header_preproc" >&6; }
15876 # So? What about this header?
15877 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15878 yes:no: )
15879 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15880 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15881 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15882 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15883 ac_header_preproc=yes
15885 no:yes:* )
15886 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15887 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15888 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15889 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15890 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15891 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15892 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15893 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15894 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15895 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15896 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15897 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15898 ( cat <<\_ASBOX
15899 ## ----------------------------------- ##
15900 ## Report this to llvmbugs@cs.uiuc.edu ##
15901 ## ----------------------------------- ##
15902 _ASBOX
15903 ) | sed "s/^/$as_me: WARNING: /" >&2
15905 esac
15906 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15908 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15909 echo $ECHO_N "(cached) $ECHO_C" >&6
15910 else
15911 eval "$as_ac_Header=\$ac_header_preproc"
15913 ac_res=`eval echo '${'$as_ac_Header'}'`
15914 { echo "$as_me:$LINENO: result: $ac_res" >&5
15915 echo "${ECHO_T}$ac_res" >&6; }
15918 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15919 cat >>confdefs.h <<_ACEOF
15920 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15921 _ACEOF
15925 done
15933 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15935 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15936 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15937 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15940 echo $ECHO_N "(cached) $ECHO_C" >&6
15942 ac_res=`eval echo '${'$as_ac_Header'}'`
15943 { echo "$as_me:$LINENO: result: $ac_res" >&5
15944 echo "${ECHO_T}$ac_res" >&6; }
15945 else
15946 # Is the header compilable?
15947 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15948 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15949 cat >conftest.$ac_ext <<_ACEOF
15950 /* confdefs.h. */
15951 _ACEOF
15952 cat confdefs.h >>conftest.$ac_ext
15953 cat >>conftest.$ac_ext <<_ACEOF
15954 /* end confdefs.h. */
15955 $ac_includes_default
15956 #include <$ac_header>
15957 _ACEOF
15958 rm -f conftest.$ac_objext
15959 if { (ac_try="$ac_compile"
15960 case "(($ac_try" in
15961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15962 *) ac_try_echo=$ac_try;;
15963 esac
15964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15965 (eval "$ac_compile") 2>conftest.er1
15966 ac_status=$?
15967 grep -v '^ *+' conftest.er1 >conftest.err
15968 rm -f conftest.er1
15969 cat conftest.err >&5
15970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15971 (exit $ac_status); } &&
15972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15973 { (case "(($ac_try" in
15974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15975 *) ac_try_echo=$ac_try;;
15976 esac
15977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15978 (eval "$ac_try") 2>&5
15979 ac_status=$?
15980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15981 (exit $ac_status); }; } &&
15982 { ac_try='test -s conftest.$ac_objext'
15983 { (case "(($ac_try" in
15984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15985 *) ac_try_echo=$ac_try;;
15986 esac
15987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15988 (eval "$ac_try") 2>&5
15989 ac_status=$?
15990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15991 (exit $ac_status); }; }; then
15992 ac_header_compiler=yes
15993 else
15994 echo "$as_me: failed program was:" >&5
15995 sed 's/^/| /' conftest.$ac_ext >&5
15997 ac_header_compiler=no
16000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16001 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16002 echo "${ECHO_T}$ac_header_compiler" >&6; }
16004 # Is the header present?
16005 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16006 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16007 cat >conftest.$ac_ext <<_ACEOF
16008 /* confdefs.h. */
16009 _ACEOF
16010 cat confdefs.h >>conftest.$ac_ext
16011 cat >>conftest.$ac_ext <<_ACEOF
16012 /* end confdefs.h. */
16013 #include <$ac_header>
16014 _ACEOF
16015 if { (ac_try="$ac_cpp conftest.$ac_ext"
16016 case "(($ac_try" in
16017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16018 *) ac_try_echo=$ac_try;;
16019 esac
16020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16021 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16022 ac_status=$?
16023 grep -v '^ *+' conftest.er1 >conftest.err
16024 rm -f conftest.er1
16025 cat conftest.err >&5
16026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16027 (exit $ac_status); } >/dev/null; then
16028 if test -s conftest.err; then
16029 ac_cpp_err=$ac_c_preproc_warn_flag
16030 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16031 else
16032 ac_cpp_err=
16034 else
16035 ac_cpp_err=yes
16037 if test -z "$ac_cpp_err"; then
16038 ac_header_preproc=yes
16039 else
16040 echo "$as_me: failed program was:" >&5
16041 sed 's/^/| /' conftest.$ac_ext >&5
16043 ac_header_preproc=no
16046 rm -f conftest.err conftest.$ac_ext
16047 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16048 echo "${ECHO_T}$ac_header_preproc" >&6; }
16050 # So? What about this header?
16051 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16052 yes:no: )
16053 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16054 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16056 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16057 ac_header_preproc=yes
16059 no:yes:* )
16060 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16061 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16062 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16063 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16064 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16065 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16066 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16067 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16068 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16069 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16070 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16071 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16072 ( cat <<\_ASBOX
16073 ## ----------------------------------- ##
16074 ## Report this to llvmbugs@cs.uiuc.edu ##
16075 ## ----------------------------------- ##
16076 _ASBOX
16077 ) | sed "s/^/$as_me: WARNING: /" >&2
16079 esac
16080 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16081 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16083 echo $ECHO_N "(cached) $ECHO_C" >&6
16084 else
16085 eval "$as_ac_Header=\$ac_header_preproc"
16087 ac_res=`eval echo '${'$as_ac_Header'}'`
16088 { echo "$as_me:$LINENO: result: $ac_res" >&5
16089 echo "${ECHO_T}$ac_res" >&6; }
16092 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16093 cat >>confdefs.h <<_ACEOF
16094 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16095 _ACEOF
16099 done
16103 for ac_header in utime.h windows.h
16105 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16106 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16107 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16108 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16109 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16110 echo $ECHO_N "(cached) $ECHO_C" >&6
16112 ac_res=`eval echo '${'$as_ac_Header'}'`
16113 { echo "$as_me:$LINENO: result: $ac_res" >&5
16114 echo "${ECHO_T}$ac_res" >&6; }
16115 else
16116 # Is the header compilable?
16117 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16118 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16119 cat >conftest.$ac_ext <<_ACEOF
16120 /* confdefs.h. */
16121 _ACEOF
16122 cat confdefs.h >>conftest.$ac_ext
16123 cat >>conftest.$ac_ext <<_ACEOF
16124 /* end confdefs.h. */
16125 $ac_includes_default
16126 #include <$ac_header>
16127 _ACEOF
16128 rm -f conftest.$ac_objext
16129 if { (ac_try="$ac_compile"
16130 case "(($ac_try" in
16131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16132 *) ac_try_echo=$ac_try;;
16133 esac
16134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16135 (eval "$ac_compile") 2>conftest.er1
16136 ac_status=$?
16137 grep -v '^ *+' conftest.er1 >conftest.err
16138 rm -f conftest.er1
16139 cat conftest.err >&5
16140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16141 (exit $ac_status); } &&
16142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16143 { (case "(($ac_try" in
16144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16145 *) ac_try_echo=$ac_try;;
16146 esac
16147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16148 (eval "$ac_try") 2>&5
16149 ac_status=$?
16150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16151 (exit $ac_status); }; } &&
16152 { ac_try='test -s conftest.$ac_objext'
16153 { (case "(($ac_try" in
16154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16155 *) ac_try_echo=$ac_try;;
16156 esac
16157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16158 (eval "$ac_try") 2>&5
16159 ac_status=$?
16160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16161 (exit $ac_status); }; }; then
16162 ac_header_compiler=yes
16163 else
16164 echo "$as_me: failed program was:" >&5
16165 sed 's/^/| /' conftest.$ac_ext >&5
16167 ac_header_compiler=no
16170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16171 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16172 echo "${ECHO_T}$ac_header_compiler" >&6; }
16174 # Is the header present?
16175 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16176 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16177 cat >conftest.$ac_ext <<_ACEOF
16178 /* confdefs.h. */
16179 _ACEOF
16180 cat confdefs.h >>conftest.$ac_ext
16181 cat >>conftest.$ac_ext <<_ACEOF
16182 /* end confdefs.h. */
16183 #include <$ac_header>
16184 _ACEOF
16185 if { (ac_try="$ac_cpp conftest.$ac_ext"
16186 case "(($ac_try" in
16187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16188 *) ac_try_echo=$ac_try;;
16189 esac
16190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16191 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16192 ac_status=$?
16193 grep -v '^ *+' conftest.er1 >conftest.err
16194 rm -f conftest.er1
16195 cat conftest.err >&5
16196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16197 (exit $ac_status); } >/dev/null; then
16198 if test -s conftest.err; then
16199 ac_cpp_err=$ac_c_preproc_warn_flag
16200 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16201 else
16202 ac_cpp_err=
16204 else
16205 ac_cpp_err=yes
16207 if test -z "$ac_cpp_err"; then
16208 ac_header_preproc=yes
16209 else
16210 echo "$as_me: failed program was:" >&5
16211 sed 's/^/| /' conftest.$ac_ext >&5
16213 ac_header_preproc=no
16216 rm -f conftest.err conftest.$ac_ext
16217 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16218 echo "${ECHO_T}$ac_header_preproc" >&6; }
16220 # So? What about this header?
16221 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16222 yes:no: )
16223 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16224 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16225 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16226 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16227 ac_header_preproc=yes
16229 no:yes:* )
16230 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16231 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16232 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16233 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16234 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16235 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16236 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16237 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16238 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16239 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16240 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16241 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16242 ( cat <<\_ASBOX
16243 ## ----------------------------------- ##
16244 ## Report this to llvmbugs@cs.uiuc.edu ##
16245 ## ----------------------------------- ##
16246 _ASBOX
16247 ) | sed "s/^/$as_me: WARNING: /" >&2
16249 esac
16250 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16251 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16253 echo $ECHO_N "(cached) $ECHO_C" >&6
16254 else
16255 eval "$as_ac_Header=\$ac_header_preproc"
16257 ac_res=`eval echo '${'$as_ac_Header'}'`
16258 { echo "$as_me:$LINENO: result: $ac_res" >&5
16259 echo "${ECHO_T}$ac_res" >&6; }
16262 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16263 cat >>confdefs.h <<_ACEOF
16264 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16265 _ACEOF
16269 done
16276 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
16278 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16279 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16280 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16281 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16282 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16283 echo $ECHO_N "(cached) $ECHO_C" >&6
16285 ac_res=`eval echo '${'$as_ac_Header'}'`
16286 { echo "$as_me:$LINENO: result: $ac_res" >&5
16287 echo "${ECHO_T}$ac_res" >&6; }
16288 else
16289 # Is the header compilable?
16290 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16291 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16292 cat >conftest.$ac_ext <<_ACEOF
16293 /* confdefs.h. */
16294 _ACEOF
16295 cat confdefs.h >>conftest.$ac_ext
16296 cat >>conftest.$ac_ext <<_ACEOF
16297 /* end confdefs.h. */
16298 $ac_includes_default
16299 #include <$ac_header>
16300 _ACEOF
16301 rm -f conftest.$ac_objext
16302 if { (ac_try="$ac_compile"
16303 case "(($ac_try" in
16304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16305 *) ac_try_echo=$ac_try;;
16306 esac
16307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16308 (eval "$ac_compile") 2>conftest.er1
16309 ac_status=$?
16310 grep -v '^ *+' conftest.er1 >conftest.err
16311 rm -f conftest.er1
16312 cat conftest.err >&5
16313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16314 (exit $ac_status); } &&
16315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16316 { (case "(($ac_try" in
16317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16318 *) ac_try_echo=$ac_try;;
16319 esac
16320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16321 (eval "$ac_try") 2>&5
16322 ac_status=$?
16323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16324 (exit $ac_status); }; } &&
16325 { ac_try='test -s conftest.$ac_objext'
16326 { (case "(($ac_try" in
16327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16328 *) ac_try_echo=$ac_try;;
16329 esac
16330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16331 (eval "$ac_try") 2>&5
16332 ac_status=$?
16333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16334 (exit $ac_status); }; }; then
16335 ac_header_compiler=yes
16336 else
16337 echo "$as_me: failed program was:" >&5
16338 sed 's/^/| /' conftest.$ac_ext >&5
16340 ac_header_compiler=no
16343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16344 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16345 echo "${ECHO_T}$ac_header_compiler" >&6; }
16347 # Is the header present?
16348 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16349 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16350 cat >conftest.$ac_ext <<_ACEOF
16351 /* confdefs.h. */
16352 _ACEOF
16353 cat confdefs.h >>conftest.$ac_ext
16354 cat >>conftest.$ac_ext <<_ACEOF
16355 /* end confdefs.h. */
16356 #include <$ac_header>
16357 _ACEOF
16358 if { (ac_try="$ac_cpp conftest.$ac_ext"
16359 case "(($ac_try" in
16360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16361 *) ac_try_echo=$ac_try;;
16362 esac
16363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16364 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16365 ac_status=$?
16366 grep -v '^ *+' conftest.er1 >conftest.err
16367 rm -f conftest.er1
16368 cat conftest.err >&5
16369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16370 (exit $ac_status); } >/dev/null; then
16371 if test -s conftest.err; then
16372 ac_cpp_err=$ac_c_preproc_warn_flag
16373 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16374 else
16375 ac_cpp_err=
16377 else
16378 ac_cpp_err=yes
16380 if test -z "$ac_cpp_err"; then
16381 ac_header_preproc=yes
16382 else
16383 echo "$as_me: failed program was:" >&5
16384 sed 's/^/| /' conftest.$ac_ext >&5
16386 ac_header_preproc=no
16389 rm -f conftest.err conftest.$ac_ext
16390 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16391 echo "${ECHO_T}$ac_header_preproc" >&6; }
16393 # So? What about this header?
16394 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16395 yes:no: )
16396 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16397 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16398 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16399 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16400 ac_header_preproc=yes
16402 no:yes:* )
16403 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16404 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16405 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16406 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16407 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16408 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16409 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16410 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16411 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16412 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16413 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16414 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16415 ( cat <<\_ASBOX
16416 ## ----------------------------------- ##
16417 ## Report this to llvmbugs@cs.uiuc.edu ##
16418 ## ----------------------------------- ##
16419 _ASBOX
16420 ) | sed "s/^/$as_me: WARNING: /" >&2
16422 esac
16423 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16425 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16426 echo $ECHO_N "(cached) $ECHO_C" >&6
16427 else
16428 eval "$as_ac_Header=\$ac_header_preproc"
16430 ac_res=`eval echo '${'$as_ac_Header'}'`
16431 { echo "$as_me:$LINENO: result: $ac_res" >&5
16432 echo "${ECHO_T}$ac_res" >&6; }
16435 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16436 cat >>confdefs.h <<_ACEOF
16437 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16438 _ACEOF
16442 done
16448 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
16450 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16451 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16452 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16454 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16455 echo $ECHO_N "(cached) $ECHO_C" >&6
16457 ac_res=`eval echo '${'$as_ac_Header'}'`
16458 { echo "$as_me:$LINENO: result: $ac_res" >&5
16459 echo "${ECHO_T}$ac_res" >&6; }
16460 else
16461 # Is the header compilable?
16462 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16463 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16464 cat >conftest.$ac_ext <<_ACEOF
16465 /* confdefs.h. */
16466 _ACEOF
16467 cat confdefs.h >>conftest.$ac_ext
16468 cat >>conftest.$ac_ext <<_ACEOF
16469 /* end confdefs.h. */
16470 $ac_includes_default
16471 #include <$ac_header>
16472 _ACEOF
16473 rm -f conftest.$ac_objext
16474 if { (ac_try="$ac_compile"
16475 case "(($ac_try" in
16476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16477 *) ac_try_echo=$ac_try;;
16478 esac
16479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16480 (eval "$ac_compile") 2>conftest.er1
16481 ac_status=$?
16482 grep -v '^ *+' conftest.er1 >conftest.err
16483 rm -f conftest.er1
16484 cat conftest.err >&5
16485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486 (exit $ac_status); } &&
16487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16488 { (case "(($ac_try" in
16489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16490 *) ac_try_echo=$ac_try;;
16491 esac
16492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16493 (eval "$ac_try") 2>&5
16494 ac_status=$?
16495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16496 (exit $ac_status); }; } &&
16497 { ac_try='test -s conftest.$ac_objext'
16498 { (case "(($ac_try" in
16499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16500 *) ac_try_echo=$ac_try;;
16501 esac
16502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16503 (eval "$ac_try") 2>&5
16504 ac_status=$?
16505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16506 (exit $ac_status); }; }; then
16507 ac_header_compiler=yes
16508 else
16509 echo "$as_me: failed program was:" >&5
16510 sed 's/^/| /' conftest.$ac_ext >&5
16512 ac_header_compiler=no
16515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16516 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16517 echo "${ECHO_T}$ac_header_compiler" >&6; }
16519 # Is the header present?
16520 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16521 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16522 cat >conftest.$ac_ext <<_ACEOF
16523 /* confdefs.h. */
16524 _ACEOF
16525 cat confdefs.h >>conftest.$ac_ext
16526 cat >>conftest.$ac_ext <<_ACEOF
16527 /* end confdefs.h. */
16528 #include <$ac_header>
16529 _ACEOF
16530 if { (ac_try="$ac_cpp conftest.$ac_ext"
16531 case "(($ac_try" in
16532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16533 *) ac_try_echo=$ac_try;;
16534 esac
16535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16536 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16537 ac_status=$?
16538 grep -v '^ *+' conftest.er1 >conftest.err
16539 rm -f conftest.er1
16540 cat conftest.err >&5
16541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16542 (exit $ac_status); } >/dev/null; then
16543 if test -s conftest.err; then
16544 ac_cpp_err=$ac_c_preproc_warn_flag
16545 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16546 else
16547 ac_cpp_err=
16549 else
16550 ac_cpp_err=yes
16552 if test -z "$ac_cpp_err"; then
16553 ac_header_preproc=yes
16554 else
16555 echo "$as_me: failed program was:" >&5
16556 sed 's/^/| /' conftest.$ac_ext >&5
16558 ac_header_preproc=no
16561 rm -f conftest.err conftest.$ac_ext
16562 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16563 echo "${ECHO_T}$ac_header_preproc" >&6; }
16565 # So? What about this header?
16566 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16567 yes:no: )
16568 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16569 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16570 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16571 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16572 ac_header_preproc=yes
16574 no:yes:* )
16575 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16576 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16577 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16578 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16579 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16580 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16581 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16582 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16583 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16584 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16585 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16586 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16587 ( cat <<\_ASBOX
16588 ## ----------------------------------- ##
16589 ## Report this to llvmbugs@cs.uiuc.edu ##
16590 ## ----------------------------------- ##
16591 _ASBOX
16592 ) | sed "s/^/$as_me: WARNING: /" >&2
16594 esac
16595 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16596 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16597 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16598 echo $ECHO_N "(cached) $ECHO_C" >&6
16599 else
16600 eval "$as_ac_Header=\$ac_header_preproc"
16602 ac_res=`eval echo '${'$as_ac_Header'}'`
16603 { echo "$as_me:$LINENO: result: $ac_res" >&5
16604 echo "${ECHO_T}$ac_res" >&6; }
16607 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16608 cat >>confdefs.h <<_ACEOF
16609 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16610 _ACEOF
16614 done
16617 for ac_header in valgrind/valgrind.h
16619 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16620 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16621 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16622 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16623 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16624 echo $ECHO_N "(cached) $ECHO_C" >&6
16626 ac_res=`eval echo '${'$as_ac_Header'}'`
16627 { echo "$as_me:$LINENO: result: $ac_res" >&5
16628 echo "${ECHO_T}$ac_res" >&6; }
16629 else
16630 # Is the header compilable?
16631 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16632 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16633 cat >conftest.$ac_ext <<_ACEOF
16634 /* confdefs.h. */
16635 _ACEOF
16636 cat confdefs.h >>conftest.$ac_ext
16637 cat >>conftest.$ac_ext <<_ACEOF
16638 /* end confdefs.h. */
16639 $ac_includes_default
16640 #include <$ac_header>
16641 _ACEOF
16642 rm -f conftest.$ac_objext
16643 if { (ac_try="$ac_compile"
16644 case "(($ac_try" in
16645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16646 *) ac_try_echo=$ac_try;;
16647 esac
16648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16649 (eval "$ac_compile") 2>conftest.er1
16650 ac_status=$?
16651 grep -v '^ *+' conftest.er1 >conftest.err
16652 rm -f conftest.er1
16653 cat conftest.err >&5
16654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16655 (exit $ac_status); } &&
16656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16657 { (case "(($ac_try" in
16658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16659 *) ac_try_echo=$ac_try;;
16660 esac
16661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16662 (eval "$ac_try") 2>&5
16663 ac_status=$?
16664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16665 (exit $ac_status); }; } &&
16666 { ac_try='test -s conftest.$ac_objext'
16667 { (case "(($ac_try" in
16668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16669 *) ac_try_echo=$ac_try;;
16670 esac
16671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16672 (eval "$ac_try") 2>&5
16673 ac_status=$?
16674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675 (exit $ac_status); }; }; then
16676 ac_header_compiler=yes
16677 else
16678 echo "$as_me: failed program was:" >&5
16679 sed 's/^/| /' conftest.$ac_ext >&5
16681 ac_header_compiler=no
16684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16685 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16686 echo "${ECHO_T}$ac_header_compiler" >&6; }
16688 # Is the header present?
16689 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16690 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16691 cat >conftest.$ac_ext <<_ACEOF
16692 /* confdefs.h. */
16693 _ACEOF
16694 cat confdefs.h >>conftest.$ac_ext
16695 cat >>conftest.$ac_ext <<_ACEOF
16696 /* end confdefs.h. */
16697 #include <$ac_header>
16698 _ACEOF
16699 if { (ac_try="$ac_cpp conftest.$ac_ext"
16700 case "(($ac_try" in
16701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16702 *) ac_try_echo=$ac_try;;
16703 esac
16704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16705 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16706 ac_status=$?
16707 grep -v '^ *+' conftest.er1 >conftest.err
16708 rm -f conftest.er1
16709 cat conftest.err >&5
16710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16711 (exit $ac_status); } >/dev/null; then
16712 if test -s conftest.err; then
16713 ac_cpp_err=$ac_c_preproc_warn_flag
16714 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16715 else
16716 ac_cpp_err=
16718 else
16719 ac_cpp_err=yes
16721 if test -z "$ac_cpp_err"; then
16722 ac_header_preproc=yes
16723 else
16724 echo "$as_me: failed program was:" >&5
16725 sed 's/^/| /' conftest.$ac_ext >&5
16727 ac_header_preproc=no
16730 rm -f conftest.err conftest.$ac_ext
16731 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16732 echo "${ECHO_T}$ac_header_preproc" >&6; }
16734 # So? What about this header?
16735 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16736 yes:no: )
16737 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16738 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16739 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16740 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16741 ac_header_preproc=yes
16743 no:yes:* )
16744 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16745 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16746 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16747 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16748 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16749 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16750 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16751 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16752 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16753 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16754 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16755 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16756 ( cat <<\_ASBOX
16757 ## ----------------------------------- ##
16758 ## Report this to llvmbugs@cs.uiuc.edu ##
16759 ## ----------------------------------- ##
16760 _ASBOX
16761 ) | sed "s/^/$as_me: WARNING: /" >&2
16763 esac
16764 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16766 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16767 echo $ECHO_N "(cached) $ECHO_C" >&6
16768 else
16769 eval "$as_ac_Header=\$ac_header_preproc"
16771 ac_res=`eval echo '${'$as_ac_Header'}'`
16772 { echo "$as_me:$LINENO: result: $ac_res" >&5
16773 echo "${ECHO_T}$ac_res" >&6; }
16776 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16777 cat >>confdefs.h <<_ACEOF
16778 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16779 _ACEOF
16783 done
16786 for ac_header in fenv.h
16788 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16789 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16790 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16792 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16793 echo $ECHO_N "(cached) $ECHO_C" >&6
16795 ac_res=`eval echo '${'$as_ac_Header'}'`
16796 { echo "$as_me:$LINENO: result: $ac_res" >&5
16797 echo "${ECHO_T}$ac_res" >&6; }
16798 else
16799 # Is the header compilable?
16800 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16801 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16802 cat >conftest.$ac_ext <<_ACEOF
16803 /* confdefs.h. */
16804 _ACEOF
16805 cat confdefs.h >>conftest.$ac_ext
16806 cat >>conftest.$ac_ext <<_ACEOF
16807 /* end confdefs.h. */
16808 $ac_includes_default
16809 #include <$ac_header>
16810 _ACEOF
16811 rm -f conftest.$ac_objext
16812 if { (ac_try="$ac_compile"
16813 case "(($ac_try" in
16814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16815 *) ac_try_echo=$ac_try;;
16816 esac
16817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16818 (eval "$ac_compile") 2>conftest.er1
16819 ac_status=$?
16820 grep -v '^ *+' conftest.er1 >conftest.err
16821 rm -f conftest.er1
16822 cat conftest.err >&5
16823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16824 (exit $ac_status); } &&
16825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16826 { (case "(($ac_try" in
16827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16828 *) ac_try_echo=$ac_try;;
16829 esac
16830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16831 (eval "$ac_try") 2>&5
16832 ac_status=$?
16833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834 (exit $ac_status); }; } &&
16835 { ac_try='test -s conftest.$ac_objext'
16836 { (case "(($ac_try" in
16837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16838 *) ac_try_echo=$ac_try;;
16839 esac
16840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16841 (eval "$ac_try") 2>&5
16842 ac_status=$?
16843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16844 (exit $ac_status); }; }; then
16845 ac_header_compiler=yes
16846 else
16847 echo "$as_me: failed program was:" >&5
16848 sed 's/^/| /' conftest.$ac_ext >&5
16850 ac_header_compiler=no
16853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16854 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16855 echo "${ECHO_T}$ac_header_compiler" >&6; }
16857 # Is the header present?
16858 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16859 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16860 cat >conftest.$ac_ext <<_ACEOF
16861 /* confdefs.h. */
16862 _ACEOF
16863 cat confdefs.h >>conftest.$ac_ext
16864 cat >>conftest.$ac_ext <<_ACEOF
16865 /* end confdefs.h. */
16866 #include <$ac_header>
16867 _ACEOF
16868 if { (ac_try="$ac_cpp conftest.$ac_ext"
16869 case "(($ac_try" in
16870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16871 *) ac_try_echo=$ac_try;;
16872 esac
16873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16874 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16875 ac_status=$?
16876 grep -v '^ *+' conftest.er1 >conftest.err
16877 rm -f conftest.er1
16878 cat conftest.err >&5
16879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16880 (exit $ac_status); } >/dev/null; then
16881 if test -s conftest.err; then
16882 ac_cpp_err=$ac_c_preproc_warn_flag
16883 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16884 else
16885 ac_cpp_err=
16887 else
16888 ac_cpp_err=yes
16890 if test -z "$ac_cpp_err"; then
16891 ac_header_preproc=yes
16892 else
16893 echo "$as_me: failed program was:" >&5
16894 sed 's/^/| /' conftest.$ac_ext >&5
16896 ac_header_preproc=no
16899 rm -f conftest.err conftest.$ac_ext
16900 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16901 echo "${ECHO_T}$ac_header_preproc" >&6; }
16903 # So? What about this header?
16904 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16905 yes:no: )
16906 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16907 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16909 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16910 ac_header_preproc=yes
16912 no:yes:* )
16913 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16914 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16915 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16916 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16917 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16918 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16919 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16920 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16921 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16922 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16923 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16924 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16925 ( cat <<\_ASBOX
16926 ## ----------------------------------- ##
16927 ## Report this to llvmbugs@cs.uiuc.edu ##
16928 ## ----------------------------------- ##
16929 _ASBOX
16930 ) | sed "s/^/$as_me: WARNING: /" >&2
16932 esac
16933 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16935 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16936 echo $ECHO_N "(cached) $ECHO_C" >&6
16937 else
16938 eval "$as_ac_Header=\$ac_header_preproc"
16940 ac_res=`eval echo '${'$as_ac_Header'}'`
16941 { echo "$as_me:$LINENO: result: $ac_res" >&5
16942 echo "${ECHO_T}$ac_res" >&6; }
16945 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16946 cat >>confdefs.h <<_ACEOF
16947 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16948 _ACEOF
16952 done
16954 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
16956 for ac_header in pthread.h
16958 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16959 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16960 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16961 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16962 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16963 echo $ECHO_N "(cached) $ECHO_C" >&6
16965 ac_res=`eval echo '${'$as_ac_Header'}'`
16966 { echo "$as_me:$LINENO: result: $ac_res" >&5
16967 echo "${ECHO_T}$ac_res" >&6; }
16968 else
16969 # Is the header compilable?
16970 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16971 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16972 cat >conftest.$ac_ext <<_ACEOF
16973 /* confdefs.h. */
16974 _ACEOF
16975 cat confdefs.h >>conftest.$ac_ext
16976 cat >>conftest.$ac_ext <<_ACEOF
16977 /* end confdefs.h. */
16978 $ac_includes_default
16979 #include <$ac_header>
16980 _ACEOF
16981 rm -f conftest.$ac_objext
16982 if { (ac_try="$ac_compile"
16983 case "(($ac_try" in
16984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16985 *) ac_try_echo=$ac_try;;
16986 esac
16987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16988 (eval "$ac_compile") 2>conftest.er1
16989 ac_status=$?
16990 grep -v '^ *+' conftest.er1 >conftest.err
16991 rm -f conftest.er1
16992 cat conftest.err >&5
16993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16994 (exit $ac_status); } &&
16995 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16996 { (case "(($ac_try" in
16997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16998 *) ac_try_echo=$ac_try;;
16999 esac
17000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17001 (eval "$ac_try") 2>&5
17002 ac_status=$?
17003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17004 (exit $ac_status); }; } &&
17005 { ac_try='test -s conftest.$ac_objext'
17006 { (case "(($ac_try" in
17007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17008 *) ac_try_echo=$ac_try;;
17009 esac
17010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17011 (eval "$ac_try") 2>&5
17012 ac_status=$?
17013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014 (exit $ac_status); }; }; then
17015 ac_header_compiler=yes
17016 else
17017 echo "$as_me: failed program was:" >&5
17018 sed 's/^/| /' conftest.$ac_ext >&5
17020 ac_header_compiler=no
17023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17024 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17025 echo "${ECHO_T}$ac_header_compiler" >&6; }
17027 # Is the header present?
17028 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17029 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17030 cat >conftest.$ac_ext <<_ACEOF
17031 /* confdefs.h. */
17032 _ACEOF
17033 cat confdefs.h >>conftest.$ac_ext
17034 cat >>conftest.$ac_ext <<_ACEOF
17035 /* end confdefs.h. */
17036 #include <$ac_header>
17037 _ACEOF
17038 if { (ac_try="$ac_cpp conftest.$ac_ext"
17039 case "(($ac_try" in
17040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17041 *) ac_try_echo=$ac_try;;
17042 esac
17043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17044 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17045 ac_status=$?
17046 grep -v '^ *+' conftest.er1 >conftest.err
17047 rm -f conftest.er1
17048 cat conftest.err >&5
17049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17050 (exit $ac_status); } >/dev/null; then
17051 if test -s conftest.err; then
17052 ac_cpp_err=$ac_c_preproc_warn_flag
17053 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17054 else
17055 ac_cpp_err=
17057 else
17058 ac_cpp_err=yes
17060 if test -z "$ac_cpp_err"; then
17061 ac_header_preproc=yes
17062 else
17063 echo "$as_me: failed program was:" >&5
17064 sed 's/^/| /' conftest.$ac_ext >&5
17066 ac_header_preproc=no
17069 rm -f conftest.err conftest.$ac_ext
17070 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17071 echo "${ECHO_T}$ac_header_preproc" >&6; }
17073 # So? What about this header?
17074 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17075 yes:no: )
17076 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17077 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17078 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17079 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17080 ac_header_preproc=yes
17082 no:yes:* )
17083 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17084 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17085 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17086 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17087 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17088 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17089 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17090 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17091 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17092 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17093 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17094 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17095 ( cat <<\_ASBOX
17096 ## ----------------------------------- ##
17097 ## Report this to llvmbugs@cs.uiuc.edu ##
17098 ## ----------------------------------- ##
17099 _ASBOX
17100 ) | sed "s/^/$as_me: WARNING: /" >&2
17102 esac
17103 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17106 echo $ECHO_N "(cached) $ECHO_C" >&6
17107 else
17108 eval "$as_ac_Header=\$ac_header_preproc"
17110 ac_res=`eval echo '${'$as_ac_Header'}'`
17111 { echo "$as_me:$LINENO: result: $ac_res" >&5
17112 echo "${ECHO_T}$ac_res" >&6; }
17115 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17116 cat >>confdefs.h <<_ACEOF
17117 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17118 _ACEOF
17119 HAVE_PTHREAD=1
17121 else
17122 HAVE_PTHREAD=0
17126 done
17128 else
17129 HAVE_PTHREAD=0
17133 if test "$llvm_cv_enable_libffi" = "yes" ; then
17136 for ac_header in ffi.h ffi/ffi.h
17138 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17139 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17140 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17141 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17142 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17143 echo $ECHO_N "(cached) $ECHO_C" >&6
17145 ac_res=`eval echo '${'$as_ac_Header'}'`
17146 { echo "$as_me:$LINENO: result: $ac_res" >&5
17147 echo "${ECHO_T}$ac_res" >&6; }
17148 else
17149 # Is the header compilable?
17150 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17151 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17152 cat >conftest.$ac_ext <<_ACEOF
17153 /* confdefs.h. */
17154 _ACEOF
17155 cat confdefs.h >>conftest.$ac_ext
17156 cat >>conftest.$ac_ext <<_ACEOF
17157 /* end confdefs.h. */
17158 $ac_includes_default
17159 #include <$ac_header>
17160 _ACEOF
17161 rm -f conftest.$ac_objext
17162 if { (ac_try="$ac_compile"
17163 case "(($ac_try" in
17164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17165 *) ac_try_echo=$ac_try;;
17166 esac
17167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17168 (eval "$ac_compile") 2>conftest.er1
17169 ac_status=$?
17170 grep -v '^ *+' conftest.er1 >conftest.err
17171 rm -f conftest.er1
17172 cat conftest.err >&5
17173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17174 (exit $ac_status); } &&
17175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17176 { (case "(($ac_try" in
17177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17178 *) ac_try_echo=$ac_try;;
17179 esac
17180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17181 (eval "$ac_try") 2>&5
17182 ac_status=$?
17183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17184 (exit $ac_status); }; } &&
17185 { ac_try='test -s conftest.$ac_objext'
17186 { (case "(($ac_try" in
17187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17188 *) ac_try_echo=$ac_try;;
17189 esac
17190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17191 (eval "$ac_try") 2>&5
17192 ac_status=$?
17193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17194 (exit $ac_status); }; }; then
17195 ac_header_compiler=yes
17196 else
17197 echo "$as_me: failed program was:" >&5
17198 sed 's/^/| /' conftest.$ac_ext >&5
17200 ac_header_compiler=no
17203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17204 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17205 echo "${ECHO_T}$ac_header_compiler" >&6; }
17207 # Is the header present?
17208 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17209 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17210 cat >conftest.$ac_ext <<_ACEOF
17211 /* confdefs.h. */
17212 _ACEOF
17213 cat confdefs.h >>conftest.$ac_ext
17214 cat >>conftest.$ac_ext <<_ACEOF
17215 /* end confdefs.h. */
17216 #include <$ac_header>
17217 _ACEOF
17218 if { (ac_try="$ac_cpp conftest.$ac_ext"
17219 case "(($ac_try" in
17220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17221 *) ac_try_echo=$ac_try;;
17222 esac
17223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17224 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17225 ac_status=$?
17226 grep -v '^ *+' conftest.er1 >conftest.err
17227 rm -f conftest.er1
17228 cat conftest.err >&5
17229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17230 (exit $ac_status); } >/dev/null; then
17231 if test -s conftest.err; then
17232 ac_cpp_err=$ac_c_preproc_warn_flag
17233 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17234 else
17235 ac_cpp_err=
17237 else
17238 ac_cpp_err=yes
17240 if test -z "$ac_cpp_err"; then
17241 ac_header_preproc=yes
17242 else
17243 echo "$as_me: failed program was:" >&5
17244 sed 's/^/| /' conftest.$ac_ext >&5
17246 ac_header_preproc=no
17249 rm -f conftest.err conftest.$ac_ext
17250 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17251 echo "${ECHO_T}$ac_header_preproc" >&6; }
17253 # So? What about this header?
17254 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17255 yes:no: )
17256 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17257 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17258 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17259 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17260 ac_header_preproc=yes
17262 no:yes:* )
17263 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17264 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17265 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17266 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17267 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17268 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17269 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17270 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17271 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17272 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17273 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17274 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17275 ( cat <<\_ASBOX
17276 ## ----------------------------------- ##
17277 ## Report this to llvmbugs@cs.uiuc.edu ##
17278 ## ----------------------------------- ##
17279 _ASBOX
17280 ) | sed "s/^/$as_me: WARNING: /" >&2
17282 esac
17283 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17284 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17285 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17286 echo $ECHO_N "(cached) $ECHO_C" >&6
17287 else
17288 eval "$as_ac_Header=\$ac_header_preproc"
17290 ac_res=`eval echo '${'$as_ac_Header'}'`
17291 { echo "$as_me:$LINENO: result: $ac_res" >&5
17292 echo "${ECHO_T}$ac_res" >&6; }
17295 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17296 cat >>confdefs.h <<_ACEOF
17297 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17298 _ACEOF
17302 done
17307 for ac_header in CrashReporterClient.h
17309 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17310 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17311 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17313 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17314 echo $ECHO_N "(cached) $ECHO_C" >&6
17316 ac_res=`eval echo '${'$as_ac_Header'}'`
17317 { echo "$as_me:$LINENO: result: $ac_res" >&5
17318 echo "${ECHO_T}$ac_res" >&6; }
17319 else
17320 # Is the header compilable?
17321 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17322 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17323 cat >conftest.$ac_ext <<_ACEOF
17324 /* confdefs.h. */
17325 _ACEOF
17326 cat confdefs.h >>conftest.$ac_ext
17327 cat >>conftest.$ac_ext <<_ACEOF
17328 /* end confdefs.h. */
17329 $ac_includes_default
17330 #include <$ac_header>
17331 _ACEOF
17332 rm -f conftest.$ac_objext
17333 if { (ac_try="$ac_compile"
17334 case "(($ac_try" in
17335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17336 *) ac_try_echo=$ac_try;;
17337 esac
17338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17339 (eval "$ac_compile") 2>conftest.er1
17340 ac_status=$?
17341 grep -v '^ *+' conftest.er1 >conftest.err
17342 rm -f conftest.er1
17343 cat conftest.err >&5
17344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17345 (exit $ac_status); } &&
17346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17347 { (case "(($ac_try" in
17348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17349 *) ac_try_echo=$ac_try;;
17350 esac
17351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17352 (eval "$ac_try") 2>&5
17353 ac_status=$?
17354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17355 (exit $ac_status); }; } &&
17356 { ac_try='test -s conftest.$ac_objext'
17357 { (case "(($ac_try" in
17358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17359 *) ac_try_echo=$ac_try;;
17360 esac
17361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17362 (eval "$ac_try") 2>&5
17363 ac_status=$?
17364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17365 (exit $ac_status); }; }; then
17366 ac_header_compiler=yes
17367 else
17368 echo "$as_me: failed program was:" >&5
17369 sed 's/^/| /' conftest.$ac_ext >&5
17371 ac_header_compiler=no
17374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17375 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17376 echo "${ECHO_T}$ac_header_compiler" >&6; }
17378 # Is the header present?
17379 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17380 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17381 cat >conftest.$ac_ext <<_ACEOF
17382 /* confdefs.h. */
17383 _ACEOF
17384 cat confdefs.h >>conftest.$ac_ext
17385 cat >>conftest.$ac_ext <<_ACEOF
17386 /* end confdefs.h. */
17387 #include <$ac_header>
17388 _ACEOF
17389 if { (ac_try="$ac_cpp conftest.$ac_ext"
17390 case "(($ac_try" in
17391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17392 *) ac_try_echo=$ac_try;;
17393 esac
17394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17395 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17396 ac_status=$?
17397 grep -v '^ *+' conftest.er1 >conftest.err
17398 rm -f conftest.er1
17399 cat conftest.err >&5
17400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17401 (exit $ac_status); } >/dev/null; then
17402 if test -s conftest.err; then
17403 ac_cpp_err=$ac_c_preproc_warn_flag
17404 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17405 else
17406 ac_cpp_err=
17408 else
17409 ac_cpp_err=yes
17411 if test -z "$ac_cpp_err"; then
17412 ac_header_preproc=yes
17413 else
17414 echo "$as_me: failed program was:" >&5
17415 sed 's/^/| /' conftest.$ac_ext >&5
17417 ac_header_preproc=no
17420 rm -f conftest.err conftest.$ac_ext
17421 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17422 echo "${ECHO_T}$ac_header_preproc" >&6; }
17424 # So? What about this header?
17425 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17426 yes:no: )
17427 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17428 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17429 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17430 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17431 ac_header_preproc=yes
17433 no:yes:* )
17434 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17435 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17436 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17437 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17438 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17439 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17440 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17441 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17442 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17443 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17444 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17445 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17446 ( cat <<\_ASBOX
17447 ## ----------------------------------- ##
17448 ## Report this to llvmbugs@cs.uiuc.edu ##
17449 ## ----------------------------------- ##
17450 _ASBOX
17451 ) | sed "s/^/$as_me: WARNING: /" >&2
17453 esac
17454 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17456 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17457 echo $ECHO_N "(cached) $ECHO_C" >&6
17458 else
17459 eval "$as_ac_Header=\$ac_header_preproc"
17461 ac_res=`eval echo '${'$as_ac_Header'}'`
17462 { echo "$as_me:$LINENO: result: $ac_res" >&5
17463 echo "${ECHO_T}$ac_res" >&6; }
17466 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17467 cat >>confdefs.h <<_ACEOF
17468 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17469 _ACEOF
17473 done
17476 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
17477 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
17478 cat >conftest.$ac_ext <<_ACEOF
17479 /* confdefs.h. */
17480 _ACEOF
17481 cat confdefs.h >>conftest.$ac_ext
17482 cat >>conftest.$ac_ext <<_ACEOF
17483 /* end confdefs.h. */
17484 extern const char *__crashreporter_info__;
17485 int main() {
17486 __crashreporter_info__ = "test";
17487 return 0;
17490 _ACEOF
17491 rm -f conftest.$ac_objext conftest$ac_exeext
17492 if { (ac_try="$ac_link"
17493 case "(($ac_try" in
17494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17495 *) ac_try_echo=$ac_try;;
17496 esac
17497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17498 (eval "$ac_link") 2>conftest.er1
17499 ac_status=$?
17500 grep -v '^ *+' conftest.er1 >conftest.err
17501 rm -f conftest.er1
17502 cat conftest.err >&5
17503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17504 (exit $ac_status); } &&
17505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17506 { (case "(($ac_try" in
17507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17508 *) ac_try_echo=$ac_try;;
17509 esac
17510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17511 (eval "$ac_try") 2>&5
17512 ac_status=$?
17513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17514 (exit $ac_status); }; } &&
17515 { ac_try='test -s conftest$ac_exeext'
17516 { (case "(($ac_try" in
17517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17518 *) ac_try_echo=$ac_try;;
17519 esac
17520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17521 (eval "$ac_try") 2>&5
17522 ac_status=$?
17523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17524 (exit $ac_status); }; }; then
17525 { echo "$as_me:$LINENO: result: yes" >&5
17526 echo "${ECHO_T}yes" >&6; }
17528 cat >>confdefs.h <<\_ACEOF
17529 #define HAVE_CRASHREPORTER_INFO 1
17530 _ACEOF
17532 else
17533 echo "$as_me: failed program was:" >&5
17534 sed 's/^/| /' conftest.$ac_ext >&5
17536 { echo "$as_me:$LINENO: result: no" >&5
17537 echo "${ECHO_T}no" >&6; }
17539 cat >>confdefs.h <<\_ACEOF
17540 #define HAVE_CRASHREPORTER_INFO 0
17541 _ACEOF
17545 rm -f core conftest.err conftest.$ac_objext \
17546 conftest$ac_exeext conftest.$ac_ext
17551 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17552 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17553 if test "${ac_cv_huge_val_sanity+set}" = set; then
17554 echo $ECHO_N "(cached) $ECHO_C" >&6
17555 else
17557 ac_ext=cpp
17558 ac_cpp='$CXXCPP $CPPFLAGS'
17559 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17560 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17561 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17563 ac_save_CXXFLAGS=$CXXFLAGS
17564 CXXFLAGS=-pedantic
17565 if test "$cross_compiling" = yes; then
17566 ac_cv_huge_val_sanity=yes
17567 else
17568 cat >conftest.$ac_ext <<_ACEOF
17569 /* confdefs.h. */
17570 _ACEOF
17571 cat confdefs.h >>conftest.$ac_ext
17572 cat >>conftest.$ac_ext <<_ACEOF
17573 /* end confdefs.h. */
17574 #include <math.h>
17576 main ()
17578 double x = HUGE_VAL; return x != x;
17580 return 0;
17582 _ACEOF
17583 rm -f conftest$ac_exeext
17584 if { (ac_try="$ac_link"
17585 case "(($ac_try" in
17586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17587 *) ac_try_echo=$ac_try;;
17588 esac
17589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17590 (eval "$ac_link") 2>&5
17591 ac_status=$?
17592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17593 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17594 { (case "(($ac_try" in
17595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17596 *) ac_try_echo=$ac_try;;
17597 esac
17598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17599 (eval "$ac_try") 2>&5
17600 ac_status=$?
17601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17602 (exit $ac_status); }; }; then
17603 ac_cv_huge_val_sanity=yes
17604 else
17605 echo "$as_me: program exited with status $ac_status" >&5
17606 echo "$as_me: failed program was:" >&5
17607 sed 's/^/| /' conftest.$ac_ext >&5
17609 ( exit $ac_status )
17610 ac_cv_huge_val_sanity=no
17612 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17616 CXXFLAGS=$ac_save_CXXFLAGS
17617 ac_ext=c
17618 ac_cpp='$CPP $CPPFLAGS'
17619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17625 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17626 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17627 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17630 { echo "$as_me:$LINENO: checking for pid_t" >&5
17631 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17632 if test "${ac_cv_type_pid_t+set}" = set; then
17633 echo $ECHO_N "(cached) $ECHO_C" >&6
17634 else
17635 cat >conftest.$ac_ext <<_ACEOF
17636 /* confdefs.h. */
17637 _ACEOF
17638 cat confdefs.h >>conftest.$ac_ext
17639 cat >>conftest.$ac_ext <<_ACEOF
17640 /* end confdefs.h. */
17641 $ac_includes_default
17642 typedef pid_t ac__type_new_;
17644 main ()
17646 if ((ac__type_new_ *) 0)
17647 return 0;
17648 if (sizeof (ac__type_new_))
17649 return 0;
17651 return 0;
17653 _ACEOF
17654 rm -f conftest.$ac_objext
17655 if { (ac_try="$ac_compile"
17656 case "(($ac_try" in
17657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17658 *) ac_try_echo=$ac_try;;
17659 esac
17660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17661 (eval "$ac_compile") 2>conftest.er1
17662 ac_status=$?
17663 grep -v '^ *+' conftest.er1 >conftest.err
17664 rm -f conftest.er1
17665 cat conftest.err >&5
17666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17667 (exit $ac_status); } &&
17668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17669 { (case "(($ac_try" in
17670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17671 *) ac_try_echo=$ac_try;;
17672 esac
17673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17674 (eval "$ac_try") 2>&5
17675 ac_status=$?
17676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17677 (exit $ac_status); }; } &&
17678 { ac_try='test -s conftest.$ac_objext'
17679 { (case "(($ac_try" in
17680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17681 *) ac_try_echo=$ac_try;;
17682 esac
17683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17684 (eval "$ac_try") 2>&5
17685 ac_status=$?
17686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17687 (exit $ac_status); }; }; then
17688 ac_cv_type_pid_t=yes
17689 else
17690 echo "$as_me: failed program was:" >&5
17691 sed 's/^/| /' conftest.$ac_ext >&5
17693 ac_cv_type_pid_t=no
17696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17698 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17699 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17700 if test $ac_cv_type_pid_t = yes; then
17702 else
17704 cat >>confdefs.h <<_ACEOF
17705 #define pid_t int
17706 _ACEOF
17710 { echo "$as_me:$LINENO: checking for size_t" >&5
17711 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17712 if test "${ac_cv_type_size_t+set}" = set; then
17713 echo $ECHO_N "(cached) $ECHO_C" >&6
17714 else
17715 cat >conftest.$ac_ext <<_ACEOF
17716 /* confdefs.h. */
17717 _ACEOF
17718 cat confdefs.h >>conftest.$ac_ext
17719 cat >>conftest.$ac_ext <<_ACEOF
17720 /* end confdefs.h. */
17721 $ac_includes_default
17722 typedef size_t ac__type_new_;
17724 main ()
17726 if ((ac__type_new_ *) 0)
17727 return 0;
17728 if (sizeof (ac__type_new_))
17729 return 0;
17731 return 0;
17733 _ACEOF
17734 rm -f conftest.$ac_objext
17735 if { (ac_try="$ac_compile"
17736 case "(($ac_try" in
17737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17738 *) ac_try_echo=$ac_try;;
17739 esac
17740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17741 (eval "$ac_compile") 2>conftest.er1
17742 ac_status=$?
17743 grep -v '^ *+' conftest.er1 >conftest.err
17744 rm -f conftest.er1
17745 cat conftest.err >&5
17746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17747 (exit $ac_status); } &&
17748 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17749 { (case "(($ac_try" in
17750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17751 *) ac_try_echo=$ac_try;;
17752 esac
17753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17754 (eval "$ac_try") 2>&5
17755 ac_status=$?
17756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757 (exit $ac_status); }; } &&
17758 { ac_try='test -s conftest.$ac_objext'
17759 { (case "(($ac_try" in
17760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17761 *) ac_try_echo=$ac_try;;
17762 esac
17763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17764 (eval "$ac_try") 2>&5
17765 ac_status=$?
17766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17767 (exit $ac_status); }; }; then
17768 ac_cv_type_size_t=yes
17769 else
17770 echo "$as_me: failed program was:" >&5
17771 sed 's/^/| /' conftest.$ac_ext >&5
17773 ac_cv_type_size_t=no
17776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17778 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17779 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17780 if test $ac_cv_type_size_t = yes; then
17782 else
17784 cat >>confdefs.h <<_ACEOF
17785 #define size_t unsigned int
17786 _ACEOF
17791 cat >>confdefs.h <<_ACEOF
17792 #define RETSIGTYPE void
17793 _ACEOF
17795 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17796 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17797 if test "${ac_cv_struct_tm+set}" = set; then
17798 echo $ECHO_N "(cached) $ECHO_C" >&6
17799 else
17800 cat >conftest.$ac_ext <<_ACEOF
17801 /* confdefs.h. */
17802 _ACEOF
17803 cat confdefs.h >>conftest.$ac_ext
17804 cat >>conftest.$ac_ext <<_ACEOF
17805 /* end confdefs.h. */
17806 #include <sys/types.h>
17807 #include <time.h>
17810 main ()
17812 struct tm *tp; tp->tm_sec;
17814 return 0;
17816 _ACEOF
17817 rm -f conftest.$ac_objext
17818 if { (ac_try="$ac_compile"
17819 case "(($ac_try" in
17820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17821 *) ac_try_echo=$ac_try;;
17822 esac
17823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17824 (eval "$ac_compile") 2>conftest.er1
17825 ac_status=$?
17826 grep -v '^ *+' conftest.er1 >conftest.err
17827 rm -f conftest.er1
17828 cat conftest.err >&5
17829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17830 (exit $ac_status); } &&
17831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17832 { (case "(($ac_try" in
17833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17834 *) ac_try_echo=$ac_try;;
17835 esac
17836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17837 (eval "$ac_try") 2>&5
17838 ac_status=$?
17839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17840 (exit $ac_status); }; } &&
17841 { ac_try='test -s conftest.$ac_objext'
17842 { (case "(($ac_try" in
17843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17844 *) ac_try_echo=$ac_try;;
17845 esac
17846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17847 (eval "$ac_try") 2>&5
17848 ac_status=$?
17849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17850 (exit $ac_status); }; }; then
17851 ac_cv_struct_tm=time.h
17852 else
17853 echo "$as_me: failed program was:" >&5
17854 sed 's/^/| /' conftest.$ac_ext >&5
17856 ac_cv_struct_tm=sys/time.h
17859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17861 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17862 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17863 if test $ac_cv_struct_tm = sys/time.h; then
17865 cat >>confdefs.h <<\_ACEOF
17866 #define TM_IN_SYS_TIME 1
17867 _ACEOF
17871 { echo "$as_me:$LINENO: checking for int64_t" >&5
17872 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17873 if test "${ac_cv_type_int64_t+set}" = set; then
17874 echo $ECHO_N "(cached) $ECHO_C" >&6
17875 else
17876 cat >conftest.$ac_ext <<_ACEOF
17877 /* confdefs.h. */
17878 _ACEOF
17879 cat confdefs.h >>conftest.$ac_ext
17880 cat >>conftest.$ac_ext <<_ACEOF
17881 /* end confdefs.h. */
17882 $ac_includes_default
17883 typedef int64_t ac__type_new_;
17885 main ()
17887 if ((ac__type_new_ *) 0)
17888 return 0;
17889 if (sizeof (ac__type_new_))
17890 return 0;
17892 return 0;
17894 _ACEOF
17895 rm -f conftest.$ac_objext
17896 if { (ac_try="$ac_compile"
17897 case "(($ac_try" in
17898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17899 *) ac_try_echo=$ac_try;;
17900 esac
17901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17902 (eval "$ac_compile") 2>conftest.er1
17903 ac_status=$?
17904 grep -v '^ *+' conftest.er1 >conftest.err
17905 rm -f conftest.er1
17906 cat conftest.err >&5
17907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908 (exit $ac_status); } &&
17909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17910 { (case "(($ac_try" in
17911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17912 *) ac_try_echo=$ac_try;;
17913 esac
17914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17915 (eval "$ac_try") 2>&5
17916 ac_status=$?
17917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17918 (exit $ac_status); }; } &&
17919 { ac_try='test -s conftest.$ac_objext'
17920 { (case "(($ac_try" in
17921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17922 *) ac_try_echo=$ac_try;;
17923 esac
17924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17925 (eval "$ac_try") 2>&5
17926 ac_status=$?
17927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17928 (exit $ac_status); }; }; then
17929 ac_cv_type_int64_t=yes
17930 else
17931 echo "$as_me: failed program was:" >&5
17932 sed 's/^/| /' conftest.$ac_ext >&5
17934 ac_cv_type_int64_t=no
17937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17939 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17940 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17941 if test $ac_cv_type_int64_t = yes; then
17943 cat >>confdefs.h <<_ACEOF
17944 #define HAVE_INT64_T 1
17945 _ACEOF
17948 else
17949 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17950 echo "$as_me: error: Type int64_t required but not found" >&2;}
17951 { (exit 1); exit 1; }; }
17954 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17955 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17956 if test "${ac_cv_type_uint64_t+set}" = set; then
17957 echo $ECHO_N "(cached) $ECHO_C" >&6
17958 else
17959 cat >conftest.$ac_ext <<_ACEOF
17960 /* confdefs.h. */
17961 _ACEOF
17962 cat confdefs.h >>conftest.$ac_ext
17963 cat >>conftest.$ac_ext <<_ACEOF
17964 /* end confdefs.h. */
17965 $ac_includes_default
17966 typedef uint64_t ac__type_new_;
17968 main ()
17970 if ((ac__type_new_ *) 0)
17971 return 0;
17972 if (sizeof (ac__type_new_))
17973 return 0;
17975 return 0;
17977 _ACEOF
17978 rm -f conftest.$ac_objext
17979 if { (ac_try="$ac_compile"
17980 case "(($ac_try" in
17981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17982 *) ac_try_echo=$ac_try;;
17983 esac
17984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17985 (eval "$ac_compile") 2>conftest.er1
17986 ac_status=$?
17987 grep -v '^ *+' conftest.er1 >conftest.err
17988 rm -f conftest.er1
17989 cat conftest.err >&5
17990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17991 (exit $ac_status); } &&
17992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17993 { (case "(($ac_try" in
17994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17995 *) ac_try_echo=$ac_try;;
17996 esac
17997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17998 (eval "$ac_try") 2>&5
17999 ac_status=$?
18000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18001 (exit $ac_status); }; } &&
18002 { ac_try='test -s conftest.$ac_objext'
18003 { (case "(($ac_try" in
18004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18005 *) ac_try_echo=$ac_try;;
18006 esac
18007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18008 (eval "$ac_try") 2>&5
18009 ac_status=$?
18010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18011 (exit $ac_status); }; }; then
18012 ac_cv_type_uint64_t=yes
18013 else
18014 echo "$as_me: failed program was:" >&5
18015 sed 's/^/| /' conftest.$ac_ext >&5
18017 ac_cv_type_uint64_t=no
18020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18022 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
18023 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
18024 if test $ac_cv_type_uint64_t = yes; then
18026 cat >>confdefs.h <<_ACEOF
18027 #define HAVE_UINT64_T 1
18028 _ACEOF
18031 else
18032 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
18033 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
18034 if test "${ac_cv_type_u_int64_t+set}" = set; then
18035 echo $ECHO_N "(cached) $ECHO_C" >&6
18036 else
18037 cat >conftest.$ac_ext <<_ACEOF
18038 /* confdefs.h. */
18039 _ACEOF
18040 cat confdefs.h >>conftest.$ac_ext
18041 cat >>conftest.$ac_ext <<_ACEOF
18042 /* end confdefs.h. */
18043 $ac_includes_default
18044 typedef u_int64_t ac__type_new_;
18046 main ()
18048 if ((ac__type_new_ *) 0)
18049 return 0;
18050 if (sizeof (ac__type_new_))
18051 return 0;
18053 return 0;
18055 _ACEOF
18056 rm -f conftest.$ac_objext
18057 if { (ac_try="$ac_compile"
18058 case "(($ac_try" in
18059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18060 *) ac_try_echo=$ac_try;;
18061 esac
18062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18063 (eval "$ac_compile") 2>conftest.er1
18064 ac_status=$?
18065 grep -v '^ *+' conftest.er1 >conftest.err
18066 rm -f conftest.er1
18067 cat conftest.err >&5
18068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18069 (exit $ac_status); } &&
18070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18071 { (case "(($ac_try" in
18072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18073 *) ac_try_echo=$ac_try;;
18074 esac
18075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18076 (eval "$ac_try") 2>&5
18077 ac_status=$?
18078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18079 (exit $ac_status); }; } &&
18080 { ac_try='test -s conftest.$ac_objext'
18081 { (case "(($ac_try" in
18082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18083 *) ac_try_echo=$ac_try;;
18084 esac
18085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18086 (eval "$ac_try") 2>&5
18087 ac_status=$?
18088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18089 (exit $ac_status); }; }; then
18090 ac_cv_type_u_int64_t=yes
18091 else
18092 echo "$as_me: failed program was:" >&5
18093 sed 's/^/| /' conftest.$ac_ext >&5
18095 ac_cv_type_u_int64_t=no
18098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18100 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
18101 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
18102 if test $ac_cv_type_u_int64_t = yes; then
18104 cat >>confdefs.h <<_ACEOF
18105 #define HAVE_U_INT64_T 1
18106 _ACEOF
18109 else
18110 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
18111 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
18112 { (exit 1); exit 1; }; }
18126 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
18128 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18129 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18130 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18131 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18132 echo $ECHO_N "(cached) $ECHO_C" >&6
18133 else
18134 cat >conftest.$ac_ext <<_ACEOF
18135 /* confdefs.h. */
18136 _ACEOF
18137 cat confdefs.h >>conftest.$ac_ext
18138 cat >>conftest.$ac_ext <<_ACEOF
18139 /* end confdefs.h. */
18140 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18141 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18142 #define $ac_func innocuous_$ac_func
18144 /* System header to define __stub macros and hopefully few prototypes,
18145 which can conflict with char $ac_func (); below.
18146 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18147 <limits.h> exists even on freestanding compilers. */
18149 #ifdef __STDC__
18150 # include <limits.h>
18151 #else
18152 # include <assert.h>
18153 #endif
18155 #undef $ac_func
18157 /* Override any GCC internal prototype to avoid an error.
18158 Use char because int might match the return type of a GCC
18159 builtin and then its argument prototype would still apply. */
18160 #ifdef __cplusplus
18161 extern "C"
18162 #endif
18163 char $ac_func ();
18164 /* The GNU C library defines this for functions which it implements
18165 to always fail with ENOSYS. Some functions are actually named
18166 something starting with __ and the normal name is an alias. */
18167 #if defined __stub_$ac_func || defined __stub___$ac_func
18168 choke me
18169 #endif
18172 main ()
18174 return $ac_func ();
18176 return 0;
18178 _ACEOF
18179 rm -f conftest.$ac_objext conftest$ac_exeext
18180 if { (ac_try="$ac_link"
18181 case "(($ac_try" in
18182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18183 *) ac_try_echo=$ac_try;;
18184 esac
18185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18186 (eval "$ac_link") 2>conftest.er1
18187 ac_status=$?
18188 grep -v '^ *+' conftest.er1 >conftest.err
18189 rm -f conftest.er1
18190 cat conftest.err >&5
18191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18192 (exit $ac_status); } &&
18193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18194 { (case "(($ac_try" in
18195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18196 *) ac_try_echo=$ac_try;;
18197 esac
18198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18199 (eval "$ac_try") 2>&5
18200 ac_status=$?
18201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18202 (exit $ac_status); }; } &&
18203 { ac_try='test -s conftest$ac_exeext'
18204 { (case "(($ac_try" in
18205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18206 *) ac_try_echo=$ac_try;;
18207 esac
18208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18209 (eval "$ac_try") 2>&5
18210 ac_status=$?
18211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18212 (exit $ac_status); }; }; then
18213 eval "$as_ac_var=yes"
18214 else
18215 echo "$as_me: failed program was:" >&5
18216 sed 's/^/| /' conftest.$ac_ext >&5
18218 eval "$as_ac_var=no"
18221 rm -f core conftest.err conftest.$ac_objext \
18222 conftest$ac_exeext conftest.$ac_ext
18224 ac_res=`eval echo '${'$as_ac_var'}'`
18225 { echo "$as_me:$LINENO: result: $ac_res" >&5
18226 echo "${ECHO_T}$ac_res" >&6; }
18227 if test `eval echo '${'$as_ac_var'}'` = yes; then
18228 cat >>confdefs.h <<_ACEOF
18229 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18230 _ACEOF
18233 done
18239 for ac_func in powf fmodf strtof round
18241 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18242 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18243 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18244 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18245 echo $ECHO_N "(cached) $ECHO_C" >&6
18246 else
18247 cat >conftest.$ac_ext <<_ACEOF
18248 /* confdefs.h. */
18249 _ACEOF
18250 cat confdefs.h >>conftest.$ac_ext
18251 cat >>conftest.$ac_ext <<_ACEOF
18252 /* end confdefs.h. */
18253 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18254 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18255 #define $ac_func innocuous_$ac_func
18257 /* System header to define __stub macros and hopefully few prototypes,
18258 which can conflict with char $ac_func (); below.
18259 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18260 <limits.h> exists even on freestanding compilers. */
18262 #ifdef __STDC__
18263 # include <limits.h>
18264 #else
18265 # include <assert.h>
18266 #endif
18268 #undef $ac_func
18270 /* Override any GCC internal prototype to avoid an error.
18271 Use char because int might match the return type of a GCC
18272 builtin and then its argument prototype would still apply. */
18273 #ifdef __cplusplus
18274 extern "C"
18275 #endif
18276 char $ac_func ();
18277 /* The GNU C library defines this for functions which it implements
18278 to always fail with ENOSYS. Some functions are actually named
18279 something starting with __ and the normal name is an alias. */
18280 #if defined __stub_$ac_func || defined __stub___$ac_func
18281 choke me
18282 #endif
18285 main ()
18287 return $ac_func ();
18289 return 0;
18291 _ACEOF
18292 rm -f conftest.$ac_objext conftest$ac_exeext
18293 if { (ac_try="$ac_link"
18294 case "(($ac_try" in
18295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18296 *) ac_try_echo=$ac_try;;
18297 esac
18298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18299 (eval "$ac_link") 2>conftest.er1
18300 ac_status=$?
18301 grep -v '^ *+' conftest.er1 >conftest.err
18302 rm -f conftest.er1
18303 cat conftest.err >&5
18304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18305 (exit $ac_status); } &&
18306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18307 { (case "(($ac_try" in
18308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18309 *) ac_try_echo=$ac_try;;
18310 esac
18311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18312 (eval "$ac_try") 2>&5
18313 ac_status=$?
18314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18315 (exit $ac_status); }; } &&
18316 { ac_try='test -s conftest$ac_exeext'
18317 { (case "(($ac_try" in
18318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18319 *) ac_try_echo=$ac_try;;
18320 esac
18321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18322 (eval "$ac_try") 2>&5
18323 ac_status=$?
18324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18325 (exit $ac_status); }; }; then
18326 eval "$as_ac_var=yes"
18327 else
18328 echo "$as_me: failed program was:" >&5
18329 sed 's/^/| /' conftest.$ac_ext >&5
18331 eval "$as_ac_var=no"
18334 rm -f core conftest.err conftest.$ac_objext \
18335 conftest$ac_exeext conftest.$ac_ext
18337 ac_res=`eval echo '${'$as_ac_var'}'`
18338 { echo "$as_me:$LINENO: result: $ac_res" >&5
18339 echo "${ECHO_T}$ac_res" >&6; }
18340 if test `eval echo '${'$as_ac_var'}'` = yes; then
18341 cat >>confdefs.h <<_ACEOF
18342 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18343 _ACEOF
18346 done
18353 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
18355 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18356 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18357 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18358 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18359 echo $ECHO_N "(cached) $ECHO_C" >&6
18360 else
18361 cat >conftest.$ac_ext <<_ACEOF
18362 /* confdefs.h. */
18363 _ACEOF
18364 cat confdefs.h >>conftest.$ac_ext
18365 cat >>conftest.$ac_ext <<_ACEOF
18366 /* end confdefs.h. */
18367 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18368 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18369 #define $ac_func innocuous_$ac_func
18371 /* System header to define __stub macros and hopefully few prototypes,
18372 which can conflict with char $ac_func (); below.
18373 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18374 <limits.h> exists even on freestanding compilers. */
18376 #ifdef __STDC__
18377 # include <limits.h>
18378 #else
18379 # include <assert.h>
18380 #endif
18382 #undef $ac_func
18384 /* Override any GCC internal prototype to avoid an error.
18385 Use char because int might match the return type of a GCC
18386 builtin and then its argument prototype would still apply. */
18387 #ifdef __cplusplus
18388 extern "C"
18389 #endif
18390 char $ac_func ();
18391 /* The GNU C library defines this for functions which it implements
18392 to always fail with ENOSYS. Some functions are actually named
18393 something starting with __ and the normal name is an alias. */
18394 #if defined __stub_$ac_func || defined __stub___$ac_func
18395 choke me
18396 #endif
18399 main ()
18401 return $ac_func ();
18403 return 0;
18405 _ACEOF
18406 rm -f conftest.$ac_objext conftest$ac_exeext
18407 if { (ac_try="$ac_link"
18408 case "(($ac_try" in
18409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18410 *) ac_try_echo=$ac_try;;
18411 esac
18412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18413 (eval "$ac_link") 2>conftest.er1
18414 ac_status=$?
18415 grep -v '^ *+' conftest.er1 >conftest.err
18416 rm -f conftest.er1
18417 cat conftest.err >&5
18418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18419 (exit $ac_status); } &&
18420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18421 { (case "(($ac_try" in
18422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18423 *) ac_try_echo=$ac_try;;
18424 esac
18425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18426 (eval "$ac_try") 2>&5
18427 ac_status=$?
18428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18429 (exit $ac_status); }; } &&
18430 { ac_try='test -s conftest$ac_exeext'
18431 { (case "(($ac_try" in
18432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18433 *) ac_try_echo=$ac_try;;
18434 esac
18435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18436 (eval "$ac_try") 2>&5
18437 ac_status=$?
18438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18439 (exit $ac_status); }; }; then
18440 eval "$as_ac_var=yes"
18441 else
18442 echo "$as_me: failed program was:" >&5
18443 sed 's/^/| /' conftest.$ac_ext >&5
18445 eval "$as_ac_var=no"
18448 rm -f core conftest.err conftest.$ac_objext \
18449 conftest$ac_exeext conftest.$ac_ext
18451 ac_res=`eval echo '${'$as_ac_var'}'`
18452 { echo "$as_me:$LINENO: result: $ac_res" >&5
18453 echo "${ECHO_T}$ac_res" >&6; }
18454 if test `eval echo '${'$as_ac_var'}'` = yes; then
18455 cat >>confdefs.h <<_ACEOF
18456 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18457 _ACEOF
18460 done
18465 for ac_func in isatty mkdtemp mkstemp
18467 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18468 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18469 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18470 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18471 echo $ECHO_N "(cached) $ECHO_C" >&6
18472 else
18473 cat >conftest.$ac_ext <<_ACEOF
18474 /* confdefs.h. */
18475 _ACEOF
18476 cat confdefs.h >>conftest.$ac_ext
18477 cat >>conftest.$ac_ext <<_ACEOF
18478 /* end confdefs.h. */
18479 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18480 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18481 #define $ac_func innocuous_$ac_func
18483 /* System header to define __stub macros and hopefully few prototypes,
18484 which can conflict with char $ac_func (); below.
18485 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18486 <limits.h> exists even on freestanding compilers. */
18488 #ifdef __STDC__
18489 # include <limits.h>
18490 #else
18491 # include <assert.h>
18492 #endif
18494 #undef $ac_func
18496 /* Override any GCC internal prototype to avoid an error.
18497 Use char because int might match the return type of a GCC
18498 builtin and then its argument prototype would still apply. */
18499 #ifdef __cplusplus
18500 extern "C"
18501 #endif
18502 char $ac_func ();
18503 /* The GNU C library defines this for functions which it implements
18504 to always fail with ENOSYS. Some functions are actually named
18505 something starting with __ and the normal name is an alias. */
18506 #if defined __stub_$ac_func || defined __stub___$ac_func
18507 choke me
18508 #endif
18511 main ()
18513 return $ac_func ();
18515 return 0;
18517 _ACEOF
18518 rm -f conftest.$ac_objext conftest$ac_exeext
18519 if { (ac_try="$ac_link"
18520 case "(($ac_try" in
18521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18522 *) ac_try_echo=$ac_try;;
18523 esac
18524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18525 (eval "$ac_link") 2>conftest.er1
18526 ac_status=$?
18527 grep -v '^ *+' conftest.er1 >conftest.err
18528 rm -f conftest.er1
18529 cat conftest.err >&5
18530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18531 (exit $ac_status); } &&
18532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18533 { (case "(($ac_try" in
18534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18535 *) ac_try_echo=$ac_try;;
18536 esac
18537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18538 (eval "$ac_try") 2>&5
18539 ac_status=$?
18540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541 (exit $ac_status); }; } &&
18542 { ac_try='test -s conftest$ac_exeext'
18543 { (case "(($ac_try" in
18544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18545 *) ac_try_echo=$ac_try;;
18546 esac
18547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18548 (eval "$ac_try") 2>&5
18549 ac_status=$?
18550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18551 (exit $ac_status); }; }; then
18552 eval "$as_ac_var=yes"
18553 else
18554 echo "$as_me: failed program was:" >&5
18555 sed 's/^/| /' conftest.$ac_ext >&5
18557 eval "$as_ac_var=no"
18560 rm -f core conftest.err conftest.$ac_objext \
18561 conftest$ac_exeext conftest.$ac_ext
18563 ac_res=`eval echo '${'$as_ac_var'}'`
18564 { echo "$as_me:$LINENO: result: $ac_res" >&5
18565 echo "${ECHO_T}$ac_res" >&6; }
18566 if test `eval echo '${'$as_ac_var'}'` = yes; then
18567 cat >>confdefs.h <<_ACEOF
18568 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18569 _ACEOF
18572 done
18580 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
18582 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18583 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18584 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18585 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18586 echo $ECHO_N "(cached) $ECHO_C" >&6
18587 else
18588 cat >conftest.$ac_ext <<_ACEOF
18589 /* confdefs.h. */
18590 _ACEOF
18591 cat confdefs.h >>conftest.$ac_ext
18592 cat >>conftest.$ac_ext <<_ACEOF
18593 /* end confdefs.h. */
18594 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18595 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18596 #define $ac_func innocuous_$ac_func
18598 /* System header to define __stub macros and hopefully few prototypes,
18599 which can conflict with char $ac_func (); below.
18600 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18601 <limits.h> exists even on freestanding compilers. */
18603 #ifdef __STDC__
18604 # include <limits.h>
18605 #else
18606 # include <assert.h>
18607 #endif
18609 #undef $ac_func
18611 /* Override any GCC internal prototype to avoid an error.
18612 Use char because int might match the return type of a GCC
18613 builtin and then its argument prototype would still apply. */
18614 #ifdef __cplusplus
18615 extern "C"
18616 #endif
18617 char $ac_func ();
18618 /* The GNU C library defines this for functions which it implements
18619 to always fail with ENOSYS. Some functions are actually named
18620 something starting with __ and the normal name is an alias. */
18621 #if defined __stub_$ac_func || defined __stub___$ac_func
18622 choke me
18623 #endif
18626 main ()
18628 return $ac_func ();
18630 return 0;
18632 _ACEOF
18633 rm -f conftest.$ac_objext conftest$ac_exeext
18634 if { (ac_try="$ac_link"
18635 case "(($ac_try" in
18636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18637 *) ac_try_echo=$ac_try;;
18638 esac
18639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18640 (eval "$ac_link") 2>conftest.er1
18641 ac_status=$?
18642 grep -v '^ *+' conftest.er1 >conftest.err
18643 rm -f conftest.er1
18644 cat conftest.err >&5
18645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18646 (exit $ac_status); } &&
18647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18648 { (case "(($ac_try" in
18649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18650 *) ac_try_echo=$ac_try;;
18651 esac
18652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18653 (eval "$ac_try") 2>&5
18654 ac_status=$?
18655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18656 (exit $ac_status); }; } &&
18657 { ac_try='test -s conftest$ac_exeext'
18658 { (case "(($ac_try" in
18659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18660 *) ac_try_echo=$ac_try;;
18661 esac
18662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18663 (eval "$ac_try") 2>&5
18664 ac_status=$?
18665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18666 (exit $ac_status); }; }; then
18667 eval "$as_ac_var=yes"
18668 else
18669 echo "$as_me: failed program was:" >&5
18670 sed 's/^/| /' conftest.$ac_ext >&5
18672 eval "$as_ac_var=no"
18675 rm -f core conftest.err conftest.$ac_objext \
18676 conftest$ac_exeext conftest.$ac_ext
18678 ac_res=`eval echo '${'$as_ac_var'}'`
18679 { echo "$as_me:$LINENO: result: $ac_res" >&5
18680 echo "${ECHO_T}$ac_res" >&6; }
18681 if test `eval echo '${'$as_ac_var'}'` = yes; then
18682 cat >>confdefs.h <<_ACEOF
18683 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18684 _ACEOF
18687 done
18692 for ac_func in strerror strerror_r setenv
18694 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18695 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18696 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18697 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18698 echo $ECHO_N "(cached) $ECHO_C" >&6
18699 else
18700 cat >conftest.$ac_ext <<_ACEOF
18701 /* confdefs.h. */
18702 _ACEOF
18703 cat confdefs.h >>conftest.$ac_ext
18704 cat >>conftest.$ac_ext <<_ACEOF
18705 /* end confdefs.h. */
18706 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18707 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18708 #define $ac_func innocuous_$ac_func
18710 /* System header to define __stub macros and hopefully few prototypes,
18711 which can conflict with char $ac_func (); below.
18712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18713 <limits.h> exists even on freestanding compilers. */
18715 #ifdef __STDC__
18716 # include <limits.h>
18717 #else
18718 # include <assert.h>
18719 #endif
18721 #undef $ac_func
18723 /* Override any GCC internal prototype to avoid an error.
18724 Use char because int might match the return type of a GCC
18725 builtin and then its argument prototype would still apply. */
18726 #ifdef __cplusplus
18727 extern "C"
18728 #endif
18729 char $ac_func ();
18730 /* The GNU C library defines this for functions which it implements
18731 to always fail with ENOSYS. Some functions are actually named
18732 something starting with __ and the normal name is an alias. */
18733 #if defined __stub_$ac_func || defined __stub___$ac_func
18734 choke me
18735 #endif
18738 main ()
18740 return $ac_func ();
18742 return 0;
18744 _ACEOF
18745 rm -f conftest.$ac_objext conftest$ac_exeext
18746 if { (ac_try="$ac_link"
18747 case "(($ac_try" in
18748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18749 *) ac_try_echo=$ac_try;;
18750 esac
18751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18752 (eval "$ac_link") 2>conftest.er1
18753 ac_status=$?
18754 grep -v '^ *+' conftest.er1 >conftest.err
18755 rm -f conftest.er1
18756 cat conftest.err >&5
18757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18758 (exit $ac_status); } &&
18759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18760 { (case "(($ac_try" in
18761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18762 *) ac_try_echo=$ac_try;;
18763 esac
18764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18765 (eval "$ac_try") 2>&5
18766 ac_status=$?
18767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18768 (exit $ac_status); }; } &&
18769 { ac_try='test -s conftest$ac_exeext'
18770 { (case "(($ac_try" in
18771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18772 *) ac_try_echo=$ac_try;;
18773 esac
18774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18775 (eval "$ac_try") 2>&5
18776 ac_status=$?
18777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18778 (exit $ac_status); }; }; then
18779 eval "$as_ac_var=yes"
18780 else
18781 echo "$as_me: failed program was:" >&5
18782 sed 's/^/| /' conftest.$ac_ext >&5
18784 eval "$as_ac_var=no"
18787 rm -f core conftest.err conftest.$ac_objext \
18788 conftest$ac_exeext conftest.$ac_ext
18790 ac_res=`eval echo '${'$as_ac_var'}'`
18791 { echo "$as_me:$LINENO: result: $ac_res" >&5
18792 echo "${ECHO_T}$ac_res" >&6; }
18793 if test `eval echo '${'$as_ac_var'}'` = yes; then
18794 cat >>confdefs.h <<_ACEOF
18795 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18796 _ACEOF
18799 done
18805 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18807 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18808 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18809 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18810 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18811 echo $ECHO_N "(cached) $ECHO_C" >&6
18812 else
18813 cat >conftest.$ac_ext <<_ACEOF
18814 /* confdefs.h. */
18815 _ACEOF
18816 cat confdefs.h >>conftest.$ac_ext
18817 cat >>conftest.$ac_ext <<_ACEOF
18818 /* end confdefs.h. */
18819 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18820 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18821 #define $ac_func innocuous_$ac_func
18823 /* System header to define __stub macros and hopefully few prototypes,
18824 which can conflict with char $ac_func (); below.
18825 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18826 <limits.h> exists even on freestanding compilers. */
18828 #ifdef __STDC__
18829 # include <limits.h>
18830 #else
18831 # include <assert.h>
18832 #endif
18834 #undef $ac_func
18836 /* Override any GCC internal prototype to avoid an error.
18837 Use char because int might match the return type of a GCC
18838 builtin and then its argument prototype would still apply. */
18839 #ifdef __cplusplus
18840 extern "C"
18841 #endif
18842 char $ac_func ();
18843 /* The GNU C library defines this for functions which it implements
18844 to always fail with ENOSYS. Some functions are actually named
18845 something starting with __ and the normal name is an alias. */
18846 #if defined __stub_$ac_func || defined __stub___$ac_func
18847 choke me
18848 #endif
18851 main ()
18853 return $ac_func ();
18855 return 0;
18857 _ACEOF
18858 rm -f conftest.$ac_objext conftest$ac_exeext
18859 if { (ac_try="$ac_link"
18860 case "(($ac_try" in
18861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18862 *) ac_try_echo=$ac_try;;
18863 esac
18864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18865 (eval "$ac_link") 2>conftest.er1
18866 ac_status=$?
18867 grep -v '^ *+' conftest.er1 >conftest.err
18868 rm -f conftest.er1
18869 cat conftest.err >&5
18870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18871 (exit $ac_status); } &&
18872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18873 { (case "(($ac_try" in
18874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18875 *) ac_try_echo=$ac_try;;
18876 esac
18877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18878 (eval "$ac_try") 2>&5
18879 ac_status=$?
18880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18881 (exit $ac_status); }; } &&
18882 { ac_try='test -s conftest$ac_exeext'
18883 { (case "(($ac_try" in
18884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18885 *) ac_try_echo=$ac_try;;
18886 esac
18887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18888 (eval "$ac_try") 2>&5
18889 ac_status=$?
18890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18891 (exit $ac_status); }; }; then
18892 eval "$as_ac_var=yes"
18893 else
18894 echo "$as_me: failed program was:" >&5
18895 sed 's/^/| /' conftest.$ac_ext >&5
18897 eval "$as_ac_var=no"
18900 rm -f core conftest.err conftest.$ac_objext \
18901 conftest$ac_exeext conftest.$ac_ext
18903 ac_res=`eval echo '${'$as_ac_var'}'`
18904 { echo "$as_me:$LINENO: result: $ac_res" >&5
18905 echo "${ECHO_T}$ac_res" >&6; }
18906 if test `eval echo '${'$as_ac_var'}'` = yes; then
18907 cat >>confdefs.h <<_ACEOF
18908 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18909 _ACEOF
18912 done
18919 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
18921 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18922 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18923 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18924 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18925 echo $ECHO_N "(cached) $ECHO_C" >&6
18926 else
18927 cat >conftest.$ac_ext <<_ACEOF
18928 /* confdefs.h. */
18929 _ACEOF
18930 cat confdefs.h >>conftest.$ac_ext
18931 cat >>conftest.$ac_ext <<_ACEOF
18932 /* end confdefs.h. */
18933 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18934 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18935 #define $ac_func innocuous_$ac_func
18937 /* System header to define __stub macros and hopefully few prototypes,
18938 which can conflict with char $ac_func (); below.
18939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18940 <limits.h> exists even on freestanding compilers. */
18942 #ifdef __STDC__
18943 # include <limits.h>
18944 #else
18945 # include <assert.h>
18946 #endif
18948 #undef $ac_func
18950 /* Override any GCC internal prototype to avoid an error.
18951 Use char because int might match the return type of a GCC
18952 builtin and then its argument prototype would still apply. */
18953 #ifdef __cplusplus
18954 extern "C"
18955 #endif
18956 char $ac_func ();
18957 /* The GNU C library defines this for functions which it implements
18958 to always fail with ENOSYS. Some functions are actually named
18959 something starting with __ and the normal name is an alias. */
18960 #if defined __stub_$ac_func || defined __stub___$ac_func
18961 choke me
18962 #endif
18965 main ()
18967 return $ac_func ();
18969 return 0;
18971 _ACEOF
18972 rm -f conftest.$ac_objext conftest$ac_exeext
18973 if { (ac_try="$ac_link"
18974 case "(($ac_try" in
18975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18976 *) ac_try_echo=$ac_try;;
18977 esac
18978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18979 (eval "$ac_link") 2>conftest.er1
18980 ac_status=$?
18981 grep -v '^ *+' conftest.er1 >conftest.err
18982 rm -f conftest.er1
18983 cat conftest.err >&5
18984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18985 (exit $ac_status); } &&
18986 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18987 { (case "(($ac_try" in
18988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18989 *) ac_try_echo=$ac_try;;
18990 esac
18991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18992 (eval "$ac_try") 2>&5
18993 ac_status=$?
18994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995 (exit $ac_status); }; } &&
18996 { ac_try='test -s conftest$ac_exeext'
18997 { (case "(($ac_try" in
18998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18999 *) ac_try_echo=$ac_try;;
19000 esac
19001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19002 (eval "$ac_try") 2>&5
19003 ac_status=$?
19004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19005 (exit $ac_status); }; }; then
19006 eval "$as_ac_var=yes"
19007 else
19008 echo "$as_me: failed program was:" >&5
19009 sed 's/^/| /' conftest.$ac_ext >&5
19011 eval "$as_ac_var=no"
19014 rm -f core conftest.err conftest.$ac_objext \
19015 conftest$ac_exeext conftest.$ac_ext
19017 ac_res=`eval echo '${'$as_ac_var'}'`
19018 { echo "$as_me:$LINENO: result: $ac_res" >&5
19019 echo "${ECHO_T}$ac_res" >&6; }
19020 if test `eval echo '${'$as_ac_var'}'` = yes; then
19021 cat >>confdefs.h <<_ACEOF
19022 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19023 _ACEOF
19026 done
19028 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
19029 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
19030 if test "${llvm_cv_c_printf_a+set}" = set; then
19031 echo $ECHO_N "(cached) $ECHO_C" >&6
19032 else
19033 ac_ext=c
19034 ac_cpp='$CPP $CPPFLAGS'
19035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19039 if test "$cross_compiling" = yes; then
19040 llvmac_cv_c_printf_a=no
19041 else
19042 cat >conftest.$ac_ext <<_ACEOF
19044 /* confdefs.h. */
19045 _ACEOF
19046 cat confdefs.h >>conftest.$ac_ext
19047 cat >>conftest.$ac_ext <<_ACEOF
19048 /* end confdefs.h. */
19050 #include <stdio.h>
19051 #include <stdlib.h>
19054 main ()
19057 volatile double A, B;
19058 char Buffer[100];
19059 A = 1;
19060 A /= 10.0;
19061 sprintf(Buffer, "%a", A);
19062 B = atof(Buffer);
19063 if (A != B)
19064 return (1);
19065 if (A != 0x1.999999999999ap-4)
19066 return (1);
19067 return (0);
19069 return 0;
19071 _ACEOF
19072 rm -f conftest$ac_exeext
19073 if { (ac_try="$ac_link"
19074 case "(($ac_try" in
19075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19076 *) ac_try_echo=$ac_try;;
19077 esac
19078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19079 (eval "$ac_link") 2>&5
19080 ac_status=$?
19081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19082 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19083 { (case "(($ac_try" in
19084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19085 *) ac_try_echo=$ac_try;;
19086 esac
19087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19088 (eval "$ac_try") 2>&5
19089 ac_status=$?
19090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19091 (exit $ac_status); }; }; then
19092 llvm_cv_c_printf_a=yes
19093 else
19094 echo "$as_me: program exited with status $ac_status" >&5
19095 echo "$as_me: failed program was:" >&5
19096 sed 's/^/| /' conftest.$ac_ext >&5
19098 ( exit $ac_status )
19099 llvmac_cv_c_printf_a=no
19101 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19105 ac_ext=c
19106 ac_cpp='$CPP $CPPFLAGS'
19107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19112 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
19113 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
19114 if test "$llvm_cv_c_printf_a" = "yes"; then
19116 cat >>confdefs.h <<\_ACEOF
19117 #define HAVE_PRINTF_A 1
19118 _ACEOF
19123 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
19124 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
19125 if test "${ac_cv_func_rand48+set}" = set; then
19126 echo $ECHO_N "(cached) $ECHO_C" >&6
19127 else
19128 ac_ext=cpp
19129 ac_cpp='$CXXCPP $CPPFLAGS'
19130 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19131 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19132 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19134 cat >conftest.$ac_ext <<_ACEOF
19135 /* confdefs.h. */
19136 _ACEOF
19137 cat confdefs.h >>conftest.$ac_ext
19138 cat >>conftest.$ac_ext <<_ACEOF
19139 /* end confdefs.h. */
19140 #include <stdlib.h>
19142 main ()
19144 srand48(0);lrand48();drand48();
19146 return 0;
19148 _ACEOF
19149 rm -f conftest.$ac_objext
19150 if { (ac_try="$ac_compile"
19151 case "(($ac_try" in
19152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19153 *) ac_try_echo=$ac_try;;
19154 esac
19155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19156 (eval "$ac_compile") 2>conftest.er1
19157 ac_status=$?
19158 grep -v '^ *+' conftest.er1 >conftest.err
19159 rm -f conftest.er1
19160 cat conftest.err >&5
19161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19162 (exit $ac_status); } &&
19163 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19164 { (case "(($ac_try" in
19165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19166 *) ac_try_echo=$ac_try;;
19167 esac
19168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19169 (eval "$ac_try") 2>&5
19170 ac_status=$?
19171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19172 (exit $ac_status); }; } &&
19173 { ac_try='test -s conftest.$ac_objext'
19174 { (case "(($ac_try" in
19175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19176 *) ac_try_echo=$ac_try;;
19177 esac
19178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19179 (eval "$ac_try") 2>&5
19180 ac_status=$?
19181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19182 (exit $ac_status); }; }; then
19183 ac_cv_func_rand48=yes
19184 else
19185 echo "$as_me: failed program was:" >&5
19186 sed 's/^/| /' conftest.$ac_ext >&5
19188 ac_cv_func_rand48=no
19191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19192 ac_ext=c
19193 ac_cpp='$CPP $CPPFLAGS'
19194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19199 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19200 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
19202 if test "$ac_cv_func_rand48" = "yes" ; then
19204 cat >>confdefs.h <<\_ACEOF
19205 #define HAVE_RAND48 1
19206 _ACEOF
19211 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
19212 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
19213 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
19214 echo $ECHO_N "(cached) $ECHO_C" >&6
19215 else
19216 cat >conftest.$ac_ext <<_ACEOF
19217 /* confdefs.h. */
19218 _ACEOF
19219 cat confdefs.h >>conftest.$ac_ext
19220 cat >>conftest.$ac_ext <<_ACEOF
19221 /* end confdefs.h. */
19222 $ac_includes_default
19224 main ()
19226 #ifndef strerror_s
19227 char *p = (char *) strerror_s;
19228 return !p;
19229 #endif
19232 return 0;
19234 _ACEOF
19235 rm -f conftest.$ac_objext
19236 if { (ac_try="$ac_compile"
19237 case "(($ac_try" in
19238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19239 *) ac_try_echo=$ac_try;;
19240 esac
19241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19242 (eval "$ac_compile") 2>conftest.er1
19243 ac_status=$?
19244 grep -v '^ *+' conftest.er1 >conftest.err
19245 rm -f conftest.er1
19246 cat conftest.err >&5
19247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19248 (exit $ac_status); } &&
19249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19250 { (case "(($ac_try" in
19251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19252 *) ac_try_echo=$ac_try;;
19253 esac
19254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19255 (eval "$ac_try") 2>&5
19256 ac_status=$?
19257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19258 (exit $ac_status); }; } &&
19259 { ac_try='test -s conftest.$ac_objext'
19260 { (case "(($ac_try" in
19261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19262 *) ac_try_echo=$ac_try;;
19263 esac
19264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19265 (eval "$ac_try") 2>&5
19266 ac_status=$?
19267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19268 (exit $ac_status); }; }; then
19269 ac_cv_have_decl_strerror_s=yes
19270 else
19271 echo "$as_me: failed program was:" >&5
19272 sed 's/^/| /' conftest.$ac_ext >&5
19274 ac_cv_have_decl_strerror_s=no
19277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19279 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
19280 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
19281 if test $ac_cv_have_decl_strerror_s = yes; then
19283 cat >>confdefs.h <<_ACEOF
19284 #define HAVE_DECL_STRERROR_S 1
19285 _ACEOF
19288 else
19289 cat >>confdefs.h <<_ACEOF
19290 #define HAVE_DECL_STRERROR_S 0
19291 _ACEOF
19298 if test "$llvm_cv_os_type" = "MingW" ; then
19299 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
19300 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
19301 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
19302 echo $ECHO_N "(cached) $ECHO_C" >&6
19303 else
19304 ac_check_lib_save_LIBS=$LIBS
19305 LIBS="-lgcc $LIBS"
19306 cat >conftest.$ac_ext <<_ACEOF
19307 /* confdefs.h. */
19308 _ACEOF
19309 cat confdefs.h >>conftest.$ac_ext
19310 cat >>conftest.$ac_ext <<_ACEOF
19311 /* end confdefs.h. */
19313 /* Override any GCC internal prototype to avoid an error.
19314 Use char because int might match the return type of a GCC
19315 builtin and then its argument prototype would still apply. */
19316 #ifdef __cplusplus
19317 extern "C"
19318 #endif
19319 char _alloca ();
19321 main ()
19323 return _alloca ();
19325 return 0;
19327 _ACEOF
19328 rm -f conftest.$ac_objext conftest$ac_exeext
19329 if { (ac_try="$ac_link"
19330 case "(($ac_try" in
19331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19332 *) ac_try_echo=$ac_try;;
19333 esac
19334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19335 (eval "$ac_link") 2>conftest.er1
19336 ac_status=$?
19337 grep -v '^ *+' conftest.er1 >conftest.err
19338 rm -f conftest.er1
19339 cat conftest.err >&5
19340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19341 (exit $ac_status); } &&
19342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19343 { (case "(($ac_try" in
19344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19345 *) ac_try_echo=$ac_try;;
19346 esac
19347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19348 (eval "$ac_try") 2>&5
19349 ac_status=$?
19350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19351 (exit $ac_status); }; } &&
19352 { ac_try='test -s conftest$ac_exeext'
19353 { (case "(($ac_try" in
19354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19355 *) ac_try_echo=$ac_try;;
19356 esac
19357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19358 (eval "$ac_try") 2>&5
19359 ac_status=$?
19360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19361 (exit $ac_status); }; }; then
19362 ac_cv_lib_gcc__alloca=yes
19363 else
19364 echo "$as_me: failed program was:" >&5
19365 sed 's/^/| /' conftest.$ac_ext >&5
19367 ac_cv_lib_gcc__alloca=no
19370 rm -f core conftest.err conftest.$ac_objext \
19371 conftest$ac_exeext conftest.$ac_ext
19372 LIBS=$ac_check_lib_save_LIBS
19374 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
19375 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
19376 if test $ac_cv_lib_gcc__alloca = yes; then
19378 cat >>confdefs.h <<\_ACEOF
19379 #define HAVE__ALLOCA 1
19380 _ACEOF
19384 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
19385 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
19386 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
19387 echo $ECHO_N "(cached) $ECHO_C" >&6
19388 else
19389 ac_check_lib_save_LIBS=$LIBS
19390 LIBS="-lgcc $LIBS"
19391 cat >conftest.$ac_ext <<_ACEOF
19392 /* confdefs.h. */
19393 _ACEOF
19394 cat confdefs.h >>conftest.$ac_ext
19395 cat >>conftest.$ac_ext <<_ACEOF
19396 /* end confdefs.h. */
19398 /* Override any GCC internal prototype to avoid an error.
19399 Use char because int might match the return type of a GCC
19400 builtin and then its argument prototype would still apply. */
19401 #ifdef __cplusplus
19402 extern "C"
19403 #endif
19404 char __alloca ();
19406 main ()
19408 return __alloca ();
19410 return 0;
19412 _ACEOF
19413 rm -f conftest.$ac_objext conftest$ac_exeext
19414 if { (ac_try="$ac_link"
19415 case "(($ac_try" in
19416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19417 *) ac_try_echo=$ac_try;;
19418 esac
19419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19420 (eval "$ac_link") 2>conftest.er1
19421 ac_status=$?
19422 grep -v '^ *+' conftest.er1 >conftest.err
19423 rm -f conftest.er1
19424 cat conftest.err >&5
19425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19426 (exit $ac_status); } &&
19427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19428 { (case "(($ac_try" in
19429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19430 *) ac_try_echo=$ac_try;;
19431 esac
19432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19433 (eval "$ac_try") 2>&5
19434 ac_status=$?
19435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19436 (exit $ac_status); }; } &&
19437 { ac_try='test -s conftest$ac_exeext'
19438 { (case "(($ac_try" in
19439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19440 *) ac_try_echo=$ac_try;;
19441 esac
19442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19443 (eval "$ac_try") 2>&5
19444 ac_status=$?
19445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19446 (exit $ac_status); }; }; then
19447 ac_cv_lib_gcc___alloca=yes
19448 else
19449 echo "$as_me: failed program was:" >&5
19450 sed 's/^/| /' conftest.$ac_ext >&5
19452 ac_cv_lib_gcc___alloca=no
19455 rm -f core conftest.err conftest.$ac_objext \
19456 conftest$ac_exeext conftest.$ac_ext
19457 LIBS=$ac_check_lib_save_LIBS
19459 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
19460 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
19461 if test $ac_cv_lib_gcc___alloca = yes; then
19463 cat >>confdefs.h <<\_ACEOF
19464 #define HAVE___ALLOCA 1
19465 _ACEOF
19469 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
19470 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
19471 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
19472 echo $ECHO_N "(cached) $ECHO_C" >&6
19473 else
19474 ac_check_lib_save_LIBS=$LIBS
19475 LIBS="-lgcc $LIBS"
19476 cat >conftest.$ac_ext <<_ACEOF
19477 /* confdefs.h. */
19478 _ACEOF
19479 cat confdefs.h >>conftest.$ac_ext
19480 cat >>conftest.$ac_ext <<_ACEOF
19481 /* end confdefs.h. */
19483 /* Override any GCC internal prototype to avoid an error.
19484 Use char because int might match the return type of a GCC
19485 builtin and then its argument prototype would still apply. */
19486 #ifdef __cplusplus
19487 extern "C"
19488 #endif
19489 char __chkstk ();
19491 main ()
19493 return __chkstk ();
19495 return 0;
19497 _ACEOF
19498 rm -f conftest.$ac_objext conftest$ac_exeext
19499 if { (ac_try="$ac_link"
19500 case "(($ac_try" in
19501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19502 *) ac_try_echo=$ac_try;;
19503 esac
19504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19505 (eval "$ac_link") 2>conftest.er1
19506 ac_status=$?
19507 grep -v '^ *+' conftest.er1 >conftest.err
19508 rm -f conftest.er1
19509 cat conftest.err >&5
19510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511 (exit $ac_status); } &&
19512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19513 { (case "(($ac_try" in
19514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19515 *) ac_try_echo=$ac_try;;
19516 esac
19517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19518 (eval "$ac_try") 2>&5
19519 ac_status=$?
19520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19521 (exit $ac_status); }; } &&
19522 { ac_try='test -s conftest$ac_exeext'
19523 { (case "(($ac_try" in
19524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19525 *) ac_try_echo=$ac_try;;
19526 esac
19527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19528 (eval "$ac_try") 2>&5
19529 ac_status=$?
19530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19531 (exit $ac_status); }; }; then
19532 ac_cv_lib_gcc___chkstk=yes
19533 else
19534 echo "$as_me: failed program was:" >&5
19535 sed 's/^/| /' conftest.$ac_ext >&5
19537 ac_cv_lib_gcc___chkstk=no
19540 rm -f core conftest.err conftest.$ac_objext \
19541 conftest$ac_exeext conftest.$ac_ext
19542 LIBS=$ac_check_lib_save_LIBS
19544 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19545 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19546 if test $ac_cv_lib_gcc___chkstk = yes; then
19548 cat >>confdefs.h <<\_ACEOF
19549 #define HAVE___CHKSTK 1
19550 _ACEOF
19554 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19555 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19556 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19557 echo $ECHO_N "(cached) $ECHO_C" >&6
19558 else
19559 ac_check_lib_save_LIBS=$LIBS
19560 LIBS="-lgcc $LIBS"
19561 cat >conftest.$ac_ext <<_ACEOF
19562 /* confdefs.h. */
19563 _ACEOF
19564 cat confdefs.h >>conftest.$ac_ext
19565 cat >>conftest.$ac_ext <<_ACEOF
19566 /* end confdefs.h. */
19568 /* Override any GCC internal prototype to avoid an error.
19569 Use char because int might match the return type of a GCC
19570 builtin and then its argument prototype would still apply. */
19571 #ifdef __cplusplus
19572 extern "C"
19573 #endif
19574 char ___chkstk ();
19576 main ()
19578 return ___chkstk ();
19580 return 0;
19582 _ACEOF
19583 rm -f conftest.$ac_objext conftest$ac_exeext
19584 if { (ac_try="$ac_link"
19585 case "(($ac_try" in
19586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19587 *) ac_try_echo=$ac_try;;
19588 esac
19589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19590 (eval "$ac_link") 2>conftest.er1
19591 ac_status=$?
19592 grep -v '^ *+' conftest.er1 >conftest.err
19593 rm -f conftest.er1
19594 cat conftest.err >&5
19595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19596 (exit $ac_status); } &&
19597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19598 { (case "(($ac_try" in
19599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19600 *) ac_try_echo=$ac_try;;
19601 esac
19602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19603 (eval "$ac_try") 2>&5
19604 ac_status=$?
19605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19606 (exit $ac_status); }; } &&
19607 { ac_try='test -s conftest$ac_exeext'
19608 { (case "(($ac_try" in
19609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19610 *) ac_try_echo=$ac_try;;
19611 esac
19612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19613 (eval "$ac_try") 2>&5
19614 ac_status=$?
19615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19616 (exit $ac_status); }; }; then
19617 ac_cv_lib_gcc____chkstk=yes
19618 else
19619 echo "$as_me: failed program was:" >&5
19620 sed 's/^/| /' conftest.$ac_ext >&5
19622 ac_cv_lib_gcc____chkstk=no
19625 rm -f core conftest.err conftest.$ac_objext \
19626 conftest$ac_exeext conftest.$ac_ext
19627 LIBS=$ac_check_lib_save_LIBS
19629 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19630 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19631 if test $ac_cv_lib_gcc____chkstk = yes; then
19633 cat >>confdefs.h <<\_ACEOF
19634 #define HAVE____CHKSTK 1
19635 _ACEOF
19640 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19641 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19642 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19643 echo $ECHO_N "(cached) $ECHO_C" >&6
19644 else
19645 ac_check_lib_save_LIBS=$LIBS
19646 LIBS="-lgcc $LIBS"
19647 cat >conftest.$ac_ext <<_ACEOF
19648 /* confdefs.h. */
19649 _ACEOF
19650 cat confdefs.h >>conftest.$ac_ext
19651 cat >>conftest.$ac_ext <<_ACEOF
19652 /* end confdefs.h. */
19654 /* Override any GCC internal prototype to avoid an error.
19655 Use char because int might match the return type of a GCC
19656 builtin and then its argument prototype would still apply. */
19657 #ifdef __cplusplus
19658 extern "C"
19659 #endif
19660 char __ashldi3 ();
19662 main ()
19664 return __ashldi3 ();
19666 return 0;
19668 _ACEOF
19669 rm -f conftest.$ac_objext conftest$ac_exeext
19670 if { (ac_try="$ac_link"
19671 case "(($ac_try" in
19672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19673 *) ac_try_echo=$ac_try;;
19674 esac
19675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19676 (eval "$ac_link") 2>conftest.er1
19677 ac_status=$?
19678 grep -v '^ *+' conftest.er1 >conftest.err
19679 rm -f conftest.er1
19680 cat conftest.err >&5
19681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19682 (exit $ac_status); } &&
19683 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19684 { (case "(($ac_try" in
19685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19686 *) ac_try_echo=$ac_try;;
19687 esac
19688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19689 (eval "$ac_try") 2>&5
19690 ac_status=$?
19691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19692 (exit $ac_status); }; } &&
19693 { ac_try='test -s conftest$ac_exeext'
19694 { (case "(($ac_try" in
19695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19696 *) ac_try_echo=$ac_try;;
19697 esac
19698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19699 (eval "$ac_try") 2>&5
19700 ac_status=$?
19701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19702 (exit $ac_status); }; }; then
19703 ac_cv_lib_gcc___ashldi3=yes
19704 else
19705 echo "$as_me: failed program was:" >&5
19706 sed 's/^/| /' conftest.$ac_ext >&5
19708 ac_cv_lib_gcc___ashldi3=no
19711 rm -f core conftest.err conftest.$ac_objext \
19712 conftest$ac_exeext conftest.$ac_ext
19713 LIBS=$ac_check_lib_save_LIBS
19715 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19716 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19717 if test $ac_cv_lib_gcc___ashldi3 = yes; then
19719 cat >>confdefs.h <<\_ACEOF
19720 #define HAVE___ASHLDI3 1
19721 _ACEOF
19725 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19726 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19727 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19728 echo $ECHO_N "(cached) $ECHO_C" >&6
19729 else
19730 ac_check_lib_save_LIBS=$LIBS
19731 LIBS="-lgcc $LIBS"
19732 cat >conftest.$ac_ext <<_ACEOF
19733 /* confdefs.h. */
19734 _ACEOF
19735 cat confdefs.h >>conftest.$ac_ext
19736 cat >>conftest.$ac_ext <<_ACEOF
19737 /* end confdefs.h. */
19739 /* Override any GCC internal prototype to avoid an error.
19740 Use char because int might match the return type of a GCC
19741 builtin and then its argument prototype would still apply. */
19742 #ifdef __cplusplus
19743 extern "C"
19744 #endif
19745 char __ashrdi3 ();
19747 main ()
19749 return __ashrdi3 ();
19751 return 0;
19753 _ACEOF
19754 rm -f conftest.$ac_objext conftest$ac_exeext
19755 if { (ac_try="$ac_link"
19756 case "(($ac_try" in
19757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19758 *) ac_try_echo=$ac_try;;
19759 esac
19760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19761 (eval "$ac_link") 2>conftest.er1
19762 ac_status=$?
19763 grep -v '^ *+' conftest.er1 >conftest.err
19764 rm -f conftest.er1
19765 cat conftest.err >&5
19766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19767 (exit $ac_status); } &&
19768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19769 { (case "(($ac_try" in
19770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19771 *) ac_try_echo=$ac_try;;
19772 esac
19773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19774 (eval "$ac_try") 2>&5
19775 ac_status=$?
19776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19777 (exit $ac_status); }; } &&
19778 { ac_try='test -s conftest$ac_exeext'
19779 { (case "(($ac_try" in
19780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19781 *) ac_try_echo=$ac_try;;
19782 esac
19783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19784 (eval "$ac_try") 2>&5
19785 ac_status=$?
19786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19787 (exit $ac_status); }; }; then
19788 ac_cv_lib_gcc___ashrdi3=yes
19789 else
19790 echo "$as_me: failed program was:" >&5
19791 sed 's/^/| /' conftest.$ac_ext >&5
19793 ac_cv_lib_gcc___ashrdi3=no
19796 rm -f core conftest.err conftest.$ac_objext \
19797 conftest$ac_exeext conftest.$ac_ext
19798 LIBS=$ac_check_lib_save_LIBS
19800 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19801 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19802 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19804 cat >>confdefs.h <<\_ACEOF
19805 #define HAVE___ASHRDI3 1
19806 _ACEOF
19810 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19811 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19812 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19813 echo $ECHO_N "(cached) $ECHO_C" >&6
19814 else
19815 ac_check_lib_save_LIBS=$LIBS
19816 LIBS="-lgcc $LIBS"
19817 cat >conftest.$ac_ext <<_ACEOF
19818 /* confdefs.h. */
19819 _ACEOF
19820 cat confdefs.h >>conftest.$ac_ext
19821 cat >>conftest.$ac_ext <<_ACEOF
19822 /* end confdefs.h. */
19824 /* Override any GCC internal prototype to avoid an error.
19825 Use char because int might match the return type of a GCC
19826 builtin and then its argument prototype would still apply. */
19827 #ifdef __cplusplus
19828 extern "C"
19829 #endif
19830 char __divdi3 ();
19832 main ()
19834 return __divdi3 ();
19836 return 0;
19838 _ACEOF
19839 rm -f conftest.$ac_objext conftest$ac_exeext
19840 if { (ac_try="$ac_link"
19841 case "(($ac_try" in
19842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19843 *) ac_try_echo=$ac_try;;
19844 esac
19845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19846 (eval "$ac_link") 2>conftest.er1
19847 ac_status=$?
19848 grep -v '^ *+' conftest.er1 >conftest.err
19849 rm -f conftest.er1
19850 cat conftest.err >&5
19851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852 (exit $ac_status); } &&
19853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19854 { (case "(($ac_try" in
19855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19856 *) ac_try_echo=$ac_try;;
19857 esac
19858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19859 (eval "$ac_try") 2>&5
19860 ac_status=$?
19861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19862 (exit $ac_status); }; } &&
19863 { ac_try='test -s conftest$ac_exeext'
19864 { (case "(($ac_try" in
19865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19866 *) ac_try_echo=$ac_try;;
19867 esac
19868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19869 (eval "$ac_try") 2>&5
19870 ac_status=$?
19871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19872 (exit $ac_status); }; }; then
19873 ac_cv_lib_gcc___divdi3=yes
19874 else
19875 echo "$as_me: failed program was:" >&5
19876 sed 's/^/| /' conftest.$ac_ext >&5
19878 ac_cv_lib_gcc___divdi3=no
19881 rm -f core conftest.err conftest.$ac_objext \
19882 conftest$ac_exeext conftest.$ac_ext
19883 LIBS=$ac_check_lib_save_LIBS
19885 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19886 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19887 if test $ac_cv_lib_gcc___divdi3 = yes; then
19889 cat >>confdefs.h <<\_ACEOF
19890 #define HAVE___DIVDI3 1
19891 _ACEOF
19895 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19896 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19897 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19898 echo $ECHO_N "(cached) $ECHO_C" >&6
19899 else
19900 ac_check_lib_save_LIBS=$LIBS
19901 LIBS="-lgcc $LIBS"
19902 cat >conftest.$ac_ext <<_ACEOF
19903 /* confdefs.h. */
19904 _ACEOF
19905 cat confdefs.h >>conftest.$ac_ext
19906 cat >>conftest.$ac_ext <<_ACEOF
19907 /* end confdefs.h. */
19909 /* Override any GCC internal prototype to avoid an error.
19910 Use char because int might match the return type of a GCC
19911 builtin and then its argument prototype would still apply. */
19912 #ifdef __cplusplus
19913 extern "C"
19914 #endif
19915 char __fixdfdi ();
19917 main ()
19919 return __fixdfdi ();
19921 return 0;
19923 _ACEOF
19924 rm -f conftest.$ac_objext conftest$ac_exeext
19925 if { (ac_try="$ac_link"
19926 case "(($ac_try" in
19927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19928 *) ac_try_echo=$ac_try;;
19929 esac
19930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19931 (eval "$ac_link") 2>conftest.er1
19932 ac_status=$?
19933 grep -v '^ *+' conftest.er1 >conftest.err
19934 rm -f conftest.er1
19935 cat conftest.err >&5
19936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19937 (exit $ac_status); } &&
19938 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19939 { (case "(($ac_try" in
19940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19941 *) ac_try_echo=$ac_try;;
19942 esac
19943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19944 (eval "$ac_try") 2>&5
19945 ac_status=$?
19946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19947 (exit $ac_status); }; } &&
19948 { ac_try='test -s conftest$ac_exeext'
19949 { (case "(($ac_try" in
19950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19951 *) ac_try_echo=$ac_try;;
19952 esac
19953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19954 (eval "$ac_try") 2>&5
19955 ac_status=$?
19956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19957 (exit $ac_status); }; }; then
19958 ac_cv_lib_gcc___fixdfdi=yes
19959 else
19960 echo "$as_me: failed program was:" >&5
19961 sed 's/^/| /' conftest.$ac_ext >&5
19963 ac_cv_lib_gcc___fixdfdi=no
19966 rm -f core conftest.err conftest.$ac_objext \
19967 conftest$ac_exeext conftest.$ac_ext
19968 LIBS=$ac_check_lib_save_LIBS
19970 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
19971 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
19972 if test $ac_cv_lib_gcc___fixdfdi = yes; then
19974 cat >>confdefs.h <<\_ACEOF
19975 #define HAVE___FIXDFDI 1
19976 _ACEOF
19980 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
19981 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
19982 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
19983 echo $ECHO_N "(cached) $ECHO_C" >&6
19984 else
19985 ac_check_lib_save_LIBS=$LIBS
19986 LIBS="-lgcc $LIBS"
19987 cat >conftest.$ac_ext <<_ACEOF
19988 /* confdefs.h. */
19989 _ACEOF
19990 cat confdefs.h >>conftest.$ac_ext
19991 cat >>conftest.$ac_ext <<_ACEOF
19992 /* end confdefs.h. */
19994 /* Override any GCC internal prototype to avoid an error.
19995 Use char because int might match the return type of a GCC
19996 builtin and then its argument prototype would still apply. */
19997 #ifdef __cplusplus
19998 extern "C"
19999 #endif
20000 char __fixsfdi ();
20002 main ()
20004 return __fixsfdi ();
20006 return 0;
20008 _ACEOF
20009 rm -f conftest.$ac_objext conftest$ac_exeext
20010 if { (ac_try="$ac_link"
20011 case "(($ac_try" in
20012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20013 *) ac_try_echo=$ac_try;;
20014 esac
20015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20016 (eval "$ac_link") 2>conftest.er1
20017 ac_status=$?
20018 grep -v '^ *+' conftest.er1 >conftest.err
20019 rm -f conftest.er1
20020 cat conftest.err >&5
20021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20022 (exit $ac_status); } &&
20023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20024 { (case "(($ac_try" in
20025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20026 *) ac_try_echo=$ac_try;;
20027 esac
20028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20029 (eval "$ac_try") 2>&5
20030 ac_status=$?
20031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20032 (exit $ac_status); }; } &&
20033 { ac_try='test -s conftest$ac_exeext'
20034 { (case "(($ac_try" in
20035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20036 *) ac_try_echo=$ac_try;;
20037 esac
20038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20039 (eval "$ac_try") 2>&5
20040 ac_status=$?
20041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20042 (exit $ac_status); }; }; then
20043 ac_cv_lib_gcc___fixsfdi=yes
20044 else
20045 echo "$as_me: failed program was:" >&5
20046 sed 's/^/| /' conftest.$ac_ext >&5
20048 ac_cv_lib_gcc___fixsfdi=no
20051 rm -f core conftest.err conftest.$ac_objext \
20052 conftest$ac_exeext conftest.$ac_ext
20053 LIBS=$ac_check_lib_save_LIBS
20055 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
20056 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
20057 if test $ac_cv_lib_gcc___fixsfdi = yes; then
20059 cat >>confdefs.h <<\_ACEOF
20060 #define HAVE___FIXSFDI 1
20061 _ACEOF
20065 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
20066 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
20067 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
20068 echo $ECHO_N "(cached) $ECHO_C" >&6
20069 else
20070 ac_check_lib_save_LIBS=$LIBS
20071 LIBS="-lgcc $LIBS"
20072 cat >conftest.$ac_ext <<_ACEOF
20073 /* confdefs.h. */
20074 _ACEOF
20075 cat confdefs.h >>conftest.$ac_ext
20076 cat >>conftest.$ac_ext <<_ACEOF
20077 /* end confdefs.h. */
20079 /* Override any GCC internal prototype to avoid an error.
20080 Use char because int might match the return type of a GCC
20081 builtin and then its argument prototype would still apply. */
20082 #ifdef __cplusplus
20083 extern "C"
20084 #endif
20085 char __floatdidf ();
20087 main ()
20089 return __floatdidf ();
20091 return 0;
20093 _ACEOF
20094 rm -f conftest.$ac_objext conftest$ac_exeext
20095 if { (ac_try="$ac_link"
20096 case "(($ac_try" in
20097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20098 *) ac_try_echo=$ac_try;;
20099 esac
20100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20101 (eval "$ac_link") 2>conftest.er1
20102 ac_status=$?
20103 grep -v '^ *+' conftest.er1 >conftest.err
20104 rm -f conftest.er1
20105 cat conftest.err >&5
20106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20107 (exit $ac_status); } &&
20108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20109 { (case "(($ac_try" in
20110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20111 *) ac_try_echo=$ac_try;;
20112 esac
20113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20114 (eval "$ac_try") 2>&5
20115 ac_status=$?
20116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20117 (exit $ac_status); }; } &&
20118 { ac_try='test -s conftest$ac_exeext'
20119 { (case "(($ac_try" in
20120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20121 *) ac_try_echo=$ac_try;;
20122 esac
20123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20124 (eval "$ac_try") 2>&5
20125 ac_status=$?
20126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20127 (exit $ac_status); }; }; then
20128 ac_cv_lib_gcc___floatdidf=yes
20129 else
20130 echo "$as_me: failed program was:" >&5
20131 sed 's/^/| /' conftest.$ac_ext >&5
20133 ac_cv_lib_gcc___floatdidf=no
20136 rm -f core conftest.err conftest.$ac_objext \
20137 conftest$ac_exeext conftest.$ac_ext
20138 LIBS=$ac_check_lib_save_LIBS
20140 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
20141 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
20142 if test $ac_cv_lib_gcc___floatdidf = yes; then
20144 cat >>confdefs.h <<\_ACEOF
20145 #define HAVE___FLOATDIDF 1
20146 _ACEOF
20150 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
20151 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
20152 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
20153 echo $ECHO_N "(cached) $ECHO_C" >&6
20154 else
20155 ac_check_lib_save_LIBS=$LIBS
20156 LIBS="-lgcc $LIBS"
20157 cat >conftest.$ac_ext <<_ACEOF
20158 /* confdefs.h. */
20159 _ACEOF
20160 cat confdefs.h >>conftest.$ac_ext
20161 cat >>conftest.$ac_ext <<_ACEOF
20162 /* end confdefs.h. */
20164 /* Override any GCC internal prototype to avoid an error.
20165 Use char because int might match the return type of a GCC
20166 builtin and then its argument prototype would still apply. */
20167 #ifdef __cplusplus
20168 extern "C"
20169 #endif
20170 char __lshrdi3 ();
20172 main ()
20174 return __lshrdi3 ();
20176 return 0;
20178 _ACEOF
20179 rm -f conftest.$ac_objext conftest$ac_exeext
20180 if { (ac_try="$ac_link"
20181 case "(($ac_try" in
20182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20183 *) ac_try_echo=$ac_try;;
20184 esac
20185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20186 (eval "$ac_link") 2>conftest.er1
20187 ac_status=$?
20188 grep -v '^ *+' conftest.er1 >conftest.err
20189 rm -f conftest.er1
20190 cat conftest.err >&5
20191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20192 (exit $ac_status); } &&
20193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20194 { (case "(($ac_try" in
20195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20196 *) ac_try_echo=$ac_try;;
20197 esac
20198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20199 (eval "$ac_try") 2>&5
20200 ac_status=$?
20201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20202 (exit $ac_status); }; } &&
20203 { ac_try='test -s conftest$ac_exeext'
20204 { (case "(($ac_try" in
20205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20206 *) ac_try_echo=$ac_try;;
20207 esac
20208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20209 (eval "$ac_try") 2>&5
20210 ac_status=$?
20211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20212 (exit $ac_status); }; }; then
20213 ac_cv_lib_gcc___lshrdi3=yes
20214 else
20215 echo "$as_me: failed program was:" >&5
20216 sed 's/^/| /' conftest.$ac_ext >&5
20218 ac_cv_lib_gcc___lshrdi3=no
20221 rm -f core conftest.err conftest.$ac_objext \
20222 conftest$ac_exeext conftest.$ac_ext
20223 LIBS=$ac_check_lib_save_LIBS
20225 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
20226 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
20227 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
20229 cat >>confdefs.h <<\_ACEOF
20230 #define HAVE___LSHRDI3 1
20231 _ACEOF
20235 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
20236 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
20237 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
20238 echo $ECHO_N "(cached) $ECHO_C" >&6
20239 else
20240 ac_check_lib_save_LIBS=$LIBS
20241 LIBS="-lgcc $LIBS"
20242 cat >conftest.$ac_ext <<_ACEOF
20243 /* confdefs.h. */
20244 _ACEOF
20245 cat confdefs.h >>conftest.$ac_ext
20246 cat >>conftest.$ac_ext <<_ACEOF
20247 /* end confdefs.h. */
20249 /* Override any GCC internal prototype to avoid an error.
20250 Use char because int might match the return type of a GCC
20251 builtin and then its argument prototype would still apply. */
20252 #ifdef __cplusplus
20253 extern "C"
20254 #endif
20255 char __moddi3 ();
20257 main ()
20259 return __moddi3 ();
20261 return 0;
20263 _ACEOF
20264 rm -f conftest.$ac_objext conftest$ac_exeext
20265 if { (ac_try="$ac_link"
20266 case "(($ac_try" in
20267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20268 *) ac_try_echo=$ac_try;;
20269 esac
20270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20271 (eval "$ac_link") 2>conftest.er1
20272 ac_status=$?
20273 grep -v '^ *+' conftest.er1 >conftest.err
20274 rm -f conftest.er1
20275 cat conftest.err >&5
20276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20277 (exit $ac_status); } &&
20278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20279 { (case "(($ac_try" in
20280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20281 *) ac_try_echo=$ac_try;;
20282 esac
20283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20284 (eval "$ac_try") 2>&5
20285 ac_status=$?
20286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20287 (exit $ac_status); }; } &&
20288 { ac_try='test -s conftest$ac_exeext'
20289 { (case "(($ac_try" in
20290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20291 *) ac_try_echo=$ac_try;;
20292 esac
20293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20294 (eval "$ac_try") 2>&5
20295 ac_status=$?
20296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20297 (exit $ac_status); }; }; then
20298 ac_cv_lib_gcc___moddi3=yes
20299 else
20300 echo "$as_me: failed program was:" >&5
20301 sed 's/^/| /' conftest.$ac_ext >&5
20303 ac_cv_lib_gcc___moddi3=no
20306 rm -f core conftest.err conftest.$ac_objext \
20307 conftest$ac_exeext conftest.$ac_ext
20308 LIBS=$ac_check_lib_save_LIBS
20310 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
20311 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
20312 if test $ac_cv_lib_gcc___moddi3 = yes; then
20314 cat >>confdefs.h <<\_ACEOF
20315 #define HAVE___MODDI3 1
20316 _ACEOF
20320 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
20321 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
20322 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
20323 echo $ECHO_N "(cached) $ECHO_C" >&6
20324 else
20325 ac_check_lib_save_LIBS=$LIBS
20326 LIBS="-lgcc $LIBS"
20327 cat >conftest.$ac_ext <<_ACEOF
20328 /* confdefs.h. */
20329 _ACEOF
20330 cat confdefs.h >>conftest.$ac_ext
20331 cat >>conftest.$ac_ext <<_ACEOF
20332 /* end confdefs.h. */
20334 /* Override any GCC internal prototype to avoid an error.
20335 Use char because int might match the return type of a GCC
20336 builtin and then its argument prototype would still apply. */
20337 #ifdef __cplusplus
20338 extern "C"
20339 #endif
20340 char __udivdi3 ();
20342 main ()
20344 return __udivdi3 ();
20346 return 0;
20348 _ACEOF
20349 rm -f conftest.$ac_objext conftest$ac_exeext
20350 if { (ac_try="$ac_link"
20351 case "(($ac_try" in
20352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20353 *) ac_try_echo=$ac_try;;
20354 esac
20355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20356 (eval "$ac_link") 2>conftest.er1
20357 ac_status=$?
20358 grep -v '^ *+' conftest.er1 >conftest.err
20359 rm -f conftest.er1
20360 cat conftest.err >&5
20361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20362 (exit $ac_status); } &&
20363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20364 { (case "(($ac_try" in
20365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20366 *) ac_try_echo=$ac_try;;
20367 esac
20368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20369 (eval "$ac_try") 2>&5
20370 ac_status=$?
20371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20372 (exit $ac_status); }; } &&
20373 { ac_try='test -s conftest$ac_exeext'
20374 { (case "(($ac_try" in
20375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20376 *) ac_try_echo=$ac_try;;
20377 esac
20378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20379 (eval "$ac_try") 2>&5
20380 ac_status=$?
20381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20382 (exit $ac_status); }; }; then
20383 ac_cv_lib_gcc___udivdi3=yes
20384 else
20385 echo "$as_me: failed program was:" >&5
20386 sed 's/^/| /' conftest.$ac_ext >&5
20388 ac_cv_lib_gcc___udivdi3=no
20391 rm -f core conftest.err conftest.$ac_objext \
20392 conftest$ac_exeext conftest.$ac_ext
20393 LIBS=$ac_check_lib_save_LIBS
20395 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
20396 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
20397 if test $ac_cv_lib_gcc___udivdi3 = yes; then
20399 cat >>confdefs.h <<\_ACEOF
20400 #define HAVE___UDIVDI3 1
20401 _ACEOF
20405 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
20406 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
20407 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
20408 echo $ECHO_N "(cached) $ECHO_C" >&6
20409 else
20410 ac_check_lib_save_LIBS=$LIBS
20411 LIBS="-lgcc $LIBS"
20412 cat >conftest.$ac_ext <<_ACEOF
20413 /* confdefs.h. */
20414 _ACEOF
20415 cat confdefs.h >>conftest.$ac_ext
20416 cat >>conftest.$ac_ext <<_ACEOF
20417 /* end confdefs.h. */
20419 /* Override any GCC internal prototype to avoid an error.
20420 Use char because int might match the return type of a GCC
20421 builtin and then its argument prototype would still apply. */
20422 #ifdef __cplusplus
20423 extern "C"
20424 #endif
20425 char __umoddi3 ();
20427 main ()
20429 return __umoddi3 ();
20431 return 0;
20433 _ACEOF
20434 rm -f conftest.$ac_objext conftest$ac_exeext
20435 if { (ac_try="$ac_link"
20436 case "(($ac_try" in
20437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20438 *) ac_try_echo=$ac_try;;
20439 esac
20440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20441 (eval "$ac_link") 2>conftest.er1
20442 ac_status=$?
20443 grep -v '^ *+' conftest.er1 >conftest.err
20444 rm -f conftest.er1
20445 cat conftest.err >&5
20446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20447 (exit $ac_status); } &&
20448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20449 { (case "(($ac_try" in
20450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20451 *) ac_try_echo=$ac_try;;
20452 esac
20453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20454 (eval "$ac_try") 2>&5
20455 ac_status=$?
20456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20457 (exit $ac_status); }; } &&
20458 { ac_try='test -s conftest$ac_exeext'
20459 { (case "(($ac_try" in
20460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20461 *) ac_try_echo=$ac_try;;
20462 esac
20463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20464 (eval "$ac_try") 2>&5
20465 ac_status=$?
20466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20467 (exit $ac_status); }; }; then
20468 ac_cv_lib_gcc___umoddi3=yes
20469 else
20470 echo "$as_me: failed program was:" >&5
20471 sed 's/^/| /' conftest.$ac_ext >&5
20473 ac_cv_lib_gcc___umoddi3=no
20476 rm -f core conftest.err conftest.$ac_objext \
20477 conftest$ac_exeext conftest.$ac_ext
20478 LIBS=$ac_check_lib_save_LIBS
20480 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
20481 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
20482 if test $ac_cv_lib_gcc___umoddi3 = yes; then
20484 cat >>confdefs.h <<\_ACEOF
20485 #define HAVE___UMODDI3 1
20486 _ACEOF
20491 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
20492 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
20493 if test "${ac_cv_lib_gcc___main+set}" = set; then
20494 echo $ECHO_N "(cached) $ECHO_C" >&6
20495 else
20496 ac_check_lib_save_LIBS=$LIBS
20497 LIBS="-lgcc $LIBS"
20498 cat >conftest.$ac_ext <<_ACEOF
20499 /* confdefs.h. */
20500 _ACEOF
20501 cat confdefs.h >>conftest.$ac_ext
20502 cat >>conftest.$ac_ext <<_ACEOF
20503 /* end confdefs.h. */
20505 /* Override any GCC internal prototype to avoid an error.
20506 Use char because int might match the return type of a GCC
20507 builtin and then its argument prototype would still apply. */
20508 #ifdef __cplusplus
20509 extern "C"
20510 #endif
20511 char __main ();
20513 main ()
20515 return __main ();
20517 return 0;
20519 _ACEOF
20520 rm -f conftest.$ac_objext conftest$ac_exeext
20521 if { (ac_try="$ac_link"
20522 case "(($ac_try" in
20523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20524 *) ac_try_echo=$ac_try;;
20525 esac
20526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20527 (eval "$ac_link") 2>conftest.er1
20528 ac_status=$?
20529 grep -v '^ *+' conftest.er1 >conftest.err
20530 rm -f conftest.er1
20531 cat conftest.err >&5
20532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20533 (exit $ac_status); } &&
20534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20535 { (case "(($ac_try" in
20536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20537 *) ac_try_echo=$ac_try;;
20538 esac
20539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20540 (eval "$ac_try") 2>&5
20541 ac_status=$?
20542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20543 (exit $ac_status); }; } &&
20544 { ac_try='test -s conftest$ac_exeext'
20545 { (case "(($ac_try" in
20546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20547 *) ac_try_echo=$ac_try;;
20548 esac
20549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20550 (eval "$ac_try") 2>&5
20551 ac_status=$?
20552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553 (exit $ac_status); }; }; then
20554 ac_cv_lib_gcc___main=yes
20555 else
20556 echo "$as_me: failed program was:" >&5
20557 sed 's/^/| /' conftest.$ac_ext >&5
20559 ac_cv_lib_gcc___main=no
20562 rm -f core conftest.err conftest.$ac_objext \
20563 conftest$ac_exeext conftest.$ac_ext
20564 LIBS=$ac_check_lib_save_LIBS
20566 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20567 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20568 if test $ac_cv_lib_gcc___main = yes; then
20570 cat >>confdefs.h <<\_ACEOF
20571 #define HAVE___MAIN 1
20572 _ACEOF
20576 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20577 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20578 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20579 echo $ECHO_N "(cached) $ECHO_C" >&6
20580 else
20581 ac_check_lib_save_LIBS=$LIBS
20582 LIBS="-lgcc $LIBS"
20583 cat >conftest.$ac_ext <<_ACEOF
20584 /* confdefs.h. */
20585 _ACEOF
20586 cat confdefs.h >>conftest.$ac_ext
20587 cat >>conftest.$ac_ext <<_ACEOF
20588 /* end confdefs.h. */
20590 /* Override any GCC internal prototype to avoid an error.
20591 Use char because int might match the return type of a GCC
20592 builtin and then its argument prototype would still apply. */
20593 #ifdef __cplusplus
20594 extern "C"
20595 #endif
20596 char __cmpdi2 ();
20598 main ()
20600 return __cmpdi2 ();
20602 return 0;
20604 _ACEOF
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;;
20610 esac
20611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20612 (eval "$ac_link") 2>conftest.er1
20613 ac_status=$?
20614 grep -v '^ *+' conftest.er1 >conftest.err
20615 rm -f conftest.er1
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;;
20623 esac
20624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20625 (eval "$ac_try") 2>&5
20626 ac_status=$?
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;;
20633 esac
20634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20635 (eval "$ac_try") 2>&5
20636 ac_status=$?
20637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20638 (exit $ac_status); }; }; then
20639 ac_cv_lib_gcc___cmpdi2=yes
20640 else
20641 echo "$as_me: failed program was:" >&5
20642 sed 's/^/| /' conftest.$ac_ext >&5
20644 ac_cv_lib_gcc___cmpdi2=no
20647 rm -f core conftest.err conftest.$ac_objext \
20648 conftest$ac_exeext conftest.$ac_ext
20649 LIBS=$ac_check_lib_save_LIBS
20651 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20652 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20653 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20655 cat >>confdefs.h <<\_ACEOF
20656 #define HAVE___CMPDI2 1
20657 _ACEOF
20663 if test "$llvm_cv_os_type" = "MingW" ; then
20664 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
20665 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
20666 cat >conftest.$ac_ext <<_ACEOF
20667 #include <windows.h>
20668 #include <imagehlp.h>
20669 extern void foo(PENUMLOADED_MODULES_CALLBACK);
20670 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
20671 _ACEOF
20672 rm -f conftest.$ac_objext
20673 if { (ac_try="$ac_compile"
20674 case "(($ac_try" in
20675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20676 *) ac_try_echo=$ac_try;;
20677 esac
20678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20679 (eval "$ac_compile") 2>conftest.er1
20680 ac_status=$?
20681 grep -v '^ *+' conftest.er1 >conftest.err
20682 rm -f conftest.er1
20683 cat conftest.err >&5
20684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20685 (exit $ac_status); } &&
20686 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20687 { (case "(($ac_try" in
20688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20689 *) ac_try_echo=$ac_try;;
20690 esac
20691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20692 (eval "$ac_try") 2>&5
20693 ac_status=$?
20694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20695 (exit $ac_status); }; } &&
20696 { ac_try='test -s conftest.$ac_objext'
20697 { (case "(($ac_try" in
20698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20699 *) ac_try_echo=$ac_try;;
20700 esac
20701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20702 (eval "$ac_try") 2>&5
20703 ac_status=$?
20704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20705 (exit $ac_status); }; }; then
20707 { echo "$as_me:$LINENO: result: yes" >&5
20708 echo "${ECHO_T}yes" >&6; }
20709 llvm_cv_win32_elmcb_pcstr="PCSTR"
20711 else
20712 echo "$as_me: failed program was:" >&5
20713 sed 's/^/| /' conftest.$ac_ext >&5
20716 { echo "$as_me:$LINENO: result: no" >&5
20717 echo "${ECHO_T}no" >&6; }
20718 llvm_cv_win32_elmcb_pcstr="PSTR"
20722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20724 cat >>confdefs.h <<_ACEOF
20725 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20726 _ACEOF
20731 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20732 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20733 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20734 echo $ECHO_N "(cached) $ECHO_C" >&6
20735 else
20736 ac_ext=cpp
20737 ac_cpp='$CXXCPP $CPPFLAGS'
20738 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20739 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20740 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20742 cat >conftest.$ac_ext <<_ACEOF
20743 /* confdefs.h. */
20744 _ACEOF
20745 cat confdefs.h >>conftest.$ac_ext
20746 cat >>conftest.$ac_ext <<_ACEOF
20747 /* end confdefs.h. */
20748 #include <math.h>
20750 main ()
20752 float f; isnan(f);
20754 return 0;
20756 _ACEOF
20757 rm -f conftest.$ac_objext
20758 if { (ac_try="$ac_compile"
20759 case "(($ac_try" in
20760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20761 *) ac_try_echo=$ac_try;;
20762 esac
20763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20764 (eval "$ac_compile") 2>conftest.er1
20765 ac_status=$?
20766 grep -v '^ *+' conftest.er1 >conftest.err
20767 rm -f conftest.er1
20768 cat conftest.err >&5
20769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20770 (exit $ac_status); } &&
20771 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20772 { (case "(($ac_try" in
20773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20774 *) ac_try_echo=$ac_try;;
20775 esac
20776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20777 (eval "$ac_try") 2>&5
20778 ac_status=$?
20779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20780 (exit $ac_status); }; } &&
20781 { ac_try='test -s conftest.$ac_objext'
20782 { (case "(($ac_try" in
20783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20784 *) ac_try_echo=$ac_try;;
20785 esac
20786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20787 (eval "$ac_try") 2>&5
20788 ac_status=$?
20789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20790 (exit $ac_status); }; }; then
20791 ac_cv_func_isnan_in_math_h=yes
20792 else
20793 echo "$as_me: failed program was:" >&5
20794 sed 's/^/| /' conftest.$ac_ext >&5
20796 ac_cv_func_isnan_in_math_h=no
20799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20800 ac_ext=c
20801 ac_cpp='$CPP $CPPFLAGS'
20802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20807 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20808 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
20811 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
20813 cat >>confdefs.h <<\_ACEOF
20814 #define HAVE_ISNAN_IN_MATH_H 1
20815 _ACEOF
20819 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20820 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20821 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20822 echo $ECHO_N "(cached) $ECHO_C" >&6
20823 else
20824 ac_ext=cpp
20825 ac_cpp='$CXXCPP $CPPFLAGS'
20826 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20827 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20828 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20830 cat >conftest.$ac_ext <<_ACEOF
20831 /* confdefs.h. */
20832 _ACEOF
20833 cat confdefs.h >>conftest.$ac_ext
20834 cat >>conftest.$ac_ext <<_ACEOF
20835 /* end confdefs.h. */
20836 #include <cmath>
20838 main ()
20840 float f; isnan(f);
20842 return 0;
20844 _ACEOF
20845 rm -f conftest.$ac_objext
20846 if { (ac_try="$ac_compile"
20847 case "(($ac_try" in
20848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20849 *) ac_try_echo=$ac_try;;
20850 esac
20851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20852 (eval "$ac_compile") 2>conftest.er1
20853 ac_status=$?
20854 grep -v '^ *+' conftest.er1 >conftest.err
20855 rm -f conftest.er1
20856 cat conftest.err >&5
20857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20858 (exit $ac_status); } &&
20859 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20860 { (case "(($ac_try" in
20861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20862 *) ac_try_echo=$ac_try;;
20863 esac
20864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20865 (eval "$ac_try") 2>&5
20866 ac_status=$?
20867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20868 (exit $ac_status); }; } &&
20869 { ac_try='test -s conftest.$ac_objext'
20870 { (case "(($ac_try" in
20871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20872 *) ac_try_echo=$ac_try;;
20873 esac
20874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20875 (eval "$ac_try") 2>&5
20876 ac_status=$?
20877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20878 (exit $ac_status); }; }; then
20879 ac_cv_func_isnan_in_cmath=yes
20880 else
20881 echo "$as_me: failed program was:" >&5
20882 sed 's/^/| /' conftest.$ac_ext >&5
20884 ac_cv_func_isnan_in_cmath=no
20887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20888 ac_ext=c
20889 ac_cpp='$CPP $CPPFLAGS'
20890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20895 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20896 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
20898 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
20900 cat >>confdefs.h <<\_ACEOF
20901 #define HAVE_ISNAN_IN_CMATH 1
20902 _ACEOF
20906 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20907 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20908 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20909 echo $ECHO_N "(cached) $ECHO_C" >&6
20910 else
20911 ac_ext=cpp
20912 ac_cpp='$CXXCPP $CPPFLAGS'
20913 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20914 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20915 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20917 cat >conftest.$ac_ext <<_ACEOF
20918 /* confdefs.h. */
20919 _ACEOF
20920 cat confdefs.h >>conftest.$ac_ext
20921 cat >>conftest.$ac_ext <<_ACEOF
20922 /* end confdefs.h. */
20923 #include <cmath>
20925 main ()
20927 float f; std::isnan(f);
20929 return 0;
20931 _ACEOF
20932 rm -f conftest.$ac_objext
20933 if { (ac_try="$ac_compile"
20934 case "(($ac_try" in
20935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20936 *) ac_try_echo=$ac_try;;
20937 esac
20938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20939 (eval "$ac_compile") 2>conftest.er1
20940 ac_status=$?
20941 grep -v '^ *+' conftest.er1 >conftest.err
20942 rm -f conftest.er1
20943 cat conftest.err >&5
20944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20945 (exit $ac_status); } &&
20946 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20947 { (case "(($ac_try" in
20948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20949 *) ac_try_echo=$ac_try;;
20950 esac
20951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20952 (eval "$ac_try") 2>&5
20953 ac_status=$?
20954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20955 (exit $ac_status); }; } &&
20956 { ac_try='test -s conftest.$ac_objext'
20957 { (case "(($ac_try" in
20958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20959 *) ac_try_echo=$ac_try;;
20960 esac
20961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20962 (eval "$ac_try") 2>&5
20963 ac_status=$?
20964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20965 (exit $ac_status); }; }; then
20966 ac_cv_func_std_isnan_in_cmath=yes
20967 else
20968 echo "$as_me: failed program was:" >&5
20969 sed 's/^/| /' conftest.$ac_ext >&5
20971 ac_cv_func_std_isnan_in_cmath=no
20974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20975 ac_ext=c
20976 ac_cpp='$CPP $CPPFLAGS'
20977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20982 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
20983 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
20985 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
20987 cat >>confdefs.h <<\_ACEOF
20988 #define HAVE_STD_ISNAN_IN_CMATH 1
20989 _ACEOF
20994 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
20995 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
20996 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
20997 echo $ECHO_N "(cached) $ECHO_C" >&6
20998 else
20999 ac_ext=cpp
21000 ac_cpp='$CXXCPP $CPPFLAGS'
21001 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21002 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21003 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21005 cat >conftest.$ac_ext <<_ACEOF
21006 /* confdefs.h. */
21007 _ACEOF
21008 cat confdefs.h >>conftest.$ac_ext
21009 cat >>conftest.$ac_ext <<_ACEOF
21010 /* end confdefs.h. */
21011 #include <math.h>
21013 main ()
21015 float f; isinf(f);
21017 return 0;
21019 _ACEOF
21020 rm -f conftest.$ac_objext
21021 if { (ac_try="$ac_compile"
21022 case "(($ac_try" in
21023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21024 *) ac_try_echo=$ac_try;;
21025 esac
21026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21027 (eval "$ac_compile") 2>conftest.er1
21028 ac_status=$?
21029 grep -v '^ *+' conftest.er1 >conftest.err
21030 rm -f conftest.er1
21031 cat conftest.err >&5
21032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21033 (exit $ac_status); } &&
21034 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21035 { (case "(($ac_try" in
21036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21037 *) ac_try_echo=$ac_try;;
21038 esac
21039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21040 (eval "$ac_try") 2>&5
21041 ac_status=$?
21042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21043 (exit $ac_status); }; } &&
21044 { ac_try='test -s conftest.$ac_objext'
21045 { (case "(($ac_try" in
21046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21047 *) ac_try_echo=$ac_try;;
21048 esac
21049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21050 (eval "$ac_try") 2>&5
21051 ac_status=$?
21052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21053 (exit $ac_status); }; }; then
21054 ac_cv_func_isinf_in_math_h=yes
21055 else
21056 echo "$as_me: failed program was:" >&5
21057 sed 's/^/| /' conftest.$ac_ext >&5
21059 ac_cv_func_isinf_in_math_h=no
21062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21063 ac_ext=c
21064 ac_cpp='$CPP $CPPFLAGS'
21065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21070 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
21071 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
21073 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
21075 cat >>confdefs.h <<\_ACEOF
21076 #define HAVE_ISINF_IN_MATH_H 1
21077 _ACEOF
21081 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
21082 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
21083 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
21084 echo $ECHO_N "(cached) $ECHO_C" >&6
21085 else
21086 ac_ext=cpp
21087 ac_cpp='$CXXCPP $CPPFLAGS'
21088 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21089 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21090 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21092 cat >conftest.$ac_ext <<_ACEOF
21093 /* confdefs.h. */
21094 _ACEOF
21095 cat confdefs.h >>conftest.$ac_ext
21096 cat >>conftest.$ac_ext <<_ACEOF
21097 /* end confdefs.h. */
21098 #include <cmath>
21100 main ()
21102 float f; isinf(f);
21104 return 0;
21106 _ACEOF
21107 rm -f conftest.$ac_objext
21108 if { (ac_try="$ac_compile"
21109 case "(($ac_try" in
21110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21111 *) ac_try_echo=$ac_try;;
21112 esac
21113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21114 (eval "$ac_compile") 2>conftest.er1
21115 ac_status=$?
21116 grep -v '^ *+' conftest.er1 >conftest.err
21117 rm -f conftest.er1
21118 cat conftest.err >&5
21119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21120 (exit $ac_status); } &&
21121 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21122 { (case "(($ac_try" in
21123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21124 *) ac_try_echo=$ac_try;;
21125 esac
21126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21127 (eval "$ac_try") 2>&5
21128 ac_status=$?
21129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21130 (exit $ac_status); }; } &&
21131 { ac_try='test -s conftest.$ac_objext'
21132 { (case "(($ac_try" in
21133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21134 *) ac_try_echo=$ac_try;;
21135 esac
21136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21137 (eval "$ac_try") 2>&5
21138 ac_status=$?
21139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21140 (exit $ac_status); }; }; then
21141 ac_cv_func_isinf_in_cmath=yes
21142 else
21143 echo "$as_me: failed program was:" >&5
21144 sed 's/^/| /' conftest.$ac_ext >&5
21146 ac_cv_func_isinf_in_cmath=no
21149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21150 ac_ext=c
21151 ac_cpp='$CPP $CPPFLAGS'
21152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21157 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
21158 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
21160 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
21162 cat >>confdefs.h <<\_ACEOF
21163 #define HAVE_ISINF_IN_CMATH 1
21164 _ACEOF
21168 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
21169 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
21170 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
21171 echo $ECHO_N "(cached) $ECHO_C" >&6
21172 else
21173 ac_ext=cpp
21174 ac_cpp='$CXXCPP $CPPFLAGS'
21175 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21176 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21177 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21179 cat >conftest.$ac_ext <<_ACEOF
21180 /* confdefs.h. */
21181 _ACEOF
21182 cat confdefs.h >>conftest.$ac_ext
21183 cat >>conftest.$ac_ext <<_ACEOF
21184 /* end confdefs.h. */
21185 #include <cmath>
21187 main ()
21189 float f; std::isinf(f)}
21191 return 0;
21193 _ACEOF
21194 rm -f conftest.$ac_objext
21195 if { (ac_try="$ac_compile"
21196 case "(($ac_try" in
21197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21198 *) ac_try_echo=$ac_try;;
21199 esac
21200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21201 (eval "$ac_compile") 2>conftest.er1
21202 ac_status=$?
21203 grep -v '^ *+' conftest.er1 >conftest.err
21204 rm -f conftest.er1
21205 cat conftest.err >&5
21206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21207 (exit $ac_status); } &&
21208 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21209 { (case "(($ac_try" in
21210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21211 *) ac_try_echo=$ac_try;;
21212 esac
21213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21214 (eval "$ac_try") 2>&5
21215 ac_status=$?
21216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21217 (exit $ac_status); }; } &&
21218 { ac_try='test -s conftest.$ac_objext'
21219 { (case "(($ac_try" in
21220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21221 *) ac_try_echo=$ac_try;;
21222 esac
21223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21224 (eval "$ac_try") 2>&5
21225 ac_status=$?
21226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21227 (exit $ac_status); }; }; then
21228 ac_cv_func_std_isinf_in_cmath=yes
21229 else
21230 echo "$as_me: failed program was:" >&5
21231 sed 's/^/| /' conftest.$ac_ext >&5
21233 ac_cv_func_std_isinf_in_cmath=no
21236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21237 ac_ext=c
21238 ac_cpp='$CPP $CPPFLAGS'
21239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21244 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
21245 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
21247 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
21249 cat >>confdefs.h <<\_ACEOF
21250 #define HAVE_STD_ISINF_IN_CMATH 1
21251 _ACEOF
21255 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
21256 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
21257 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
21258 echo $ECHO_N "(cached) $ECHO_C" >&6
21259 else
21260 ac_ext=cpp
21261 ac_cpp='$CXXCPP $CPPFLAGS'
21262 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21263 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21264 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21266 cat >conftest.$ac_ext <<_ACEOF
21267 /* confdefs.h. */
21268 _ACEOF
21269 cat confdefs.h >>conftest.$ac_ext
21270 cat >>conftest.$ac_ext <<_ACEOF
21271 /* end confdefs.h. */
21272 #include <ieeefp.h>
21274 main ()
21276 float f; finite(f);
21278 return 0;
21280 _ACEOF
21281 rm -f conftest.$ac_objext
21282 if { (ac_try="$ac_compile"
21283 case "(($ac_try" in
21284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21285 *) ac_try_echo=$ac_try;;
21286 esac
21287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21288 (eval "$ac_compile") 2>conftest.er1
21289 ac_status=$?
21290 grep -v '^ *+' conftest.er1 >conftest.err
21291 rm -f conftest.er1
21292 cat conftest.err >&5
21293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21294 (exit $ac_status); } &&
21295 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21296 { (case "(($ac_try" in
21297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21298 *) ac_try_echo=$ac_try;;
21299 esac
21300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21301 (eval "$ac_try") 2>&5
21302 ac_status=$?
21303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21304 (exit $ac_status); }; } &&
21305 { ac_try='test -s conftest.$ac_objext'
21306 { (case "(($ac_try" in
21307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21308 *) ac_try_echo=$ac_try;;
21309 esac
21310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21311 (eval "$ac_try") 2>&5
21312 ac_status=$?
21313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21314 (exit $ac_status); }; }; then
21315 ac_cv_func_finite_in_ieeefp_h=yes
21316 else
21317 echo "$as_me: failed program was:" >&5
21318 sed 's/^/| /' conftest.$ac_ext >&5
21320 ac_cv_func_finite_in_ieeefp_h=no
21323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21324 ac_ext=c
21325 ac_cpp='$CPP $CPPFLAGS'
21326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21331 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21332 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
21334 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
21336 cat >>confdefs.h <<\_ACEOF
21337 #define HAVE_FINITE_IN_IEEEFP_H 1
21338 _ACEOF
21344 if test "$llvm_cv_platform_type" = "Unix" ; then
21347 for ac_header in stdlib.h unistd.h
21349 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21350 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21351 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21352 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21353 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21354 echo $ECHO_N "(cached) $ECHO_C" >&6
21356 ac_res=`eval echo '${'$as_ac_Header'}'`
21357 { echo "$as_me:$LINENO: result: $ac_res" >&5
21358 echo "${ECHO_T}$ac_res" >&6; }
21359 else
21360 # Is the header compilable?
21361 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21362 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21363 cat >conftest.$ac_ext <<_ACEOF
21364 /* confdefs.h. */
21365 _ACEOF
21366 cat confdefs.h >>conftest.$ac_ext
21367 cat >>conftest.$ac_ext <<_ACEOF
21368 /* end confdefs.h. */
21369 $ac_includes_default
21370 #include <$ac_header>
21371 _ACEOF
21372 rm -f conftest.$ac_objext
21373 if { (ac_try="$ac_compile"
21374 case "(($ac_try" in
21375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21376 *) ac_try_echo=$ac_try;;
21377 esac
21378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21379 (eval "$ac_compile") 2>conftest.er1
21380 ac_status=$?
21381 grep -v '^ *+' conftest.er1 >conftest.err
21382 rm -f conftest.er1
21383 cat conftest.err >&5
21384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21385 (exit $ac_status); } &&
21386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21387 { (case "(($ac_try" in
21388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21389 *) ac_try_echo=$ac_try;;
21390 esac
21391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21392 (eval "$ac_try") 2>&5
21393 ac_status=$?
21394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21395 (exit $ac_status); }; } &&
21396 { ac_try='test -s conftest.$ac_objext'
21397 { (case "(($ac_try" in
21398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21399 *) ac_try_echo=$ac_try;;
21400 esac
21401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21402 (eval "$ac_try") 2>&5
21403 ac_status=$?
21404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21405 (exit $ac_status); }; }; then
21406 ac_header_compiler=yes
21407 else
21408 echo "$as_me: failed program was:" >&5
21409 sed 's/^/| /' conftest.$ac_ext >&5
21411 ac_header_compiler=no
21414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21415 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21416 echo "${ECHO_T}$ac_header_compiler" >&6; }
21418 # Is the header present?
21419 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21420 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21421 cat >conftest.$ac_ext <<_ACEOF
21422 /* confdefs.h. */
21423 _ACEOF
21424 cat confdefs.h >>conftest.$ac_ext
21425 cat >>conftest.$ac_ext <<_ACEOF
21426 /* end confdefs.h. */
21427 #include <$ac_header>
21428 _ACEOF
21429 if { (ac_try="$ac_cpp conftest.$ac_ext"
21430 case "(($ac_try" in
21431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21432 *) ac_try_echo=$ac_try;;
21433 esac
21434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21435 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21436 ac_status=$?
21437 grep -v '^ *+' conftest.er1 >conftest.err
21438 rm -f conftest.er1
21439 cat conftest.err >&5
21440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21441 (exit $ac_status); } >/dev/null; then
21442 if test -s conftest.err; then
21443 ac_cpp_err=$ac_c_preproc_warn_flag
21444 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21445 else
21446 ac_cpp_err=
21448 else
21449 ac_cpp_err=yes
21451 if test -z "$ac_cpp_err"; then
21452 ac_header_preproc=yes
21453 else
21454 echo "$as_me: failed program was:" >&5
21455 sed 's/^/| /' conftest.$ac_ext >&5
21457 ac_header_preproc=no
21460 rm -f conftest.err conftest.$ac_ext
21461 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21462 echo "${ECHO_T}$ac_header_preproc" >&6; }
21464 # So? What about this header?
21465 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21466 yes:no: )
21467 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21468 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21469 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21470 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21471 ac_header_preproc=yes
21473 no:yes:* )
21474 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21475 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21476 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21477 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21478 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21479 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21480 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21481 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21482 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21483 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21484 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21485 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21486 ( cat <<\_ASBOX
21487 ## ----------------------------------- ##
21488 ## Report this to llvmbugs@cs.uiuc.edu ##
21489 ## ----------------------------------- ##
21490 _ASBOX
21491 ) | sed "s/^/$as_me: WARNING: /" >&2
21493 esac
21494 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21496 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21497 echo $ECHO_N "(cached) $ECHO_C" >&6
21498 else
21499 eval "$as_ac_Header=\$ac_header_preproc"
21501 ac_res=`eval echo '${'$as_ac_Header'}'`
21502 { echo "$as_me:$LINENO: result: $ac_res" >&5
21503 echo "${ECHO_T}$ac_res" >&6; }
21506 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21507 cat >>confdefs.h <<_ACEOF
21508 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21509 _ACEOF
21513 done
21516 for ac_func in getpagesize
21518 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21519 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21520 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21521 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21522 echo $ECHO_N "(cached) $ECHO_C" >&6
21523 else
21524 cat >conftest.$ac_ext <<_ACEOF
21525 /* confdefs.h. */
21526 _ACEOF
21527 cat confdefs.h >>conftest.$ac_ext
21528 cat >>conftest.$ac_ext <<_ACEOF
21529 /* end confdefs.h. */
21530 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21531 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21532 #define $ac_func innocuous_$ac_func
21534 /* System header to define __stub macros and hopefully few prototypes,
21535 which can conflict with char $ac_func (); below.
21536 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21537 <limits.h> exists even on freestanding compilers. */
21539 #ifdef __STDC__
21540 # include <limits.h>
21541 #else
21542 # include <assert.h>
21543 #endif
21545 #undef $ac_func
21547 /* Override any GCC internal prototype to avoid an error.
21548 Use char because int might match the return type of a GCC
21549 builtin and then its argument prototype would still apply. */
21550 #ifdef __cplusplus
21551 extern "C"
21552 #endif
21553 char $ac_func ();
21554 /* The GNU C library defines this for functions which it implements
21555 to always fail with ENOSYS. Some functions are actually named
21556 something starting with __ and the normal name is an alias. */
21557 #if defined __stub_$ac_func || defined __stub___$ac_func
21558 choke me
21559 #endif
21562 main ()
21564 return $ac_func ();
21566 return 0;
21568 _ACEOF
21569 rm -f conftest.$ac_objext conftest$ac_exeext
21570 if { (ac_try="$ac_link"
21571 case "(($ac_try" in
21572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21573 *) ac_try_echo=$ac_try;;
21574 esac
21575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21576 (eval "$ac_link") 2>conftest.er1
21577 ac_status=$?
21578 grep -v '^ *+' conftest.er1 >conftest.err
21579 rm -f conftest.er1
21580 cat conftest.err >&5
21581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21582 (exit $ac_status); } &&
21583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21584 { (case "(($ac_try" in
21585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21586 *) ac_try_echo=$ac_try;;
21587 esac
21588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21589 (eval "$ac_try") 2>&5
21590 ac_status=$?
21591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21592 (exit $ac_status); }; } &&
21593 { ac_try='test -s conftest$ac_exeext'
21594 { (case "(($ac_try" in
21595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21596 *) ac_try_echo=$ac_try;;
21597 esac
21598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21599 (eval "$ac_try") 2>&5
21600 ac_status=$?
21601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21602 (exit $ac_status); }; }; then
21603 eval "$as_ac_var=yes"
21604 else
21605 echo "$as_me: failed program was:" >&5
21606 sed 's/^/| /' conftest.$ac_ext >&5
21608 eval "$as_ac_var=no"
21611 rm -f core conftest.err conftest.$ac_objext \
21612 conftest$ac_exeext conftest.$ac_ext
21614 ac_res=`eval echo '${'$as_ac_var'}'`
21615 { echo "$as_me:$LINENO: result: $ac_res" >&5
21616 echo "${ECHO_T}$ac_res" >&6; }
21617 if test `eval echo '${'$as_ac_var'}'` = yes; then
21618 cat >>confdefs.h <<_ACEOF
21619 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21620 _ACEOF
21623 done
21625 { echo "$as_me:$LINENO: checking for working mmap" >&5
21626 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21627 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21628 echo $ECHO_N "(cached) $ECHO_C" >&6
21629 else
21630 if test "$cross_compiling" = yes; then
21631 ac_cv_func_mmap_fixed_mapped=no
21632 else
21633 cat >conftest.$ac_ext <<_ACEOF
21634 /* confdefs.h. */
21635 _ACEOF
21636 cat confdefs.h >>conftest.$ac_ext
21637 cat >>conftest.$ac_ext <<_ACEOF
21638 /* end confdefs.h. */
21639 $ac_includes_default
21640 /* malloc might have been renamed as rpl_malloc. */
21641 #undef malloc
21643 /* Thanks to Mike Haertel and Jim Avera for this test.
21644 Here is a matrix of mmap possibilities:
21645 mmap private not fixed
21646 mmap private fixed at somewhere currently unmapped
21647 mmap private fixed at somewhere already mapped
21648 mmap shared not fixed
21649 mmap shared fixed at somewhere currently unmapped
21650 mmap shared fixed at somewhere already mapped
21651 For private mappings, we should verify that changes cannot be read()
21652 back from the file, nor mmap's back from the file at a different
21653 address. (There have been systems where private was not correctly
21654 implemented like the infamous i386 svr4.0, and systems where the
21655 VM page cache was not coherent with the file system buffer cache
21656 like early versions of FreeBSD and possibly contemporary NetBSD.)
21657 For shared mappings, we should conversely verify that changes get
21658 propagated back to all the places they're supposed to be.
21660 Grep wants private fixed already mapped.
21661 The main things grep needs to know about mmap are:
21662 * does it exist and is it safe to write into the mmap'd area
21663 * how to use it (BSD variants) */
21665 #include <fcntl.h>
21666 #include <sys/mman.h>
21668 #if !STDC_HEADERS && !HAVE_STDLIB_H
21669 char *malloc ();
21670 #endif
21672 /* This mess was copied from the GNU getpagesize.h. */
21673 #if !HAVE_GETPAGESIZE
21674 /* Assume that all systems that can run configure have sys/param.h. */
21675 # if !HAVE_SYS_PARAM_H
21676 # define HAVE_SYS_PARAM_H 1
21677 # endif
21679 # ifdef _SC_PAGESIZE
21680 # define getpagesize() sysconf(_SC_PAGESIZE)
21681 # else /* no _SC_PAGESIZE */
21682 # if HAVE_SYS_PARAM_H
21683 # include <sys/param.h>
21684 # ifdef EXEC_PAGESIZE
21685 # define getpagesize() EXEC_PAGESIZE
21686 # else /* no EXEC_PAGESIZE */
21687 # ifdef NBPG
21688 # define getpagesize() NBPG * CLSIZE
21689 # ifndef CLSIZE
21690 # define CLSIZE 1
21691 # endif /* no CLSIZE */
21692 # else /* no NBPG */
21693 # ifdef NBPC
21694 # define getpagesize() NBPC
21695 # else /* no NBPC */
21696 # ifdef PAGESIZE
21697 # define getpagesize() PAGESIZE
21698 # endif /* PAGESIZE */
21699 # endif /* no NBPC */
21700 # endif /* no NBPG */
21701 # endif /* no EXEC_PAGESIZE */
21702 # else /* no HAVE_SYS_PARAM_H */
21703 # define getpagesize() 8192 /* punt totally */
21704 # endif /* no HAVE_SYS_PARAM_H */
21705 # endif /* no _SC_PAGESIZE */
21707 #endif /* no HAVE_GETPAGESIZE */
21710 main ()
21712 char *data, *data2, *data3;
21713 int i, pagesize;
21714 int fd;
21716 pagesize = getpagesize ();
21718 /* First, make a file with some known garbage in it. */
21719 data = (char *) malloc (pagesize);
21720 if (!data)
21721 return 1;
21722 for (i = 0; i < pagesize; ++i)
21723 *(data + i) = rand ();
21724 umask (0);
21725 fd = creat ("conftest.mmap", 0600);
21726 if (fd < 0)
21727 return 1;
21728 if (write (fd, data, pagesize) != pagesize)
21729 return 1;
21730 close (fd);
21732 /* Next, try to mmap the file at a fixed address which already has
21733 something else allocated at it. If we can, also make sure that
21734 we see the same garbage. */
21735 fd = open ("conftest.mmap", O_RDWR);
21736 if (fd < 0)
21737 return 1;
21738 data2 = (char *) malloc (2 * pagesize);
21739 if (!data2)
21740 return 1;
21741 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21742 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21743 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21744 return 1;
21745 for (i = 0; i < pagesize; ++i)
21746 if (*(data + i) != *(data2 + i))
21747 return 1;
21749 /* Finally, make sure that changes to the mapped area do not
21750 percolate back to the file as seen by read(). (This is a bug on
21751 some variants of i386 svr4.0.) */
21752 for (i = 0; i < pagesize; ++i)
21753 *(data2 + i) = *(data2 + i) + 1;
21754 data3 = (char *) malloc (pagesize);
21755 if (!data3)
21756 return 1;
21757 if (read (fd, data3, pagesize) != pagesize)
21758 return 1;
21759 for (i = 0; i < pagesize; ++i)
21760 if (*(data + i) != *(data3 + i))
21761 return 1;
21762 close (fd);
21763 return 0;
21765 _ACEOF
21766 rm -f conftest$ac_exeext
21767 if { (ac_try="$ac_link"
21768 case "(($ac_try" in
21769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21770 *) ac_try_echo=$ac_try;;
21771 esac
21772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21773 (eval "$ac_link") 2>&5
21774 ac_status=$?
21775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21776 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21777 { (case "(($ac_try" in
21778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21779 *) ac_try_echo=$ac_try;;
21780 esac
21781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21782 (eval "$ac_try") 2>&5
21783 ac_status=$?
21784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21785 (exit $ac_status); }; }; then
21786 ac_cv_func_mmap_fixed_mapped=yes
21787 else
21788 echo "$as_me: program exited with status $ac_status" >&5
21789 echo "$as_me: failed program was:" >&5
21790 sed 's/^/| /' conftest.$ac_ext >&5
21792 ( exit $ac_status )
21793 ac_cv_func_mmap_fixed_mapped=no
21795 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21800 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21801 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
21802 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21804 cat >>confdefs.h <<\_ACEOF
21805 #define HAVE_MMAP 1
21806 _ACEOF
21809 rm -f conftest.mmap
21811 { echo "$as_me:$LINENO: checking for mmap of files" >&5
21812 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21813 if test "${ac_cv_func_mmap_file+set}" = set; then
21814 echo $ECHO_N "(cached) $ECHO_C" >&6
21815 else
21816 ac_ext=c
21817 ac_cpp='$CPP $CPPFLAGS'
21818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21822 if test "$cross_compiling" = yes; then
21823 ac_cv_func_mmap_file=no
21824 else
21825 cat >conftest.$ac_ext <<_ACEOF
21827 /* confdefs.h. */
21828 _ACEOF
21829 cat confdefs.h >>conftest.$ac_ext
21830 cat >>conftest.$ac_ext <<_ACEOF
21831 /* end confdefs.h. */
21833 #include <sys/types.h>
21834 #include <sys/mman.h>
21835 #include <fcntl.h>
21838 main ()
21841 int fd;
21842 fd = creat ("foo",0777);
21843 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21844 unlink ("foo");
21845 return (fd != (int) MAP_FAILED);
21847 return 0;
21849 _ACEOF
21850 rm -f conftest$ac_exeext
21851 if { (ac_try="$ac_link"
21852 case "(($ac_try" in
21853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21854 *) ac_try_echo=$ac_try;;
21855 esac
21856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21857 (eval "$ac_link") 2>&5
21858 ac_status=$?
21859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21860 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21861 { (case "(($ac_try" in
21862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21863 *) ac_try_echo=$ac_try;;
21864 esac
21865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21866 (eval "$ac_try") 2>&5
21867 ac_status=$?
21868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21869 (exit $ac_status); }; }; then
21870 ac_cv_func_mmap_file=yes
21871 else
21872 echo "$as_me: program exited with status $ac_status" >&5
21873 echo "$as_me: failed program was:" >&5
21874 sed 's/^/| /' conftest.$ac_ext >&5
21876 ( exit $ac_status )
21877 ac_cv_func_mmap_file=no
21879 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21883 ac_ext=c
21884 ac_cpp='$CPP $CPPFLAGS'
21885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21891 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21892 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
21893 if test "$ac_cv_func_mmap_file" = yes; then
21895 cat >>confdefs.h <<\_ACEOF
21896 #define HAVE_MMAP_FILE
21897 _ACEOF
21899 MMAP_FILE=yes
21903 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21904 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21905 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21906 echo $ECHO_N "(cached) $ECHO_C" >&6
21907 else
21908 if test "$llvm_cv_os_type" = "Interix" ; then
21909 ac_cv_need_dev_zero_for_mmap=yes
21910 else
21911 ac_cv_need_dev_zero_for_mmap=no
21915 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21916 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
21917 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21919 cat >>confdefs.h <<\_ACEOF
21920 #define NEED_DEV_ZERO_FOR_MMAP 1
21921 _ACEOF
21925 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21926 then
21927 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
21928 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
21930 if test "$ac_cv_func_mmap_file" = "no"
21931 then
21932 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21933 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
21937 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
21938 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
21939 ac_ext=cpp
21940 ac_cpp='$CXXCPP $CPPFLAGS'
21941 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21942 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21943 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21945 cat >conftest.$ac_ext <<_ACEOF
21946 /* confdefs.h. */
21947 _ACEOF
21948 cat confdefs.h >>conftest.$ac_ext
21949 cat >>conftest.$ac_ext <<_ACEOF
21950 /* end confdefs.h. */
21951 int main() {
21952 volatile unsigned long val = 1;
21953 __sync_synchronize();
21954 __sync_val_compare_and_swap(&val, 1, 0);
21955 __sync_add_and_fetch(&val, 1);
21956 __sync_sub_and_fetch(&val, 1);
21957 return 0;
21960 _ACEOF
21961 rm -f conftest.$ac_objext conftest$ac_exeext
21962 if { (ac_try="$ac_link"
21963 case "(($ac_try" in
21964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21965 *) ac_try_echo=$ac_try;;
21966 esac
21967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21968 (eval "$ac_link") 2>conftest.er1
21969 ac_status=$?
21970 grep -v '^ *+' conftest.er1 >conftest.err
21971 rm -f conftest.er1
21972 cat conftest.err >&5
21973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21974 (exit $ac_status); } &&
21975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21976 { (case "(($ac_try" in
21977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21978 *) ac_try_echo=$ac_try;;
21979 esac
21980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21981 (eval "$ac_try") 2>&5
21982 ac_status=$?
21983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21984 (exit $ac_status); }; } &&
21985 { ac_try='test -s conftest$ac_exeext'
21986 { (case "(($ac_try" in
21987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21988 *) ac_try_echo=$ac_try;;
21989 esac
21990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21991 (eval "$ac_try") 2>&5
21992 ac_status=$?
21993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21994 (exit $ac_status); }; }; then
21995 ac_ext=c
21996 ac_cpp='$CPP $CPPFLAGS'
21997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22001 { echo "$as_me:$LINENO: result: yes" >&5
22002 echo "${ECHO_T}yes" >&6; }
22004 cat >>confdefs.h <<\_ACEOF
22005 #define LLVM_MULTITHREADED 1
22006 _ACEOF
22008 else
22009 echo "$as_me: failed program was:" >&5
22010 sed 's/^/| /' conftest.$ac_ext >&5
22012 { echo "$as_me:$LINENO: result: no" >&5
22013 echo "${ECHO_T}no" >&6; }
22015 cat >>confdefs.h <<\_ACEOF
22016 #define LLVM_MULTITHREADED 0
22017 _ACEOF
22019 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
22020 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
22023 rm -f core conftest.err conftest.$ac_objext \
22024 conftest$ac_exeext conftest.$ac_ext
22027 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
22028 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
22029 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
22030 if test "${llvm_cv_linux_mixed+set}" = set; then
22031 echo $ECHO_N "(cached) $ECHO_C" >&6
22032 else
22033 ac_ext=c
22034 ac_cpp='$CPP $CPPFLAGS'
22035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22039 cat >conftest.$ac_ext <<_ACEOF
22040 /* confdefs.h. */
22041 _ACEOF
22042 cat confdefs.h >>conftest.$ac_ext
22043 cat >>conftest.$ac_ext <<_ACEOF
22044 /* end confdefs.h. */
22045 #ifndef __x86_64__
22046 error: Not x86-64 even if uname says so!
22047 #endif
22050 main ()
22054 return 0;
22056 _ACEOF
22057 rm -f conftest.$ac_objext
22058 if { (ac_try="$ac_compile"
22059 case "(($ac_try" in
22060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22061 *) ac_try_echo=$ac_try;;
22062 esac
22063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22064 (eval "$ac_compile") 2>conftest.er1
22065 ac_status=$?
22066 grep -v '^ *+' conftest.er1 >conftest.err
22067 rm -f conftest.er1
22068 cat conftest.err >&5
22069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22070 (exit $ac_status); } &&
22071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22072 { (case "(($ac_try" in
22073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22074 *) ac_try_echo=$ac_try;;
22075 esac
22076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22077 (eval "$ac_try") 2>&5
22078 ac_status=$?
22079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22080 (exit $ac_status); }; } &&
22081 { ac_try='test -s conftest.$ac_objext'
22082 { (case "(($ac_try" in
22083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22084 *) ac_try_echo=$ac_try;;
22085 esac
22086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22087 (eval "$ac_try") 2>&5
22088 ac_status=$?
22089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22090 (exit $ac_status); }; }; then
22091 llvm_cv_linux_mixed=no
22092 else
22093 echo "$as_me: failed program was:" >&5
22094 sed 's/^/| /' conftest.$ac_ext >&5
22096 llvm_cv_linux_mixed=yes
22099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22100 ac_ext=c
22101 ac_cpp='$CPP $CPPFLAGS'
22102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22108 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
22109 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
22111 if test "$llvm_cv_linux_mixed" = "yes"; then
22112 llvm_cv_target_arch="x86"
22113 ARCH="x86"
22118 for ac_func in __dso_handle
22120 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22121 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22122 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22123 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22124 echo $ECHO_N "(cached) $ECHO_C" >&6
22125 else
22126 cat >conftest.$ac_ext <<_ACEOF
22127 /* confdefs.h. */
22128 _ACEOF
22129 cat confdefs.h >>conftest.$ac_ext
22130 cat >>conftest.$ac_ext <<_ACEOF
22131 /* end confdefs.h. */
22132 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22133 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22134 #define $ac_func innocuous_$ac_func
22136 /* System header to define __stub macros and hopefully few prototypes,
22137 which can conflict with char $ac_func (); below.
22138 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22139 <limits.h> exists even on freestanding compilers. */
22141 #ifdef __STDC__
22142 # include <limits.h>
22143 #else
22144 # include <assert.h>
22145 #endif
22147 #undef $ac_func
22149 /* Override any GCC internal prototype to avoid an error.
22150 Use char because int might match the return type of a GCC
22151 builtin and then its argument prototype would still apply. */
22152 #ifdef __cplusplus
22153 extern "C"
22154 #endif
22155 char $ac_func ();
22156 /* The GNU C library defines this for functions which it implements
22157 to always fail with ENOSYS. Some functions are actually named
22158 something starting with __ and the normal name is an alias. */
22159 #if defined __stub_$ac_func || defined __stub___$ac_func
22160 choke me
22161 #endif
22164 main ()
22166 return $ac_func ();
22168 return 0;
22170 _ACEOF
22171 rm -f conftest.$ac_objext conftest$ac_exeext
22172 if { (ac_try="$ac_link"
22173 case "(($ac_try" in
22174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22175 *) ac_try_echo=$ac_try;;
22176 esac
22177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22178 (eval "$ac_link") 2>conftest.er1
22179 ac_status=$?
22180 grep -v '^ *+' conftest.er1 >conftest.err
22181 rm -f conftest.er1
22182 cat conftest.err >&5
22183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22184 (exit $ac_status); } &&
22185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22186 { (case "(($ac_try" in
22187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22188 *) ac_try_echo=$ac_try;;
22189 esac
22190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22191 (eval "$ac_try") 2>&5
22192 ac_status=$?
22193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22194 (exit $ac_status); }; } &&
22195 { ac_try='test -s conftest$ac_exeext'
22196 { (case "(($ac_try" in
22197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22198 *) ac_try_echo=$ac_try;;
22199 esac
22200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22201 (eval "$ac_try") 2>&5
22202 ac_status=$?
22203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22204 (exit $ac_status); }; }; then
22205 eval "$as_ac_var=yes"
22206 else
22207 echo "$as_me: failed program was:" >&5
22208 sed 's/^/| /' conftest.$ac_ext >&5
22210 eval "$as_ac_var=no"
22213 rm -f core conftest.err conftest.$ac_objext \
22214 conftest$ac_exeext conftest.$ac_ext
22216 ac_res=`eval echo '${'$as_ac_var'}'`
22217 { echo "$as_me:$LINENO: result: $ac_res" >&5
22218 echo "${ECHO_T}$ac_res" >&6; }
22219 if test `eval echo '${'$as_ac_var'}'` = yes; then
22220 cat >>confdefs.h <<_ACEOF
22221 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22222 _ACEOF
22225 done
22228 { echo "$as_me:$LINENO: checking whether llvm-gcc is dragonegg" >&5
22229 echo $ECHO_N "checking whether llvm-gcc is dragonegg... $ECHO_C" >&6; }
22230 if test "${llvm_cv_llvmgcc_dragonegg+set}" = set; then
22231 echo $ECHO_N "(cached) $ECHO_C" >&6
22232 else
22233 llvm_cv_llvmgcc_dragonegg="no"
22234 if test -n "$LLVMGCC" ; then
22235 cp /dev/null conftest.c
22236 $LLVMGCC -fplugin-arg-dragonegg-emit-ir -S -o - conftest.c > /dev/null 2>&1
22237 if test $? -eq 0 ; then
22238 llvm_cv_llvmgcc_dragonegg="yes"
22240 rm conftest.c
22243 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_dragonegg" >&5
22244 echo "${ECHO_T}$llvm_cv_llvmgcc_dragonegg" >&6; }
22246 if test "$llvm_cv_llvmgcc_dragonegg" = "yes" ; then
22247 LLVMCC_EMITIR_FLAG="-fplugin-arg-dragonegg-emit-ir"
22248 LLVMCC_DISABLEOPT_FLAGS="-fplugin-arg-dragonegg-disable-llvm-optzns"
22249 else
22250 LLVMCC_EMITIR_FLAG="-emit-llvm"
22251 LLVMCC_DISABLEOPT_FLAGS="-mllvm -disable-llvm-optzns"
22256 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
22257 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
22258 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
22259 echo $ECHO_N "(cached) $ECHO_C" >&6
22260 else
22261 llvm_cv_llvmgcc_sanity="no"
22262 if test -n "$LLVMGCC" ; then
22263 cp /dev/null conftest.c
22264 $LLVMGCC "$LLVMCC_EMITIR_FLAG" -S -o - conftest.c | \
22265 grep 'target datalayout =' > /dev/null 2>&1
22266 if test $? -eq 0 ; then
22267 llvm_cv_llvmgcc_sanity="yes"
22269 rm conftest.c
22272 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
22273 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
22275 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
22276 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
22277 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
22278 llvmcc1path=`$LLVMGCC --print-prog-name=cc1`
22279 LLVMCC1=$llvmcc1path
22281 llvmcc1pluspath=`$LLVMGCC --print-prog-name=cc1plus`
22282 LLVMCC1PLUS=$llvmcc1pluspath
22284 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
22285 LLVMGCCDIR=$llvmgccdir
22287 llvmgcclangs=`$LLVMGCC -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
22288 LLVMGCC_LANGS=$llvmgcclangs
22290 LLVMGCC_DRAGONEGG=$llvm_cv_llvmgcc_dragonegg
22293 { echo "$as_me:$LINENO: result: ok" >&5
22294 echo "${ECHO_T}ok" >&6; }
22297 SHLIBEXT=$libltdl_cv_shlibext
22300 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
22303 # Translate the various configuration directories and other basic
22304 # information into substitutions that will end up in Makefile.config.in
22305 # that these configured values can be used by the makefiles
22306 if test "${prefix}" = "NONE" ; then
22307 prefix="/usr/local"
22309 eval LLVM_PREFIX="${prefix}";
22310 eval LLVM_BINDIR="${prefix}/bin";
22311 eval LLVM_LIBDIR="${prefix}/lib";
22312 eval LLVM_DATADIR="${prefix}/share/llvm";
22313 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
22314 eval LLVM_ETCDIR="${prefix}/etc/llvm";
22315 eval LLVM_INCLUDEDIR="${prefix}/include";
22316 eval LLVM_INFODIR="${prefix}/info";
22317 eval LLVM_MANDIR="${prefix}/man";
22318 LLVM_CONFIGTIME=`date`
22330 # Place the various directores into the config.h file as #defines so that we
22331 # can know about the installation paths within LLVM.
22333 cat >>confdefs.h <<_ACEOF
22334 #define LLVM_PREFIX "$LLVM_PREFIX"
22335 _ACEOF
22338 cat >>confdefs.h <<_ACEOF
22339 #define LLVM_BINDIR "$LLVM_BINDIR"
22340 _ACEOF
22343 cat >>confdefs.h <<_ACEOF
22344 #define LLVM_LIBDIR "$LLVM_LIBDIR"
22345 _ACEOF
22348 cat >>confdefs.h <<_ACEOF
22349 #define LLVM_DATADIR "$LLVM_DATADIR"
22350 _ACEOF
22353 cat >>confdefs.h <<_ACEOF
22354 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
22355 _ACEOF
22358 cat >>confdefs.h <<_ACEOF
22359 #define LLVM_ETCDIR "$LLVM_ETCDIR"
22360 _ACEOF
22363 cat >>confdefs.h <<_ACEOF
22364 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
22365 _ACEOF
22368 cat >>confdefs.h <<_ACEOF
22369 #define LLVM_INFODIR "$LLVM_INFODIR"
22370 _ACEOF
22373 cat >>confdefs.h <<_ACEOF
22374 #define LLVM_MANDIR "$LLVM_MANDIR"
22375 _ACEOF
22378 cat >>confdefs.h <<_ACEOF
22379 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
22380 _ACEOF
22383 cat >>confdefs.h <<_ACEOF
22384 #define LLVM_HOSTTRIPLE "$host"
22385 _ACEOF
22388 # Determine which bindings to build.
22389 if test "$BINDINGS_TO_BUILD" = auto ; then
22390 BINDINGS_TO_BUILD=""
22391 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
22392 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
22395 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
22398 # This isn't really configurey, but it avoids having to repeat the list in
22399 # other files.
22400 ALL_BINDINGS=ocaml
22403 # Do any work necessary to ensure that bindings have what they need.
22404 binding_prereqs_failed=0
22405 for a_binding in $BINDINGS_TO_BUILD ; do
22406 case "$a_binding" in
22407 ocaml)
22408 if test "x$OCAMLC" = x ; then
22409 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
22410 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
22411 binding_prereqs_failed=1
22413 if test "x$OCAMLDEP" = x ; then
22414 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
22415 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
22416 binding_prereqs_failed=1
22418 if test "x$OCAMLOPT" = x ; then
22419 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
22420 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
22422 if test "x$with_ocaml_libdir" != xauto ; then
22423 OCAML_LIBDIR=$with_ocaml_libdir
22425 else
22426 ocaml_stdlib="`"$OCAMLC" -where`"
22427 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
22428 then
22429 # ocaml stdlib is beneath our prefix; use stdlib
22430 OCAML_LIBDIR=$ocaml_stdlib
22432 else
22433 # ocaml stdlib is outside our prefix; use libdir/ocaml
22434 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
22439 esac
22440 done
22441 if test "$binding_prereqs_failed" = 1 ; then
22442 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
22443 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
22444 { (exit 1); exit 1; }; }
22447 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
22448 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
22449 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
22450 echo $ECHO_N "(cached) $ECHO_C" >&6
22451 else
22452 ac_ext=cpp
22453 ac_cpp='$CXXCPP $CPPFLAGS'
22454 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22455 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22456 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22458 oldcxxflags="$CXXFLAGS"
22459 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
22460 cat >conftest.$ac_ext <<_ACEOF
22461 /* confdefs.h. */
22462 _ACEOF
22463 cat confdefs.h >>conftest.$ac_ext
22464 cat >>conftest.$ac_ext <<_ACEOF
22465 /* end confdefs.h. */
22468 main ()
22472 return 0;
22474 _ACEOF
22475 rm -f conftest.$ac_objext
22476 if { (ac_try="$ac_compile"
22477 case "(($ac_try" in
22478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22479 *) ac_try_echo=$ac_try;;
22480 esac
22481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22482 (eval "$ac_compile") 2>conftest.er1
22483 ac_status=$?
22484 grep -v '^ *+' conftest.er1 >conftest.err
22485 rm -f conftest.er1
22486 cat conftest.err >&5
22487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22488 (exit $ac_status); } &&
22489 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22490 { (case "(($ac_try" in
22491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22492 *) ac_try_echo=$ac_try;;
22493 esac
22494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22495 (eval "$ac_try") 2>&5
22496 ac_status=$?
22497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22498 (exit $ac_status); }; } &&
22499 { ac_try='test -s conftest.$ac_objext'
22500 { (case "(($ac_try" in
22501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22502 *) ac_try_echo=$ac_try;;
22503 esac
22504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22505 (eval "$ac_try") 2>&5
22506 ac_status=$?
22507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22508 (exit $ac_status); }; }; then
22509 llvm_cv_cxx_visibility_inlines_hidden=yes
22510 else
22511 echo "$as_me: failed program was:" >&5
22512 sed 's/^/| /' conftest.$ac_ext >&5
22514 llvm_cv_cxx_visibility_inlines_hidden=no
22517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22518 CXXFLAGS="$oldcxxflags"
22519 ac_ext=c
22520 ac_cpp='$CPP $CPPFLAGS'
22521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22527 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
22528 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
22529 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
22530 ENABLE_VISIBILITY_INLINES_HIDDEN=1
22532 else
22533 ENABLE_VISIBILITY_INLINES_HIDDEN=0
22538 if test "$llvm_cv_link_use_r" = "yes" ; then
22539 RPATH="-Wl,-R"
22540 else
22541 RPATH="-Wl,-rpath"
22545 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
22546 RDYNAMIC="-Wl,-export-dynamic"
22547 else
22548 RDYNAMIC=""
22553 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
22560 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
22562 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
22564 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
22566 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
22568 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
22571 ac_config_files="$ac_config_files Makefile.config"
22574 ac_config_files="$ac_config_files llvm.spec"
22577 ac_config_files="$ac_config_files docs/doxygen.cfg"
22579 if test -f ${srcdir}/tools/clang/README.txt; then
22580 ac_config_files="$ac_config_files tools/clang/docs/doxygen.cfg"
22584 ac_config_files="$ac_config_files tools/llvmc/src/Base.td"
22587 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
22590 ac_config_commands="$ac_config_commands setup"
22592 ac_config_commands="$ac_config_commands Makefile"
22595 ac_config_commands="$ac_config_commands Makefile.common"
22598 ac_config_commands="$ac_config_commands examples/Makefile"
22601 ac_config_commands="$ac_config_commands lib/Makefile"
22604 ac_config_commands="$ac_config_commands runtime/Makefile"
22607 ac_config_commands="$ac_config_commands test/Makefile"
22610 ac_config_commands="$ac_config_commands test/Makefile.tests"
22613 ac_config_commands="$ac_config_commands unittests/Makefile"
22616 ac_config_commands="$ac_config_commands tools/Makefile"
22619 ac_config_commands="$ac_config_commands utils/Makefile"
22622 ac_config_commands="$ac_config_commands projects/Makefile"
22625 ac_config_commands="$ac_config_commands bindings/Makefile"
22628 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22632 cat >confcache <<\_ACEOF
22633 # This file is a shell script that caches the results of configure
22634 # tests run on this system so they can be shared between configure
22635 # scripts and configure runs, see configure's option --config-cache.
22636 # It is not useful on other systems. If it contains results you don't
22637 # want to keep, you may remove or edit it.
22639 # config.status only pays attention to the cache file if you give it
22640 # the --recheck option to rerun configure.
22642 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22643 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22644 # following values.
22646 _ACEOF
22648 # The following way of writing the cache mishandles newlines in values,
22649 # but we know of no workaround that is simple, portable, and efficient.
22650 # So, we kill variables containing newlines.
22651 # Ultrix sh set writes to stderr and can't be redirected directly,
22652 # and sets the high bit in the cache file unless we assign to the vars.
22654 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22655 eval ac_val=\$$ac_var
22656 case $ac_val in #(
22657 *${as_nl}*)
22658 case $ac_var in #(
22659 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22660 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22661 esac
22662 case $ac_var in #(
22663 _ | IFS | as_nl) ;; #(
22664 *) $as_unset $ac_var ;;
22665 esac ;;
22666 esac
22667 done
22669 (set) 2>&1 |
22670 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22671 *${as_nl}ac_space=\ *)
22672 # `set' does not quote correctly, so add quotes (double-quote
22673 # substitution turns \\\\ into \\, and sed turns \\ into \).
22674 sed -n \
22675 "s/'/'\\\\''/g;
22676 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22677 ;; #(
22679 # `set' quotes correctly as required by POSIX, so do not add quotes.
22680 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22682 esac |
22683 sort
22685 sed '
22686 /^ac_cv_env_/b end
22687 t clear
22688 :clear
22689 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22690 t end
22691 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22692 :end' >>confcache
22693 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22694 if test -w "$cache_file"; then
22695 test "x$cache_file" != "x/dev/null" &&
22696 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22697 echo "$as_me: updating cache $cache_file" >&6;}
22698 cat confcache >$cache_file
22699 else
22700 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22701 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22704 rm -f confcache
22706 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22707 # Let make expand exec_prefix.
22708 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22710 DEFS=-DHAVE_CONFIG_H
22712 ac_libobjs=
22713 ac_ltlibobjs=
22714 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22715 # 1. Remove the extension, and $U if already installed.
22716 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22717 ac_i=`echo "$ac_i" | sed "$ac_script"`
22718 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22719 # will be set to the directory where LIBOBJS objects are built.
22720 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22721 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22722 done
22723 LIBOBJS=$ac_libobjs
22725 LTLIBOBJS=$ac_ltlibobjs
22728 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22729 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22730 Usually this means the macro was only invoked conditionally." >&5
22731 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22732 Usually this means the macro was only invoked conditionally." >&2;}
22733 { (exit 1); exit 1; }; }
22735 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22736 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22737 Usually this means the macro was only invoked conditionally." >&5
22738 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22739 Usually this means the macro was only invoked conditionally." >&2;}
22740 { (exit 1); exit 1; }; }
22743 : ${CONFIG_STATUS=./config.status}
22744 ac_clean_files_save=$ac_clean_files
22745 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22746 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22747 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22748 cat >$CONFIG_STATUS <<_ACEOF
22749 #! $SHELL
22750 # Generated by $as_me.
22751 # Run this file to recreate the current configuration.
22752 # Compiler output produced by configure, useful for debugging
22753 # configure, is in config.log if it exists.
22755 debug=false
22756 ac_cs_recheck=false
22757 ac_cs_silent=false
22758 SHELL=\${CONFIG_SHELL-$SHELL}
22759 _ACEOF
22761 cat >>$CONFIG_STATUS <<\_ACEOF
22762 ## --------------------- ##
22763 ## M4sh Initialization. ##
22764 ## --------------------- ##
22766 # Be Bourne compatible
22767 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22768 emulate sh
22769 NULLCMD=:
22770 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22771 # is contrary to our usage. Disable this feature.
22772 alias -g '${1+"$@"}'='"$@"'
22773 setopt NO_GLOB_SUBST
22774 else
22775 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22777 BIN_SH=xpg4; export BIN_SH # for Tru64
22778 DUALCASE=1; export DUALCASE # for MKS sh
22781 # PATH needs CR
22782 # Avoid depending upon Character Ranges.
22783 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22784 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22785 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22786 as_cr_digits='0123456789'
22787 as_cr_alnum=$as_cr_Letters$as_cr_digits
22789 # The user is always right.
22790 if test "${PATH_SEPARATOR+set}" != set; then
22791 echo "#! /bin/sh" >conf$$.sh
22792 echo "exit 0" >>conf$$.sh
22793 chmod +x conf$$.sh
22794 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22795 PATH_SEPARATOR=';'
22796 else
22797 PATH_SEPARATOR=:
22799 rm -f conf$$.sh
22802 # Support unset when possible.
22803 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22804 as_unset=unset
22805 else
22806 as_unset=false
22810 # IFS
22811 # We need space, tab and new line, in precisely that order. Quoting is
22812 # there to prevent editors from complaining about space-tab.
22813 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22814 # splitting by setting IFS to empty value.)
22815 as_nl='
22817 IFS=" "" $as_nl"
22819 # Find who we are. Look in the path if we contain no directory separator.
22820 case $0 in
22821 *[\\/]* ) as_myself=$0 ;;
22822 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22823 for as_dir in $PATH
22825 IFS=$as_save_IFS
22826 test -z "$as_dir" && as_dir=.
22827 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22828 done
22829 IFS=$as_save_IFS
22832 esac
22833 # We did not find ourselves, most probably we were run as `sh COMMAND'
22834 # in which case we are not to be found in the path.
22835 if test "x$as_myself" = x; then
22836 as_myself=$0
22838 if test ! -f "$as_myself"; then
22839 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22840 { (exit 1); exit 1; }
22843 # Work around bugs in pre-3.0 UWIN ksh.
22844 for as_var in ENV MAIL MAILPATH
22845 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22846 done
22847 PS1='$ '
22848 PS2='> '
22849 PS4='+ '
22851 # NLS nuisances.
22852 for as_var in \
22853 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22854 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22855 LC_TELEPHONE LC_TIME
22857 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22858 eval $as_var=C; export $as_var
22859 else
22860 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22862 done
22864 # Required to use basename.
22865 if expr a : '\(a\)' >/dev/null 2>&1 &&
22866 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22867 as_expr=expr
22868 else
22869 as_expr=false
22872 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22873 as_basename=basename
22874 else
22875 as_basename=false
22879 # Name of the executable.
22880 as_me=`$as_basename -- "$0" ||
22881 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22882 X"$0" : 'X\(//\)$' \| \
22883 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22884 echo X/"$0" |
22885 sed '/^.*\/\([^/][^/]*\)\/*$/{
22886 s//\1/
22889 /^X\/\(\/\/\)$/{
22890 s//\1/
22893 /^X\/\(\/\).*/{
22894 s//\1/
22897 s/.*/./; q'`
22899 # CDPATH.
22900 $as_unset CDPATH
22904 as_lineno_1=$LINENO
22905 as_lineno_2=$LINENO
22906 test "x$as_lineno_1" != "x$as_lineno_2" &&
22907 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22909 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22910 # uniformly replaced by the line number. The first 'sed' inserts a
22911 # line-number line after each line using $LINENO; the second 'sed'
22912 # does the real work. The second script uses 'N' to pair each
22913 # line-number line with the line containing $LINENO, and appends
22914 # trailing '-' during substitution so that $LINENO is not a special
22915 # case at line end.
22916 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22917 # scripts with optimization help from Paolo Bonzini. Blame Lee
22918 # E. McMahon (1931-1989) for sed's syntax. :-)
22919 sed -n '
22921 /[$]LINENO/=
22922 ' <$as_myself |
22923 sed '
22924 s/[$]LINENO.*/&-/
22925 t lineno
22927 :lineno
22929 :loop
22930 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22931 t loop
22932 s/-\n.*//
22933 ' >$as_me.lineno &&
22934 chmod +x "$as_me.lineno" ||
22935 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22936 { (exit 1); exit 1; }; }
22938 # Don't try to exec as it changes $[0], causing all sort of problems
22939 # (the dirname of $[0] is not the place where we might find the
22940 # original and so on. Autoconf is especially sensitive to this).
22941 . "./$as_me.lineno"
22942 # Exit status is that of the last command.
22943 exit
22947 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22948 as_dirname=dirname
22949 else
22950 as_dirname=false
22953 ECHO_C= ECHO_N= ECHO_T=
22954 case `echo -n x` in
22955 -n*)
22956 case `echo 'x\c'` in
22957 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22958 *) ECHO_C='\c';;
22959 esac;;
22961 ECHO_N='-n';;
22962 esac
22964 if expr a : '\(a\)' >/dev/null 2>&1 &&
22965 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22966 as_expr=expr
22967 else
22968 as_expr=false
22971 rm -f conf$$ conf$$.exe conf$$.file
22972 if test -d conf$$.dir; then
22973 rm -f conf$$.dir/conf$$.file
22974 else
22975 rm -f conf$$.dir
22976 mkdir conf$$.dir
22978 echo >conf$$.file
22979 if ln -s conf$$.file conf$$ 2>/dev/null; then
22980 as_ln_s='ln -s'
22981 # ... but there are two gotchas:
22982 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22983 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22984 # In both cases, we have to default to `cp -p'.
22985 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22986 as_ln_s='cp -p'
22987 elif ln conf$$.file conf$$ 2>/dev/null; then
22988 as_ln_s=ln
22989 else
22990 as_ln_s='cp -p'
22992 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22993 rmdir conf$$.dir 2>/dev/null
22995 if mkdir -p . 2>/dev/null; then
22996 as_mkdir_p=:
22997 else
22998 test -d ./-p && rmdir ./-p
22999 as_mkdir_p=false
23002 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
23003 # systems may use methods other than mode bits to determine executability.
23004 cat >conf$$.file <<_ASEOF
23005 #! /bin/sh
23006 exit 0
23007 _ASEOF
23008 chmod +x conf$$.file
23009 if test -x conf$$.file >/dev/null 2>&1; then
23010 as_executable_p="test -x"
23011 else
23012 as_executable_p=:
23014 rm -f conf$$.file
23016 # Sed expression to map a string onto a valid CPP name.
23017 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23019 # Sed expression to map a string onto a valid variable name.
23020 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23023 exec 6>&1
23025 # Save the log message, to keep $[0] and so on meaningful, and to
23026 # report actual input values of CONFIG_FILES etc. instead of their
23027 # values after options handling.
23028 ac_log="
23029 This file was extended by llvm $as_me 3.0svn, which was
23030 generated by GNU Autoconf 2.60. Invocation command line was
23032 CONFIG_FILES = $CONFIG_FILES
23033 CONFIG_HEADERS = $CONFIG_HEADERS
23034 CONFIG_LINKS = $CONFIG_LINKS
23035 CONFIG_COMMANDS = $CONFIG_COMMANDS
23036 $ $0 $@
23038 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23041 _ACEOF
23043 cat >>$CONFIG_STATUS <<_ACEOF
23044 # Files that config.status was made for.
23045 config_files="$ac_config_files"
23046 config_headers="$ac_config_headers"
23047 config_commands="$ac_config_commands"
23049 _ACEOF
23051 cat >>$CONFIG_STATUS <<\_ACEOF
23052 ac_cs_usage="\
23053 \`$as_me' instantiates files from templates according to the
23054 current configuration.
23056 Usage: $0 [OPTIONS] [FILE]...
23058 -h, --help print this help, then exit
23059 -V, --version print version number, then exit
23060 -q, --quiet do not print progress messages
23061 -d, --debug don't remove temporary files
23062 --recheck update $as_me by reconfiguring in the same conditions
23063 --file=FILE[:TEMPLATE]
23064 instantiate the configuration file FILE
23065 --header=FILE[:TEMPLATE]
23066 instantiate the configuration header FILE
23068 Configuration files:
23069 $config_files
23071 Configuration headers:
23072 $config_headers
23074 Configuration commands:
23075 $config_commands
23077 Report bugs to <bug-autoconf@gnu.org>."
23079 _ACEOF
23080 cat >>$CONFIG_STATUS <<_ACEOF
23081 ac_cs_version="\\
23082 llvm config.status 3.0svn
23083 configured by $0, generated by GNU Autoconf 2.60,
23084 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23086 Copyright (C) 2006 Free Software Foundation, Inc.
23087 This config.status script is free software; the Free Software Foundation
23088 gives unlimited permission to copy, distribute and modify it."
23090 ac_pwd='$ac_pwd'
23091 srcdir='$srcdir'
23092 INSTALL='$INSTALL'
23093 _ACEOF
23095 cat >>$CONFIG_STATUS <<\_ACEOF
23096 # If no file are specified by the user, then we need to provide default
23097 # value. By we need to know if files were specified by the user.
23098 ac_need_defaults=:
23099 while test $# != 0
23101 case $1 in
23102 --*=*)
23103 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23104 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23105 ac_shift=:
23108 ac_option=$1
23109 ac_optarg=$2
23110 ac_shift=shift
23112 esac
23114 case $ac_option in
23115 # Handling of the options.
23116 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23117 ac_cs_recheck=: ;;
23118 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23119 echo "$ac_cs_version"; exit ;;
23120 --debug | --debu | --deb | --de | --d | -d )
23121 debug=: ;;
23122 --file | --fil | --fi | --f )
23123 $ac_shift
23124 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23125 ac_need_defaults=false;;
23126 --header | --heade | --head | --hea )
23127 $ac_shift
23128 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23129 ac_need_defaults=false;;
23130 --he | --h)
23131 # Conflict between --help and --header
23132 { echo "$as_me: error: ambiguous option: $1
23133 Try \`$0 --help' for more information." >&2
23134 { (exit 1); exit 1; }; };;
23135 --help | --hel | -h )
23136 echo "$ac_cs_usage"; exit ;;
23137 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23138 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23139 ac_cs_silent=: ;;
23141 # This is an error.
23142 -*) { echo "$as_me: error: unrecognized option: $1
23143 Try \`$0 --help' for more information." >&2
23144 { (exit 1); exit 1; }; } ;;
23146 *) ac_config_targets="$ac_config_targets $1"
23147 ac_need_defaults=false ;;
23149 esac
23150 shift
23151 done
23153 ac_configure_extra_args=
23155 if $ac_cs_silent; then
23156 exec 6>/dev/null
23157 ac_configure_extra_args="$ac_configure_extra_args --silent"
23160 _ACEOF
23161 cat >>$CONFIG_STATUS <<_ACEOF
23162 if \$ac_cs_recheck; then
23163 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23164 CONFIG_SHELL=$SHELL
23165 export CONFIG_SHELL
23166 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23169 _ACEOF
23170 cat >>$CONFIG_STATUS <<\_ACEOF
23171 exec 5>>config.log
23173 echo
23174 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23175 ## Running $as_me. ##
23176 _ASBOX
23177 echo "$ac_log"
23178 } >&5
23180 _ACEOF
23181 cat >>$CONFIG_STATUS <<_ACEOF
23183 # INIT-COMMANDS
23185 llvm_src="${srcdir}"
23187 _ACEOF
23189 cat >>$CONFIG_STATUS <<\_ACEOF
23191 # Handling of arguments.
23192 for ac_config_target in $ac_config_targets
23194 case $ac_config_target in
23195 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
23196 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
23197 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
23198 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
23199 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
23200 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
23201 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
23202 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23203 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
23204 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
23205 "tools/clang/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;;
23206 "tools/llvmc/src/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/src/Base.td" ;;
23207 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
23208 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
23209 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23210 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23211 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
23212 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23213 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23214 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23215 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23216 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
23217 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23218 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23219 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23220 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
23221 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
23223 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23224 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23225 { (exit 1); exit 1; }; };;
23226 esac
23227 done
23230 # If the user did not use the arguments to specify the items to instantiate,
23231 # then the envvar interface is used. Set only those that are not.
23232 # We use the long form for the default assignment because of an extremely
23233 # bizarre bug on SunOS 4.1.3.
23234 if $ac_need_defaults; then
23235 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23236 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23237 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23240 # Have a temporary directory for convenience. Make it in the build tree
23241 # simply because there is no reason against having it here, and in addition,
23242 # creating and moving files from /tmp can sometimes cause problems.
23243 # Hook for its removal unless debugging.
23244 # Note that there is a small window in which the directory will not be cleaned:
23245 # after its creation but before its name has been assigned to `$tmp'.
23246 $debug ||
23248 tmp=
23249 trap 'exit_status=$?
23250 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23252 trap '{ (exit 1); exit 1; }' 1 2 13 15
23254 # Create a (secure) tmp directory for tmp files.
23257 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23258 test -n "$tmp" && test -d "$tmp"
23259 } ||
23261 tmp=./conf$$-$RANDOM
23262 (umask 077 && mkdir "$tmp")
23263 } ||
23265 echo "$me: cannot create a temporary directory in ." >&2
23266 { (exit 1); exit 1; }
23270 # Set up the sed scripts for CONFIG_FILES section.
23273 # No need to generate the scripts if there are no CONFIG_FILES.
23274 # This happens for instance when ./config.status config.h
23275 if test -n "$CONFIG_FILES"; then
23277 _ACEOF
23281 ac_delim='%!_!# '
23282 for ac_last_try in false false false false false :; do
23283 cat >conf$$subs.sed <<_ACEOF
23284 SHELL!$SHELL$ac_delim
23285 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23286 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23287 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23288 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23289 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23290 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23291 exec_prefix!$exec_prefix$ac_delim
23292 prefix!$prefix$ac_delim
23293 program_transform_name!$program_transform_name$ac_delim
23294 bindir!$bindir$ac_delim
23295 sbindir!$sbindir$ac_delim
23296 libexecdir!$libexecdir$ac_delim
23297 datarootdir!$datarootdir$ac_delim
23298 datadir!$datadir$ac_delim
23299 sysconfdir!$sysconfdir$ac_delim
23300 sharedstatedir!$sharedstatedir$ac_delim
23301 localstatedir!$localstatedir$ac_delim
23302 includedir!$includedir$ac_delim
23303 oldincludedir!$oldincludedir$ac_delim
23304 docdir!$docdir$ac_delim
23305 infodir!$infodir$ac_delim
23306 htmldir!$htmldir$ac_delim
23307 dvidir!$dvidir$ac_delim
23308 pdfdir!$pdfdir$ac_delim
23309 psdir!$psdir$ac_delim
23310 libdir!$libdir$ac_delim
23311 localedir!$localedir$ac_delim
23312 mandir!$mandir$ac_delim
23313 DEFS!$DEFS$ac_delim
23314 ECHO_C!$ECHO_C$ac_delim
23315 ECHO_N!$ECHO_N$ac_delim
23316 ECHO_T!$ECHO_T$ac_delim
23317 LIBS!$LIBS$ac_delim
23318 build_alias!$build_alias$ac_delim
23319 host_alias!$host_alias$ac_delim
23320 target_alias!$target_alias$ac_delim
23321 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
23322 subdirs!$subdirs$ac_delim
23323 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
23324 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
23325 build!$build$ac_delim
23326 build_cpu!$build_cpu$ac_delim
23327 build_vendor!$build_vendor$ac_delim
23328 build_os!$build_os$ac_delim
23329 host!$host$ac_delim
23330 host_cpu!$host_cpu$ac_delim
23331 host_vendor!$host_vendor$ac_delim
23332 host_os!$host_os$ac_delim
23333 target!$target$ac_delim
23334 target_cpu!$target_cpu$ac_delim
23335 target_vendor!$target_vendor$ac_delim
23336 target_os!$target_os$ac_delim
23337 OS!$OS$ac_delim
23338 HOST_OS!$HOST_OS$ac_delim
23339 TARGET_OS!$TARGET_OS$ac_delim
23340 LINKALL!$LINKALL$ac_delim
23341 NOLINKALL!$NOLINKALL$ac_delim
23342 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
23343 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
23344 ARCH!$ARCH$ac_delim
23345 ENDIAN!$ENDIAN$ac_delim
23346 CC!$CC$ac_delim
23347 CFLAGS!$CFLAGS$ac_delim
23348 LDFLAGS!$LDFLAGS$ac_delim
23349 CPPFLAGS!$CPPFLAGS$ac_delim
23350 ac_ct_CC!$ac_ct_CC$ac_delim
23351 EXEEXT!$EXEEXT$ac_delim
23352 OBJEXT!$OBJEXT$ac_delim
23353 CPP!$CPP$ac_delim
23354 GREP!$GREP$ac_delim
23355 EGREP!$EGREP$ac_delim
23356 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
23357 BUILD_CC!$BUILD_CC$ac_delim
23358 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
23359 BUILD_CXX!$BUILD_CXX$ac_delim
23360 CVSBUILD!$CVSBUILD$ac_delim
23361 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
23362 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
23363 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
23364 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
23365 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
23366 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
23367 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
23368 JIT!$JIT$ac_delim
23369 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
23370 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
23371 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
23372 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
23373 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
23374 ENABLE_PIC!$ENABLE_PIC$ac_delim
23375 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
23376 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
23377 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
23378 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
23379 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
23380 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
23381 _ACEOF
23383 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23384 break
23385 elif $ac_last_try; then
23386 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23387 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23388 { (exit 1); exit 1; }; }
23389 else
23390 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23392 done
23394 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23395 if test -n "$ac_eof"; then
23396 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23397 ac_eof=`expr $ac_eof + 1`
23400 cat >>$CONFIG_STATUS <<_ACEOF
23401 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23402 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23403 _ACEOF
23404 sed '
23405 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23406 s/^/s,@/; s/!/@,|#_!!_#|/
23409 s/'"$ac_delim"'$/,g/; t
23410 s/$/\\/; p
23411 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23412 ' >>$CONFIG_STATUS <conf$$subs.sed
23413 rm -f conf$$subs.sed
23414 cat >>$CONFIG_STATUS <<_ACEOF
23415 CEOF$ac_eof
23416 _ACEOF
23419 ac_delim='%!_!# '
23420 for ac_last_try in false false false false false :; do
23421 cat >conf$$subs.sed <<_ACEOF
23422 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
23423 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
23424 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
23425 CLANGPATH!$CLANGPATH$ac_delim
23426 CLANGXXPATH!$CLANGXXPATH$ac_delim
23427 ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
23428 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
23429 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
23430 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
23431 CXX!$CXX$ac_delim
23432 CXXFLAGS!$CXXFLAGS$ac_delim
23433 ac_ct_CXX!$ac_ct_CXX$ac_delim
23434 NM!$NM$ac_delim
23435 ifGNUmake!$ifGNUmake$ac_delim
23436 LN_S!$LN_S$ac_delim
23437 CMP!$CMP$ac_delim
23438 CP!$CP$ac_delim
23439 DATE!$DATE$ac_delim
23440 FIND!$FIND$ac_delim
23441 MKDIR!$MKDIR$ac_delim
23442 MV!$MV$ac_delim
23443 RANLIB!$RANLIB$ac_delim
23444 AR!$AR$ac_delim
23445 RM!$RM$ac_delim
23446 SED!$SED$ac_delim
23447 TAR!$TAR$ac_delim
23448 BINPWD!$BINPWD$ac_delim
23449 GRAPHVIZ!$GRAPHVIZ$ac_delim
23450 DOT!$DOT$ac_delim
23451 FDP!$FDP$ac_delim
23452 NEATO!$NEATO$ac_delim
23453 TWOPI!$TWOPI$ac_delim
23454 CIRCO!$CIRCO$ac_delim
23455 GV!$GV$ac_delim
23456 DOTTY!$DOTTY$ac_delim
23457 XDOT_PY!$XDOT_PY$ac_delim
23458 PERL!$PERL$ac_delim
23459 HAVE_PERL!$HAVE_PERL$ac_delim
23460 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23461 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23462 INSTALL_DATA!$INSTALL_DATA$ac_delim
23463 BZIP2!$BZIP2$ac_delim
23464 CAT!$CAT$ac_delim
23465 DOXYGEN!$DOXYGEN$ac_delim
23466 GROFF!$GROFF$ac_delim
23467 GZIPBIN!$GZIPBIN$ac_delim
23468 POD2HTML!$POD2HTML$ac_delim
23469 POD2MAN!$POD2MAN$ac_delim
23470 PDFROFF!$PDFROFF$ac_delim
23471 RUNTEST!$RUNTEST$ac_delim
23472 TCLSH!$TCLSH$ac_delim
23473 ZIP!$ZIP$ac_delim
23474 OCAMLC!$OCAMLC$ac_delim
23475 OCAMLOPT!$OCAMLOPT$ac_delim
23476 OCAMLDEP!$OCAMLDEP$ac_delim
23477 OCAMLDOC!$OCAMLDOC$ac_delim
23478 GAS!$GAS$ac_delim
23479 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
23480 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23481 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23482 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23483 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23484 LIBADD_DL!$LIBADD_DL$ac_delim
23485 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
23486 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
23487 LLVMGCC!$LLVMGCC$ac_delim
23488 LLVMGXX!$LLVMGXX$ac_delim
23489 LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
23490 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
23491 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
23492 USE_UDIS86!$USE_UDIS86$ac_delim
23493 USE_OPROFILE!$USE_OPROFILE$ac_delim
23494 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
23495 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
23496 MMAP_FILE!$MMAP_FILE$ac_delim
23497 LLVMCC_EMITIR_FLAG!$LLVMCC_EMITIR_FLAG$ac_delim
23498 LLVMCC1!$LLVMCC1$ac_delim
23499 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
23500 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
23501 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
23502 LLVMGCC_DRAGONEGG!$LLVMGCC_DRAGONEGG$ac_delim
23503 LLVMCC_DISABLEOPT_FLAGS!$LLVMCC_DISABLEOPT_FLAGS$ac_delim
23504 SHLIBEXT!$SHLIBEXT$ac_delim
23505 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
23506 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
23507 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
23508 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
23509 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
23510 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
23511 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
23512 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
23513 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
23514 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
23515 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
23516 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
23517 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
23518 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
23519 _ACEOF
23521 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23522 break
23523 elif $ac_last_try; then
23524 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23525 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23526 { (exit 1); exit 1; }; }
23527 else
23528 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23530 done
23532 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23533 if test -n "$ac_eof"; then
23534 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23535 ac_eof=`expr $ac_eof + 1`
23538 cat >>$CONFIG_STATUS <<_ACEOF
23539 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23540 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23541 _ACEOF
23542 sed '
23543 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23544 s/^/s,@/; s/!/@,|#_!!_#|/
23547 s/'"$ac_delim"'$/,g/; t
23548 s/$/\\/; p
23549 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23550 ' >>$CONFIG_STATUS <conf$$subs.sed
23551 rm -f conf$$subs.sed
23552 cat >>$CONFIG_STATUS <<_ACEOF
23553 CEOF$ac_eof
23554 _ACEOF
23557 ac_delim='%!_!# '
23558 for ac_last_try in false false false false false :; do
23559 cat >conf$$subs.sed <<_ACEOF
23560 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
23561 RPATH!$RPATH$ac_delim
23562 RDYNAMIC!$RDYNAMIC$ac_delim
23563 LIBOBJS!$LIBOBJS$ac_delim
23564 LTLIBOBJS!$LTLIBOBJS$ac_delim
23565 _ACEOF
23567 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 5; then
23568 break
23569 elif $ac_last_try; then
23570 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23571 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23572 { (exit 1); exit 1; }; }
23573 else
23574 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23576 done
23578 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23579 if test -n "$ac_eof"; then
23580 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23581 ac_eof=`expr $ac_eof + 1`
23584 cat >>$CONFIG_STATUS <<_ACEOF
23585 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
23586 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23587 _ACEOF
23588 sed '
23589 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23590 s/^/s,@/; s/!/@,|#_!!_#|/
23593 s/'"$ac_delim"'$/,g/; t
23594 s/$/\\/; p
23595 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23596 ' >>$CONFIG_STATUS <conf$$subs.sed
23597 rm -f conf$$subs.sed
23598 cat >>$CONFIG_STATUS <<_ACEOF
23599 :end
23600 s/|#_!!_#|//g
23601 CEOF$ac_eof
23602 _ACEOF
23605 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23606 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23607 # trailing colons and then remove the whole line if VPATH becomes empty
23608 # (actually we leave an empty line to preserve line numbers).
23609 if test "x$srcdir" = x.; then
23610 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23611 s/:*\$(srcdir):*/:/
23612 s/:*\${srcdir}:*/:/
23613 s/:*@srcdir@:*/:/
23614 s/^\([^=]*=[ ]*\):*/\1/
23615 s/:*$//
23616 s/^[^=]*=[ ]*$//
23620 cat >>$CONFIG_STATUS <<\_ACEOF
23621 fi # test -n "$CONFIG_FILES"
23624 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
23626 case $ac_tag in
23627 :[FHLC]) ac_mode=$ac_tag; continue;;
23628 esac
23629 case $ac_mode$ac_tag in
23630 :[FHL]*:*);;
23631 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23632 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23633 { (exit 1); exit 1; }; };;
23634 :[FH]-) ac_tag=-:-;;
23635 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23636 esac
23637 ac_save_IFS=$IFS
23638 IFS=:
23639 set x $ac_tag
23640 IFS=$ac_save_IFS
23641 shift
23642 ac_file=$1
23643 shift
23645 case $ac_mode in
23646 :L) ac_source=$1;;
23647 :[FH])
23648 ac_file_inputs=
23649 for ac_f
23651 case $ac_f in
23652 -) ac_f="$tmp/stdin";;
23653 *) # Look for the file first in the build tree, then in the source tree
23654 # (if the path is not absolute). The absolute path cannot be DOS-style,
23655 # because $ac_f cannot contain `:'.
23656 test -f "$ac_f" ||
23657 case $ac_f in
23658 [\\/$]*) false;;
23659 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23660 esac ||
23661 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23662 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23663 { (exit 1); exit 1; }; };;
23664 esac
23665 ac_file_inputs="$ac_file_inputs $ac_f"
23666 done
23668 # Let's still pretend it is `configure' which instantiates (i.e., don't
23669 # use $as_me), people would be surprised to read:
23670 # /* config.h. Generated by config.status. */
23671 configure_input="Generated from "`IFS=:
23672 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23673 if test x"$ac_file" != x-; then
23674 configure_input="$ac_file. $configure_input"
23675 { echo "$as_me:$LINENO: creating $ac_file" >&5
23676 echo "$as_me: creating $ac_file" >&6;}
23679 case $ac_tag in
23680 *:-:* | *:-) cat >"$tmp/stdin";;
23681 esac
23683 esac
23685 ac_dir=`$as_dirname -- "$ac_file" ||
23686 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23687 X"$ac_file" : 'X\(//\)[^/]' \| \
23688 X"$ac_file" : 'X\(//\)$' \| \
23689 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23690 echo X"$ac_file" |
23691 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23692 s//\1/
23695 /^X\(\/\/\)[^/].*/{
23696 s//\1/
23699 /^X\(\/\/\)$/{
23700 s//\1/
23703 /^X\(\/\).*/{
23704 s//\1/
23707 s/.*/./; q'`
23708 { as_dir="$ac_dir"
23709 case $as_dir in #(
23710 -*) as_dir=./$as_dir;;
23711 esac
23712 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23713 as_dirs=
23714 while :; do
23715 case $as_dir in #(
23716 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23717 *) as_qdir=$as_dir;;
23718 esac
23719 as_dirs="'$as_qdir' $as_dirs"
23720 as_dir=`$as_dirname -- "$as_dir" ||
23721 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23722 X"$as_dir" : 'X\(//\)[^/]' \| \
23723 X"$as_dir" : 'X\(//\)$' \| \
23724 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23725 echo X"$as_dir" |
23726 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23727 s//\1/
23730 /^X\(\/\/\)[^/].*/{
23731 s//\1/
23734 /^X\(\/\/\)$/{
23735 s//\1/
23738 /^X\(\/\).*/{
23739 s//\1/
23742 s/.*/./; q'`
23743 test -d "$as_dir" && break
23744 done
23745 test -z "$as_dirs" || eval "mkdir $as_dirs"
23746 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23747 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23748 { (exit 1); exit 1; }; }; }
23749 ac_builddir=.
23751 case "$ac_dir" in
23752 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23754 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23755 # A ".." for each directory in $ac_dir_suffix.
23756 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23757 case $ac_top_builddir_sub in
23758 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23759 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23760 esac ;;
23761 esac
23762 ac_abs_top_builddir=$ac_pwd
23763 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23764 # for backward compatibility:
23765 ac_top_builddir=$ac_top_build_prefix
23767 case $srcdir in
23768 .) # We are building in place.
23769 ac_srcdir=.
23770 ac_top_srcdir=$ac_top_builddir_sub
23771 ac_abs_top_srcdir=$ac_pwd ;;
23772 [\\/]* | ?:[\\/]* ) # Absolute name.
23773 ac_srcdir=$srcdir$ac_dir_suffix;
23774 ac_top_srcdir=$srcdir
23775 ac_abs_top_srcdir=$srcdir ;;
23776 *) # Relative name.
23777 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23778 ac_top_srcdir=$ac_top_build_prefix$srcdir
23779 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23780 esac
23781 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23784 case $ac_mode in
23787 # CONFIG_FILE
23790 case $INSTALL in
23791 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23792 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23793 esac
23794 _ACEOF
23796 cat >>$CONFIG_STATUS <<\_ACEOF
23797 # If the template does not know about datarootdir, expand it.
23798 # FIXME: This hack should be removed a few years after 2.60.
23799 ac_datarootdir_hack=; ac_datarootdir_seen=
23801 case `sed -n '/datarootdir/ {
23805 /@datadir@/p
23806 /@docdir@/p
23807 /@infodir@/p
23808 /@localedir@/p
23809 /@mandir@/p
23810 ' $ac_file_inputs` in
23811 *datarootdir*) ac_datarootdir_seen=yes;;
23812 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23813 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23814 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23815 _ACEOF
23816 cat >>$CONFIG_STATUS <<_ACEOF
23817 ac_datarootdir_hack='
23818 s&@datadir@&$datadir&g
23819 s&@docdir@&$docdir&g
23820 s&@infodir@&$infodir&g
23821 s&@localedir@&$localedir&g
23822 s&@mandir@&$mandir&g
23823 s&\\\${datarootdir}&$datarootdir&g' ;;
23824 esac
23825 _ACEOF
23827 # Neutralize VPATH when `$srcdir' = `.'.
23828 # Shell code in configure.ac might set extrasub.
23829 # FIXME: do we really want to maintain this feature?
23830 cat >>$CONFIG_STATUS <<_ACEOF
23831 sed "$ac_vpsub
23832 $extrasub
23833 _ACEOF
23834 cat >>$CONFIG_STATUS <<\_ACEOF
23836 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23837 s&@configure_input@&$configure_input&;t t
23838 s&@top_builddir@&$ac_top_builddir_sub&;t t
23839 s&@srcdir@&$ac_srcdir&;t t
23840 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23841 s&@top_srcdir@&$ac_top_srcdir&;t t
23842 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23843 s&@builddir@&$ac_builddir&;t t
23844 s&@abs_builddir@&$ac_abs_builddir&;t t
23845 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23846 s&@INSTALL@&$ac_INSTALL&;t t
23847 $ac_datarootdir_hack
23848 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
23850 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23851 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23852 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23853 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23854 which seems to be undefined. Please make sure it is defined." >&5
23855 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23856 which seems to be undefined. Please make sure it is defined." >&2;}
23858 rm -f "$tmp/stdin"
23859 case $ac_file in
23860 -) cat "$tmp/out"; rm -f "$tmp/out";;
23861 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23862 esac
23866 # CONFIG_HEADER
23868 _ACEOF
23870 # Transform confdefs.h into a sed script `conftest.defines', that
23871 # substitutes the proper values into config.h.in to produce config.h.
23872 rm -f conftest.defines conftest.tail
23873 # First, append a space to every undef/define line, to ease matching.
23874 echo 's/$/ /' >conftest.defines
23875 # Then, protect against being on the right side of a sed subst, or in
23876 # an unquoted here document, in config.status. If some macros were
23877 # called several times there might be several #defines for the same
23878 # symbol, which is useless. But do not sort them, since the last
23879 # AC_DEFINE must be honored.
23880 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23881 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23882 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23883 # PARAMS is the parameter list in the macro definition--in most cases, it's
23884 # just an empty string.
23885 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23886 ac_dB='\\)[ (].*,\\1define\\2'
23887 ac_dC=' '
23888 ac_dD=' ,'
23890 uniq confdefs.h |
23891 sed -n '
23892 t rset
23893 :rset
23894 s/^[ ]*#[ ]*define[ ][ ]*//
23895 t ok
23898 s/[\\&,]/\\&/g
23899 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23900 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23901 ' >>conftest.defines
23903 # Remove the space that was appended to ease matching.
23904 # Then replace #undef with comments. This is necessary, for
23905 # example, in the case of _POSIX_SOURCE, which is predefined and required
23906 # on some systems where configure will not decide to define it.
23907 # (The regexp can be short, since the line contains either #define or #undef.)
23908 echo 's/ $//
23909 s,^[ #]*u.*,/* & */,' >>conftest.defines
23911 # Break up conftest.defines:
23912 ac_max_sed_lines=50
23914 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23915 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23916 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23917 # et cetera.
23918 ac_in='$ac_file_inputs'
23919 ac_out='"$tmp/out1"'
23920 ac_nxt='"$tmp/out2"'
23922 while :
23924 # Write a here document:
23925 cat >>$CONFIG_STATUS <<_ACEOF
23926 # First, check the format of the line:
23927 cat >"\$tmp/defines.sed" <<\\CEOF
23928 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23929 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23931 :def
23932 _ACEOF
23933 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23934 echo 'CEOF
23935 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23936 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23937 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23938 grep . conftest.tail >/dev/null || break
23939 rm -f conftest.defines
23940 mv conftest.tail conftest.defines
23941 done
23942 rm -f conftest.defines conftest.tail
23944 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23945 cat >>$CONFIG_STATUS <<\_ACEOF
23946 if test x"$ac_file" != x-; then
23947 echo "/* $configure_input */" >"$tmp/config.h"
23948 cat "$ac_result" >>"$tmp/config.h"
23949 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23950 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23951 echo "$as_me: $ac_file is unchanged" >&6;}
23952 else
23953 rm -f $ac_file
23954 mv "$tmp/config.h" $ac_file
23956 else
23957 echo "/* $configure_input */"
23958 cat "$ac_result"
23960 rm -f "$tmp/out12"
23963 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23964 echo "$as_me: executing $ac_file commands" >&6;}
23966 esac
23969 case $ac_file$ac_mode in
23970 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
23971 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
23972 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
23973 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
23974 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
23975 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
23976 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
23977 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
23978 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23979 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
23980 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
23981 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
23982 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23983 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
23984 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
23985 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
23986 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
23987 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
23988 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
23989 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
23990 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
23991 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
23992 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
23993 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
23994 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
23995 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
23997 esac
23998 done # for ac_tag
24001 { (exit 0); exit 0; }
24002 _ACEOF
24003 chmod +x $CONFIG_STATUS
24004 ac_clean_files=$ac_clean_files_save
24007 # configure is writing to config.log, and then calls config.status.
24008 # config.status does its own redirection, appending to config.log.
24009 # Unfortunately, on DOS this fails, as config.log is still kept open
24010 # by configure, so config.status won't be able to write to it; its
24011 # output is simply discarded. So we exec the FD to /dev/null,
24012 # effectively closing config.log, so it can be properly (re)opened and
24013 # appended to by config.status. When coming back to configure, we
24014 # need to make the FD available again.
24015 if test "$no_create" != yes; then
24016 ac_cs_success=:
24017 ac_config_status_args=
24018 test "$silent" = yes &&
24019 ac_config_status_args="$ac_config_status_args --quiet"
24020 exec 5>/dev/null
24021 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24022 exec 5>>config.log
24023 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24024 # would make configure fail if this is the last instruction.
24025 $ac_cs_success || { (exit 1); exit 1; }
24029 # CONFIG_SUBDIRS section.
24031 if test "$no_recursion" != yes; then
24033 # Remove --cache-file and --srcdir arguments so they do not pile up.
24034 ac_sub_configure_args=
24035 ac_prev=
24036 eval "set x $ac_configure_args"
24037 shift
24038 for ac_arg
24040 if test -n "$ac_prev"; then
24041 ac_prev=
24042 continue
24044 case $ac_arg in
24045 -cache-file | --cache-file | --cache-fil | --cache-fi \
24046 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24047 ac_prev=cache_file ;;
24048 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24049 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24050 | --c=*)
24052 --config-cache | -C)
24054 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24055 ac_prev=srcdir ;;
24056 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24058 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24059 ac_prev=prefix ;;
24060 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24063 case $ac_arg in
24064 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24065 esac
24066 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
24067 esac
24068 done
24070 # Always prepend --prefix to ensure using the same prefix
24071 # in subdir configurations.
24072 ac_arg="--prefix=$prefix"
24073 case $ac_arg in
24074 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24075 esac
24076 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
24078 ac_popdir=`pwd`
24079 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24081 # Do not complain, so a configure script can configure whichever
24082 # parts of a large source tree are present.
24083 test -d "$srcdir/$ac_dir" || continue
24085 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
24086 echo "$as_me:$LINENO: $ac_msg" >&5
24087 echo "$ac_msg" >&6
24088 { as_dir="$ac_dir"
24089 case $as_dir in #(
24090 -*) as_dir=./$as_dir;;
24091 esac
24092 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24093 as_dirs=
24094 while :; do
24095 case $as_dir in #(
24096 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24097 *) as_qdir=$as_dir;;
24098 esac
24099 as_dirs="'$as_qdir' $as_dirs"
24100 as_dir=`$as_dirname -- "$as_dir" ||
24101 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24102 X"$as_dir" : 'X\(//\)[^/]' \| \
24103 X"$as_dir" : 'X\(//\)$' \| \
24104 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24105 echo X"$as_dir" |
24106 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24107 s//\1/
24110 /^X\(\/\/\)[^/].*/{
24111 s//\1/
24114 /^X\(\/\/\)$/{
24115 s//\1/
24118 /^X\(\/\).*/{
24119 s//\1/
24122 s/.*/./; q'`
24123 test -d "$as_dir" && break
24124 done
24125 test -z "$as_dirs" || eval "mkdir $as_dirs"
24126 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24127 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24128 { (exit 1); exit 1; }; }; }
24129 ac_builddir=.
24131 case "$ac_dir" in
24132 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24134 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24135 # A ".." for each directory in $ac_dir_suffix.
24136 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24137 case $ac_top_builddir_sub in
24138 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24139 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24140 esac ;;
24141 esac
24142 ac_abs_top_builddir=$ac_pwd
24143 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24144 # for backward compatibility:
24145 ac_top_builddir=$ac_top_build_prefix
24147 case $srcdir in
24148 .) # We are building in place.
24149 ac_srcdir=.
24150 ac_top_srcdir=$ac_top_builddir_sub
24151 ac_abs_top_srcdir=$ac_pwd ;;
24152 [\\/]* | ?:[\\/]* ) # Absolute name.
24153 ac_srcdir=$srcdir$ac_dir_suffix;
24154 ac_top_srcdir=$srcdir
24155 ac_abs_top_srcdir=$srcdir ;;
24156 *) # Relative name.
24157 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24158 ac_top_srcdir=$ac_top_build_prefix$srcdir
24159 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24160 esac
24161 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24164 cd "$ac_dir"
24166 # Check for guested configure; otherwise get Cygnus style configure.
24167 if test -f "$ac_srcdir/configure.gnu"; then
24168 ac_sub_configure=$ac_srcdir/configure.gnu
24169 elif test -f "$ac_srcdir/configure"; then
24170 ac_sub_configure=$ac_srcdir/configure
24171 elif test -f "$ac_srcdir/configure.in"; then
24172 # This should be Cygnus configure.
24173 ac_sub_configure=$ac_aux_dir/configure
24174 else
24175 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24176 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24177 ac_sub_configure=
24180 # The recursion is here.
24181 if test -n "$ac_sub_configure"; then
24182 # Make the cache file name correct relative to the subdirectory.
24183 case $cache_file in
24184 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24185 *) # Relative name.
24186 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
24187 esac
24189 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24190 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24191 # The eval makes quoting arguments work.
24192 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
24193 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
24194 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24195 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24196 { (exit 1); exit 1; }; }
24199 cd "$ac_popdir"
24200 done