[AVX] Remove Mutating Members from Inits
[llvm-core.git] / configure
blobbf64e7ea7abc1648bc994a54d04362a7548b1f19
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-2011 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 EXTRA_LD_OPTIONS
711 BINUTILS_INCDIR
713 CXXFLAGS
714 ac_ct_CXX
716 ifGNUmake
717 LN_S
720 DATE
721 FIND
722 MKDIR
724 RANLIB
729 BINPWD
730 GRAPHVIZ
733 NEATO
734 TWOPI
735 CIRCO
737 DOTTY
738 XDOT_PY
739 PERL
740 HAVE_PERL
741 INSTALL_PROGRAM
742 INSTALL_SCRIPT
743 INSTALL_DATA
744 BZIP2
746 DOXYGEN
747 GROFF
748 GZIPBIN
749 POD2HTML
750 POD2MAN
751 PDFROFF
752 RUNTEST
753 TCLSH
755 OCAMLC
756 OCAMLOPT
757 OCAMLDEP
758 OCAMLDOC
760 HAVE_LINK_VERSION_SCRIPT
761 INSTALL_LTDL_TRUE
762 INSTALL_LTDL_FALSE
763 CONVENIENCE_LTDL_TRUE
764 CONVENIENCE_LTDL_FALSE
765 LIBADD_DL
766 LLVMGCCCOMMAND
767 LLVMGXXCOMMAND
768 LLVMGCC
769 LLVMGXX
770 LLVMCC_OPTION
771 NO_VARIADIC_MACROS
772 NO_MISSING_FIELD_INITIALIZERS
773 USE_UDIS86
774 USE_OPROFILE
775 HAVE_PTHREAD
776 HUGE_VAL_SANITY
777 MMAP_FILE
778 LLVMCC_EMITIR_FLAG
779 LLVMCC1
780 LLVMCC1PLUS
781 LLVMGCCDIR
782 LLVMGCC_LANGS
783 LLVMGCC_DRAGONEGG
784 LLVMCC_DISABLEOPT_FLAGS
785 SHLIBEXT
786 SHLIBPATH_VAR
787 LLVM_PREFIX
788 LLVM_BINDIR
789 LLVM_LIBDIR
790 LLVM_DATADIR
791 LLVM_DOCSDIR
792 LLVM_ETCDIR
793 LLVM_INCLUDEDIR
794 LLVM_INFODIR
795 LLVM_MANDIR
796 LLVM_CONFIGTIME
797 BINDINGS_TO_BUILD
798 ALL_BINDINGS
799 OCAML_LIBDIR
800 ENABLE_VISIBILITY_INLINES_HIDDEN
801 RPATH
802 RDYNAMIC
803 LIBOBJS
804 LTLIBOBJS'
805 ac_subst_files=''
806 ac_precious_vars='build_alias
807 host_alias
808 target_alias
810 CFLAGS
811 LDFLAGS
812 CPPFLAGS
815 CXXFLAGS
816 CCC'
817 ac_subdirs_all='projects/llvm-gcc
818 projects/test-suite
819 projects/llvm-test
820 projects/poolalloc
821 projects/llvm-poolalloc
822 projects/sample
823 projects/privbracket
824 projects/llvm-stacker
825 projects/llvm-reopt
826 projects/llvm-java
827 projects/llvm-tv
828 projects/safecode
829 projects/llvm-kernel
830 tools/polly'
832 # Initialize some variables set by options.
833 ac_init_help=
834 ac_init_version=false
835 # The variables have the same names as the options, with
836 # dashes changed to underlines.
837 cache_file=/dev/null
838 exec_prefix=NONE
839 no_create=
840 no_recursion=
841 prefix=NONE
842 program_prefix=NONE
843 program_suffix=NONE
844 program_transform_name=s,x,x,
845 silent=
846 site=
847 srcdir=
848 verbose=
849 x_includes=NONE
850 x_libraries=NONE
852 # Installation directory options.
853 # These are left unexpanded so users can "make install exec_prefix=/foo"
854 # and all the variables that are supposed to be based on exec_prefix
855 # by default will actually change.
856 # Use braces instead of parens because sh, perl, etc. also accept them.
857 # (The list follows the same order as the GNU Coding Standards.)
858 bindir='${exec_prefix}/bin'
859 sbindir='${exec_prefix}/sbin'
860 libexecdir='${exec_prefix}/libexec'
861 datarootdir='${prefix}/share'
862 datadir='${datarootdir}'
863 sysconfdir='${prefix}/etc'
864 sharedstatedir='${prefix}/com'
865 localstatedir='${prefix}/var'
866 includedir='${prefix}/include'
867 oldincludedir='/usr/include'
868 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
869 infodir='${datarootdir}/info'
870 htmldir='${docdir}'
871 dvidir='${docdir}'
872 pdfdir='${docdir}'
873 psdir='${docdir}'
874 libdir='${exec_prefix}/lib'
875 localedir='${datarootdir}/locale'
876 mandir='${datarootdir}/man'
878 ac_prev=
879 ac_dashdash=
880 for ac_option
882 # If the previous option needs an argument, assign it.
883 if test -n "$ac_prev"; then
884 eval $ac_prev=\$ac_option
885 ac_prev=
886 continue
889 case $ac_option in
890 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
891 *) ac_optarg=yes ;;
892 esac
894 # Accept the important Cygnus configure options, so we can diagnose typos.
896 case $ac_dashdash$ac_option in
898 ac_dashdash=yes ;;
900 -bindir | --bindir | --bindi | --bind | --bin | --bi)
901 ac_prev=bindir ;;
902 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
903 bindir=$ac_optarg ;;
905 -build | --build | --buil | --bui | --bu)
906 ac_prev=build_alias ;;
907 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
908 build_alias=$ac_optarg ;;
910 -cache-file | --cache-file | --cache-fil | --cache-fi \
911 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
912 ac_prev=cache_file ;;
913 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
914 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
915 cache_file=$ac_optarg ;;
917 --config-cache | -C)
918 cache_file=config.cache ;;
920 -datadir | --datadir | --datadi | --datad)
921 ac_prev=datadir ;;
922 -datadir=* | --datadir=* | --datadi=* | --datad=*)
923 datadir=$ac_optarg ;;
925 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
926 | --dataroo | --dataro | --datar)
927 ac_prev=datarootdir ;;
928 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
929 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
930 datarootdir=$ac_optarg ;;
932 -disable-* | --disable-*)
933 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
934 # Reject names that are not valid shell variable names.
935 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
936 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
937 { (exit 1); exit 1; }; }
938 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
939 eval enable_$ac_feature=no ;;
941 -docdir | --docdir | --docdi | --doc | --do)
942 ac_prev=docdir ;;
943 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
944 docdir=$ac_optarg ;;
946 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
947 ac_prev=dvidir ;;
948 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
949 dvidir=$ac_optarg ;;
951 -enable-* | --enable-*)
952 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
953 # Reject names that are not valid shell variable names.
954 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
955 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
956 { (exit 1); exit 1; }; }
957 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
958 eval enable_$ac_feature=\$ac_optarg ;;
960 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
961 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
962 | --exec | --exe | --ex)
963 ac_prev=exec_prefix ;;
964 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
965 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
966 | --exec=* | --exe=* | --ex=*)
967 exec_prefix=$ac_optarg ;;
969 -gas | --gas | --ga | --g)
970 # Obsolete; use --with-gas.
971 with_gas=yes ;;
973 -help | --help | --hel | --he | -h)
974 ac_init_help=long ;;
975 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
976 ac_init_help=recursive ;;
977 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
978 ac_init_help=short ;;
980 -host | --host | --hos | --ho)
981 ac_prev=host_alias ;;
982 -host=* | --host=* | --hos=* | --ho=*)
983 host_alias=$ac_optarg ;;
985 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
986 ac_prev=htmldir ;;
987 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
988 | --ht=*)
989 htmldir=$ac_optarg ;;
991 -includedir | --includedir | --includedi | --included | --include \
992 | --includ | --inclu | --incl | --inc)
993 ac_prev=includedir ;;
994 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
995 | --includ=* | --inclu=* | --incl=* | --inc=*)
996 includedir=$ac_optarg ;;
998 -infodir | --infodir | --infodi | --infod | --info | --inf)
999 ac_prev=infodir ;;
1000 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1001 infodir=$ac_optarg ;;
1003 -libdir | --libdir | --libdi | --libd)
1004 ac_prev=libdir ;;
1005 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1006 libdir=$ac_optarg ;;
1008 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1009 | --libexe | --libex | --libe)
1010 ac_prev=libexecdir ;;
1011 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1012 | --libexe=* | --libex=* | --libe=*)
1013 libexecdir=$ac_optarg ;;
1015 -localedir | --localedir | --localedi | --localed | --locale)
1016 ac_prev=localedir ;;
1017 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1018 localedir=$ac_optarg ;;
1020 -localstatedir | --localstatedir | --localstatedi | --localstated \
1021 | --localstate | --localstat | --localsta | --localst | --locals)
1022 ac_prev=localstatedir ;;
1023 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1024 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1025 localstatedir=$ac_optarg ;;
1027 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1028 ac_prev=mandir ;;
1029 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1030 mandir=$ac_optarg ;;
1032 -nfp | --nfp | --nf)
1033 # Obsolete; use --without-fp.
1034 with_fp=no ;;
1036 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1037 | --no-cr | --no-c | -n)
1038 no_create=yes ;;
1040 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1041 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1042 no_recursion=yes ;;
1044 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1045 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1046 | --oldin | --oldi | --old | --ol | --o)
1047 ac_prev=oldincludedir ;;
1048 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1049 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1050 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1051 oldincludedir=$ac_optarg ;;
1053 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1054 ac_prev=prefix ;;
1055 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1056 prefix=$ac_optarg ;;
1058 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1059 | --program-pre | --program-pr | --program-p)
1060 ac_prev=program_prefix ;;
1061 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1062 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1063 program_prefix=$ac_optarg ;;
1065 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1066 | --program-suf | --program-su | --program-s)
1067 ac_prev=program_suffix ;;
1068 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1069 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1070 program_suffix=$ac_optarg ;;
1072 -program-transform-name | --program-transform-name \
1073 | --program-transform-nam | --program-transform-na \
1074 | --program-transform-n | --program-transform- \
1075 | --program-transform | --program-transfor \
1076 | --program-transfo | --program-transf \
1077 | --program-trans | --program-tran \
1078 | --progr-tra | --program-tr | --program-t)
1079 ac_prev=program_transform_name ;;
1080 -program-transform-name=* | --program-transform-name=* \
1081 | --program-transform-nam=* | --program-transform-na=* \
1082 | --program-transform-n=* | --program-transform-=* \
1083 | --program-transform=* | --program-transfor=* \
1084 | --program-transfo=* | --program-transf=* \
1085 | --program-trans=* | --program-tran=* \
1086 | --progr-tra=* | --program-tr=* | --program-t=*)
1087 program_transform_name=$ac_optarg ;;
1089 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1090 ac_prev=pdfdir ;;
1091 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1092 pdfdir=$ac_optarg ;;
1094 -psdir | --psdir | --psdi | --psd | --ps)
1095 ac_prev=psdir ;;
1096 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1097 psdir=$ac_optarg ;;
1099 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1100 | -silent | --silent | --silen | --sile | --sil)
1101 silent=yes ;;
1103 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1104 ac_prev=sbindir ;;
1105 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1106 | --sbi=* | --sb=*)
1107 sbindir=$ac_optarg ;;
1109 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1110 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1111 | --sharedst | --shareds | --shared | --share | --shar \
1112 | --sha | --sh)
1113 ac_prev=sharedstatedir ;;
1114 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1115 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1116 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1117 | --sha=* | --sh=*)
1118 sharedstatedir=$ac_optarg ;;
1120 -site | --site | --sit)
1121 ac_prev=site ;;
1122 -site=* | --site=* | --sit=*)
1123 site=$ac_optarg ;;
1125 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1126 ac_prev=srcdir ;;
1127 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1128 srcdir=$ac_optarg ;;
1130 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1131 | --syscon | --sysco | --sysc | --sys | --sy)
1132 ac_prev=sysconfdir ;;
1133 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1134 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1135 sysconfdir=$ac_optarg ;;
1137 -target | --target | --targe | --targ | --tar | --ta | --t)
1138 ac_prev=target_alias ;;
1139 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1140 target_alias=$ac_optarg ;;
1142 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1143 verbose=yes ;;
1145 -version | --version | --versio | --versi | --vers | -V)
1146 ac_init_version=: ;;
1148 -with-* | --with-*)
1149 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1150 # Reject names that are not valid shell variable names.
1151 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1152 { echo "$as_me: error: invalid package name: $ac_package" >&2
1153 { (exit 1); exit 1; }; }
1154 ac_package=`echo $ac_package| sed 's/-/_/g'`
1155 eval with_$ac_package=\$ac_optarg ;;
1157 -without-* | --without-*)
1158 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1159 # Reject names that are not valid shell variable names.
1160 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1161 { echo "$as_me: error: invalid package name: $ac_package" >&2
1162 { (exit 1); exit 1; }; }
1163 ac_package=`echo $ac_package | sed 's/-/_/g'`
1164 eval with_$ac_package=no ;;
1166 --x)
1167 # Obsolete; use --with-x.
1168 with_x=yes ;;
1170 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1171 | --x-incl | --x-inc | --x-in | --x-i)
1172 ac_prev=x_includes ;;
1173 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1174 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1175 x_includes=$ac_optarg ;;
1177 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1178 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1179 ac_prev=x_libraries ;;
1180 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1181 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1182 x_libraries=$ac_optarg ;;
1184 -*) { echo "$as_me: error: unrecognized option: $ac_option
1185 Try \`$0 --help' for more information." >&2
1186 { (exit 1); exit 1; }; }
1189 *=*)
1190 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1191 # Reject names that are not valid shell variable names.
1192 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1193 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1194 { (exit 1); exit 1; }; }
1195 eval $ac_envvar=\$ac_optarg
1196 export $ac_envvar ;;
1199 # FIXME: should be removed in autoconf 3.0.
1200 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1201 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1202 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1203 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1206 esac
1207 done
1209 if test -n "$ac_prev"; then
1210 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1211 { echo "$as_me: error: missing argument to $ac_option" >&2
1212 { (exit 1); exit 1; }; }
1215 # Be sure to have absolute directory names.
1216 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1217 datadir sysconfdir sharedstatedir localstatedir includedir \
1218 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1219 libdir localedir mandir
1221 eval ac_val=\$$ac_var
1222 case $ac_val in
1223 [\\/$]* | ?:[\\/]* ) continue;;
1224 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1225 esac
1226 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1227 { (exit 1); exit 1; }; }
1228 done
1230 # There might be people who depend on the old broken behavior: `$host'
1231 # used to hold the argument of --host etc.
1232 # FIXME: To remove some day.
1233 build=$build_alias
1234 host=$host_alias
1235 target=$target_alias
1237 # FIXME: To remove some day.
1238 if test "x$host_alias" != x; then
1239 if test "x$build_alias" = x; then
1240 cross_compiling=maybe
1241 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1242 If a cross compiler is detected then cross compile mode will be used." >&2
1243 elif test "x$build_alias" != "x$host_alias"; then
1244 cross_compiling=yes
1248 ac_tool_prefix=
1249 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1251 test "$silent" = yes && exec 6>/dev/null
1254 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1255 ac_ls_di=`ls -di .` &&
1256 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1257 { echo "$as_me: error: Working directory cannot be determined" >&2
1258 { (exit 1); exit 1; }; }
1259 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1260 { echo "$as_me: error: pwd does not report name of working directory" >&2
1261 { (exit 1); exit 1; }; }
1264 # Find the source files, if location was not specified.
1265 if test -z "$srcdir"; then
1266 ac_srcdir_defaulted=yes
1267 # Try the directory containing this script, then the parent directory.
1268 ac_confdir=`$as_dirname -- "$0" ||
1269 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1270 X"$0" : 'X\(//\)[^/]' \| \
1271 X"$0" : 'X\(//\)$' \| \
1272 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1273 echo X"$0" |
1274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1275 s//\1/
1278 /^X\(\/\/\)[^/].*/{
1279 s//\1/
1282 /^X\(\/\/\)$/{
1283 s//\1/
1286 /^X\(\/\).*/{
1287 s//\1/
1290 s/.*/./; q'`
1291 srcdir=$ac_confdir
1292 if test ! -r "$srcdir/$ac_unique_file"; then
1293 srcdir=..
1295 else
1296 ac_srcdir_defaulted=no
1298 if test ! -r "$srcdir/$ac_unique_file"; then
1299 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1300 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1301 { (exit 1); exit 1; }; }
1303 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1304 ac_abs_confdir=`(
1305 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1306 { (exit 1); exit 1; }; }
1307 pwd)`
1308 # When building in place, set srcdir=.
1309 if test "$ac_abs_confdir" = "$ac_pwd"; then
1310 srcdir=.
1312 # Remove unnecessary trailing slashes from srcdir.
1313 # Double slashes in file names in object file debugging info
1314 # mess up M-x gdb in Emacs.
1315 case $srcdir in
1316 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1317 esac
1318 for ac_var in $ac_precious_vars; do
1319 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1320 eval ac_env_${ac_var}_value=\$${ac_var}
1321 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1322 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1323 done
1326 # Report the --help message.
1328 if test "$ac_init_help" = "long"; then
1329 # Omit some internal or obsolete options to make the list less imposing.
1330 # This message is too long to be a string in the A/UX 3.1 sh.
1331 cat <<_ACEOF
1332 \`configure' configures llvm 3.0svn to adapt to many kinds of systems.
1334 Usage: $0 [OPTION]... [VAR=VALUE]...
1336 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1337 VAR=VALUE. See below for descriptions of some of the useful variables.
1339 Defaults for the options are specified in brackets.
1341 Configuration:
1342 -h, --help display this help and exit
1343 --help=short display options specific to this package
1344 --help=recursive display the short help of all the included packages
1345 -V, --version display version information and exit
1346 -q, --quiet, --silent do not print \`checking...' messages
1347 --cache-file=FILE cache test results in FILE [disabled]
1348 -C, --config-cache alias for \`--cache-file=config.cache'
1349 -n, --no-create do not create output files
1350 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1352 Installation directories:
1353 --prefix=PREFIX install architecture-independent files in PREFIX
1354 [$ac_default_prefix]
1355 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1356 [PREFIX]
1358 By default, \`make install' will install all the files in
1359 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1360 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1361 for instance \`--prefix=\$HOME'.
1363 For better control, use the options below.
1365 Fine tuning of the installation directories:
1366 --bindir=DIR user executables [EPREFIX/bin]
1367 --sbindir=DIR system admin executables [EPREFIX/sbin]
1368 --libexecdir=DIR program executables [EPREFIX/libexec]
1369 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1370 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1371 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1372 --libdir=DIR object code libraries [EPREFIX/lib]
1373 --includedir=DIR C header files [PREFIX/include]
1374 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1375 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1376 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1377 --infodir=DIR info documentation [DATAROOTDIR/info]
1378 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1379 --mandir=DIR man documentation [DATAROOTDIR/man]
1380 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1381 --htmldir=DIR html documentation [DOCDIR]
1382 --dvidir=DIR dvi documentation [DOCDIR]
1383 --pdfdir=DIR pdf documentation [DOCDIR]
1384 --psdir=DIR ps documentation [DOCDIR]
1385 _ACEOF
1387 cat <<\_ACEOF
1389 System types:
1390 --build=BUILD configure for building on BUILD [guessed]
1391 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1392 --target=TARGET configure for building compilers for TARGET [HOST]
1393 _ACEOF
1396 if test -n "$ac_init_help"; then
1397 case $ac_init_help in
1398 short | recursive ) echo "Configuration of llvm 3.0svn:";;
1399 esac
1400 cat <<\_ACEOF
1402 Optional Features:
1403 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1404 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1405 --enable-polly Use polly if available (default is YES)
1406 --enable-optimized Compile with optimizations enabled (default is NO)
1407 --enable-profiling Compile with profiling enabled (default is NO)
1408 --enable-assertions Compile with assertion checks enabled (default is
1409 YES)
1410 --enable-expensive-checks
1411 Compile with expensive debug checks enabled (default
1412 is NO)
1413 --enable-debug-runtime Build runtime libs with debug symbols (default is
1415 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1416 optimization is on and YES if it's off)
1417 --enable-jit Enable Just In Time Compiling (default is YES)
1418 --enable-docs Build documents (default is YES)
1419 --enable-doxygen Build doxygen documentation (default is NO)
1420 --enable-threads Use threads if available (default is YES)
1421 --enable-pthreads Use pthreads if available (default is YES)
1422 --enable-pic Build LLVM with Position Independent Code (default
1423 is YES)
1424 --enable-shared Build a shared library and link tools against it
1425 (default is NO)
1426 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1427 Win32 DLL (default is YES)
1428 --enable-timestamps Enable embedding timestamp information in build
1429 (default is YES)
1430 --enable-targets Build specific host targets: all or
1431 target1,target2,... Valid targets are: host, x86,
1432 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1433 xcore, msp430, systemz, blackfin, ptx, cbe, and cpp
1434 (default=all)
1435 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1436 %a (default is YES)
1437 --enable-bindings Build specific language bindings:
1438 all,auto,none,{binding-name} (default=auto)
1439 --enable-libffi Check for the presence of libffi (default is NO)
1440 --enable-ltdl-install install libltdl
1442 Optional Packages:
1443 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1444 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1445 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1446 searches PATH)
1447 --with-llvmgcc Specify location of llvm-gcc driver (default
1448 searches PATH)
1449 --with-llvmgxx Specify location of llvm-g++ driver (default
1450 searches PATH)
1451 --with-clang Specify location of clang compiler (default is
1452 --with-built-clang)
1453 --with-built-clang Use the compiled Clang as the LLVM compiler
1454 (default=check)
1455 --with-optimize-option Select the compiler options to use for optimized
1456 builds
1457 --with-extra-options Specify additional options to compile LLVM with
1458 --with-extra-ld-options Specify additional options to link LLVM with
1459 --with-ocaml-libdir Specify install location for ocaml bindings (default
1460 is stdlib)
1461 --with-clang-resource-dir
1462 Relative directory from the Clang binary for
1463 resource files
1464 --with-c-include-dirs Colon separated list of directories clang will
1465 search for headers
1466 --with-cxx-include-root Directory with the libstdc++ headers.
1467 --with-cxx-include-arch Architecture of the libstdc++ headers.
1468 --with-cxx-include-32bit-dir
1469 32 bit multilib dir.
1470 --with-cxx-include-64bit-dir
1471 64 bit multilib directory.
1472 --with-binutils-include Specify path to binutils/include/ containing
1473 plugin-api.h file for gold plugin.
1474 --with-bug-report-url Specify the URL where bug reports should be
1475 submitted (default=http://llvm.org)
1476 --with-tclinclude directory where tcl headers are
1477 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1478 clang, or none; default=check)
1479 --with-udis86=<path> Use udis86 external x86 disassembler library
1480 --with-oprofile=<prefix>
1481 Tell OProfile >= 0.9.4 how to symbolize JIT output
1483 Some influential environment variables:
1484 CC C compiler command
1485 CFLAGS C compiler flags
1486 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1487 nonstandard directory <lib dir>
1488 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1489 you have headers in a nonstandard directory <include dir>
1490 CPP C preprocessor
1491 CXX C++ compiler command
1492 CXXFLAGS C++ compiler flags
1494 Use these variables to override the choices made by `configure' or to help
1495 it to find libraries and programs with nonstandard names/locations.
1497 Report bugs to <llvmbugs@cs.uiuc.edu>.
1498 _ACEOF
1499 ac_status=$?
1502 if test "$ac_init_help" = "recursive"; then
1503 # If there are subdirs, report their specific --help.
1504 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1505 test -d "$ac_dir" || continue
1506 ac_builddir=.
1508 case "$ac_dir" in
1509 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1511 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1512 # A ".." for each directory in $ac_dir_suffix.
1513 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1514 case $ac_top_builddir_sub in
1515 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1516 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1517 esac ;;
1518 esac
1519 ac_abs_top_builddir=$ac_pwd
1520 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1521 # for backward compatibility:
1522 ac_top_builddir=$ac_top_build_prefix
1524 case $srcdir in
1525 .) # We are building in place.
1526 ac_srcdir=.
1527 ac_top_srcdir=$ac_top_builddir_sub
1528 ac_abs_top_srcdir=$ac_pwd ;;
1529 [\\/]* | ?:[\\/]* ) # Absolute name.
1530 ac_srcdir=$srcdir$ac_dir_suffix;
1531 ac_top_srcdir=$srcdir
1532 ac_abs_top_srcdir=$srcdir ;;
1533 *) # Relative name.
1534 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1535 ac_top_srcdir=$ac_top_build_prefix$srcdir
1536 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1537 esac
1538 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1540 cd "$ac_dir" || { ac_status=$?; continue; }
1541 # Check for guested configure.
1542 if test -f "$ac_srcdir/configure.gnu"; then
1543 echo &&
1544 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1545 elif test -f "$ac_srcdir/configure"; then
1546 echo &&
1547 $SHELL "$ac_srcdir/configure" --help=recursive
1548 else
1549 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1550 fi || ac_status=$?
1551 cd "$ac_pwd" || { ac_status=$?; break; }
1552 done
1555 test -n "$ac_init_help" && exit $ac_status
1556 if $ac_init_version; then
1557 cat <<\_ACEOF
1558 llvm configure 3.0svn
1559 generated by GNU Autoconf 2.60
1561 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1562 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1563 This configure script is free software; the Free Software Foundation
1564 gives unlimited permission to copy, distribute and modify it.
1566 Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.
1567 _ACEOF
1568 exit
1570 cat >config.log <<_ACEOF
1571 This file contains any messages produced by compilers while
1572 running configure, to aid debugging if configure makes a mistake.
1574 It was created by llvm $as_me 3.0svn, which was
1575 generated by GNU Autoconf 2.60. Invocation command line was
1577 $ $0 $@
1579 _ACEOF
1580 exec 5>>config.log
1582 cat <<_ASUNAME
1583 ## --------- ##
1584 ## Platform. ##
1585 ## --------- ##
1587 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1588 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1589 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1590 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1591 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1593 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1594 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1596 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1597 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1598 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1599 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1600 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1601 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1602 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1604 _ASUNAME
1606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1607 for as_dir in $PATH
1609 IFS=$as_save_IFS
1610 test -z "$as_dir" && as_dir=.
1611 echo "PATH: $as_dir"
1612 done
1613 IFS=$as_save_IFS
1615 } >&5
1617 cat >&5 <<_ACEOF
1620 ## ----------- ##
1621 ## Core tests. ##
1622 ## ----------- ##
1624 _ACEOF
1627 # Keep a trace of the command line.
1628 # Strip out --no-create and --no-recursion so they do not pile up.
1629 # Strip out --silent because we don't want to record it for future runs.
1630 # Also quote any args containing shell meta-characters.
1631 # Make two passes to allow for proper duplicate-argument suppression.
1632 ac_configure_args=
1633 ac_configure_args0=
1634 ac_configure_args1=
1635 ac_must_keep_next=false
1636 for ac_pass in 1 2
1638 for ac_arg
1640 case $ac_arg in
1641 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1642 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1643 | -silent | --silent | --silen | --sile | --sil)
1644 continue ;;
1645 *\'*)
1646 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1647 esac
1648 case $ac_pass in
1649 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1651 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1652 if test $ac_must_keep_next = true; then
1653 ac_must_keep_next=false # Got value, back to normal.
1654 else
1655 case $ac_arg in
1656 *=* | --config-cache | -C | -disable-* | --disable-* \
1657 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1658 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1659 | -with-* | --with-* | -without-* | --without-* | --x)
1660 case "$ac_configure_args0 " in
1661 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1662 esac
1664 -* ) ac_must_keep_next=true ;;
1665 esac
1667 ac_configure_args="$ac_configure_args '$ac_arg'"
1669 esac
1670 done
1671 done
1672 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1673 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1675 # When interrupted or exit'd, cleanup temporary files, and complete
1676 # config.log. We remove comments because anyway the quotes in there
1677 # would cause problems or look ugly.
1678 # WARNING: Use '\'' to represent an apostrophe within the trap.
1679 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1680 trap 'exit_status=$?
1681 # Save into config.log some information that might help in debugging.
1683 echo
1685 cat <<\_ASBOX
1686 ## ---------------- ##
1687 ## Cache variables. ##
1688 ## ---------------- ##
1689 _ASBOX
1690 echo
1691 # The following way of writing the cache mishandles newlines in values,
1693 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1694 eval ac_val=\$$ac_var
1695 case $ac_val in #(
1696 *${as_nl}*)
1697 case $ac_var in #(
1698 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1699 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1700 esac
1701 case $ac_var in #(
1702 _ | IFS | as_nl) ;; #(
1703 *) $as_unset $ac_var ;;
1704 esac ;;
1705 esac
1706 done
1707 (set) 2>&1 |
1708 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1709 *${as_nl}ac_space=\ *)
1710 sed -n \
1711 "s/'\''/'\''\\\\'\'''\''/g;
1712 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1713 ;; #(
1715 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1717 esac |
1718 sort
1720 echo
1722 cat <<\_ASBOX
1723 ## ----------------- ##
1724 ## Output variables. ##
1725 ## ----------------- ##
1726 _ASBOX
1727 echo
1728 for ac_var in $ac_subst_vars
1730 eval ac_val=\$$ac_var
1731 case $ac_val in
1732 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1733 esac
1734 echo "$ac_var='\''$ac_val'\''"
1735 done | sort
1736 echo
1738 if test -n "$ac_subst_files"; then
1739 cat <<\_ASBOX
1740 ## ------------------- ##
1741 ## File substitutions. ##
1742 ## ------------------- ##
1743 _ASBOX
1744 echo
1745 for ac_var in $ac_subst_files
1747 eval ac_val=\$$ac_var
1748 case $ac_val in
1749 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1750 esac
1751 echo "$ac_var='\''$ac_val'\''"
1752 done | sort
1753 echo
1756 if test -s confdefs.h; then
1757 cat <<\_ASBOX
1758 ## ----------- ##
1759 ## confdefs.h. ##
1760 ## ----------- ##
1761 _ASBOX
1762 echo
1763 cat confdefs.h
1764 echo
1766 test "$ac_signal" != 0 &&
1767 echo "$as_me: caught signal $ac_signal"
1768 echo "$as_me: exit $exit_status"
1769 } >&5
1770 rm -f core *.core core.conftest.* &&
1771 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1772 exit $exit_status
1774 for ac_signal in 1 2 13 15; do
1775 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1776 done
1777 ac_signal=0
1779 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1780 rm -f -r conftest* confdefs.h
1782 # Predefined preprocessor variables.
1784 cat >>confdefs.h <<_ACEOF
1785 #define PACKAGE_NAME "$PACKAGE_NAME"
1786 _ACEOF
1789 cat >>confdefs.h <<_ACEOF
1790 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1791 _ACEOF
1794 cat >>confdefs.h <<_ACEOF
1795 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1796 _ACEOF
1799 cat >>confdefs.h <<_ACEOF
1800 #define PACKAGE_STRING "$PACKAGE_STRING"
1801 _ACEOF
1804 cat >>confdefs.h <<_ACEOF
1805 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1806 _ACEOF
1809 # Let the site file select an alternate cache file if it wants to.
1810 # Prefer explicitly selected file to automatically selected ones.
1811 if test -n "$CONFIG_SITE"; then
1812 set x "$CONFIG_SITE"
1813 elif test "x$prefix" != xNONE; then
1814 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1815 else
1816 set x "$ac_default_prefix/share/config.site" \
1817 "$ac_default_prefix/etc/config.site"
1819 shift
1820 for ac_site_file
1822 if test -r "$ac_site_file"; then
1823 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1824 echo "$as_me: loading site script $ac_site_file" >&6;}
1825 sed 's/^/| /' "$ac_site_file" >&5
1826 . "$ac_site_file"
1828 done
1830 if test -r "$cache_file"; then
1831 # Some versions of bash will fail to source /dev/null (special
1832 # files actually), so we avoid doing that.
1833 if test -f "$cache_file"; then
1834 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1835 echo "$as_me: loading cache $cache_file" >&6;}
1836 case $cache_file in
1837 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1838 *) . "./$cache_file";;
1839 esac
1841 else
1842 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1843 echo "$as_me: creating cache $cache_file" >&6;}
1844 >$cache_file
1847 # Check that the precious variables saved in the cache have kept the same
1848 # value.
1849 ac_cache_corrupted=false
1850 for ac_var in $ac_precious_vars; do
1851 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1852 eval ac_new_set=\$ac_env_${ac_var}_set
1853 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1854 eval ac_new_val=\$ac_env_${ac_var}_value
1855 case $ac_old_set,$ac_new_set in
1856 set,)
1857 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1858 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1859 ac_cache_corrupted=: ;;
1860 ,set)
1861 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1862 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1863 ac_cache_corrupted=: ;;
1864 ,);;
1866 if test "x$ac_old_val" != "x$ac_new_val"; then
1867 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1868 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1869 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1870 echo "$as_me: former value: $ac_old_val" >&2;}
1871 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1872 echo "$as_me: current value: $ac_new_val" >&2;}
1873 ac_cache_corrupted=:
1874 fi;;
1875 esac
1876 # Pass precious variables to config.status.
1877 if test "$ac_new_set" = set; then
1878 case $ac_new_val in
1879 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1880 *) ac_arg=$ac_var=$ac_new_val ;;
1881 esac
1882 case " $ac_configure_args " in
1883 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1884 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1885 esac
1887 done
1888 if $ac_cache_corrupted; then
1889 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1890 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1891 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1892 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1893 { (exit 1); exit 1; }; }
1920 ac_ext=c
1921 ac_cpp='$CPP $CPPFLAGS'
1922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1928 LLVM_COPYRIGHT="Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign."
1936 ac_aux_dir=
1937 for ac_dir in autoconf "$srcdir"/autoconf; do
1938 if 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/install.sh"; then
1943 ac_aux_dir=$ac_dir
1944 ac_install_sh="$ac_aux_dir/install.sh -c"
1945 break
1946 elif test -f "$ac_dir/shtool"; then
1947 ac_aux_dir=$ac_dir
1948 ac_install_sh="$ac_aux_dir/shtool install -c"
1949 break
1951 done
1952 if test -z "$ac_aux_dir"; then
1953 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1954 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1955 { (exit 1); exit 1; }; }
1958 # These three variables are undocumented and unsupported,
1959 # and are intended to be withdrawn in a future Autoconf release.
1960 # They can cause serious problems if a builder's source tree is in a directory
1961 # whose full name contains unusual characters.
1962 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1963 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1964 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1968 if test ${srcdir} != "." ; then
1969 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1970 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1971 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1972 { (exit 1); exit 1; }; }
1978 if test -d ${srcdir}/projects/llvm-gcc ; then
1979 subdirs="$subdirs projects/llvm-gcc"
1983 if test -d ${srcdir}/projects/test-suite ; then
1984 subdirs="$subdirs projects/test-suite"
1988 if test -d ${srcdir}/projects/llvm-test ; then
1989 subdirs="$subdirs projects/llvm-test"
1993 if test -d ${srcdir}/projects/poolalloc ; then
1994 subdirs="$subdirs projects/poolalloc"
1998 if test -d ${srcdir}/projects/llvm-poolalloc ; then
1999 subdirs="$subdirs projects/llvm-poolalloc"
2003 for i in `ls ${srcdir}/projects`
2005 if test -d ${srcdir}/projects/${i} ; then
2006 case ${i} in
2007 sample) subdirs="$subdirs projects/sample"
2009 privbracket) subdirs="$subdirs projects/privbracket"
2011 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2013 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2015 llvm-java) subdirs="$subdirs projects/llvm-java"
2017 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2019 safecode) subdirs="$subdirs projects/safecode"
2021 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2023 llvm-gcc) ;;
2024 test-suite) ;;
2025 llvm-test) ;;
2026 poolalloc) ;;
2027 llvm-poolalloc) ;;
2029 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2030 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2032 esac
2034 done
2036 # Check whether --enable-polly was given.
2037 if test "${enable_polly+set}" = set; then
2038 enableval=$enable_polly;
2039 else
2040 enableval=default
2043 case "$enableval" in
2044 yes) ENABLE_POLLY=1
2046 no) ENABLE_POLLY=0
2048 default) ENABLE_POLLY=1
2050 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
2051 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
2052 { (exit 1); exit 1; }; } ;;
2053 esac
2056 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
2057 LLVM_HAS_POLLY=1
2059 subdirs="$subdirs tools/polly"
2064 # Make sure we can run config.sub.
2065 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2066 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2067 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2068 { (exit 1); exit 1; }; }
2070 { echo "$as_me:$LINENO: checking build system type" >&5
2071 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2072 if test "${ac_cv_build+set}" = set; then
2073 echo $ECHO_N "(cached) $ECHO_C" >&6
2074 else
2075 ac_build_alias=$build_alias
2076 test "x$ac_build_alias" = x &&
2077 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2078 test "x$ac_build_alias" = x &&
2079 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2080 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2081 { (exit 1); exit 1; }; }
2082 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2083 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2084 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2085 { (exit 1); exit 1; }; }
2088 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2089 echo "${ECHO_T}$ac_cv_build" >&6; }
2090 case $ac_cv_build in
2091 *-*-*) ;;
2092 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2093 echo "$as_me: error: invalid value of canonical build" >&2;}
2094 { (exit 1); exit 1; }; };;
2095 esac
2096 build=$ac_cv_build
2097 ac_save_IFS=$IFS; IFS='-'
2098 set x $ac_cv_build
2099 shift
2100 build_cpu=$1
2101 build_vendor=$2
2102 shift; shift
2103 # Remember, the first character of IFS is used to create $*,
2104 # except with old shells:
2105 build_os=$*
2106 IFS=$ac_save_IFS
2107 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2110 { echo "$as_me:$LINENO: checking host system type" >&5
2111 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2112 if test "${ac_cv_host+set}" = set; then
2113 echo $ECHO_N "(cached) $ECHO_C" >&6
2114 else
2115 if test "x$host_alias" = x; then
2116 ac_cv_host=$ac_cv_build
2117 else
2118 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2119 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2120 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2121 { (exit 1); exit 1; }; }
2125 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2126 echo "${ECHO_T}$ac_cv_host" >&6; }
2127 case $ac_cv_host in
2128 *-*-*) ;;
2129 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2130 echo "$as_me: error: invalid value of canonical host" >&2;}
2131 { (exit 1); exit 1; }; };;
2132 esac
2133 host=$ac_cv_host
2134 ac_save_IFS=$IFS; IFS='-'
2135 set x $ac_cv_host
2136 shift
2137 host_cpu=$1
2138 host_vendor=$2
2139 shift; shift
2140 # Remember, the first character of IFS is used to create $*,
2141 # except with old shells:
2142 host_os=$*
2143 IFS=$ac_save_IFS
2144 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2147 { echo "$as_me:$LINENO: checking target system type" >&5
2148 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2149 if test "${ac_cv_target+set}" = set; then
2150 echo $ECHO_N "(cached) $ECHO_C" >&6
2151 else
2152 if test "x$target_alias" = x; then
2153 ac_cv_target=$ac_cv_host
2154 else
2155 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2156 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2157 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2158 { (exit 1); exit 1; }; }
2162 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2163 echo "${ECHO_T}$ac_cv_target" >&6; }
2164 case $ac_cv_target in
2165 *-*-*) ;;
2166 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2167 echo "$as_me: error: invalid value of canonical target" >&2;}
2168 { (exit 1); exit 1; }; };;
2169 esac
2170 target=$ac_cv_target
2171 ac_save_IFS=$IFS; IFS='-'
2172 set x $ac_cv_target
2173 shift
2174 target_cpu=$1
2175 target_vendor=$2
2176 shift; shift
2177 # Remember, the first character of IFS is used to create $*,
2178 # except with old shells:
2179 target_os=$*
2180 IFS=$ac_save_IFS
2181 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2184 # The aliases save the names the user supplied, while $host etc.
2185 # will get canonicalized.
2186 test -n "$target_alias" &&
2187 test "$program_prefix$program_suffix$program_transform_name" = \
2188 NONENONEs,x,x, &&
2189 program_prefix=${target_alias}-
2191 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2192 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2193 if test "${llvm_cv_os_type+set}" = set; then
2194 echo $ECHO_N "(cached) $ECHO_C" >&6
2195 else
2196 case $host in
2197 *-*-aix*)
2198 llvm_cv_link_all_option="-Wl,--whole-archive"
2199 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2200 llvm_cv_os_type="AIX"
2201 llvm_cv_platform_type="Unix" ;;
2202 *-*-irix*)
2203 llvm_cv_link_all_option="-Wl,--whole-archive"
2204 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2205 llvm_cv_os_type="IRIX"
2206 llvm_cv_platform_type="Unix" ;;
2207 *-*-cygwin*)
2208 llvm_cv_link_all_option="-Wl,--whole-archive"
2209 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2210 llvm_cv_os_type="Cygwin"
2211 llvm_cv_platform_type="Unix" ;;
2212 *-*-darwin*)
2213 llvm_cv_link_all_option="-Wl,-all_load"
2214 llvm_cv_no_link_all_option="-Wl,-noall_load"
2215 llvm_cv_os_type="Darwin"
2216 llvm_cv_platform_type="Unix" ;;
2217 *-*-minix*)
2218 llvm_cv_link_all_option="-Wl,-all_load"
2219 llvm_cv_no_link_all_option="-Wl,-noall_load"
2220 llvm_cv_os_type="Minix"
2221 llvm_cv_platform_type="Unix" ;;
2222 *-*-freebsd*)
2223 llvm_cv_link_all_option="-Wl,--whole-archive"
2224 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2225 llvm_cv_os_type="FreeBSD"
2226 llvm_cv_platform_type="Unix" ;;
2227 *-*-openbsd*)
2228 llvm_cv_link_all_option="-Wl,--whole-archive"
2229 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2230 llvm_cv_os_type="OpenBSD"
2231 llvm_cv_platform_type="Unix" ;;
2232 *-*-netbsd*)
2233 llvm_cv_link_all_option="-Wl,--whole-archive"
2234 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2235 llvm_cv_os_type="NetBSD"
2236 llvm_cv_platform_type="Unix" ;;
2237 *-*-dragonfly*)
2238 llvm_cv_link_all_option="-Wl,--whole-archive"
2239 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2240 llvm_cv_os_type="DragonFly"
2241 llvm_cv_platform_type="Unix" ;;
2242 *-*-hpux*)
2243 llvm_cv_link_all_option="-Wl,--whole-archive"
2244 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2245 llvm_cv_os_type="HP-UX"
2246 llvm_cv_platform_type="Unix" ;;
2247 *-*-interix*)
2248 llvm_cv_link_all_option="-Wl,--whole-archive"
2249 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2250 llvm_cv_os_type="Interix"
2251 llvm_cv_platform_type="Unix" ;;
2252 *-*-linux*)
2253 llvm_cv_link_all_option="-Wl,--whole-archive"
2254 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2255 llvm_cv_os_type="Linux"
2256 llvm_cv_platform_type="Unix" ;;
2257 *-*-solaris*)
2258 llvm_cv_link_all_option="-Wl,-z,allextract"
2259 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2260 llvm_cv_os_type="SunOS"
2261 llvm_cv_platform_type="Unix" ;;
2262 *-*-auroraux*)
2263 llvm_cv_link_all_option="-Wl,-z,allextract"
2264 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2265 llvm_cv_os_type="AuroraUX"
2266 llvm_cv_platform_type="Unix" ;;
2267 *-*-win32*)
2268 llvm_cv_link_all_option="-Wl,--whole-archive"
2269 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2270 llvm_cv_os_type="Win32"
2271 llvm_cv_platform_type="Win32" ;;
2272 *-*-mingw*)
2273 llvm_cv_link_all_option="-Wl,--whole-archive"
2274 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2275 llvm_cv_os_type="MingW"
2276 llvm_cv_platform_type="Win32" ;;
2277 *-*-haiku*)
2278 llvm_cv_link_all_option="-Wl,--whole-archive"
2279 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2280 llvm_cv_os_type="Haiku"
2281 llvm_cv_platform_type="Unix" ;;
2282 *-unknown-eabi*)
2283 llvm_cv_link_all_option="-Wl,--whole-archive"
2284 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2285 llvm_cv_os_type="Freestanding"
2286 llvm_cv_platform_type="Unix" ;;
2287 *-unknown-elf*)
2288 llvm_cv_link_all_option="-Wl,--whole-archive"
2289 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2290 llvm_cv_os_type="Freestanding"
2291 llvm_cv_platform_type="Unix" ;;
2293 llvm_cv_link_all_option=""
2294 llvm_cv_no_link_all_option=""
2295 llvm_cv_os_type="Unknown"
2296 llvm_cv_platform_type="Unknown" ;;
2297 esac
2299 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2300 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2302 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2303 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2304 if test "${llvm_cv_target_os_type+set}" = set; then
2305 echo $ECHO_N "(cached) $ECHO_C" >&6
2306 else
2307 case $target in
2308 *-*-aix*)
2309 llvm_cv_target_os_type="AIX" ;;
2310 *-*-irix*)
2311 llvm_cv_target_os_type="IRIX" ;;
2312 *-*-cygwin*)
2313 llvm_cv_target_os_type="Cygwin" ;;
2314 *-*-darwin*)
2315 llvm_cv_target_os_type="Darwin" ;;
2316 *-*-minix*)
2317 llvm_cv_target_os_type="Minix" ;;
2318 *-*-freebsd*)
2319 llvm_cv_target_os_type="FreeBSD" ;;
2320 *-*-openbsd*)
2321 llvm_cv_target_os_type="OpenBSD" ;;
2322 *-*-netbsd*)
2323 llvm_cv_target_os_type="NetBSD" ;;
2324 *-*-dragonfly*)
2325 llvm_cv_target_os_type="DragonFly" ;;
2326 *-*-hpux*)
2327 llvm_cv_target_os_type="HP-UX" ;;
2328 *-*-interix*)
2329 llvm_cv_target_os_type="Interix" ;;
2330 *-*-linux*)
2331 llvm_cv_target_os_type="Linux" ;;
2332 *-*-solaris*)
2333 llvm_cv_target_os_type="SunOS" ;;
2334 *-*-auroraux*)
2335 llvm_cv_target_os_type="AuroraUX" ;;
2336 *-*-win32*)
2337 llvm_cv_target_os_type="Win32" ;;
2338 *-*-mingw*)
2339 llvm_cv_target_os_type="MingW" ;;
2340 *-*-haiku*)
2341 llvm_cv_target_os_type="Haiku" ;;
2342 *-*-rtems*)
2343 llvm_cv_target_os_type="RTEMS" ;;
2344 *-unknown-eabi*)
2345 llvm_cv_target_os_type="Freestanding" ;;
2347 llvm_cv_target_os_type="Unknown" ;;
2348 esac
2350 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2351 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2353 if test "$llvm_cv_os_type" = "Unknown" ; then
2354 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2355 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2356 { (exit 1); exit 1; }; }
2359 OS=$llvm_cv_os_type
2361 HOST_OS=$llvm_cv_os_type
2363 TARGET_OS=$llvm_cv_target_os_type
2366 LINKALL=$llvm_cv_link_all_option
2368 NOLINKALL=$llvm_cv_no_link_all_option
2371 case $llvm_cv_platform_type in
2372 Unix)
2374 cat >>confdefs.h <<\_ACEOF
2375 #define LLVM_ON_UNIX 1
2376 _ACEOF
2378 LLVM_ON_UNIX=1
2380 LLVM_ON_WIN32=0
2383 Win32)
2385 cat >>confdefs.h <<\_ACEOF
2386 #define LLVM_ON_WIN32 1
2387 _ACEOF
2389 LLVM_ON_UNIX=0
2391 LLVM_ON_WIN32=1
2394 esac
2396 { echo "$as_me:$LINENO: checking target architecture" >&5
2397 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2398 if test "${llvm_cv_target_arch+set}" = set; then
2399 echo $ECHO_N "(cached) $ECHO_C" >&6
2400 else
2401 case $target in
2402 i?86-*) llvm_cv_target_arch="x86" ;;
2403 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2404 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2405 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2406 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2407 arm*-*) llvm_cv_target_arch="ARM" ;;
2408 mips-*) llvm_cv_target_arch="Mips" ;;
2409 xcore-*) llvm_cv_target_arch="XCore" ;;
2410 msp430-*) llvm_cv_target_arch="MSP430" ;;
2411 s390x-*) llvm_cv_target_arch="SystemZ" ;;
2412 bfin-*) llvm_cv_target_arch="Blackfin" ;;
2413 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
2414 ptx-*) llvm_cv_target_arch="PTX" ;;
2415 *) llvm_cv_target_arch="Unknown" ;;
2416 esac
2418 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2419 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2421 if test "$llvm_cv_target_arch" = "Unknown" ; then
2422 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2423 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2426 # Determine the LLVM native architecture for the target
2427 case "$llvm_cv_target_arch" in
2428 x86) LLVM_NATIVE_ARCH="X86" ;;
2429 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2430 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2431 esac
2433 ARCH=$llvm_cv_target_arch
2436 ac_ext=c
2437 ac_cpp='$CPP $CPPFLAGS'
2438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2441 if test -n "$ac_tool_prefix"; then
2442 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2443 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2444 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2446 if test "${ac_cv_prog_CC+set}" = set; then
2447 echo $ECHO_N "(cached) $ECHO_C" >&6
2448 else
2449 if test -n "$CC"; then
2450 ac_cv_prog_CC="$CC" # Let the user override the test.
2451 else
2452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2453 for as_dir in $PATH
2455 IFS=$as_save_IFS
2456 test -z "$as_dir" && as_dir=.
2457 for ac_exec_ext in '' $ac_executable_extensions; do
2458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2459 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2461 break 2
2463 done
2464 done
2465 IFS=$as_save_IFS
2469 CC=$ac_cv_prog_CC
2470 if test -n "$CC"; then
2471 { echo "$as_me:$LINENO: result: $CC" >&5
2472 echo "${ECHO_T}$CC" >&6; }
2473 else
2474 { echo "$as_me:$LINENO: result: no" >&5
2475 echo "${ECHO_T}no" >&6; }
2480 if test -z "$ac_cv_prog_CC"; then
2481 ac_ct_CC=$CC
2482 # Extract the first word of "gcc", so it can be a program name with args.
2483 set dummy gcc; ac_word=$2
2484 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2486 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2487 echo $ECHO_N "(cached) $ECHO_C" >&6
2488 else
2489 if test -n "$ac_ct_CC"; then
2490 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2491 else
2492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2493 for as_dir in $PATH
2495 IFS=$as_save_IFS
2496 test -z "$as_dir" && as_dir=.
2497 for ac_exec_ext in '' $ac_executable_extensions; do
2498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2499 ac_cv_prog_ac_ct_CC="gcc"
2500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2501 break 2
2503 done
2504 done
2505 IFS=$as_save_IFS
2509 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2510 if test -n "$ac_ct_CC"; then
2511 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2512 echo "${ECHO_T}$ac_ct_CC" >&6; }
2513 else
2514 { echo "$as_me:$LINENO: result: no" >&5
2515 echo "${ECHO_T}no" >&6; }
2518 if test "x$ac_ct_CC" = x; then
2519 CC=""
2520 else
2521 case $cross_compiling:$ac_tool_warned in
2522 yes:)
2523 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2524 whose name does not start with the host triplet. If you think this
2525 configuration is useful to you, please write to autoconf@gnu.org." >&5
2526 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2527 whose name does not start with the host triplet. If you think this
2528 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2529 ac_tool_warned=yes ;;
2530 esac
2531 CC=$ac_ct_CC
2533 else
2534 CC="$ac_cv_prog_CC"
2537 if test -z "$CC"; then
2538 if test -n "$ac_tool_prefix"; then
2539 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2540 set dummy ${ac_tool_prefix}cc; ac_word=$2
2541 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2543 if test "${ac_cv_prog_CC+set}" = set; then
2544 echo $ECHO_N "(cached) $ECHO_C" >&6
2545 else
2546 if test -n "$CC"; then
2547 ac_cv_prog_CC="$CC" # Let the user override the test.
2548 else
2549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2550 for as_dir in $PATH
2552 IFS=$as_save_IFS
2553 test -z "$as_dir" && as_dir=.
2554 for ac_exec_ext in '' $ac_executable_extensions; do
2555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2556 ac_cv_prog_CC="${ac_tool_prefix}cc"
2557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2558 break 2
2560 done
2561 done
2562 IFS=$as_save_IFS
2566 CC=$ac_cv_prog_CC
2567 if test -n "$CC"; then
2568 { echo "$as_me:$LINENO: result: $CC" >&5
2569 echo "${ECHO_T}$CC" >&6; }
2570 else
2571 { echo "$as_me:$LINENO: result: no" >&5
2572 echo "${ECHO_T}no" >&6; }
2578 if test -z "$CC"; then
2579 # Extract the first word of "cc", so it can be a program name with args.
2580 set dummy cc; ac_word=$2
2581 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2583 if test "${ac_cv_prog_CC+set}" = set; then
2584 echo $ECHO_N "(cached) $ECHO_C" >&6
2585 else
2586 if test -n "$CC"; then
2587 ac_cv_prog_CC="$CC" # Let the user override the test.
2588 else
2589 ac_prog_rejected=no
2590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2591 for as_dir in $PATH
2593 IFS=$as_save_IFS
2594 test -z "$as_dir" && as_dir=.
2595 for ac_exec_ext in '' $ac_executable_extensions; do
2596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2597 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2598 ac_prog_rejected=yes
2599 continue
2601 ac_cv_prog_CC="cc"
2602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2603 break 2
2605 done
2606 done
2607 IFS=$as_save_IFS
2609 if test $ac_prog_rejected = yes; then
2610 # We found a bogon in the path, so make sure we never use it.
2611 set dummy $ac_cv_prog_CC
2612 shift
2613 if test $# != 0; then
2614 # We chose a different compiler from the bogus one.
2615 # However, it has the same basename, so the bogon will be chosen
2616 # first if we set CC to just the basename; use the full file name.
2617 shift
2618 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2623 CC=$ac_cv_prog_CC
2624 if test -n "$CC"; then
2625 { echo "$as_me:$LINENO: result: $CC" >&5
2626 echo "${ECHO_T}$CC" >&6; }
2627 else
2628 { echo "$as_me:$LINENO: result: no" >&5
2629 echo "${ECHO_T}no" >&6; }
2634 if test -z "$CC"; then
2635 if test -n "$ac_tool_prefix"; then
2636 for ac_prog in cl.exe
2638 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2639 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2640 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2642 if test "${ac_cv_prog_CC+set}" = set; then
2643 echo $ECHO_N "(cached) $ECHO_C" >&6
2644 else
2645 if test -n "$CC"; then
2646 ac_cv_prog_CC="$CC" # Let the user override the test.
2647 else
2648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2649 for as_dir in $PATH
2651 IFS=$as_save_IFS
2652 test -z "$as_dir" && as_dir=.
2653 for ac_exec_ext in '' $ac_executable_extensions; do
2654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2655 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2657 break 2
2659 done
2660 done
2661 IFS=$as_save_IFS
2665 CC=$ac_cv_prog_CC
2666 if test -n "$CC"; then
2667 { echo "$as_me:$LINENO: result: $CC" >&5
2668 echo "${ECHO_T}$CC" >&6; }
2669 else
2670 { echo "$as_me:$LINENO: result: no" >&5
2671 echo "${ECHO_T}no" >&6; }
2675 test -n "$CC" && break
2676 done
2678 if test -z "$CC"; then
2679 ac_ct_CC=$CC
2680 for ac_prog in cl.exe
2682 # Extract the first word of "$ac_prog", so it can be a program name with args.
2683 set dummy $ac_prog; ac_word=$2
2684 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2686 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2687 echo $ECHO_N "(cached) $ECHO_C" >&6
2688 else
2689 if test -n "$ac_ct_CC"; then
2690 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2691 else
2692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2693 for as_dir in $PATH
2695 IFS=$as_save_IFS
2696 test -z "$as_dir" && as_dir=.
2697 for ac_exec_ext in '' $ac_executable_extensions; do
2698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2699 ac_cv_prog_ac_ct_CC="$ac_prog"
2700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2701 break 2
2703 done
2704 done
2705 IFS=$as_save_IFS
2709 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2710 if test -n "$ac_ct_CC"; then
2711 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2712 echo "${ECHO_T}$ac_ct_CC" >&6; }
2713 else
2714 { echo "$as_me:$LINENO: result: no" >&5
2715 echo "${ECHO_T}no" >&6; }
2719 test -n "$ac_ct_CC" && break
2720 done
2722 if test "x$ac_ct_CC" = x; then
2723 CC=""
2724 else
2725 case $cross_compiling:$ac_tool_warned in
2726 yes:)
2727 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2728 whose name does not start with the host triplet. If you think this
2729 configuration is useful to you, please write to autoconf@gnu.org." >&5
2730 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2731 whose name does not start with the host triplet. If you think this
2732 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2733 ac_tool_warned=yes ;;
2734 esac
2735 CC=$ac_ct_CC
2742 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2743 See \`config.log' for more details." >&5
2744 echo "$as_me: error: no acceptable C compiler found in \$PATH
2745 See \`config.log' for more details." >&2;}
2746 { (exit 1); exit 1; }; }
2748 # Provide some information about the compiler.
2749 echo "$as_me:$LINENO: checking for C compiler version" >&5
2750 ac_compiler=`set X $ac_compile; echo $2`
2751 { (ac_try="$ac_compiler --version >&5"
2752 case "(($ac_try" in
2753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2754 *) ac_try_echo=$ac_try;;
2755 esac
2756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2757 (eval "$ac_compiler --version >&5") 2>&5
2758 ac_status=$?
2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760 (exit $ac_status); }
2761 { (ac_try="$ac_compiler -v >&5"
2762 case "(($ac_try" in
2763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2764 *) ac_try_echo=$ac_try;;
2765 esac
2766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2767 (eval "$ac_compiler -v >&5") 2>&5
2768 ac_status=$?
2769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770 (exit $ac_status); }
2771 { (ac_try="$ac_compiler -V >&5"
2772 case "(($ac_try" in
2773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2774 *) ac_try_echo=$ac_try;;
2775 esac
2776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2777 (eval "$ac_compiler -V >&5") 2>&5
2778 ac_status=$?
2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780 (exit $ac_status); }
2782 cat >conftest.$ac_ext <<_ACEOF
2783 /* confdefs.h. */
2784 _ACEOF
2785 cat confdefs.h >>conftest.$ac_ext
2786 cat >>conftest.$ac_ext <<_ACEOF
2787 /* end confdefs.h. */
2790 main ()
2794 return 0;
2796 _ACEOF
2797 ac_clean_files_save=$ac_clean_files
2798 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2799 # Try to create an executable without -o first, disregard a.out.
2800 # It will help us diagnose broken compilers, and finding out an intuition
2801 # of exeext.
2802 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2803 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2804 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2806 # List of possible output files, starting from the most likely.
2807 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2808 # only as a last resort. b.out is created by i960 compilers.
2809 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2811 # The IRIX 6 linker writes into existing files which may not be
2812 # executable, retaining their permissions. Remove them first so a
2813 # subsequent execution test works.
2814 ac_rmfiles=
2815 for ac_file in $ac_files
2817 case $ac_file in
2818 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2819 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2820 esac
2821 done
2822 rm -f $ac_rmfiles
2824 if { (ac_try="$ac_link_default"
2825 case "(($ac_try" in
2826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2827 *) ac_try_echo=$ac_try;;
2828 esac
2829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2830 (eval "$ac_link_default") 2>&5
2831 ac_status=$?
2832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833 (exit $ac_status); }; then
2834 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2835 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2836 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2837 # so that the user can short-circuit this test for compilers unknown to
2838 # Autoconf.
2839 for ac_file in $ac_files
2841 test -f "$ac_file" || continue
2842 case $ac_file in
2843 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2845 [ab].out )
2846 # We found the default executable, but exeext='' is most
2847 # certainly right.
2848 break;;
2849 *.* )
2850 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2851 then :; else
2852 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2854 # We set ac_cv_exeext here because the later test for it is not
2855 # safe: cross compilers may not add the suffix if given an `-o'
2856 # argument, so we may need to know it at that point already.
2857 # Even if this section looks crufty: it has the advantage of
2858 # actually working.
2859 break;;
2861 break;;
2862 esac
2863 done
2864 test "$ac_cv_exeext" = no && ac_cv_exeext=
2866 else
2867 echo "$as_me: failed program was:" >&5
2868 sed 's/^/| /' conftest.$ac_ext >&5
2870 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2871 See \`config.log' for more details." >&5
2872 echo "$as_me: error: C compiler cannot create executables
2873 See \`config.log' for more details." >&2;}
2874 { (exit 77); exit 77; }; }
2877 ac_exeext=$ac_cv_exeext
2878 { echo "$as_me:$LINENO: result: $ac_file" >&5
2879 echo "${ECHO_T}$ac_file" >&6; }
2881 # Check that the compiler produces executables we can run. If not, either
2882 # the compiler is broken, or we cross compile.
2883 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2884 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2885 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2886 # If not cross compiling, check that we can run a simple program.
2887 if test "$cross_compiling" != yes; then
2888 if { ac_try='./$ac_file'
2889 { (case "(($ac_try" in
2890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2891 *) ac_try_echo=$ac_try;;
2892 esac
2893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2894 (eval "$ac_try") 2>&5
2895 ac_status=$?
2896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897 (exit $ac_status); }; }; then
2898 cross_compiling=no
2899 else
2900 if test "$cross_compiling" = maybe; then
2901 cross_compiling=yes
2902 else
2903 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2904 If you meant to cross compile, use \`--host'.
2905 See \`config.log' for more details." >&5
2906 echo "$as_me: error: cannot run C compiled programs.
2907 If you meant to cross compile, use \`--host'.
2908 See \`config.log' for more details." >&2;}
2909 { (exit 1); exit 1; }; }
2913 { echo "$as_me:$LINENO: result: yes" >&5
2914 echo "${ECHO_T}yes" >&6; }
2916 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2917 ac_clean_files=$ac_clean_files_save
2918 # Check that the compiler produces executables we can run. If not, either
2919 # the compiler is broken, or we cross compile.
2920 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2921 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2922 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2923 echo "${ECHO_T}$cross_compiling" >&6; }
2925 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2926 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2927 if { (ac_try="$ac_link"
2928 case "(($ac_try" in
2929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2930 *) ac_try_echo=$ac_try;;
2931 esac
2932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2933 (eval "$ac_link") 2>&5
2934 ac_status=$?
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); }; then
2937 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2938 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2939 # work properly (i.e., refer to `conftest.exe'), while it won't with
2940 # `rm'.
2941 for ac_file in conftest.exe conftest conftest.*; do
2942 test -f "$ac_file" || continue
2943 case $ac_file in
2944 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2945 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2946 break;;
2947 * ) break;;
2948 esac
2949 done
2950 else
2951 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2952 See \`config.log' for more details." >&5
2953 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2954 See \`config.log' for more details." >&2;}
2955 { (exit 1); exit 1; }; }
2958 rm -f conftest$ac_cv_exeext
2959 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2960 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2962 rm -f conftest.$ac_ext
2963 EXEEXT=$ac_cv_exeext
2964 ac_exeext=$EXEEXT
2965 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2966 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2967 if test "${ac_cv_objext+set}" = set; then
2968 echo $ECHO_N "(cached) $ECHO_C" >&6
2969 else
2970 cat >conftest.$ac_ext <<_ACEOF
2971 /* confdefs.h. */
2972 _ACEOF
2973 cat confdefs.h >>conftest.$ac_ext
2974 cat >>conftest.$ac_ext <<_ACEOF
2975 /* end confdefs.h. */
2978 main ()
2982 return 0;
2984 _ACEOF
2985 rm -f conftest.o conftest.obj
2986 if { (ac_try="$ac_compile"
2987 case "(($ac_try" in
2988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2989 *) ac_try_echo=$ac_try;;
2990 esac
2991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2992 (eval "$ac_compile") 2>&5
2993 ac_status=$?
2994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995 (exit $ac_status); }; then
2996 for ac_file in conftest.o conftest.obj conftest.*; do
2997 test -f "$ac_file" || continue;
2998 case $ac_file in
2999 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3000 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3001 break;;
3002 esac
3003 done
3004 else
3005 echo "$as_me: failed program was:" >&5
3006 sed 's/^/| /' conftest.$ac_ext >&5
3008 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3009 See \`config.log' for more details." >&5
3010 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3011 See \`config.log' for more details." >&2;}
3012 { (exit 1); exit 1; }; }
3015 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3017 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3018 echo "${ECHO_T}$ac_cv_objext" >&6; }
3019 OBJEXT=$ac_cv_objext
3020 ac_objext=$OBJEXT
3021 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3022 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3023 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3024 echo $ECHO_N "(cached) $ECHO_C" >&6
3025 else
3026 cat >conftest.$ac_ext <<_ACEOF
3027 /* confdefs.h. */
3028 _ACEOF
3029 cat confdefs.h >>conftest.$ac_ext
3030 cat >>conftest.$ac_ext <<_ACEOF
3031 /* end confdefs.h. */
3034 main ()
3036 #ifndef __GNUC__
3037 choke me
3038 #endif
3041 return 0;
3043 _ACEOF
3044 rm -f conftest.$ac_objext
3045 if { (ac_try="$ac_compile"
3046 case "(($ac_try" in
3047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048 *) ac_try_echo=$ac_try;;
3049 esac
3050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3051 (eval "$ac_compile") 2>conftest.er1
3052 ac_status=$?
3053 grep -v '^ *+' conftest.er1 >conftest.err
3054 rm -f conftest.er1
3055 cat conftest.err >&5
3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); } &&
3058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3059 { (case "(($ac_try" in
3060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3061 *) ac_try_echo=$ac_try;;
3062 esac
3063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3064 (eval "$ac_try") 2>&5
3065 ac_status=$?
3066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067 (exit $ac_status); }; } &&
3068 { ac_try='test -s conftest.$ac_objext'
3069 { (case "(($ac_try" in
3070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071 *) ac_try_echo=$ac_try;;
3072 esac
3073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3074 (eval "$ac_try") 2>&5
3075 ac_status=$?
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); }; }; then
3078 ac_compiler_gnu=yes
3079 else
3080 echo "$as_me: failed program was:" >&5
3081 sed 's/^/| /' conftest.$ac_ext >&5
3083 ac_compiler_gnu=no
3086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3087 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3090 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3091 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3092 GCC=`test $ac_compiler_gnu = yes && echo yes`
3093 ac_test_CFLAGS=${CFLAGS+set}
3094 ac_save_CFLAGS=$CFLAGS
3095 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3096 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3097 if test "${ac_cv_prog_cc_g+set}" = set; then
3098 echo $ECHO_N "(cached) $ECHO_C" >&6
3099 else
3100 ac_save_c_werror_flag=$ac_c_werror_flag
3101 ac_c_werror_flag=yes
3102 ac_cv_prog_cc_g=no
3103 CFLAGS="-g"
3104 cat >conftest.$ac_ext <<_ACEOF
3105 /* confdefs.h. */
3106 _ACEOF
3107 cat confdefs.h >>conftest.$ac_ext
3108 cat >>conftest.$ac_ext <<_ACEOF
3109 /* end confdefs.h. */
3112 main ()
3116 return 0;
3118 _ACEOF
3119 rm -f conftest.$ac_objext
3120 if { (ac_try="$ac_compile"
3121 case "(($ac_try" in
3122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3123 *) ac_try_echo=$ac_try;;
3124 esac
3125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3126 (eval "$ac_compile") 2>conftest.er1
3127 ac_status=$?
3128 grep -v '^ *+' conftest.er1 >conftest.err
3129 rm -f conftest.er1
3130 cat conftest.err >&5
3131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132 (exit $ac_status); } &&
3133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3134 { (case "(($ac_try" in
3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3137 esac
3138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3139 (eval "$ac_try") 2>&5
3140 ac_status=$?
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); }; } &&
3143 { ac_try='test -s conftest.$ac_objext'
3144 { (case "(($ac_try" in
3145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146 *) ac_try_echo=$ac_try;;
3147 esac
3148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3149 (eval "$ac_try") 2>&5
3150 ac_status=$?
3151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152 (exit $ac_status); }; }; then
3153 ac_cv_prog_cc_g=yes
3154 else
3155 echo "$as_me: failed program was:" >&5
3156 sed 's/^/| /' conftest.$ac_ext >&5
3158 CFLAGS=""
3159 cat >conftest.$ac_ext <<_ACEOF
3160 /* confdefs.h. */
3161 _ACEOF
3162 cat confdefs.h >>conftest.$ac_ext
3163 cat >>conftest.$ac_ext <<_ACEOF
3164 /* end confdefs.h. */
3167 main ()
3171 return 0;
3173 _ACEOF
3174 rm -f conftest.$ac_objext
3175 if { (ac_try="$ac_compile"
3176 case "(($ac_try" in
3177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178 *) ac_try_echo=$ac_try;;
3179 esac
3180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3181 (eval "$ac_compile") 2>conftest.er1
3182 ac_status=$?
3183 grep -v '^ *+' conftest.er1 >conftest.err
3184 rm -f conftest.er1
3185 cat conftest.err >&5
3186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); } &&
3188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3189 { (case "(($ac_try" in
3190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3191 *) ac_try_echo=$ac_try;;
3192 esac
3193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3194 (eval "$ac_try") 2>&5
3195 ac_status=$?
3196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197 (exit $ac_status); }; } &&
3198 { ac_try='test -s conftest.$ac_objext'
3199 { (case "(($ac_try" in
3200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3201 *) ac_try_echo=$ac_try;;
3202 esac
3203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3204 (eval "$ac_try") 2>&5
3205 ac_status=$?
3206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207 (exit $ac_status); }; }; then
3209 else
3210 echo "$as_me: failed program was:" >&5
3211 sed 's/^/| /' conftest.$ac_ext >&5
3213 ac_c_werror_flag=$ac_save_c_werror_flag
3214 CFLAGS="-g"
3215 cat >conftest.$ac_ext <<_ACEOF
3216 /* confdefs.h. */
3217 _ACEOF
3218 cat confdefs.h >>conftest.$ac_ext
3219 cat >>conftest.$ac_ext <<_ACEOF
3220 /* end confdefs.h. */
3223 main ()
3227 return 0;
3229 _ACEOF
3230 rm -f conftest.$ac_objext
3231 if { (ac_try="$ac_compile"
3232 case "(($ac_try" in
3233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234 *) ac_try_echo=$ac_try;;
3235 esac
3236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3237 (eval "$ac_compile") 2>conftest.er1
3238 ac_status=$?
3239 grep -v '^ *+' conftest.er1 >conftest.err
3240 rm -f conftest.er1
3241 cat conftest.err >&5
3242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243 (exit $ac_status); } &&
3244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3245 { (case "(($ac_try" in
3246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3247 *) ac_try_echo=$ac_try;;
3248 esac
3249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3250 (eval "$ac_try") 2>&5
3251 ac_status=$?
3252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253 (exit $ac_status); }; } &&
3254 { ac_try='test -s conftest.$ac_objext'
3255 { (case "(($ac_try" in
3256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3257 *) ac_try_echo=$ac_try;;
3258 esac
3259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3260 (eval "$ac_try") 2>&5
3261 ac_status=$?
3262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263 (exit $ac_status); }; }; then
3264 ac_cv_prog_cc_g=yes
3265 else
3266 echo "$as_me: failed program was:" >&5
3267 sed 's/^/| /' conftest.$ac_ext >&5
3272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3279 ac_c_werror_flag=$ac_save_c_werror_flag
3281 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3282 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3283 if test "$ac_test_CFLAGS" = set; then
3284 CFLAGS=$ac_save_CFLAGS
3285 elif test $ac_cv_prog_cc_g = yes; then
3286 if test "$GCC" = yes; then
3287 CFLAGS="-g -O2"
3288 else
3289 CFLAGS="-g"
3291 else
3292 if test "$GCC" = yes; then
3293 CFLAGS="-O2"
3294 else
3295 CFLAGS=
3298 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3299 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3300 if test "${ac_cv_prog_cc_c89+set}" = set; then
3301 echo $ECHO_N "(cached) $ECHO_C" >&6
3302 else
3303 ac_cv_prog_cc_c89=no
3304 ac_save_CC=$CC
3305 cat >conftest.$ac_ext <<_ACEOF
3306 /* confdefs.h. */
3307 _ACEOF
3308 cat confdefs.h >>conftest.$ac_ext
3309 cat >>conftest.$ac_ext <<_ACEOF
3310 /* end confdefs.h. */
3311 #include <stdarg.h>
3312 #include <stdio.h>
3313 #include <sys/types.h>
3314 #include <sys/stat.h>
3315 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3316 struct buf { int x; };
3317 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3318 static char *e (p, i)
3319 char **p;
3320 int i;
3322 return p[i];
3324 static char *f (char * (*g) (char **, int), char **p, ...)
3326 char *s;
3327 va_list v;
3328 va_start (v,p);
3329 s = g (p, va_arg (v,int));
3330 va_end (v);
3331 return s;
3334 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3335 function prototypes and stuff, but not '\xHH' hex character constants.
3336 These don't provoke an error unfortunately, instead are silently treated
3337 as 'x'. The following induces an error, until -std is added to get
3338 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3339 array size at least. It's necessary to write '\x00'==0 to get something
3340 that's true only with -std. */
3341 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3343 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3344 inside strings and character constants. */
3345 #define FOO(x) 'x'
3346 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3348 int test (int i, double x);
3349 struct s1 {int (*f) (int a);};
3350 struct s2 {int (*f) (double a);};
3351 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3352 int argc;
3353 char **argv;
3355 main ()
3357 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3359 return 0;
3361 _ACEOF
3362 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3363 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3365 CC="$ac_save_CC $ac_arg"
3366 rm -f conftest.$ac_objext
3367 if { (ac_try="$ac_compile"
3368 case "(($ac_try" in
3369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3370 *) ac_try_echo=$ac_try;;
3371 esac
3372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3373 (eval "$ac_compile") 2>conftest.er1
3374 ac_status=$?
3375 grep -v '^ *+' conftest.er1 >conftest.err
3376 rm -f conftest.er1
3377 cat conftest.err >&5
3378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379 (exit $ac_status); } &&
3380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3381 { (case "(($ac_try" in
3382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3383 *) ac_try_echo=$ac_try;;
3384 esac
3385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3386 (eval "$ac_try") 2>&5
3387 ac_status=$?
3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); }; } &&
3390 { ac_try='test -s conftest.$ac_objext'
3391 { (case "(($ac_try" in
3392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393 *) ac_try_echo=$ac_try;;
3394 esac
3395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3396 (eval "$ac_try") 2>&5
3397 ac_status=$?
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); }; }; then
3400 ac_cv_prog_cc_c89=$ac_arg
3401 else
3402 echo "$as_me: failed program was:" >&5
3403 sed 's/^/| /' conftest.$ac_ext >&5
3408 rm -f core conftest.err conftest.$ac_objext
3409 test "x$ac_cv_prog_cc_c89" != "xno" && break
3410 done
3411 rm -f conftest.$ac_ext
3412 CC=$ac_save_CC
3415 # AC_CACHE_VAL
3416 case "x$ac_cv_prog_cc_c89" in
3418 { echo "$as_me:$LINENO: result: none needed" >&5
3419 echo "${ECHO_T}none needed" >&6; } ;;
3420 xno)
3421 { echo "$as_me:$LINENO: result: unsupported" >&5
3422 echo "${ECHO_T}unsupported" >&6; } ;;
3424 CC="$CC $ac_cv_prog_cc_c89"
3425 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3426 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3427 esac
3430 ac_ext=c
3431 ac_cpp='$CPP $CPPFLAGS'
3432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3437 ac_ext=c
3438 ac_cpp='$CPP $CPPFLAGS'
3439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3442 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3443 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3444 # On Suns, sometimes $CPP names a directory.
3445 if test -n "$CPP" && test -d "$CPP"; then
3446 CPP=
3448 if test -z "$CPP"; then
3449 if test "${ac_cv_prog_CPP+set}" = set; then
3450 echo $ECHO_N "(cached) $ECHO_C" >&6
3451 else
3452 # Double quotes because CPP needs to be expanded
3453 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3455 ac_preproc_ok=false
3456 for ac_c_preproc_warn_flag in '' yes
3458 # Use a header file that comes with gcc, so configuring glibc
3459 # with a fresh cross-compiler works.
3460 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3461 # <limits.h> exists even on freestanding compilers.
3462 # On the NeXT, cc -E runs the code through the compiler's parser,
3463 # not just through cpp. "Syntax error" is here to catch this case.
3464 cat >conftest.$ac_ext <<_ACEOF
3465 /* confdefs.h. */
3466 _ACEOF
3467 cat confdefs.h >>conftest.$ac_ext
3468 cat >>conftest.$ac_ext <<_ACEOF
3469 /* end confdefs.h. */
3470 #ifdef __STDC__
3471 # include <limits.h>
3472 #else
3473 # include <assert.h>
3474 #endif
3475 Syntax error
3476 _ACEOF
3477 if { (ac_try="$ac_cpp conftest.$ac_ext"
3478 case "(($ac_try" in
3479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3480 *) ac_try_echo=$ac_try;;
3481 esac
3482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3483 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3484 ac_status=$?
3485 grep -v '^ *+' conftest.er1 >conftest.err
3486 rm -f conftest.er1
3487 cat conftest.err >&5
3488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489 (exit $ac_status); } >/dev/null; then
3490 if test -s conftest.err; then
3491 ac_cpp_err=$ac_c_preproc_warn_flag
3492 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3493 else
3494 ac_cpp_err=
3496 else
3497 ac_cpp_err=yes
3499 if test -z "$ac_cpp_err"; then
3501 else
3502 echo "$as_me: failed program was:" >&5
3503 sed 's/^/| /' conftest.$ac_ext >&5
3505 # Broken: fails on valid input.
3506 continue
3509 rm -f conftest.err conftest.$ac_ext
3511 # OK, works on sane cases. Now check whether nonexistent headers
3512 # can be detected and how.
3513 cat >conftest.$ac_ext <<_ACEOF
3514 /* confdefs.h. */
3515 _ACEOF
3516 cat confdefs.h >>conftest.$ac_ext
3517 cat >>conftest.$ac_ext <<_ACEOF
3518 /* end confdefs.h. */
3519 #include <ac_nonexistent.h>
3520 _ACEOF
3521 if { (ac_try="$ac_cpp conftest.$ac_ext"
3522 case "(($ac_try" in
3523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3524 *) ac_try_echo=$ac_try;;
3525 esac
3526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3527 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3528 ac_status=$?
3529 grep -v '^ *+' conftest.er1 >conftest.err
3530 rm -f conftest.er1
3531 cat conftest.err >&5
3532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 (exit $ac_status); } >/dev/null; then
3534 if test -s conftest.err; then
3535 ac_cpp_err=$ac_c_preproc_warn_flag
3536 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3537 else
3538 ac_cpp_err=
3540 else
3541 ac_cpp_err=yes
3543 if test -z "$ac_cpp_err"; then
3544 # Broken: success on invalid input.
3545 continue
3546 else
3547 echo "$as_me: failed program was:" >&5
3548 sed 's/^/| /' conftest.$ac_ext >&5
3550 # Passes both tests.
3551 ac_preproc_ok=:
3552 break
3555 rm -f conftest.err conftest.$ac_ext
3557 done
3558 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3559 rm -f conftest.err conftest.$ac_ext
3560 if $ac_preproc_ok; then
3561 break
3564 done
3565 ac_cv_prog_CPP=$CPP
3568 CPP=$ac_cv_prog_CPP
3569 else
3570 ac_cv_prog_CPP=$CPP
3572 { echo "$as_me:$LINENO: result: $CPP" >&5
3573 echo "${ECHO_T}$CPP" >&6; }
3574 ac_preproc_ok=false
3575 for ac_c_preproc_warn_flag in '' yes
3577 # Use a header file that comes with gcc, so configuring glibc
3578 # with a fresh cross-compiler works.
3579 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3580 # <limits.h> exists even on freestanding compilers.
3581 # On the NeXT, cc -E runs the code through the compiler's parser,
3582 # not just through cpp. "Syntax error" is here to catch this case.
3583 cat >conftest.$ac_ext <<_ACEOF
3584 /* confdefs.h. */
3585 _ACEOF
3586 cat confdefs.h >>conftest.$ac_ext
3587 cat >>conftest.$ac_ext <<_ACEOF
3588 /* end confdefs.h. */
3589 #ifdef __STDC__
3590 # include <limits.h>
3591 #else
3592 # include <assert.h>
3593 #endif
3594 Syntax error
3595 _ACEOF
3596 if { (ac_try="$ac_cpp conftest.$ac_ext"
3597 case "(($ac_try" in
3598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3599 *) ac_try_echo=$ac_try;;
3600 esac
3601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3603 ac_status=$?
3604 grep -v '^ *+' conftest.er1 >conftest.err
3605 rm -f conftest.er1
3606 cat conftest.err >&5
3607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608 (exit $ac_status); } >/dev/null; then
3609 if test -s conftest.err; then
3610 ac_cpp_err=$ac_c_preproc_warn_flag
3611 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3612 else
3613 ac_cpp_err=
3615 else
3616 ac_cpp_err=yes
3618 if test -z "$ac_cpp_err"; then
3620 else
3621 echo "$as_me: failed program was:" >&5
3622 sed 's/^/| /' conftest.$ac_ext >&5
3624 # Broken: fails on valid input.
3625 continue
3628 rm -f conftest.err conftest.$ac_ext
3630 # OK, works on sane cases. Now check whether nonexistent headers
3631 # can be detected and how.
3632 cat >conftest.$ac_ext <<_ACEOF
3633 /* confdefs.h. */
3634 _ACEOF
3635 cat confdefs.h >>conftest.$ac_ext
3636 cat >>conftest.$ac_ext <<_ACEOF
3637 /* end confdefs.h. */
3638 #include <ac_nonexistent.h>
3639 _ACEOF
3640 if { (ac_try="$ac_cpp conftest.$ac_ext"
3641 case "(($ac_try" in
3642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3643 *) ac_try_echo=$ac_try;;
3644 esac
3645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3646 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3647 ac_status=$?
3648 grep -v '^ *+' conftest.er1 >conftest.err
3649 rm -f conftest.er1
3650 cat conftest.err >&5
3651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652 (exit $ac_status); } >/dev/null; then
3653 if test -s conftest.err; then
3654 ac_cpp_err=$ac_c_preproc_warn_flag
3655 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3656 else
3657 ac_cpp_err=
3659 else
3660 ac_cpp_err=yes
3662 if test -z "$ac_cpp_err"; then
3663 # Broken: success on invalid input.
3664 continue
3665 else
3666 echo "$as_me: failed program was:" >&5
3667 sed 's/^/| /' conftest.$ac_ext >&5
3669 # Passes both tests.
3670 ac_preproc_ok=:
3671 break
3674 rm -f conftest.err conftest.$ac_ext
3676 done
3677 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3678 rm -f conftest.err conftest.$ac_ext
3679 if $ac_preproc_ok; then
3681 else
3682 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3683 See \`config.log' for more details." >&5
3684 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3685 See \`config.log' for more details." >&2;}
3686 { (exit 1); exit 1; }; }
3689 ac_ext=c
3690 ac_cpp='$CPP $CPPFLAGS'
3691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3696 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3697 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3698 if test "${ac_cv_path_GREP+set}" = set; then
3699 echo $ECHO_N "(cached) $ECHO_C" >&6
3700 else
3701 # Extract the first word of "grep ggrep" to use in msg output
3702 if test -z "$GREP"; then
3703 set dummy grep ggrep; ac_prog_name=$2
3704 if test "${ac_cv_path_GREP+set}" = set; then
3705 echo $ECHO_N "(cached) $ECHO_C" >&6
3706 else
3707 ac_path_GREP_found=false
3708 # Loop through the user's path and test for each of PROGNAME-LIST
3709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3710 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3712 IFS=$as_save_IFS
3713 test -z "$as_dir" && as_dir=.
3714 for ac_prog in grep ggrep; do
3715 for ac_exec_ext in '' $ac_executable_extensions; do
3716 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3717 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3718 # Check for GNU ac_path_GREP and select it if it is found.
3719 # Check for GNU $ac_path_GREP
3720 case `"$ac_path_GREP" --version 2>&1` in
3721 *GNU*)
3722 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3724 ac_count=0
3725 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3726 while :
3728 cat "conftest.in" "conftest.in" >"conftest.tmp"
3729 mv "conftest.tmp" "conftest.in"
3730 cp "conftest.in" "conftest.nl"
3731 echo 'GREP' >> "conftest.nl"
3732 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3733 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3734 ac_count=`expr $ac_count + 1`
3735 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3736 # Best one so far, save it but keep looking for a better one
3737 ac_cv_path_GREP="$ac_path_GREP"
3738 ac_path_GREP_max=$ac_count
3740 # 10*(2^10) chars as input seems more than enough
3741 test $ac_count -gt 10 && break
3742 done
3743 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3744 esac
3747 $ac_path_GREP_found && break 3
3748 done
3749 done
3751 done
3752 IFS=$as_save_IFS
3757 GREP="$ac_cv_path_GREP"
3758 if test -z "$GREP"; then
3759 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3760 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3761 { (exit 1); exit 1; }; }
3764 else
3765 ac_cv_path_GREP=$GREP
3770 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3771 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3772 GREP="$ac_cv_path_GREP"
3775 { echo "$as_me:$LINENO: checking for egrep" >&5
3776 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3777 if test "${ac_cv_path_EGREP+set}" = set; then
3778 echo $ECHO_N "(cached) $ECHO_C" >&6
3779 else
3780 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3781 then ac_cv_path_EGREP="$GREP -E"
3782 else
3783 # Extract the first word of "egrep" to use in msg output
3784 if test -z "$EGREP"; then
3785 set dummy egrep; ac_prog_name=$2
3786 if test "${ac_cv_path_EGREP+set}" = set; then
3787 echo $ECHO_N "(cached) $ECHO_C" >&6
3788 else
3789 ac_path_EGREP_found=false
3790 # Loop through the user's path and test for each of PROGNAME-LIST
3791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3792 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3794 IFS=$as_save_IFS
3795 test -z "$as_dir" && as_dir=.
3796 for ac_prog in egrep; do
3797 for ac_exec_ext in '' $ac_executable_extensions; do
3798 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3799 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3800 # Check for GNU ac_path_EGREP and select it if it is found.
3801 # Check for GNU $ac_path_EGREP
3802 case `"$ac_path_EGREP" --version 2>&1` in
3803 *GNU*)
3804 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3806 ac_count=0
3807 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3808 while :
3810 cat "conftest.in" "conftest.in" >"conftest.tmp"
3811 mv "conftest.tmp" "conftest.in"
3812 cp "conftest.in" "conftest.nl"
3813 echo 'EGREP' >> "conftest.nl"
3814 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3815 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3816 ac_count=`expr $ac_count + 1`
3817 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3818 # Best one so far, save it but keep looking for a better one
3819 ac_cv_path_EGREP="$ac_path_EGREP"
3820 ac_path_EGREP_max=$ac_count
3822 # 10*(2^10) chars as input seems more than enough
3823 test $ac_count -gt 10 && break
3824 done
3825 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3826 esac
3829 $ac_path_EGREP_found && break 3
3830 done
3831 done
3833 done
3834 IFS=$as_save_IFS
3839 EGREP="$ac_cv_path_EGREP"
3840 if test -z "$EGREP"; then
3841 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3842 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3843 { (exit 1); exit 1; }; }
3846 else
3847 ac_cv_path_EGREP=$EGREP
3853 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3854 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3855 EGREP="$ac_cv_path_EGREP"
3858 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3859 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3860 if test "${ac_cv_header_stdc+set}" = set; then
3861 echo $ECHO_N "(cached) $ECHO_C" >&6
3862 else
3863 cat >conftest.$ac_ext <<_ACEOF
3864 /* confdefs.h. */
3865 _ACEOF
3866 cat confdefs.h >>conftest.$ac_ext
3867 cat >>conftest.$ac_ext <<_ACEOF
3868 /* end confdefs.h. */
3869 #include <stdlib.h>
3870 #include <stdarg.h>
3871 #include <string.h>
3872 #include <float.h>
3875 main ()
3879 return 0;
3881 _ACEOF
3882 rm -f conftest.$ac_objext
3883 if { (ac_try="$ac_compile"
3884 case "(($ac_try" in
3885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3886 *) ac_try_echo=$ac_try;;
3887 esac
3888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3889 (eval "$ac_compile") 2>conftest.er1
3890 ac_status=$?
3891 grep -v '^ *+' conftest.er1 >conftest.err
3892 rm -f conftest.er1
3893 cat conftest.err >&5
3894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895 (exit $ac_status); } &&
3896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3897 { (case "(($ac_try" in
3898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3899 *) ac_try_echo=$ac_try;;
3900 esac
3901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3902 (eval "$ac_try") 2>&5
3903 ac_status=$?
3904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3905 (exit $ac_status); }; } &&
3906 { ac_try='test -s conftest.$ac_objext'
3907 { (case "(($ac_try" in
3908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3909 *) ac_try_echo=$ac_try;;
3910 esac
3911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3912 (eval "$ac_try") 2>&5
3913 ac_status=$?
3914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915 (exit $ac_status); }; }; then
3916 ac_cv_header_stdc=yes
3917 else
3918 echo "$as_me: failed program was:" >&5
3919 sed 's/^/| /' conftest.$ac_ext >&5
3921 ac_cv_header_stdc=no
3924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3926 if test $ac_cv_header_stdc = yes; then
3927 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3928 cat >conftest.$ac_ext <<_ACEOF
3929 /* confdefs.h. */
3930 _ACEOF
3931 cat confdefs.h >>conftest.$ac_ext
3932 cat >>conftest.$ac_ext <<_ACEOF
3933 /* end confdefs.h. */
3934 #include <string.h>
3936 _ACEOF
3937 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3938 $EGREP "memchr" >/dev/null 2>&1; then
3940 else
3941 ac_cv_header_stdc=no
3943 rm -f conftest*
3947 if test $ac_cv_header_stdc = yes; then
3948 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3949 cat >conftest.$ac_ext <<_ACEOF
3950 /* confdefs.h. */
3951 _ACEOF
3952 cat confdefs.h >>conftest.$ac_ext
3953 cat >>conftest.$ac_ext <<_ACEOF
3954 /* end confdefs.h. */
3955 #include <stdlib.h>
3957 _ACEOF
3958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3959 $EGREP "free" >/dev/null 2>&1; then
3961 else
3962 ac_cv_header_stdc=no
3964 rm -f conftest*
3968 if test $ac_cv_header_stdc = yes; then
3969 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3970 if test "$cross_compiling" = yes; then
3972 else
3973 cat >conftest.$ac_ext <<_ACEOF
3974 /* confdefs.h. */
3975 _ACEOF
3976 cat confdefs.h >>conftest.$ac_ext
3977 cat >>conftest.$ac_ext <<_ACEOF
3978 /* end confdefs.h. */
3979 #include <ctype.h>
3980 #include <stdlib.h>
3981 #if ((' ' & 0x0FF) == 0x020)
3982 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3983 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3984 #else
3985 # define ISLOWER(c) \
3986 (('a' <= (c) && (c) <= 'i') \
3987 || ('j' <= (c) && (c) <= 'r') \
3988 || ('s' <= (c) && (c) <= 'z'))
3989 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3990 #endif
3992 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3994 main ()
3996 int i;
3997 for (i = 0; i < 256; i++)
3998 if (XOR (islower (i), ISLOWER (i))
3999 || toupper (i) != TOUPPER (i))
4000 return 2;
4001 return 0;
4003 _ACEOF
4004 rm -f conftest$ac_exeext
4005 if { (ac_try="$ac_link"
4006 case "(($ac_try" in
4007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4008 *) ac_try_echo=$ac_try;;
4009 esac
4010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4011 (eval "$ac_link") 2>&5
4012 ac_status=$?
4013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4015 { (case "(($ac_try" in
4016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4017 *) ac_try_echo=$ac_try;;
4018 esac
4019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4020 (eval "$ac_try") 2>&5
4021 ac_status=$?
4022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4023 (exit $ac_status); }; }; then
4025 else
4026 echo "$as_me: program exited with status $ac_status" >&5
4027 echo "$as_me: failed program was:" >&5
4028 sed 's/^/| /' conftest.$ac_ext >&5
4030 ( exit $ac_status )
4031 ac_cv_header_stdc=no
4033 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4039 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4040 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4041 if test $ac_cv_header_stdc = yes; then
4043 cat >>confdefs.h <<\_ACEOF
4044 #define STDC_HEADERS 1
4045 _ACEOF
4049 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4059 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4060 inttypes.h stdint.h unistd.h
4062 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4063 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4065 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4066 echo $ECHO_N "(cached) $ECHO_C" >&6
4067 else
4068 cat >conftest.$ac_ext <<_ACEOF
4069 /* confdefs.h. */
4070 _ACEOF
4071 cat confdefs.h >>conftest.$ac_ext
4072 cat >>conftest.$ac_ext <<_ACEOF
4073 /* end confdefs.h. */
4074 $ac_includes_default
4076 #include <$ac_header>
4077 _ACEOF
4078 rm -f conftest.$ac_objext
4079 if { (ac_try="$ac_compile"
4080 case "(($ac_try" in
4081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4082 *) ac_try_echo=$ac_try;;
4083 esac
4084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4085 (eval "$ac_compile") 2>conftest.er1
4086 ac_status=$?
4087 grep -v '^ *+' conftest.er1 >conftest.err
4088 rm -f conftest.er1
4089 cat conftest.err >&5
4090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091 (exit $ac_status); } &&
4092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4093 { (case "(($ac_try" in
4094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4095 *) ac_try_echo=$ac_try;;
4096 esac
4097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4098 (eval "$ac_try") 2>&5
4099 ac_status=$?
4100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101 (exit $ac_status); }; } &&
4102 { ac_try='test -s conftest.$ac_objext'
4103 { (case "(($ac_try" in
4104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4105 *) ac_try_echo=$ac_try;;
4106 esac
4107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4108 (eval "$ac_try") 2>&5
4109 ac_status=$?
4110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4111 (exit $ac_status); }; }; then
4112 eval "$as_ac_Header=yes"
4113 else
4114 echo "$as_me: failed program was:" >&5
4115 sed 's/^/| /' conftest.$ac_ext >&5
4117 eval "$as_ac_Header=no"
4120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4122 ac_res=`eval echo '${'$as_ac_Header'}'`
4123 { echo "$as_me:$LINENO: result: $ac_res" >&5
4124 echo "${ECHO_T}$ac_res" >&6; }
4125 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4126 cat >>confdefs.h <<_ACEOF
4127 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4128 _ACEOF
4132 done
4135 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4136 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4137 if test "${ac_cv_c_bigendian+set}" = set; then
4138 echo $ECHO_N "(cached) $ECHO_C" >&6
4139 else
4140 # See if sys/param.h defines the BYTE_ORDER macro.
4141 cat >conftest.$ac_ext <<_ACEOF
4142 /* confdefs.h. */
4143 _ACEOF
4144 cat confdefs.h >>conftest.$ac_ext
4145 cat >>conftest.$ac_ext <<_ACEOF
4146 /* end confdefs.h. */
4147 #include <sys/types.h>
4148 #include <sys/param.h>
4151 main ()
4153 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4154 bogus endian macros
4155 #endif
4158 return 0;
4160 _ACEOF
4161 rm -f conftest.$ac_objext
4162 if { (ac_try="$ac_compile"
4163 case "(($ac_try" in
4164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4165 *) ac_try_echo=$ac_try;;
4166 esac
4167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4168 (eval "$ac_compile") 2>conftest.er1
4169 ac_status=$?
4170 grep -v '^ *+' conftest.er1 >conftest.err
4171 rm -f conftest.er1
4172 cat conftest.err >&5
4173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174 (exit $ac_status); } &&
4175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4176 { (case "(($ac_try" in
4177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4178 *) ac_try_echo=$ac_try;;
4179 esac
4180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4181 (eval "$ac_try") 2>&5
4182 ac_status=$?
4183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184 (exit $ac_status); }; } &&
4185 { ac_try='test -s conftest.$ac_objext'
4186 { (case "(($ac_try" in
4187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4188 *) ac_try_echo=$ac_try;;
4189 esac
4190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4191 (eval "$ac_try") 2>&5
4192 ac_status=$?
4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); }; }; then
4195 # It does; now see whether it defined to BIG_ENDIAN or not.
4196 cat >conftest.$ac_ext <<_ACEOF
4197 /* confdefs.h. */
4198 _ACEOF
4199 cat confdefs.h >>conftest.$ac_ext
4200 cat >>conftest.$ac_ext <<_ACEOF
4201 /* end confdefs.h. */
4202 #include <sys/types.h>
4203 #include <sys/param.h>
4206 main ()
4208 #if BYTE_ORDER != BIG_ENDIAN
4209 not big endian
4210 #endif
4213 return 0;
4215 _ACEOF
4216 rm -f conftest.$ac_objext
4217 if { (ac_try="$ac_compile"
4218 case "(($ac_try" in
4219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4220 *) ac_try_echo=$ac_try;;
4221 esac
4222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4223 (eval "$ac_compile") 2>conftest.er1
4224 ac_status=$?
4225 grep -v '^ *+' conftest.er1 >conftest.err
4226 rm -f conftest.er1
4227 cat conftest.err >&5
4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); } &&
4230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4231 { (case "(($ac_try" in
4232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4233 *) ac_try_echo=$ac_try;;
4234 esac
4235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4236 (eval "$ac_try") 2>&5
4237 ac_status=$?
4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); }; } &&
4240 { ac_try='test -s conftest.$ac_objext'
4241 { (case "(($ac_try" in
4242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4243 *) ac_try_echo=$ac_try;;
4244 esac
4245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4246 (eval "$ac_try") 2>&5
4247 ac_status=$?
4248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249 (exit $ac_status); }; }; then
4250 ac_cv_c_bigendian=yes
4251 else
4252 echo "$as_me: failed program was:" >&5
4253 sed 's/^/| /' conftest.$ac_ext >&5
4255 ac_cv_c_bigendian=no
4258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4259 else
4260 echo "$as_me: failed program was:" >&5
4261 sed 's/^/| /' conftest.$ac_ext >&5
4263 # It does not; compile a test program.
4264 if test "$cross_compiling" = yes; then
4265 # try to guess the endianness by grepping values into an object file
4266 ac_cv_c_bigendian=unknown
4267 cat >conftest.$ac_ext <<_ACEOF
4268 /* confdefs.h. */
4269 _ACEOF
4270 cat confdefs.h >>conftest.$ac_ext
4271 cat >>conftest.$ac_ext <<_ACEOF
4272 /* end confdefs.h. */
4273 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4274 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4275 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4276 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4277 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4278 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4280 main ()
4282 _ascii (); _ebcdic ();
4284 return 0;
4286 _ACEOF
4287 rm -f conftest.$ac_objext
4288 if { (ac_try="$ac_compile"
4289 case "(($ac_try" in
4290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4291 *) ac_try_echo=$ac_try;;
4292 esac
4293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4294 (eval "$ac_compile") 2>conftest.er1
4295 ac_status=$?
4296 grep -v '^ *+' conftest.er1 >conftest.err
4297 rm -f conftest.er1
4298 cat conftest.err >&5
4299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300 (exit $ac_status); } &&
4301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4302 { (case "(($ac_try" in
4303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4304 *) ac_try_echo=$ac_try;;
4305 esac
4306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4307 (eval "$ac_try") 2>&5
4308 ac_status=$?
4309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310 (exit $ac_status); }; } &&
4311 { ac_try='test -s conftest.$ac_objext'
4312 { (case "(($ac_try" in
4313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4314 *) ac_try_echo=$ac_try;;
4315 esac
4316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4317 (eval "$ac_try") 2>&5
4318 ac_status=$?
4319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4320 (exit $ac_status); }; }; then
4321 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4322 ac_cv_c_bigendian=yes
4324 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4325 if test "$ac_cv_c_bigendian" = unknown; then
4326 ac_cv_c_bigendian=no
4327 else
4328 # finding both strings is unlikely to happen, but who knows?
4329 ac_cv_c_bigendian=unknown
4332 else
4333 echo "$as_me: failed program was:" >&5
4334 sed 's/^/| /' conftest.$ac_ext >&5
4339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4340 else
4341 cat >conftest.$ac_ext <<_ACEOF
4342 /* confdefs.h. */
4343 _ACEOF
4344 cat confdefs.h >>conftest.$ac_ext
4345 cat >>conftest.$ac_ext <<_ACEOF
4346 /* end confdefs.h. */
4347 $ac_includes_default
4349 main ()
4352 /* Are we little or big endian? From Harbison&Steele. */
4353 union
4355 long int l;
4356 char c[sizeof (long int)];
4357 } u;
4358 u.l = 1;
4359 return u.c[sizeof (long int) - 1] == 1;
4362 return 0;
4364 _ACEOF
4365 rm -f conftest$ac_exeext
4366 if { (ac_try="$ac_link"
4367 case "(($ac_try" in
4368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4369 *) ac_try_echo=$ac_try;;
4370 esac
4371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4372 (eval "$ac_link") 2>&5
4373 ac_status=$?
4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4376 { (case "(($ac_try" in
4377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4378 *) ac_try_echo=$ac_try;;
4379 esac
4380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4381 (eval "$ac_try") 2>&5
4382 ac_status=$?
4383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384 (exit $ac_status); }; }; then
4385 ac_cv_c_bigendian=no
4386 else
4387 echo "$as_me: program exited with status $ac_status" >&5
4388 echo "$as_me: failed program was:" >&5
4389 sed 's/^/| /' conftest.$ac_ext >&5
4391 ( exit $ac_status )
4392 ac_cv_c_bigendian=yes
4394 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4402 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4403 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4404 case $ac_cv_c_bigendian in
4405 yes)
4406 ENDIAN=big
4409 ENDIAN=little
4412 { { echo "$as_me:$LINENO: error: unknown endianness
4413 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4414 echo "$as_me: error: unknown endianness
4415 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4416 { (exit 1); exit 1; }; } ;;
4417 esac
4420 if test "$cross_compiling" = yes; then
4421 LLVM_CROSS_COMPILING=1
4424 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4425 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4426 if test "${ac_cv_build_exeext+set}" = set; then
4427 echo $ECHO_N "(cached) $ECHO_C" >&6
4428 else
4429 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4430 ac_cv_build_exeext=.exe
4431 else
4432 ac_build_prefix=${build_alias}-
4434 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4435 set dummy ${ac_build_prefix}gcc; ac_word=$2
4436 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4438 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4439 echo $ECHO_N "(cached) $ECHO_C" >&6
4440 else
4441 if test -n "$BUILD_CC"; then
4442 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4443 else
4444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4445 for as_dir in $PATH
4447 IFS=$as_save_IFS
4448 test -z "$as_dir" && as_dir=.
4449 for ac_exec_ext in '' $ac_executable_extensions; do
4450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4451 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4453 break 2
4455 done
4456 done
4457 IFS=$as_save_IFS
4461 BUILD_CC=$ac_cv_prog_BUILD_CC
4462 if test -n "$BUILD_CC"; then
4463 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4464 echo "${ECHO_T}$BUILD_CC" >&6; }
4465 else
4466 { echo "$as_me:$LINENO: result: no" >&5
4467 echo "${ECHO_T}no" >&6; }
4471 if test -z "$BUILD_CC"; then
4472 # Extract the first word of "gcc", so it can be a program name with args.
4473 set dummy gcc; ac_word=$2
4474 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4476 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4477 echo $ECHO_N "(cached) $ECHO_C" >&6
4478 else
4479 if test -n "$BUILD_CC"; then
4480 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4481 else
4482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4483 for as_dir in $PATH
4485 IFS=$as_save_IFS
4486 test -z "$as_dir" && as_dir=.
4487 for ac_exec_ext in '' $ac_executable_extensions; do
4488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4489 ac_cv_prog_BUILD_CC="gcc"
4490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4491 break 2
4493 done
4494 done
4495 IFS=$as_save_IFS
4499 BUILD_CC=$ac_cv_prog_BUILD_CC
4500 if test -n "$BUILD_CC"; then
4501 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4502 echo "${ECHO_T}$BUILD_CC" >&6; }
4503 else
4504 { echo "$as_me:$LINENO: result: no" >&5
4505 echo "${ECHO_T}no" >&6; }
4509 if test -z "$BUILD_CC"; then
4510 # Extract the first word of "cc", so it can be a program name with args.
4511 set dummy cc; ac_word=$2
4512 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4514 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4515 echo $ECHO_N "(cached) $ECHO_C" >&6
4516 else
4517 if test -n "$BUILD_CC"; then
4518 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4519 else
4520 ac_prog_rejected=no
4521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4522 for as_dir in $PATH
4524 IFS=$as_save_IFS
4525 test -z "$as_dir" && as_dir=.
4526 for ac_exec_ext in '' $ac_executable_extensions; do
4527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4528 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4529 ac_prog_rejected=yes
4530 continue
4532 ac_cv_prog_BUILD_CC="cc"
4533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4534 break 2
4536 done
4537 done
4538 IFS=$as_save_IFS
4540 if test $ac_prog_rejected = yes; then
4541 # We found a bogon in the path, so make sure we never use it.
4542 set dummy $ac_cv_prog_BUILD_CC
4543 shift
4544 if test $# != 0; then
4545 # We chose a different compiler from the bogus one.
4546 # However, it has the same basename, so the bogon will be chosen
4547 # first if we set BUILD_CC to just the basename; use the full file name.
4548 shift
4549 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4554 BUILD_CC=$ac_cv_prog_BUILD_CC
4555 if test -n "$BUILD_CC"; then
4556 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4557 echo "${ECHO_T}$BUILD_CC" >&6; }
4558 else
4559 { echo "$as_me:$LINENO: result: no" >&5
4560 echo "${ECHO_T}no" >&6; }
4566 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4567 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4568 { (exit 1); exit 1; }; }
4569 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4570 rm -f conftest*
4571 echo 'int main () { return 0; }' > conftest.$ac_ext
4572 ac_cv_build_exeext=
4573 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4574 (eval $ac_build_link) 2>&5
4575 ac_status=$?
4576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577 (exit $ac_status); }; then
4578 for file in conftest.*; do
4579 case $file in
4580 *.c | *.o | *.obj | *.dSYM) ;;
4581 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4582 esac
4583 done
4584 else
4585 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4586 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4587 { (exit 1); exit 1; }; }
4589 rm -f conftest*
4590 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4594 BUILD_EXEEXT=""
4595 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4596 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4597 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4598 ac_build_exeext=$BUILD_EXEEXT
4600 ac_build_prefix=${build_alias}-
4601 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4602 set dummy ${ac_build_prefix}g++; ac_word=$2
4603 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4605 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4606 echo $ECHO_N "(cached) $ECHO_C" >&6
4607 else
4608 if test -n "$BUILD_CXX"; then
4609 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4610 else
4611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4612 for as_dir in $PATH
4614 IFS=$as_save_IFS
4615 test -z "$as_dir" && as_dir=.
4616 for ac_exec_ext in '' $ac_executable_extensions; do
4617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4618 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4620 break 2
4622 done
4623 done
4624 IFS=$as_save_IFS
4628 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4629 if test -n "$BUILD_CXX"; then
4630 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4631 echo "${ECHO_T}$BUILD_CXX" >&6; }
4632 else
4633 { echo "$as_me:$LINENO: result: no" >&5
4634 echo "${ECHO_T}no" >&6; }
4638 if test -z "$BUILD_CXX"; then
4639 # Extract the first word of "g++", so it can be a program name with args.
4640 set dummy g++; ac_word=$2
4641 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4643 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4644 echo $ECHO_N "(cached) $ECHO_C" >&6
4645 else
4646 if test -n "$BUILD_CXX"; then
4647 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4648 else
4649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4650 for as_dir in $PATH
4652 IFS=$as_save_IFS
4653 test -z "$as_dir" && as_dir=.
4654 for ac_exec_ext in '' $ac_executable_extensions; do
4655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4656 ac_cv_prog_BUILD_CXX="g++"
4657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4658 break 2
4660 done
4661 done
4662 IFS=$as_save_IFS
4666 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4667 if test -n "$BUILD_CXX"; then
4668 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4669 echo "${ECHO_T}$BUILD_CXX" >&6; }
4670 else
4671 { echo "$as_me:$LINENO: result: no" >&5
4672 echo "${ECHO_T}no" >&6; }
4676 if test -z "$BUILD_CXX"; then
4677 # Extract the first word of "c++", so it can be a program name with args.
4678 set dummy c++; ac_word=$2
4679 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4681 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4682 echo $ECHO_N "(cached) $ECHO_C" >&6
4683 else
4684 if test -n "$BUILD_CXX"; then
4685 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4686 else
4687 ac_prog_rejected=no
4688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4689 for as_dir in $PATH
4691 IFS=$as_save_IFS
4692 test -z "$as_dir" && as_dir=.
4693 for ac_exec_ext in '' $ac_executable_extensions; do
4694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4695 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4696 ac_prog_rejected=yes
4697 continue
4699 ac_cv_prog_BUILD_CXX="c++"
4700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4701 break 2
4703 done
4704 done
4705 IFS=$as_save_IFS
4707 if test $ac_prog_rejected = yes; then
4708 # We found a bogon in the path, so make sure we never use it.
4709 set dummy $ac_cv_prog_BUILD_CXX
4710 shift
4711 if test $# != 0; then
4712 # We chose a different compiler from the bogus one.
4713 # However, it has the same basename, so the bogon will be chosen
4714 # first if we set BUILD_CXX to just the basename; use the full file name.
4715 shift
4716 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4721 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4722 if test -n "$BUILD_CXX"; then
4723 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4724 echo "${ECHO_T}$BUILD_CXX" >&6; }
4725 else
4726 { echo "$as_me:$LINENO: result: no" >&5
4727 echo "${ECHO_T}no" >&6; }
4733 else
4734 LLVM_CROSS_COMPILING=0
4738 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4739 cvsbuild="yes"
4740 optimize="no"
4741 CVSBUILD=CVSBUILD=1
4743 else
4744 cvsbuild="no"
4745 optimize="yes"
4749 # Check whether --enable-optimized was given.
4750 if test "${enable_optimized+set}" = set; then
4751 enableval=$enable_optimized;
4752 else
4753 enableval=$optimize
4756 if test ${enableval} = "no" ; then
4757 ENABLE_OPTIMIZED=
4759 else
4760 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4764 # Check whether --enable-profiling was given.
4765 if test "${enable_profiling+set}" = set; then
4766 enableval=$enable_profiling;
4767 else
4768 enableval="no"
4771 if test ${enableval} = "no" ; then
4772 ENABLE_PROFILING=
4774 else
4775 ENABLE_PROFILING=ENABLE_PROFILING=1
4779 # Check whether --enable-assertions was given.
4780 if test "${enable_assertions+set}" = set; then
4781 enableval=$enable_assertions;
4782 else
4783 enableval="yes"
4786 if test ${enableval} = "yes" ; then
4787 DISABLE_ASSERTIONS=
4789 else
4790 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4794 # Check whether --enable-expensive-checks was given.
4795 if test "${enable_expensive_checks+set}" = set; then
4796 enableval=$enable_expensive_checks;
4797 else
4798 enableval="no"
4801 if test ${enableval} = "yes" ; then
4802 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4804 EXPENSIVE_CHECKS=yes
4806 else
4807 ENABLE_EXPENSIVE_CHECKS=
4809 EXPENSIVE_CHECKS=no
4813 # Check whether --enable-debug-runtime was given.
4814 if test "${enable_debug_runtime+set}" = set; then
4815 enableval=$enable_debug_runtime;
4816 else
4817 enableval=no
4820 if test ${enableval} = "no" ; then
4821 DEBUG_RUNTIME=
4823 else
4824 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4828 # Check whether --enable-debug-symbols was given.
4829 if test "${enable_debug_symbols+set}" = set; then
4830 enableval=$enable_debug_symbols;
4831 else
4832 enableval=no
4835 if test ${enableval} = "no" ; then
4836 DEBUG_SYMBOLS=
4838 else
4839 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4843 # Check whether --enable-jit was given.
4844 if test "${enable_jit+set}" = set; then
4845 enableval=$enable_jit;
4846 else
4847 enableval=default
4850 if test ${enableval} = "no"
4851 then
4852 JIT=
4854 else
4855 case "$llvm_cv_target_arch" in
4856 x86) TARGET_HAS_JIT=1
4858 Sparc) TARGET_HAS_JIT=0
4860 PowerPC) TARGET_HAS_JIT=1
4862 x86_64) TARGET_HAS_JIT=1
4864 Alpha) TARGET_HAS_JIT=0
4866 ARM) TARGET_HAS_JIT=1
4868 Mips) TARGET_HAS_JIT=1
4870 XCore) TARGET_HAS_JIT=0
4872 MSP430) TARGET_HAS_JIT=0
4874 SystemZ) TARGET_HAS_JIT=0
4876 Blackfin) TARGET_HAS_JIT=0
4878 MBlaze) TARGET_HAS_JIT=0
4880 PTX) TARGET_HAS_JIT=0
4882 *) TARGET_HAS_JIT=0
4884 esac
4887 # Check whether --enable-docs was given.
4888 if test "${enable_docs+set}" = set; then
4889 enableval=$enable_docs;
4890 else
4891 enableval=default
4894 case "$enableval" in
4895 yes) ENABLE_DOCS=1
4897 no) ENABLE_DOCS=0
4899 default) ENABLE_DOCS=1
4901 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
4902 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
4903 { (exit 1); exit 1; }; } ;;
4904 esac
4906 # Check whether --enable-doxygen was given.
4907 if test "${enable_doxygen+set}" = set; then
4908 enableval=$enable_doxygen;
4909 else
4910 enableval=default
4913 case "$enableval" in
4914 yes) ENABLE_DOXYGEN=1
4916 no) ENABLE_DOXYGEN=0
4918 default) ENABLE_DOXYGEN=0
4920 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4921 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4922 { (exit 1); exit 1; }; } ;;
4923 esac
4925 # Check whether --enable-threads was given.
4926 if test "${enable_threads+set}" = set; then
4927 enableval=$enable_threads;
4928 else
4929 enableval=default
4932 case "$enableval" in
4933 yes) ENABLE_THREADS=1
4935 no) ENABLE_THREADS=0
4937 default) ENABLE_THREADS=1
4939 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4940 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4941 { (exit 1); exit 1; }; } ;;
4942 esac
4944 cat >>confdefs.h <<_ACEOF
4945 #define ENABLE_THREADS $ENABLE_THREADS
4946 _ACEOF
4949 # Check whether --enable-pthreads was given.
4950 if test "${enable_pthreads+set}" = set; then
4951 enableval=$enable_pthreads;
4952 else
4953 enableval=default
4956 case "$enableval" in
4957 yes) ENABLE_PTHREADS=1
4959 no) ENABLE_PTHREADS=0
4961 default) ENABLE_PTHREADS=1
4963 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
4964 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
4965 { (exit 1); exit 1; }; } ;;
4966 esac
4968 # Check whether --enable-pic was given.
4969 if test "${enable_pic+set}" = set; then
4970 enableval=$enable_pic;
4971 else
4972 enableval=default
4975 case "$enableval" in
4976 yes) ENABLE_PIC=1
4978 no) ENABLE_PIC=0
4980 default) ENABLE_PIC=1
4982 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4983 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4984 { (exit 1); exit 1; }; } ;;
4985 esac
4987 cat >>confdefs.h <<_ACEOF
4988 #define ENABLE_PIC $ENABLE_PIC
4989 _ACEOF
4992 # Check whether --enable-shared was given.
4993 if test "${enable_shared+set}" = set; then
4994 enableval=$enable_shared;
4995 else
4996 enableval=default
4999 case "$enableval" in
5000 yes) ENABLE_SHARED=1
5002 no) ENABLE_SHARED=0
5004 default) ENABLE_SHARED=0
5006 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5007 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5008 { (exit 1); exit 1; }; } ;;
5009 esac
5011 # Check whether --enable-embed-stdcxx was given.
5012 if test "${enable_embed_stdcxx+set}" = set; then
5013 enableval=$enable_embed_stdcxx;
5014 else
5015 enableval=default
5018 case "$enableval" in
5019 yes) ENABLE_EMBED_STDCXX=1
5021 no) ENABLE_EMBED_STDCXX=0
5023 default) ENABLE_EMBED_STDCXX=1
5025 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5026 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5027 { (exit 1); exit 1; }; } ;;
5028 esac
5030 # Check whether --enable-timestamps was given.
5031 if test "${enable_timestamps+set}" = set; then
5032 enableval=$enable_timestamps;
5033 else
5034 enableval=default
5037 case "$enableval" in
5038 yes) ENABLE_TIMESTAMPS=1
5040 no) ENABLE_TIMESTAMPS=0
5042 default) ENABLE_TIMESTAMPS=1
5044 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5045 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5046 { (exit 1); exit 1; }; } ;;
5047 esac
5049 cat >>confdefs.h <<_ACEOF
5050 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5051 _ACEOF
5054 TARGETS_TO_BUILD=""
5055 # Check whether --enable-targets was given.
5056 if test "${enable_targets+set}" = set; then
5057 enableval=$enable_targets;
5058 else
5059 enableval=all
5062 if test "$enableval" = host-only ; then
5063 enableval=host
5065 case "$enableval" in
5066 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU XCore MSP430 SystemZ Blackfin CBackend CppBackend MBlaze PTX" ;;
5067 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5068 case "$a_target" in
5069 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5070 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5071 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5072 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5073 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5074 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5075 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5076 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5077 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5078 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5079 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5080 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5081 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5082 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5083 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5084 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5085 host) case "$llvm_cv_target_arch" in
5086 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5087 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5088 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5089 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5090 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5091 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5092 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5093 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5094 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5095 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5096 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5097 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5098 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5099 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5100 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5101 echo "$as_me: error: Can not set target to build" >&2;}
5102 { (exit 1); exit 1; }; } ;;
5103 esac ;;
5104 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5105 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5106 { (exit 1); exit 1; }; } ;;
5107 esac
5108 done
5110 esac
5111 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5114 # Determine whether we are building LLVM support for the native architecture.
5115 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5116 for a_target in $TARGETS_TO_BUILD; do
5117 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5119 cat >>confdefs.h <<_ACEOF
5120 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5121 _ACEOF
5123 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5124 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5125 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5126 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5127 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5128 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5131 cat >>confdefs.h <<_ACEOF
5132 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5133 _ACEOF
5136 cat >>confdefs.h <<_ACEOF
5137 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5138 _ACEOF
5141 cat >>confdefs.h <<_ACEOF
5142 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5143 _ACEOF
5146 cat >>confdefs.h <<_ACEOF
5147 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5148 _ACEOF
5150 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5152 cat >>confdefs.h <<_ACEOF
5153 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5154 _ACEOF
5158 done
5160 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5161 # target feature def files.
5162 LLVM_ENUM_TARGETS=""
5163 LLVM_ENUM_ASM_PRINTERS=""
5164 LLVM_ENUM_ASM_PARSERS=""
5165 LLVM_ENUM_DISASSEMBLERS=""
5166 for target_to_build in $TARGETS_TO_BUILD; do
5167 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5168 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5169 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5171 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5172 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5174 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5175 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5177 done
5183 # Check whether --enable-cbe-printf-a was given.
5184 if test "${enable_cbe_printf_a+set}" = set; then
5185 enableval=$enable_cbe_printf_a;
5186 else
5187 enableval=default
5190 case "$enableval" in
5191 yes) ENABLE_CBE_PRINTF_A=1
5193 no) ENABLE_CBE_PRINTF_A=0
5195 default) ENABLE_CBE_PRINTF_A=1
5197 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5198 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5199 { (exit 1); exit 1; }; } ;;
5200 esac
5202 cat >>confdefs.h <<_ACEOF
5203 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5204 _ACEOF
5208 # Check whether --with-llvmgccdir was given.
5209 if test "${with_llvmgccdir+set}" = set; then
5210 withval=$with_llvmgccdir;
5211 else
5212 withval=default
5215 case "$withval" in
5216 default) WITH_LLVMGCCDIR=default ;;
5217 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5218 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5219 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5220 { (exit 1); exit 1; }; } ;;
5221 esac
5224 # Check whether --with-llvmgcc was given.
5225 if test "${with_llvmgcc+set}" = set; then
5226 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5227 WITH_LLVMGCCDIR=""
5232 # Check whether --with-llvmgxx was given.
5233 if test "${with_llvmgxx+set}" = set; then
5234 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5235 WITH_LLVMGCCDIR=""
5239 if test -n "$LLVMGCC"; then
5240 LLVMGCCCOMMAND="$LLVMGCC"
5243 if test -n "$LLVMGXX"; then
5244 LLVMGXXCOMMAND="$LLVMGXX"
5247 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5248 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5249 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5250 { (exit 1); exit 1; }; };
5253 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5254 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5255 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5256 { (exit 1); exit 1; }; };
5260 # Check whether --with-clang was given.
5261 if test "${with_clang+set}" = set; then
5262 withval=$with_clang;
5263 else
5264 with_clang=default
5269 # Check whether --with-built-clang was given.
5270 if test "${with_built_clang+set}" = set; then
5271 withval=$with_built_clang;
5272 else
5273 with_built_clang=check
5277 { echo "$as_me:$LINENO: checking clang compiler" >&5
5278 echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5279 WITH_CLANGPATH=""
5280 WITH_BUILT_CLANG=0
5281 if test "$with_clang" != "default"; then
5282 WITH_CLANGPATH="$with_clang"
5283 if ! test -x "$WITH_CLANGPATH"; then
5284 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5285 echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5286 { (exit 1); exit 1; }; }
5288 elif test "$with_built_clang" = "yes"; then
5289 WITH_BUILT_CLANG=1
5290 elif test "$with_built_clang" = "no"; then
5291 WITH_BUILT_CLANG=0
5292 else
5293 if test "$with_built_clang" != "check"; then
5294 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5295 echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5296 { (exit 1); exit 1; }; }
5299 if test -f ${srcdir}/tools/clang/README.txt; then
5300 WITH_BUILT_CLANG=1
5304 if ! test -z "$WITH_CLANGPATH"; then
5305 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5306 echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5307 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5308 elif test "$WITH_BUILT_CLANG" = "1"; then
5309 { echo "$as_me:$LINENO: result: built" >&5
5310 echo "${ECHO_T}built" >&6; }
5311 else
5312 { echo "$as_me:$LINENO: result: none" >&5
5313 echo "${ECHO_T}none" >&6; }
5315 CLANGPATH=$WITH_CLANGPATH
5317 CLANGXXPATH=$WITH_CLANGXXPATH
5319 ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5323 # Check whether --with-optimize-option was given.
5324 if test "${with_optimize_option+set}" = set; then
5325 withval=$with_optimize_option;
5326 else
5327 withval=default
5330 { echo "$as_me:$LINENO: checking optimization flags" >&5
5331 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5332 case "$withval" in
5333 default)
5334 case "$llvm_cv_os_type" in
5335 FreeBSD) optimize_option=-O2 ;;
5336 MingW) optimize_option=-O2 ;;
5337 *) optimize_option=-O3 ;;
5338 esac ;;
5339 *) optimize_option="$withval" ;;
5340 esac
5341 OPTIMIZE_OPTION=$optimize_option
5343 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5344 echo "${ECHO_T}$optimize_option" >&6; }
5347 # Check whether --with-extra-options was given.
5348 if test "${with_extra_options+set}" = set; then
5349 withval=$with_extra_options;
5350 else
5351 withval=default
5354 case "$withval" in
5355 default) EXTRA_OPTIONS= ;;
5356 *) EXTRA_OPTIONS=$withval ;;
5357 esac
5358 EXTRA_OPTIONS=$EXTRA_OPTIONS
5362 # Check whether --with-extra-ld-options was given.
5363 if test "${with_extra_ld_options+set}" = set; then
5364 withval=$with_extra_ld_options;
5365 else
5366 withval=default
5369 case "$withval" in
5370 default) EXTRA_LD_OPTIONS= ;;
5371 *) EXTRA_LD_OPTIONS=$withval ;;
5372 esac
5373 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5376 # Check whether --enable-bindings was given.
5377 if test "${enable_bindings+set}" = set; then
5378 enableval=$enable_bindings;
5379 else
5380 enableval=default
5383 BINDINGS_TO_BUILD=""
5384 case "$enableval" in
5385 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5386 all ) BINDINGS_TO_BUILD="ocaml" ;;
5387 none | no) BINDINGS_TO_BUILD="" ;;
5388 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5389 case "$a_binding" in
5390 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5391 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5392 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5393 { (exit 1); exit 1; }; } ;;
5394 esac
5395 done
5397 esac
5400 # Check whether --with-ocaml-libdir was given.
5401 if test "${with_ocaml_libdir+set}" = set; then
5402 withval=$with_ocaml_libdir;
5403 else
5404 withval=auto
5407 case "$withval" in
5408 auto) with_ocaml_libdir="$withval" ;;
5409 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5410 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5411 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5412 { (exit 1); exit 1; }; } ;;
5413 esac
5416 # Check whether --with-clang-resource-dir was given.
5417 if test "${with_clang_resource_dir+set}" = set; then
5418 withval=$with_clang_resource_dir;
5419 else
5420 withval=""
5424 cat >>confdefs.h <<_ACEOF
5425 #define CLANG_RESOURCE_DIR "$withval"
5426 _ACEOF
5430 # Check whether --with-c-include-dirs was given.
5431 if test "${with_c_include_dirs+set}" = set; then
5432 withval=$with_c_include_dirs;
5433 else
5434 withval=""
5438 cat >>confdefs.h <<_ACEOF
5439 #define C_INCLUDE_DIRS "$withval"
5440 _ACEOF
5444 # Check whether --with-cxx-include-root was given.
5445 if test "${with_cxx_include_root+set}" = set; then
5446 withval=$with_cxx_include_root;
5447 else
5448 withval=""
5452 cat >>confdefs.h <<_ACEOF
5453 #define CXX_INCLUDE_ROOT "$withval"
5454 _ACEOF
5458 # Check whether --with-cxx-include-arch was given.
5459 if test "${with_cxx_include_arch+set}" = set; then
5460 withval=$with_cxx_include_arch;
5461 else
5462 withval=""
5466 cat >>confdefs.h <<_ACEOF
5467 #define CXX_INCLUDE_ARCH "$withval"
5468 _ACEOF
5472 # Check whether --with-cxx-include-32bit-dir was given.
5473 if test "${with_cxx_include_32bit_dir+set}" = set; then
5474 withval=$with_cxx_include_32bit_dir;
5475 else
5476 withval=""
5480 cat >>confdefs.h <<_ACEOF
5481 #define CXX_INCLUDE_32BIT_DIR "$withval"
5482 _ACEOF
5486 # Check whether --with-cxx-include-64bit-dir was given.
5487 if test "${with_cxx_include_64bit_dir+set}" = set; then
5488 withval=$with_cxx_include_64bit_dir;
5489 else
5490 withval=""
5494 cat >>confdefs.h <<_ACEOF
5495 #define CXX_INCLUDE_64BIT_DIR "$withval"
5496 _ACEOF
5500 # Check whether --with-binutils-include was given.
5501 if test "${with_binutils_include+set}" = set; then
5502 withval=$with_binutils_include;
5503 else
5504 withval=default
5507 case "$withval" in
5508 default) WITH_BINUTILS_INCDIR=default ;;
5509 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5510 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5511 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5512 { (exit 1); exit 1; }; } ;;
5513 esac
5514 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5515 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5517 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5518 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5519 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5520 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5521 { (exit 1); exit 1; }; };
5526 # Check whether --with-bug-report-url was given.
5527 if test "${with_bug_report_url+set}" = set; then
5528 withval=$with_bug_report_url;
5529 else
5530 withval="http://llvm.org"
5534 cat >>confdefs.h <<_ACEOF
5535 #define BUG_REPORT_URL "$withval"
5536 _ACEOF
5539 # Check whether --enable-libffi was given.
5540 if test "${enable_libffi+set}" = set; then
5541 enableval=$enable_libffi; case "$enableval" in
5542 yes) llvm_cv_enable_libffi="yes" ;;
5543 no) llvm_cv_enable_libffi="no" ;;
5544 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5545 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5546 { (exit 1); exit 1; }; } ;;
5547 esac
5548 else
5549 llvm_cv_enable_libffi=no
5554 ac_ext=c
5555 ac_cpp='$CPP $CPPFLAGS'
5556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5559 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5560 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5561 # On Suns, sometimes $CPP names a directory.
5562 if test -n "$CPP" && test -d "$CPP"; then
5563 CPP=
5565 if test -z "$CPP"; then
5566 if test "${ac_cv_prog_CPP+set}" = set; then
5567 echo $ECHO_N "(cached) $ECHO_C" >&6
5568 else
5569 # Double quotes because CPP needs to be expanded
5570 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5572 ac_preproc_ok=false
5573 for ac_c_preproc_warn_flag in '' yes
5575 # Use a header file that comes with gcc, so configuring glibc
5576 # with a fresh cross-compiler works.
5577 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5578 # <limits.h> exists even on freestanding compilers.
5579 # On the NeXT, cc -E runs the code through the compiler's parser,
5580 # not just through cpp. "Syntax error" is here to catch this case.
5581 cat >conftest.$ac_ext <<_ACEOF
5582 /* confdefs.h. */
5583 _ACEOF
5584 cat confdefs.h >>conftest.$ac_ext
5585 cat >>conftest.$ac_ext <<_ACEOF
5586 /* end confdefs.h. */
5587 #ifdef __STDC__
5588 # include <limits.h>
5589 #else
5590 # include <assert.h>
5591 #endif
5592 Syntax error
5593 _ACEOF
5594 if { (ac_try="$ac_cpp conftest.$ac_ext"
5595 case "(($ac_try" in
5596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5597 *) ac_try_echo=$ac_try;;
5598 esac
5599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5600 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5601 ac_status=$?
5602 grep -v '^ *+' conftest.er1 >conftest.err
5603 rm -f conftest.er1
5604 cat conftest.err >&5
5605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606 (exit $ac_status); } >/dev/null; then
5607 if test -s conftest.err; then
5608 ac_cpp_err=$ac_c_preproc_warn_flag
5609 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5610 else
5611 ac_cpp_err=
5613 else
5614 ac_cpp_err=yes
5616 if test -z "$ac_cpp_err"; then
5618 else
5619 echo "$as_me: failed program was:" >&5
5620 sed 's/^/| /' conftest.$ac_ext >&5
5622 # Broken: fails on valid input.
5623 continue
5626 rm -f conftest.err conftest.$ac_ext
5628 # OK, works on sane cases. Now check whether nonexistent headers
5629 # can be detected and how.
5630 cat >conftest.$ac_ext <<_ACEOF
5631 /* confdefs.h. */
5632 _ACEOF
5633 cat confdefs.h >>conftest.$ac_ext
5634 cat >>conftest.$ac_ext <<_ACEOF
5635 /* end confdefs.h. */
5636 #include <ac_nonexistent.h>
5637 _ACEOF
5638 if { (ac_try="$ac_cpp conftest.$ac_ext"
5639 case "(($ac_try" in
5640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5641 *) ac_try_echo=$ac_try;;
5642 esac
5643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5644 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5645 ac_status=$?
5646 grep -v '^ *+' conftest.er1 >conftest.err
5647 rm -f conftest.er1
5648 cat conftest.err >&5
5649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5650 (exit $ac_status); } >/dev/null; then
5651 if test -s conftest.err; then
5652 ac_cpp_err=$ac_c_preproc_warn_flag
5653 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5654 else
5655 ac_cpp_err=
5657 else
5658 ac_cpp_err=yes
5660 if test -z "$ac_cpp_err"; then
5661 # Broken: success on invalid input.
5662 continue
5663 else
5664 echo "$as_me: failed program was:" >&5
5665 sed 's/^/| /' conftest.$ac_ext >&5
5667 # Passes both tests.
5668 ac_preproc_ok=:
5669 break
5672 rm -f conftest.err conftest.$ac_ext
5674 done
5675 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5676 rm -f conftest.err conftest.$ac_ext
5677 if $ac_preproc_ok; then
5678 break
5681 done
5682 ac_cv_prog_CPP=$CPP
5685 CPP=$ac_cv_prog_CPP
5686 else
5687 ac_cv_prog_CPP=$CPP
5689 { echo "$as_me:$LINENO: result: $CPP" >&5
5690 echo "${ECHO_T}$CPP" >&6; }
5691 ac_preproc_ok=false
5692 for ac_c_preproc_warn_flag in '' yes
5694 # Use a header file that comes with gcc, so configuring glibc
5695 # with a fresh cross-compiler works.
5696 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5697 # <limits.h> exists even on freestanding compilers.
5698 # On the NeXT, cc -E runs the code through the compiler's parser,
5699 # not just through cpp. "Syntax error" is here to catch this case.
5700 cat >conftest.$ac_ext <<_ACEOF
5701 /* confdefs.h. */
5702 _ACEOF
5703 cat confdefs.h >>conftest.$ac_ext
5704 cat >>conftest.$ac_ext <<_ACEOF
5705 /* end confdefs.h. */
5706 #ifdef __STDC__
5707 # include <limits.h>
5708 #else
5709 # include <assert.h>
5710 #endif
5711 Syntax error
5712 _ACEOF
5713 if { (ac_try="$ac_cpp conftest.$ac_ext"
5714 case "(($ac_try" in
5715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5716 *) ac_try_echo=$ac_try;;
5717 esac
5718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5719 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5720 ac_status=$?
5721 grep -v '^ *+' conftest.er1 >conftest.err
5722 rm -f conftest.er1
5723 cat conftest.err >&5
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); } >/dev/null; then
5726 if test -s conftest.err; then
5727 ac_cpp_err=$ac_c_preproc_warn_flag
5728 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5729 else
5730 ac_cpp_err=
5732 else
5733 ac_cpp_err=yes
5735 if test -z "$ac_cpp_err"; then
5737 else
5738 echo "$as_me: failed program was:" >&5
5739 sed 's/^/| /' conftest.$ac_ext >&5
5741 # Broken: fails on valid input.
5742 continue
5745 rm -f conftest.err conftest.$ac_ext
5747 # OK, works on sane cases. Now check whether nonexistent headers
5748 # can be detected and how.
5749 cat >conftest.$ac_ext <<_ACEOF
5750 /* confdefs.h. */
5751 _ACEOF
5752 cat confdefs.h >>conftest.$ac_ext
5753 cat >>conftest.$ac_ext <<_ACEOF
5754 /* end confdefs.h. */
5755 #include <ac_nonexistent.h>
5756 _ACEOF
5757 if { (ac_try="$ac_cpp conftest.$ac_ext"
5758 case "(($ac_try" in
5759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5760 *) ac_try_echo=$ac_try;;
5761 esac
5762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5763 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5764 ac_status=$?
5765 grep -v '^ *+' conftest.er1 >conftest.err
5766 rm -f conftest.er1
5767 cat conftest.err >&5
5768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769 (exit $ac_status); } >/dev/null; then
5770 if test -s conftest.err; then
5771 ac_cpp_err=$ac_c_preproc_warn_flag
5772 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5773 else
5774 ac_cpp_err=
5776 else
5777 ac_cpp_err=yes
5779 if test -z "$ac_cpp_err"; then
5780 # Broken: success on invalid input.
5781 continue
5782 else
5783 echo "$as_me: failed program was:" >&5
5784 sed 's/^/| /' conftest.$ac_ext >&5
5786 # Passes both tests.
5787 ac_preproc_ok=:
5788 break
5791 rm -f conftest.err conftest.$ac_ext
5793 done
5794 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5795 rm -f conftest.err conftest.$ac_ext
5796 if $ac_preproc_ok; then
5798 else
5799 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5800 See \`config.log' for more details." >&5
5801 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5802 See \`config.log' for more details." >&2;}
5803 { (exit 1); exit 1; }; }
5806 ac_ext=c
5807 ac_cpp='$CPP $CPPFLAGS'
5808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5812 ac_ext=c
5813 ac_cpp='$CPP $CPPFLAGS'
5814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5817 if test -n "$ac_tool_prefix"; then
5818 for ac_prog in gcc
5820 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5821 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5822 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5824 if test "${ac_cv_prog_CC+set}" = set; then
5825 echo $ECHO_N "(cached) $ECHO_C" >&6
5826 else
5827 if test -n "$CC"; then
5828 ac_cv_prog_CC="$CC" # Let the user override the test.
5829 else
5830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5831 for as_dir in $PATH
5833 IFS=$as_save_IFS
5834 test -z "$as_dir" && as_dir=.
5835 for ac_exec_ext in '' $ac_executable_extensions; do
5836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5837 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5839 break 2
5841 done
5842 done
5843 IFS=$as_save_IFS
5847 CC=$ac_cv_prog_CC
5848 if test -n "$CC"; then
5849 { echo "$as_me:$LINENO: result: $CC" >&5
5850 echo "${ECHO_T}$CC" >&6; }
5851 else
5852 { echo "$as_me:$LINENO: result: no" >&5
5853 echo "${ECHO_T}no" >&6; }
5857 test -n "$CC" && break
5858 done
5860 if test -z "$CC"; then
5861 ac_ct_CC=$CC
5862 for ac_prog in gcc
5864 # Extract the first word of "$ac_prog", so it can be a program name with args.
5865 set dummy $ac_prog; ac_word=$2
5866 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5868 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5869 echo $ECHO_N "(cached) $ECHO_C" >&6
5870 else
5871 if test -n "$ac_ct_CC"; then
5872 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5873 else
5874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5875 for as_dir in $PATH
5877 IFS=$as_save_IFS
5878 test -z "$as_dir" && as_dir=.
5879 for ac_exec_ext in '' $ac_executable_extensions; do
5880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5881 ac_cv_prog_ac_ct_CC="$ac_prog"
5882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5883 break 2
5885 done
5886 done
5887 IFS=$as_save_IFS
5891 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5892 if test -n "$ac_ct_CC"; then
5893 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5894 echo "${ECHO_T}$ac_ct_CC" >&6; }
5895 else
5896 { echo "$as_me:$LINENO: result: no" >&5
5897 echo "${ECHO_T}no" >&6; }
5901 test -n "$ac_ct_CC" && break
5902 done
5904 if test "x$ac_ct_CC" = x; then
5905 CC=""
5906 else
5907 case $cross_compiling:$ac_tool_warned in
5908 yes:)
5909 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5910 whose name does not start with the host triplet. If you think this
5911 configuration is useful to you, please write to autoconf@gnu.org." >&5
5912 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5913 whose name does not start with the host triplet. If you think this
5914 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5915 ac_tool_warned=yes ;;
5916 esac
5917 CC=$ac_ct_CC
5922 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5923 See \`config.log' for more details." >&5
5924 echo "$as_me: error: no acceptable C compiler found in \$PATH
5925 See \`config.log' for more details." >&2;}
5926 { (exit 1); exit 1; }; }
5928 # Provide some information about the compiler.
5929 echo "$as_me:$LINENO: checking for C compiler version" >&5
5930 ac_compiler=`set X $ac_compile; echo $2`
5931 { (ac_try="$ac_compiler --version >&5"
5932 case "(($ac_try" in
5933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5934 *) ac_try_echo=$ac_try;;
5935 esac
5936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5937 (eval "$ac_compiler --version >&5") 2>&5
5938 ac_status=$?
5939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940 (exit $ac_status); }
5941 { (ac_try="$ac_compiler -v >&5"
5942 case "(($ac_try" in
5943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5944 *) ac_try_echo=$ac_try;;
5945 esac
5946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5947 (eval "$ac_compiler -v >&5") 2>&5
5948 ac_status=$?
5949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); }
5951 { (ac_try="$ac_compiler -V >&5"
5952 case "(($ac_try" in
5953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5954 *) ac_try_echo=$ac_try;;
5955 esac
5956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5957 (eval "$ac_compiler -V >&5") 2>&5
5958 ac_status=$?
5959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960 (exit $ac_status); }
5962 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5963 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5964 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5965 echo $ECHO_N "(cached) $ECHO_C" >&6
5966 else
5967 cat >conftest.$ac_ext <<_ACEOF
5968 /* confdefs.h. */
5969 _ACEOF
5970 cat confdefs.h >>conftest.$ac_ext
5971 cat >>conftest.$ac_ext <<_ACEOF
5972 /* end confdefs.h. */
5975 main ()
5977 #ifndef __GNUC__
5978 choke me
5979 #endif
5982 return 0;
5984 _ACEOF
5985 rm -f conftest.$ac_objext
5986 if { (ac_try="$ac_compile"
5987 case "(($ac_try" in
5988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5989 *) ac_try_echo=$ac_try;;
5990 esac
5991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5992 (eval "$ac_compile") 2>conftest.er1
5993 ac_status=$?
5994 grep -v '^ *+' conftest.er1 >conftest.err
5995 rm -f conftest.er1
5996 cat conftest.err >&5
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); } &&
5999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6000 { (case "(($ac_try" in
6001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6002 *) ac_try_echo=$ac_try;;
6003 esac
6004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6005 (eval "$ac_try") 2>&5
6006 ac_status=$?
6007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008 (exit $ac_status); }; } &&
6009 { ac_try='test -s conftest.$ac_objext'
6010 { (case "(($ac_try" in
6011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6012 *) ac_try_echo=$ac_try;;
6013 esac
6014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6015 (eval "$ac_try") 2>&5
6016 ac_status=$?
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); }; }; then
6019 ac_compiler_gnu=yes
6020 else
6021 echo "$as_me: failed program was:" >&5
6022 sed 's/^/| /' conftest.$ac_ext >&5
6024 ac_compiler_gnu=no
6027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6028 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6031 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
6032 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
6033 GCC=`test $ac_compiler_gnu = yes && echo yes`
6034 ac_test_CFLAGS=${CFLAGS+set}
6035 ac_save_CFLAGS=$CFLAGS
6036 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
6037 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
6038 if test "${ac_cv_prog_cc_g+set}" = set; then
6039 echo $ECHO_N "(cached) $ECHO_C" >&6
6040 else
6041 ac_save_c_werror_flag=$ac_c_werror_flag
6042 ac_c_werror_flag=yes
6043 ac_cv_prog_cc_g=no
6044 CFLAGS="-g"
6045 cat >conftest.$ac_ext <<_ACEOF
6046 /* confdefs.h. */
6047 _ACEOF
6048 cat confdefs.h >>conftest.$ac_ext
6049 cat >>conftest.$ac_ext <<_ACEOF
6050 /* end confdefs.h. */
6053 main ()
6057 return 0;
6059 _ACEOF
6060 rm -f conftest.$ac_objext
6061 if { (ac_try="$ac_compile"
6062 case "(($ac_try" in
6063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6064 *) ac_try_echo=$ac_try;;
6065 esac
6066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6067 (eval "$ac_compile") 2>conftest.er1
6068 ac_status=$?
6069 grep -v '^ *+' conftest.er1 >conftest.err
6070 rm -f conftest.er1
6071 cat conftest.err >&5
6072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073 (exit $ac_status); } &&
6074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6075 { (case "(($ac_try" in
6076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6077 *) ac_try_echo=$ac_try;;
6078 esac
6079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6080 (eval "$ac_try") 2>&5
6081 ac_status=$?
6082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083 (exit $ac_status); }; } &&
6084 { ac_try='test -s conftest.$ac_objext'
6085 { (case "(($ac_try" in
6086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6087 *) ac_try_echo=$ac_try;;
6088 esac
6089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6090 (eval "$ac_try") 2>&5
6091 ac_status=$?
6092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093 (exit $ac_status); }; }; then
6094 ac_cv_prog_cc_g=yes
6095 else
6096 echo "$as_me: failed program was:" >&5
6097 sed 's/^/| /' conftest.$ac_ext >&5
6099 CFLAGS=""
6100 cat >conftest.$ac_ext <<_ACEOF
6101 /* confdefs.h. */
6102 _ACEOF
6103 cat confdefs.h >>conftest.$ac_ext
6104 cat >>conftest.$ac_ext <<_ACEOF
6105 /* end confdefs.h. */
6108 main ()
6112 return 0;
6114 _ACEOF
6115 rm -f conftest.$ac_objext
6116 if { (ac_try="$ac_compile"
6117 case "(($ac_try" in
6118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6119 *) ac_try_echo=$ac_try;;
6120 esac
6121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6122 (eval "$ac_compile") 2>conftest.er1
6123 ac_status=$?
6124 grep -v '^ *+' conftest.er1 >conftest.err
6125 rm -f conftest.er1
6126 cat conftest.err >&5
6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128 (exit $ac_status); } &&
6129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6130 { (case "(($ac_try" in
6131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6132 *) ac_try_echo=$ac_try;;
6133 esac
6134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6135 (eval "$ac_try") 2>&5
6136 ac_status=$?
6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); }; } &&
6139 { ac_try='test -s conftest.$ac_objext'
6140 { (case "(($ac_try" in
6141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6142 *) ac_try_echo=$ac_try;;
6143 esac
6144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6145 (eval "$ac_try") 2>&5
6146 ac_status=$?
6147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148 (exit $ac_status); }; }; then
6150 else
6151 echo "$as_me: failed program was:" >&5
6152 sed 's/^/| /' conftest.$ac_ext >&5
6154 ac_c_werror_flag=$ac_save_c_werror_flag
6155 CFLAGS="-g"
6156 cat >conftest.$ac_ext <<_ACEOF
6157 /* confdefs.h. */
6158 _ACEOF
6159 cat confdefs.h >>conftest.$ac_ext
6160 cat >>conftest.$ac_ext <<_ACEOF
6161 /* end confdefs.h. */
6164 main ()
6168 return 0;
6170 _ACEOF
6171 rm -f conftest.$ac_objext
6172 if { (ac_try="$ac_compile"
6173 case "(($ac_try" in
6174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6175 *) ac_try_echo=$ac_try;;
6176 esac
6177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6178 (eval "$ac_compile") 2>conftest.er1
6179 ac_status=$?
6180 grep -v '^ *+' conftest.er1 >conftest.err
6181 rm -f conftest.er1
6182 cat conftest.err >&5
6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); } &&
6185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6186 { (case "(($ac_try" in
6187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6188 *) ac_try_echo=$ac_try;;
6189 esac
6190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6191 (eval "$ac_try") 2>&5
6192 ac_status=$?
6193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194 (exit $ac_status); }; } &&
6195 { ac_try='test -s conftest.$ac_objext'
6196 { (case "(($ac_try" in
6197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6198 *) ac_try_echo=$ac_try;;
6199 esac
6200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6201 (eval "$ac_try") 2>&5
6202 ac_status=$?
6203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204 (exit $ac_status); }; }; then
6205 ac_cv_prog_cc_g=yes
6206 else
6207 echo "$as_me: failed program was:" >&5
6208 sed 's/^/| /' conftest.$ac_ext >&5
6213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6220 ac_c_werror_flag=$ac_save_c_werror_flag
6222 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6223 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6224 if test "$ac_test_CFLAGS" = set; then
6225 CFLAGS=$ac_save_CFLAGS
6226 elif test $ac_cv_prog_cc_g = yes; then
6227 if test "$GCC" = yes; then
6228 CFLAGS="-g -O2"
6229 else
6230 CFLAGS="-g"
6232 else
6233 if test "$GCC" = yes; then
6234 CFLAGS="-O2"
6235 else
6236 CFLAGS=
6239 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6240 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6241 if test "${ac_cv_prog_cc_c89+set}" = set; then
6242 echo $ECHO_N "(cached) $ECHO_C" >&6
6243 else
6244 ac_cv_prog_cc_c89=no
6245 ac_save_CC=$CC
6246 cat >conftest.$ac_ext <<_ACEOF
6247 /* confdefs.h. */
6248 _ACEOF
6249 cat confdefs.h >>conftest.$ac_ext
6250 cat >>conftest.$ac_ext <<_ACEOF
6251 /* end confdefs.h. */
6252 #include <stdarg.h>
6253 #include <stdio.h>
6254 #include <sys/types.h>
6255 #include <sys/stat.h>
6256 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6257 struct buf { int x; };
6258 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6259 static char *e (p, i)
6260 char **p;
6261 int i;
6263 return p[i];
6265 static char *f (char * (*g) (char **, int), char **p, ...)
6267 char *s;
6268 va_list v;
6269 va_start (v,p);
6270 s = g (p, va_arg (v,int));
6271 va_end (v);
6272 return s;
6275 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6276 function prototypes and stuff, but not '\xHH' hex character constants.
6277 These don't provoke an error unfortunately, instead are silently treated
6278 as 'x'. The following induces an error, until -std is added to get
6279 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6280 array size at least. It's necessary to write '\x00'==0 to get something
6281 that's true only with -std. */
6282 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6284 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6285 inside strings and character constants. */
6286 #define FOO(x) 'x'
6287 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6289 int test (int i, double x);
6290 struct s1 {int (*f) (int a);};
6291 struct s2 {int (*f) (double a);};
6292 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6293 int argc;
6294 char **argv;
6296 main ()
6298 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6300 return 0;
6302 _ACEOF
6303 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6304 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6306 CC="$ac_save_CC $ac_arg"
6307 rm -f conftest.$ac_objext
6308 if { (ac_try="$ac_compile"
6309 case "(($ac_try" in
6310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6311 *) ac_try_echo=$ac_try;;
6312 esac
6313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6314 (eval "$ac_compile") 2>conftest.er1
6315 ac_status=$?
6316 grep -v '^ *+' conftest.er1 >conftest.err
6317 rm -f conftest.er1
6318 cat conftest.err >&5
6319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320 (exit $ac_status); } &&
6321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6322 { (case "(($ac_try" in
6323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6324 *) ac_try_echo=$ac_try;;
6325 esac
6326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6327 (eval "$ac_try") 2>&5
6328 ac_status=$?
6329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330 (exit $ac_status); }; } &&
6331 { ac_try='test -s conftest.$ac_objext'
6332 { (case "(($ac_try" in
6333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6334 *) ac_try_echo=$ac_try;;
6335 esac
6336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6337 (eval "$ac_try") 2>&5
6338 ac_status=$?
6339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340 (exit $ac_status); }; }; then
6341 ac_cv_prog_cc_c89=$ac_arg
6342 else
6343 echo "$as_me: failed program was:" >&5
6344 sed 's/^/| /' conftest.$ac_ext >&5
6349 rm -f core conftest.err conftest.$ac_objext
6350 test "x$ac_cv_prog_cc_c89" != "xno" && break
6351 done
6352 rm -f conftest.$ac_ext
6353 CC=$ac_save_CC
6356 # AC_CACHE_VAL
6357 case "x$ac_cv_prog_cc_c89" in
6359 { echo "$as_me:$LINENO: result: none needed" >&5
6360 echo "${ECHO_T}none needed" >&6; } ;;
6361 xno)
6362 { echo "$as_me:$LINENO: result: unsupported" >&5
6363 echo "${ECHO_T}unsupported" >&6; } ;;
6365 CC="$CC $ac_cv_prog_cc_c89"
6366 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6367 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6368 esac
6371 ac_ext=c
6372 ac_cpp='$CPP $CPPFLAGS'
6373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6377 ac_ext=cpp
6378 ac_cpp='$CXXCPP $CPPFLAGS'
6379 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6380 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6381 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6382 if test -z "$CXX"; then
6383 if test -n "$CCC"; then
6384 CXX=$CCC
6385 else
6386 if test -n "$ac_tool_prefix"; then
6387 for ac_prog in g++
6389 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6390 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6391 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6393 if test "${ac_cv_prog_CXX+set}" = set; then
6394 echo $ECHO_N "(cached) $ECHO_C" >&6
6395 else
6396 if test -n "$CXX"; then
6397 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6398 else
6399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6400 for as_dir in $PATH
6402 IFS=$as_save_IFS
6403 test -z "$as_dir" && as_dir=.
6404 for ac_exec_ext in '' $ac_executable_extensions; do
6405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6406 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6408 break 2
6410 done
6411 done
6412 IFS=$as_save_IFS
6416 CXX=$ac_cv_prog_CXX
6417 if test -n "$CXX"; then
6418 { echo "$as_me:$LINENO: result: $CXX" >&5
6419 echo "${ECHO_T}$CXX" >&6; }
6420 else
6421 { echo "$as_me:$LINENO: result: no" >&5
6422 echo "${ECHO_T}no" >&6; }
6426 test -n "$CXX" && break
6427 done
6429 if test -z "$CXX"; then
6430 ac_ct_CXX=$CXX
6431 for ac_prog in g++
6433 # Extract the first word of "$ac_prog", so it can be a program name with args.
6434 set dummy $ac_prog; ac_word=$2
6435 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6437 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6438 echo $ECHO_N "(cached) $ECHO_C" >&6
6439 else
6440 if test -n "$ac_ct_CXX"; then
6441 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6442 else
6443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6444 for as_dir in $PATH
6446 IFS=$as_save_IFS
6447 test -z "$as_dir" && as_dir=.
6448 for ac_exec_ext in '' $ac_executable_extensions; do
6449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6450 ac_cv_prog_ac_ct_CXX="$ac_prog"
6451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6452 break 2
6454 done
6455 done
6456 IFS=$as_save_IFS
6460 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6461 if test -n "$ac_ct_CXX"; then
6462 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6463 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6464 else
6465 { echo "$as_me:$LINENO: result: no" >&5
6466 echo "${ECHO_T}no" >&6; }
6470 test -n "$ac_ct_CXX" && break
6471 done
6473 if test "x$ac_ct_CXX" = x; then
6474 CXX="g++"
6475 else
6476 case $cross_compiling:$ac_tool_warned in
6477 yes:)
6478 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6479 whose name does not start with the host triplet. If you think this
6480 configuration is useful to you, please write to autoconf@gnu.org." >&5
6481 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6482 whose name does not start with the host triplet. If you think this
6483 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6484 ac_tool_warned=yes ;;
6485 esac
6486 CXX=$ac_ct_CXX
6492 # Provide some information about the compiler.
6493 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6494 ac_compiler=`set X $ac_compile; echo $2`
6495 { (ac_try="$ac_compiler --version >&5"
6496 case "(($ac_try" in
6497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6498 *) ac_try_echo=$ac_try;;
6499 esac
6500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6501 (eval "$ac_compiler --version >&5") 2>&5
6502 ac_status=$?
6503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504 (exit $ac_status); }
6505 { (ac_try="$ac_compiler -v >&5"
6506 case "(($ac_try" in
6507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6508 *) ac_try_echo=$ac_try;;
6509 esac
6510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6511 (eval "$ac_compiler -v >&5") 2>&5
6512 ac_status=$?
6513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514 (exit $ac_status); }
6515 { (ac_try="$ac_compiler -V >&5"
6516 case "(($ac_try" in
6517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6518 *) ac_try_echo=$ac_try;;
6519 esac
6520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6521 (eval "$ac_compiler -V >&5") 2>&5
6522 ac_status=$?
6523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524 (exit $ac_status); }
6526 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6527 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6528 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6529 echo $ECHO_N "(cached) $ECHO_C" >&6
6530 else
6531 cat >conftest.$ac_ext <<_ACEOF
6532 /* confdefs.h. */
6533 _ACEOF
6534 cat confdefs.h >>conftest.$ac_ext
6535 cat >>conftest.$ac_ext <<_ACEOF
6536 /* end confdefs.h. */
6539 main ()
6541 #ifndef __GNUC__
6542 choke me
6543 #endif
6546 return 0;
6548 _ACEOF
6549 rm -f conftest.$ac_objext
6550 if { (ac_try="$ac_compile"
6551 case "(($ac_try" in
6552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6553 *) ac_try_echo=$ac_try;;
6554 esac
6555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6556 (eval "$ac_compile") 2>conftest.er1
6557 ac_status=$?
6558 grep -v '^ *+' conftest.er1 >conftest.err
6559 rm -f conftest.er1
6560 cat conftest.err >&5
6561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562 (exit $ac_status); } &&
6563 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6564 { (case "(($ac_try" in
6565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6566 *) ac_try_echo=$ac_try;;
6567 esac
6568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6569 (eval "$ac_try") 2>&5
6570 ac_status=$?
6571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572 (exit $ac_status); }; } &&
6573 { ac_try='test -s conftest.$ac_objext'
6574 { (case "(($ac_try" in
6575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6576 *) ac_try_echo=$ac_try;;
6577 esac
6578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6579 (eval "$ac_try") 2>&5
6580 ac_status=$?
6581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582 (exit $ac_status); }; }; then
6583 ac_compiler_gnu=yes
6584 else
6585 echo "$as_me: failed program was:" >&5
6586 sed 's/^/| /' conftest.$ac_ext >&5
6588 ac_compiler_gnu=no
6591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6592 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6595 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6596 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6597 GXX=`test $ac_compiler_gnu = yes && echo yes`
6598 ac_test_CXXFLAGS=${CXXFLAGS+set}
6599 ac_save_CXXFLAGS=$CXXFLAGS
6600 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6601 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6602 if test "${ac_cv_prog_cxx_g+set}" = set; then
6603 echo $ECHO_N "(cached) $ECHO_C" >&6
6604 else
6605 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6606 ac_cxx_werror_flag=yes
6607 ac_cv_prog_cxx_g=no
6608 CXXFLAGS="-g"
6609 cat >conftest.$ac_ext <<_ACEOF
6610 /* confdefs.h. */
6611 _ACEOF
6612 cat confdefs.h >>conftest.$ac_ext
6613 cat >>conftest.$ac_ext <<_ACEOF
6614 /* end confdefs.h. */
6617 main ()
6621 return 0;
6623 _ACEOF
6624 rm -f conftest.$ac_objext
6625 if { (ac_try="$ac_compile"
6626 case "(($ac_try" in
6627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6628 *) ac_try_echo=$ac_try;;
6629 esac
6630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6631 (eval "$ac_compile") 2>conftest.er1
6632 ac_status=$?
6633 grep -v '^ *+' conftest.er1 >conftest.err
6634 rm -f conftest.er1
6635 cat conftest.err >&5
6636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637 (exit $ac_status); } &&
6638 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6639 { (case "(($ac_try" in
6640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6641 *) ac_try_echo=$ac_try;;
6642 esac
6643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6644 (eval "$ac_try") 2>&5
6645 ac_status=$?
6646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6647 (exit $ac_status); }; } &&
6648 { ac_try='test -s conftest.$ac_objext'
6649 { (case "(($ac_try" in
6650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6651 *) ac_try_echo=$ac_try;;
6652 esac
6653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6654 (eval "$ac_try") 2>&5
6655 ac_status=$?
6656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6657 (exit $ac_status); }; }; then
6658 ac_cv_prog_cxx_g=yes
6659 else
6660 echo "$as_me: failed program was:" >&5
6661 sed 's/^/| /' conftest.$ac_ext >&5
6663 CXXFLAGS=""
6664 cat >conftest.$ac_ext <<_ACEOF
6665 /* confdefs.h. */
6666 _ACEOF
6667 cat confdefs.h >>conftest.$ac_ext
6668 cat >>conftest.$ac_ext <<_ACEOF
6669 /* end confdefs.h. */
6672 main ()
6676 return 0;
6678 _ACEOF
6679 rm -f conftest.$ac_objext
6680 if { (ac_try="$ac_compile"
6681 case "(($ac_try" in
6682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6683 *) ac_try_echo=$ac_try;;
6684 esac
6685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6686 (eval "$ac_compile") 2>conftest.er1
6687 ac_status=$?
6688 grep -v '^ *+' conftest.er1 >conftest.err
6689 rm -f conftest.er1
6690 cat conftest.err >&5
6691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692 (exit $ac_status); } &&
6693 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6694 { (case "(($ac_try" in
6695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6696 *) ac_try_echo=$ac_try;;
6697 esac
6698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6699 (eval "$ac_try") 2>&5
6700 ac_status=$?
6701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6702 (exit $ac_status); }; } &&
6703 { ac_try='test -s conftest.$ac_objext'
6704 { (case "(($ac_try" in
6705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6706 *) ac_try_echo=$ac_try;;
6707 esac
6708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6709 (eval "$ac_try") 2>&5
6710 ac_status=$?
6711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); }; }; then
6714 else
6715 echo "$as_me: failed program was:" >&5
6716 sed 's/^/| /' conftest.$ac_ext >&5
6718 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6719 CXXFLAGS="-g"
6720 cat >conftest.$ac_ext <<_ACEOF
6721 /* confdefs.h. */
6722 _ACEOF
6723 cat confdefs.h >>conftest.$ac_ext
6724 cat >>conftest.$ac_ext <<_ACEOF
6725 /* end confdefs.h. */
6728 main ()
6732 return 0;
6734 _ACEOF
6735 rm -f conftest.$ac_objext
6736 if { (ac_try="$ac_compile"
6737 case "(($ac_try" in
6738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6739 *) ac_try_echo=$ac_try;;
6740 esac
6741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6742 (eval "$ac_compile") 2>conftest.er1
6743 ac_status=$?
6744 grep -v '^ *+' conftest.er1 >conftest.err
6745 rm -f conftest.er1
6746 cat conftest.err >&5
6747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748 (exit $ac_status); } &&
6749 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6750 { (case "(($ac_try" in
6751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6752 *) ac_try_echo=$ac_try;;
6753 esac
6754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6755 (eval "$ac_try") 2>&5
6756 ac_status=$?
6757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6758 (exit $ac_status); }; } &&
6759 { ac_try='test -s conftest.$ac_objext'
6760 { (case "(($ac_try" in
6761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6762 *) ac_try_echo=$ac_try;;
6763 esac
6764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6765 (eval "$ac_try") 2>&5
6766 ac_status=$?
6767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768 (exit $ac_status); }; }; then
6769 ac_cv_prog_cxx_g=yes
6770 else
6771 echo "$as_me: failed program was:" >&5
6772 sed 's/^/| /' conftest.$ac_ext >&5
6777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6784 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6786 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6787 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6788 if test "$ac_test_CXXFLAGS" = set; then
6789 CXXFLAGS=$ac_save_CXXFLAGS
6790 elif test $ac_cv_prog_cxx_g = yes; then
6791 if test "$GXX" = yes; then
6792 CXXFLAGS="-g -O2"
6793 else
6794 CXXFLAGS="-g"
6796 else
6797 if test "$GXX" = yes; then
6798 CXXFLAGS="-O2"
6799 else
6800 CXXFLAGS=
6803 ac_ext=c
6804 ac_cpp='$CPP $CPPFLAGS'
6805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6810 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6811 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6812 if test "${lt_cv_path_NM+set}" = set; then
6813 echo $ECHO_N "(cached) $ECHO_C" >&6
6814 else
6815 if test -n "$NM"; then
6816 # Let the user override the test.
6817 lt_cv_path_NM="$NM"
6818 else
6819 lt_nm_to_check="${ac_tool_prefix}nm"
6820 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6821 lt_nm_to_check="$lt_nm_to_check nm"
6823 for lt_tmp_nm in $lt_nm_to_check; do
6824 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6825 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6826 IFS="$lt_save_ifs"
6827 test -z "$ac_dir" && ac_dir=.
6828 tmp_nm="$ac_dir/$lt_tmp_nm"
6829 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6830 # Check to see if the nm accepts a BSD-compat flag.
6831 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6832 # nm: unknown option "B" ignored
6833 # Tru64's nm complains that /dev/null is an invalid object file
6834 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6835 */dev/null* | *'Invalid file or object type'*)
6836 lt_cv_path_NM="$tmp_nm -B"
6837 break
6840 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6841 */dev/null*)
6842 lt_cv_path_NM="$tmp_nm -p"
6843 break
6846 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6847 continue # so that we can try to find one that supports BSD flags
6849 esac
6851 esac
6853 done
6854 IFS="$lt_save_ifs"
6855 done
6856 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6859 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6860 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6861 NM="$lt_cv_path_NM"
6865 { echo "$as_me:$LINENO: checking for GNU make" >&5
6866 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6867 if test "${llvm_cv_gnu_make_command+set}" = set; then
6868 echo $ECHO_N "(cached) $ECHO_C" >&6
6869 else
6870 llvm_cv_gnu_make_command=''
6871 for a in "$MAKE" make gmake gnumake ; do
6872 if test -z "$a" ; then continue ; fi ;
6873 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6874 then
6875 llvm_cv_gnu_make_command=$a ;
6876 break;
6878 done
6880 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6881 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6882 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6883 ifGNUmake='' ;
6884 else
6885 ifGNUmake='#' ;
6886 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6887 echo "${ECHO_T}\"Not found\"" >&6; };
6891 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6892 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6893 LN_S=$as_ln_s
6894 if test "$LN_S" = "ln -s"; then
6895 { echo "$as_me:$LINENO: result: yes" >&5
6896 echo "${ECHO_T}yes" >&6; }
6897 else
6898 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6899 echo "${ECHO_T}no, using $LN_S" >&6; }
6902 # Extract the first word of "cmp", so it can be a program name with args.
6903 set dummy cmp; 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_CMP+set}" = set; then
6907 echo $ECHO_N "(cached) $ECHO_C" >&6
6908 else
6909 case $CMP in
6910 [\\/]* | ?:[\\/]*)
6911 ac_cv_path_CMP="$CMP" # 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_CMP="$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_CMP" && ac_cv_path_CMP="cmp"
6931 esac
6933 CMP=$ac_cv_path_CMP
6934 if test -n "$CMP"; then
6935 { echo "$as_me:$LINENO: result: $CMP" >&5
6936 echo "${ECHO_T}$CMP" >&6; }
6937 else
6938 { echo "$as_me:$LINENO: result: no" >&5
6939 echo "${ECHO_T}no" >&6; }
6943 # Extract the first word of "cp", so it can be a program name with args.
6944 set dummy cp; 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_CP+set}" = set; then
6948 echo $ECHO_N "(cached) $ECHO_C" >&6
6949 else
6950 case $CP in
6951 [\\/]* | ?:[\\/]*)
6952 ac_cv_path_CP="$CP" # 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_CP="$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_CP" && ac_cv_path_CP="cp"
6972 esac
6974 CP=$ac_cv_path_CP
6975 if test -n "$CP"; then
6976 { echo "$as_me:$LINENO: result: $CP" >&5
6977 echo "${ECHO_T}$CP" >&6; }
6978 else
6979 { echo "$as_me:$LINENO: result: no" >&5
6980 echo "${ECHO_T}no" >&6; }
6984 # Extract the first word of "date", so it can be a program name with args.
6985 set dummy date; 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_DATE+set}" = set; then
6989 echo $ECHO_N "(cached) $ECHO_C" >&6
6990 else
6991 case $DATE in
6992 [\\/]* | ?:[\\/]*)
6993 ac_cv_path_DATE="$DATE" # 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_DATE="$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_DATE" && ac_cv_path_DATE="date"
7013 esac
7015 DATE=$ac_cv_path_DATE
7016 if test -n "$DATE"; then
7017 { echo "$as_me:$LINENO: result: $DATE" >&5
7018 echo "${ECHO_T}$DATE" >&6; }
7019 else
7020 { echo "$as_me:$LINENO: result: no" >&5
7021 echo "${ECHO_T}no" >&6; }
7025 # Extract the first word of "find", so it can be a program name with args.
7026 set dummy find; 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_FIND+set}" = set; then
7030 echo $ECHO_N "(cached) $ECHO_C" >&6
7031 else
7032 case $FIND in
7033 [\\/]* | ?:[\\/]*)
7034 ac_cv_path_FIND="$FIND" # 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_FIND="$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_FIND" && ac_cv_path_FIND="find"
7054 esac
7056 FIND=$ac_cv_path_FIND
7057 if test -n "$FIND"; then
7058 { echo "$as_me:$LINENO: result: $FIND" >&5
7059 echo "${ECHO_T}$FIND" >&6; }
7060 else
7061 { echo "$as_me:$LINENO: result: no" >&5
7062 echo "${ECHO_T}no" >&6; }
7066 # Extract the first word of "grep", so it can be a program name with args.
7067 set dummy grep; 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_GREP+set}" = set; then
7071 echo $ECHO_N "(cached) $ECHO_C" >&6
7072 else
7073 case $GREP in
7074 [\\/]* | ?:[\\/]*)
7075 ac_cv_path_GREP="$GREP" # 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_GREP="$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_GREP" && ac_cv_path_GREP="grep"
7095 esac
7097 GREP=$ac_cv_path_GREP
7098 if test -n "$GREP"; then
7099 { echo "$as_me:$LINENO: result: $GREP" >&5
7100 echo "${ECHO_T}$GREP" >&6; }
7101 else
7102 { echo "$as_me:$LINENO: result: no" >&5
7103 echo "${ECHO_T}no" >&6; }
7107 # Extract the first word of "mkdir", so it can be a program name with args.
7108 set dummy mkdir; 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_MKDIR+set}" = set; then
7112 echo $ECHO_N "(cached) $ECHO_C" >&6
7113 else
7114 case $MKDIR in
7115 [\\/]* | ?:[\\/]*)
7116 ac_cv_path_MKDIR="$MKDIR" # 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_MKDIR="$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_MKDIR" && ac_cv_path_MKDIR="mkdir"
7136 esac
7138 MKDIR=$ac_cv_path_MKDIR
7139 if test -n "$MKDIR"; then
7140 { echo "$as_me:$LINENO: result: $MKDIR" >&5
7141 echo "${ECHO_T}$MKDIR" >&6; }
7142 else
7143 { echo "$as_me:$LINENO: result: no" >&5
7144 echo "${ECHO_T}no" >&6; }
7148 # Extract the first word of "mv", so it can be a program name with args.
7149 set dummy mv; ac_word=$2
7150 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7152 if test "${ac_cv_path_MV+set}" = set; then
7153 echo $ECHO_N "(cached) $ECHO_C" >&6
7154 else
7155 case $MV in
7156 [\\/]* | ?:[\\/]*)
7157 ac_cv_path_MV="$MV" # Let the user override the test with a path.
7160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7161 for as_dir in $PATH
7163 IFS=$as_save_IFS
7164 test -z "$as_dir" && as_dir=.
7165 for ac_exec_ext in '' $ac_executable_extensions; do
7166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7167 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
7168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7169 break 2
7171 done
7172 done
7173 IFS=$as_save_IFS
7175 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7177 esac
7179 MV=$ac_cv_path_MV
7180 if test -n "$MV"; then
7181 { echo "$as_me:$LINENO: result: $MV" >&5
7182 echo "${ECHO_T}$MV" >&6; }
7183 else
7184 { echo "$as_me:$LINENO: result: no" >&5
7185 echo "${ECHO_T}no" >&6; }
7189 if test -n "$ac_tool_prefix"; then
7190 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7191 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7192 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7194 if test "${ac_cv_prog_RANLIB+set}" = set; then
7195 echo $ECHO_N "(cached) $ECHO_C" >&6
7196 else
7197 if test -n "$RANLIB"; then
7198 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7199 else
7200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7201 for as_dir in $PATH
7203 IFS=$as_save_IFS
7204 test -z "$as_dir" && as_dir=.
7205 for ac_exec_ext in '' $ac_executable_extensions; do
7206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7207 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7209 break 2
7211 done
7212 done
7213 IFS=$as_save_IFS
7217 RANLIB=$ac_cv_prog_RANLIB
7218 if test -n "$RANLIB"; then
7219 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7220 echo "${ECHO_T}$RANLIB" >&6; }
7221 else
7222 { echo "$as_me:$LINENO: result: no" >&5
7223 echo "${ECHO_T}no" >&6; }
7228 if test -z "$ac_cv_prog_RANLIB"; then
7229 ac_ct_RANLIB=$RANLIB
7230 # Extract the first word of "ranlib", so it can be a program name with args.
7231 set dummy ranlib; ac_word=$2
7232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7234 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7235 echo $ECHO_N "(cached) $ECHO_C" >&6
7236 else
7237 if test -n "$ac_ct_RANLIB"; then
7238 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7239 else
7240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7241 for as_dir in $PATH
7243 IFS=$as_save_IFS
7244 test -z "$as_dir" && as_dir=.
7245 for ac_exec_ext in '' $ac_executable_extensions; do
7246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7247 ac_cv_prog_ac_ct_RANLIB="ranlib"
7248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7249 break 2
7251 done
7252 done
7253 IFS=$as_save_IFS
7257 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7258 if test -n "$ac_ct_RANLIB"; then
7259 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7260 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7261 else
7262 { echo "$as_me:$LINENO: result: no" >&5
7263 echo "${ECHO_T}no" >&6; }
7266 if test "x$ac_ct_RANLIB" = x; then
7267 RANLIB=":"
7268 else
7269 case $cross_compiling:$ac_tool_warned in
7270 yes:)
7271 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7272 whose name does not start with the host triplet. If you think this
7273 configuration is useful to you, please write to autoconf@gnu.org." >&5
7274 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7275 whose name does not start with the host triplet. If you think this
7276 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7277 ac_tool_warned=yes ;;
7278 esac
7279 RANLIB=$ac_ct_RANLIB
7281 else
7282 RANLIB="$ac_cv_prog_RANLIB"
7285 if test -n "$ac_tool_prefix"; then
7286 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7287 set dummy ${ac_tool_prefix}ar; ac_word=$2
7288 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7290 if test "${ac_cv_prog_AR+set}" = set; then
7291 echo $ECHO_N "(cached) $ECHO_C" >&6
7292 else
7293 if test -n "$AR"; then
7294 ac_cv_prog_AR="$AR" # Let the user override the test.
7295 else
7296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7297 for as_dir in $PATH
7299 IFS=$as_save_IFS
7300 test -z "$as_dir" && as_dir=.
7301 for ac_exec_ext in '' $ac_executable_extensions; do
7302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7303 ac_cv_prog_AR="${ac_tool_prefix}ar"
7304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7305 break 2
7307 done
7308 done
7309 IFS=$as_save_IFS
7313 AR=$ac_cv_prog_AR
7314 if test -n "$AR"; then
7315 { echo "$as_me:$LINENO: result: $AR" >&5
7316 echo "${ECHO_T}$AR" >&6; }
7317 else
7318 { echo "$as_me:$LINENO: result: no" >&5
7319 echo "${ECHO_T}no" >&6; }
7324 if test -z "$ac_cv_prog_AR"; then
7325 ac_ct_AR=$AR
7326 # Extract the first word of "ar", so it can be a program name with args.
7327 set dummy ar; ac_word=$2
7328 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7330 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7331 echo $ECHO_N "(cached) $ECHO_C" >&6
7332 else
7333 if test -n "$ac_ct_AR"; then
7334 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7335 else
7336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7337 for as_dir in $PATH
7339 IFS=$as_save_IFS
7340 test -z "$as_dir" && as_dir=.
7341 for ac_exec_ext in '' $ac_executable_extensions; do
7342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7343 ac_cv_prog_ac_ct_AR="ar"
7344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7345 break 2
7347 done
7348 done
7349 IFS=$as_save_IFS
7353 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7354 if test -n "$ac_ct_AR"; then
7355 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7356 echo "${ECHO_T}$ac_ct_AR" >&6; }
7357 else
7358 { echo "$as_me:$LINENO: result: no" >&5
7359 echo "${ECHO_T}no" >&6; }
7362 if test "x$ac_ct_AR" = x; then
7363 AR="false"
7364 else
7365 case $cross_compiling:$ac_tool_warned in
7366 yes:)
7367 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7368 whose name does not start with the host triplet. If you think this
7369 configuration is useful to you, please write to autoconf@gnu.org." >&5
7370 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7371 whose name does not start with the host triplet. If you think this
7372 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7373 ac_tool_warned=yes ;;
7374 esac
7375 AR=$ac_ct_AR
7377 else
7378 AR="$ac_cv_prog_AR"
7381 # Extract the first word of "rm", so it can be a program name with args.
7382 set dummy rm; 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_RM+set}" = set; then
7386 echo $ECHO_N "(cached) $ECHO_C" >&6
7387 else
7388 case $RM in
7389 [\\/]* | ?:[\\/]*)
7390 ac_cv_path_RM="$RM" # 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_RM="$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_RM" && ac_cv_path_RM="rm"
7410 esac
7412 RM=$ac_cv_path_RM
7413 if test -n "$RM"; then
7414 { echo "$as_me:$LINENO: result: $RM" >&5
7415 echo "${ECHO_T}$RM" >&6; }
7416 else
7417 { echo "$as_me:$LINENO: result: no" >&5
7418 echo "${ECHO_T}no" >&6; }
7422 # Extract the first word of "sed", so it can be a program name with args.
7423 set dummy sed; 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_SED+set}" = set; then
7427 echo $ECHO_N "(cached) $ECHO_C" >&6
7428 else
7429 case $SED in
7430 [\\/]* | ?:[\\/]*)
7431 ac_cv_path_SED="$SED" # 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_SED="$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_SED" && ac_cv_path_SED="sed"
7451 esac
7453 SED=$ac_cv_path_SED
7454 if test -n "$SED"; then
7455 { echo "$as_me:$LINENO: result: $SED" >&5
7456 echo "${ECHO_T}$SED" >&6; }
7457 else
7458 { echo "$as_me:$LINENO: result: no" >&5
7459 echo "${ECHO_T}no" >&6; }
7463 # Extract the first word of "tar", so it can be a program name with args.
7464 set dummy tar; 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_TAR+set}" = set; then
7468 echo $ECHO_N "(cached) $ECHO_C" >&6
7469 else
7470 case $TAR in
7471 [\\/]* | ?:[\\/]*)
7472 ac_cv_path_TAR="$TAR" # 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_TAR="$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_TAR" && ac_cv_path_TAR="gtar"
7492 esac
7494 TAR=$ac_cv_path_TAR
7495 if test -n "$TAR"; then
7496 { echo "$as_me:$LINENO: result: $TAR" >&5
7497 echo "${ECHO_T}$TAR" >&6; }
7498 else
7499 { echo "$as_me:$LINENO: result: no" >&5
7500 echo "${ECHO_T}no" >&6; }
7504 # Extract the first word of "pwd", so it can be a program name with args.
7505 set dummy pwd; ac_word=$2
7506 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7508 if test "${ac_cv_path_BINPWD+set}" = set; then
7509 echo $ECHO_N "(cached) $ECHO_C" >&6
7510 else
7511 case $BINPWD in
7512 [\\/]* | ?:[\\/]*)
7513 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7517 for as_dir in $PATH
7519 IFS=$as_save_IFS
7520 test -z "$as_dir" && as_dir=.
7521 for ac_exec_ext in '' $ac_executable_extensions; do
7522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7523 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7525 break 2
7527 done
7528 done
7529 IFS=$as_save_IFS
7531 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7533 esac
7535 BINPWD=$ac_cv_path_BINPWD
7536 if test -n "$BINPWD"; then
7537 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7538 echo "${ECHO_T}$BINPWD" >&6; }
7539 else
7540 { echo "$as_me:$LINENO: result: no" >&5
7541 echo "${ECHO_T}no" >&6; }
7546 # Extract the first word of "Graphviz", so it can be a program name with args.
7547 set dummy Graphviz; ac_word=$2
7548 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7550 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7551 echo $ECHO_N "(cached) $ECHO_C" >&6
7552 else
7553 case $GRAPHVIZ in
7554 [\\/]* | ?:[\\/]*)
7555 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7559 for as_dir in $PATH
7561 IFS=$as_save_IFS
7562 test -z "$as_dir" && as_dir=.
7563 for ac_exec_ext in '' $ac_executable_extensions; do
7564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7565 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7567 break 2
7569 done
7570 done
7571 IFS=$as_save_IFS
7573 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7575 esac
7577 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7578 if test -n "$GRAPHVIZ"; then
7579 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7580 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7581 else
7582 { echo "$as_me:$LINENO: result: no" >&5
7583 echo "${ECHO_T}no" >&6; }
7587 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7589 cat >>confdefs.h <<\_ACEOF
7590 #define HAVE_GRAPHVIZ 1
7591 _ACEOF
7593 if test "$llvm_cv_os_type" = "MingW" ; then
7594 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7597 cat >>confdefs.h <<_ACEOF
7598 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7599 _ACEOF
7602 # Extract the first word of "dot", so it can be a program name with args.
7603 set dummy dot; ac_word=$2
7604 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7606 if test "${ac_cv_path_DOT+set}" = set; then
7607 echo $ECHO_N "(cached) $ECHO_C" >&6
7608 else
7609 case $DOT in
7610 [\\/]* | ?:[\\/]*)
7611 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7615 for as_dir in $PATH
7617 IFS=$as_save_IFS
7618 test -z "$as_dir" && as_dir=.
7619 for ac_exec_ext in '' $ac_executable_extensions; do
7620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7621 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7623 break 2
7625 done
7626 done
7627 IFS=$as_save_IFS
7629 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7631 esac
7633 DOT=$ac_cv_path_DOT
7634 if test -n "$DOT"; then
7635 { echo "$as_me:$LINENO: result: $DOT" >&5
7636 echo "${ECHO_T}$DOT" >&6; }
7637 else
7638 { echo "$as_me:$LINENO: result: no" >&5
7639 echo "${ECHO_T}no" >&6; }
7643 if test "$DOT" != "echo dot" ; then
7645 cat >>confdefs.h <<\_ACEOF
7646 #define HAVE_DOT 1
7647 _ACEOF
7649 if test "$llvm_cv_os_type" = "MingW" ; then
7650 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7653 cat >>confdefs.h <<_ACEOF
7654 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7655 _ACEOF
7658 # Extract the first word of "fdp", so it can be a program name with args.
7659 set dummy fdp; ac_word=$2
7660 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7662 if test "${ac_cv_path_FDP+set}" = set; then
7663 echo $ECHO_N "(cached) $ECHO_C" >&6
7664 else
7665 case $FDP in
7666 [\\/]* | ?:[\\/]*)
7667 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7671 for as_dir in $PATH
7673 IFS=$as_save_IFS
7674 test -z "$as_dir" && as_dir=.
7675 for ac_exec_ext in '' $ac_executable_extensions; do
7676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7677 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7679 break 2
7681 done
7682 done
7683 IFS=$as_save_IFS
7685 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7687 esac
7689 FDP=$ac_cv_path_FDP
7690 if test -n "$FDP"; then
7691 { echo "$as_me:$LINENO: result: $FDP" >&5
7692 echo "${ECHO_T}$FDP" >&6; }
7693 else
7694 { echo "$as_me:$LINENO: result: no" >&5
7695 echo "${ECHO_T}no" >&6; }
7699 if test "$FDP" != "echo fdp" ; then
7701 cat >>confdefs.h <<\_ACEOF
7702 #define HAVE_FDP 1
7703 _ACEOF
7705 if test "$llvm_cv_os_type" = "MingW" ; then
7706 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7709 cat >>confdefs.h <<_ACEOF
7710 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7711 _ACEOF
7714 # Extract the first word of "neato", so it can be a program name with args.
7715 set dummy neato; ac_word=$2
7716 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7718 if test "${ac_cv_path_NEATO+set}" = set; then
7719 echo $ECHO_N "(cached) $ECHO_C" >&6
7720 else
7721 case $NEATO in
7722 [\\/]* | ?:[\\/]*)
7723 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7727 for as_dir in $PATH
7729 IFS=$as_save_IFS
7730 test -z "$as_dir" && as_dir=.
7731 for ac_exec_ext in '' $ac_executable_extensions; do
7732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7733 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7735 break 2
7737 done
7738 done
7739 IFS=$as_save_IFS
7741 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7743 esac
7745 NEATO=$ac_cv_path_NEATO
7746 if test -n "$NEATO"; then
7747 { echo "$as_me:$LINENO: result: $NEATO" >&5
7748 echo "${ECHO_T}$NEATO" >&6; }
7749 else
7750 { echo "$as_me:$LINENO: result: no" >&5
7751 echo "${ECHO_T}no" >&6; }
7755 if test "$NEATO" != "echo neato" ; then
7757 cat >>confdefs.h <<\_ACEOF
7758 #define HAVE_NEATO 1
7759 _ACEOF
7761 if test "$llvm_cv_os_type" = "MingW" ; then
7762 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7765 cat >>confdefs.h <<_ACEOF
7766 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7767 _ACEOF
7770 # Extract the first word of "twopi", so it can be a program name with args.
7771 set dummy twopi; ac_word=$2
7772 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7774 if test "${ac_cv_path_TWOPI+set}" = set; then
7775 echo $ECHO_N "(cached) $ECHO_C" >&6
7776 else
7777 case $TWOPI in
7778 [\\/]* | ?:[\\/]*)
7779 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7783 for as_dir in $PATH
7785 IFS=$as_save_IFS
7786 test -z "$as_dir" && as_dir=.
7787 for ac_exec_ext in '' $ac_executable_extensions; do
7788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7789 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7791 break 2
7793 done
7794 done
7795 IFS=$as_save_IFS
7797 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7799 esac
7801 TWOPI=$ac_cv_path_TWOPI
7802 if test -n "$TWOPI"; then
7803 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7804 echo "${ECHO_T}$TWOPI" >&6; }
7805 else
7806 { echo "$as_me:$LINENO: result: no" >&5
7807 echo "${ECHO_T}no" >&6; }
7811 if test "$TWOPI" != "echo twopi" ; then
7813 cat >>confdefs.h <<\_ACEOF
7814 #define HAVE_TWOPI 1
7815 _ACEOF
7817 if test "$llvm_cv_os_type" = "MingW" ; then
7818 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7821 cat >>confdefs.h <<_ACEOF
7822 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7823 _ACEOF
7826 # Extract the first word of "circo", so it can be a program name with args.
7827 set dummy circo; ac_word=$2
7828 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7830 if test "${ac_cv_path_CIRCO+set}" = set; then
7831 echo $ECHO_N "(cached) $ECHO_C" >&6
7832 else
7833 case $CIRCO in
7834 [\\/]* | ?:[\\/]*)
7835 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7839 for as_dir in $PATH
7841 IFS=$as_save_IFS
7842 test -z "$as_dir" && as_dir=.
7843 for ac_exec_ext in '' $ac_executable_extensions; do
7844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7845 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7847 break 2
7849 done
7850 done
7851 IFS=$as_save_IFS
7853 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7855 esac
7857 CIRCO=$ac_cv_path_CIRCO
7858 if test -n "$CIRCO"; then
7859 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7860 echo "${ECHO_T}$CIRCO" >&6; }
7861 else
7862 { echo "$as_me:$LINENO: result: no" >&5
7863 echo "${ECHO_T}no" >&6; }
7867 if test "$CIRCO" != "echo circo" ; then
7869 cat >>confdefs.h <<\_ACEOF
7870 #define HAVE_CIRCO 1
7871 _ACEOF
7873 if test "$llvm_cv_os_type" = "MingW" ; then
7874 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7877 cat >>confdefs.h <<_ACEOF
7878 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7879 _ACEOF
7882 for ac_prog in gv gsview32
7884 # Extract the first word of "$ac_prog", so it can be a program name with args.
7885 set dummy $ac_prog; ac_word=$2
7886 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7888 if test "${ac_cv_path_GV+set}" = set; then
7889 echo $ECHO_N "(cached) $ECHO_C" >&6
7890 else
7891 case $GV in
7892 [\\/]* | ?:[\\/]*)
7893 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7897 for as_dir in $PATH
7899 IFS=$as_save_IFS
7900 test -z "$as_dir" && as_dir=.
7901 for ac_exec_ext in '' $ac_executable_extensions; do
7902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7903 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7905 break 2
7907 done
7908 done
7909 IFS=$as_save_IFS
7912 esac
7914 GV=$ac_cv_path_GV
7915 if test -n "$GV"; then
7916 { echo "$as_me:$LINENO: result: $GV" >&5
7917 echo "${ECHO_T}$GV" >&6; }
7918 else
7919 { echo "$as_me:$LINENO: result: no" >&5
7920 echo "${ECHO_T}no" >&6; }
7924 test -n "$GV" && break
7925 done
7926 test -n "$GV" || GV="echo gv"
7928 if test "$GV" != "echo gv" ; then
7930 cat >>confdefs.h <<\_ACEOF
7931 #define HAVE_GV 1
7932 _ACEOF
7934 if test "$llvm_cv_os_type" = "MingW" ; then
7935 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7938 cat >>confdefs.h <<_ACEOF
7939 #define LLVM_PATH_GV "$GV${EXEEXT}"
7940 _ACEOF
7943 # Extract the first word of "dotty", so it can be a program name with args.
7944 set dummy dotty; ac_word=$2
7945 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7947 if test "${ac_cv_path_DOTTY+set}" = set; then
7948 echo $ECHO_N "(cached) $ECHO_C" >&6
7949 else
7950 case $DOTTY in
7951 [\\/]* | ?:[\\/]*)
7952 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7956 for as_dir in $PATH
7958 IFS=$as_save_IFS
7959 test -z "$as_dir" && as_dir=.
7960 for ac_exec_ext in '' $ac_executable_extensions; do
7961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7962 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7964 break 2
7966 done
7967 done
7968 IFS=$as_save_IFS
7970 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7972 esac
7974 DOTTY=$ac_cv_path_DOTTY
7975 if test -n "$DOTTY"; then
7976 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7977 echo "${ECHO_T}$DOTTY" >&6; }
7978 else
7979 { echo "$as_me:$LINENO: result: no" >&5
7980 echo "${ECHO_T}no" >&6; }
7984 if test "$DOTTY" != "echo dotty" ; then
7986 cat >>confdefs.h <<\_ACEOF
7987 #define HAVE_DOTTY 1
7988 _ACEOF
7990 if test "$llvm_cv_os_type" = "MingW" ; then
7991 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7994 cat >>confdefs.h <<_ACEOF
7995 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7996 _ACEOF
7999 # Extract the first word of "xdot.py", so it can be a program name with args.
8000 set dummy xdot.py; ac_word=$2
8001 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8003 if test "${ac_cv_path_XDOT_PY+set}" = set; then
8004 echo $ECHO_N "(cached) $ECHO_C" >&6
8005 else
8006 case $XDOT_PY in
8007 [\\/]* | ?:[\\/]*)
8008 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
8011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8012 for as_dir in $PATH
8014 IFS=$as_save_IFS
8015 test -z "$as_dir" && as_dir=.
8016 for ac_exec_ext in '' $ac_executable_extensions; do
8017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8018 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
8019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8020 break 2
8022 done
8023 done
8024 IFS=$as_save_IFS
8026 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
8028 esac
8030 XDOT_PY=$ac_cv_path_XDOT_PY
8031 if test -n "$XDOT_PY"; then
8032 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
8033 echo "${ECHO_T}$XDOT_PY" >&6; }
8034 else
8035 { echo "$as_me:$LINENO: result: no" >&5
8036 echo "${ECHO_T}no" >&6; }
8040 if test "$XDOT_PY" != "echo xdot.py" ; then
8042 cat >>confdefs.h <<\_ACEOF
8043 #define HAVE_XDOT_PY 1
8044 _ACEOF
8046 if test "$llvm_cv_os_type" = "MingW" ; then
8047 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
8050 cat >>confdefs.h <<_ACEOF
8051 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
8052 _ACEOF
8057 # Extract the first word of "perl", so it can be a program name with args.
8058 set dummy perl; ac_word=$2
8059 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8061 if test "${ac_cv_path_PERL+set}" = set; then
8062 echo $ECHO_N "(cached) $ECHO_C" >&6
8063 else
8064 case $PERL in
8065 [\\/]* | ?:[\\/]*)
8066 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
8069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8070 for as_dir in $PATH
8072 IFS=$as_save_IFS
8073 test -z "$as_dir" && as_dir=.
8074 for ac_exec_ext in '' $ac_executable_extensions; do
8075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8076 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
8077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8078 break 2
8080 done
8081 done
8082 IFS=$as_save_IFS
8084 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
8086 esac
8088 PERL=$ac_cv_path_PERL
8089 if test -n "$PERL"; then
8090 { echo "$as_me:$LINENO: result: $PERL" >&5
8091 echo "${ECHO_T}$PERL" >&6; }
8092 else
8093 { echo "$as_me:$LINENO: result: no" >&5
8094 echo "${ECHO_T}no" >&6; }
8098 if test "$PERL" != "none"; then
8099 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
8100 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
8101 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
8102 { echo "$as_me:$LINENO: result: yes" >&5
8103 echo "${ECHO_T}yes" >&6; }
8104 else
8105 PERL=none
8106 { echo "$as_me:$LINENO: result: not found" >&5
8107 echo "${ECHO_T}not found" >&6; }
8112 if test x"$PERL" = xnone; then
8113 HAVE_PERL=0
8115 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
8116 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
8117 { (exit 1); exit 1; }; }
8118 else
8119 HAVE_PERL=1
8123 # Find a good install program. We prefer a C program (faster),
8124 # so one script is as good as another. But avoid the broken or
8125 # incompatible versions:
8126 # SysV /etc/install, /usr/sbin/install
8127 # SunOS /usr/etc/install
8128 # IRIX /sbin/install
8129 # AIX /bin/install
8130 # AmigaOS /C/install, which installs bootblocks on floppy discs
8131 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8132 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8133 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8134 # OS/2's system install, which has a completely different semantic
8135 # ./install, which can be erroneously created by make from ./install.sh.
8136 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8137 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
8138 if test -z "$INSTALL"; then
8139 if test "${ac_cv_path_install+set}" = set; then
8140 echo $ECHO_N "(cached) $ECHO_C" >&6
8141 else
8142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8143 for as_dir in $PATH
8145 IFS=$as_save_IFS
8146 test -z "$as_dir" && as_dir=.
8147 # Account for people who put trailing slashes in PATH elements.
8148 case $as_dir/ in
8149 ./ | .// | /cC/* | \
8150 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8151 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8152 /usr/ucb/* ) ;;
8154 # OSF1 and SCO ODT 3.0 have their own names for install.
8155 # Don't use installbsd from OSF since it installs stuff as root
8156 # by default.
8157 for ac_prog in ginstall scoinst install; do
8158 for ac_exec_ext in '' $ac_executable_extensions; do
8159 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
8160 if test $ac_prog = install &&
8161 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8162 # AIX install. It has an incompatible calling convention.
8164 elif test $ac_prog = install &&
8165 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8166 # program-specific install script used by HP pwplus--don't use.
8168 else
8169 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8170 break 3
8173 done
8174 done
8176 esac
8177 done
8178 IFS=$as_save_IFS
8182 if test "${ac_cv_path_install+set}" = set; then
8183 INSTALL=$ac_cv_path_install
8184 else
8185 # As a last resort, use the slow shell script. Don't cache a
8186 # value for INSTALL within a source directory, because that will
8187 # break other packages using the cache if that directory is
8188 # removed, or if the value is a relative name.
8189 INSTALL=$ac_install_sh
8192 { echo "$as_me:$LINENO: result: $INSTALL" >&5
8193 echo "${ECHO_T}$INSTALL" >&6; }
8195 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8196 # It thinks the first close brace ends the variable substitution.
8197 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8199 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8201 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8203 case "$INSTALL" in
8204 [\\/$]* | ?:[\\/]* ) ;;
8205 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
8206 esac
8208 # Extract the first word of "bzip2", so it can be a program name with args.
8209 set dummy bzip2; ac_word=$2
8210 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8212 if test "${ac_cv_path_BZIP2+set}" = set; then
8213 echo $ECHO_N "(cached) $ECHO_C" >&6
8214 else
8215 case $BZIP2 in
8216 [\\/]* | ?:[\\/]*)
8217 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
8220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8221 for as_dir in $PATH
8223 IFS=$as_save_IFS
8224 test -z "$as_dir" && as_dir=.
8225 for ac_exec_ext in '' $ac_executable_extensions; do
8226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8227 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
8228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8229 break 2
8231 done
8232 done
8233 IFS=$as_save_IFS
8236 esac
8238 BZIP2=$ac_cv_path_BZIP2
8239 if test -n "$BZIP2"; then
8240 { echo "$as_me:$LINENO: result: $BZIP2" >&5
8241 echo "${ECHO_T}$BZIP2" >&6; }
8242 else
8243 { echo "$as_me:$LINENO: result: no" >&5
8244 echo "${ECHO_T}no" >&6; }
8248 # Extract the first word of "cat", so it can be a program name with args.
8249 set dummy cat; ac_word=$2
8250 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8252 if test "${ac_cv_path_CAT+set}" = set; then
8253 echo $ECHO_N "(cached) $ECHO_C" >&6
8254 else
8255 case $CAT in
8256 [\\/]* | ?:[\\/]*)
8257 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
8260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8261 for as_dir in $PATH
8263 IFS=$as_save_IFS
8264 test -z "$as_dir" && as_dir=.
8265 for ac_exec_ext in '' $ac_executable_extensions; do
8266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8267 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
8268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8269 break 2
8271 done
8272 done
8273 IFS=$as_save_IFS
8276 esac
8278 CAT=$ac_cv_path_CAT
8279 if test -n "$CAT"; then
8280 { echo "$as_me:$LINENO: result: $CAT" >&5
8281 echo "${ECHO_T}$CAT" >&6; }
8282 else
8283 { echo "$as_me:$LINENO: result: no" >&5
8284 echo "${ECHO_T}no" >&6; }
8288 # Extract the first word of "doxygen", so it can be a program name with args.
8289 set dummy doxygen; ac_word=$2
8290 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8292 if test "${ac_cv_path_DOXYGEN+set}" = set; then
8293 echo $ECHO_N "(cached) $ECHO_C" >&6
8294 else
8295 case $DOXYGEN in
8296 [\\/]* | ?:[\\/]*)
8297 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8301 for as_dir in $PATH
8303 IFS=$as_save_IFS
8304 test -z "$as_dir" && as_dir=.
8305 for ac_exec_ext in '' $ac_executable_extensions; do
8306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8307 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
8308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8309 break 2
8311 done
8312 done
8313 IFS=$as_save_IFS
8316 esac
8318 DOXYGEN=$ac_cv_path_DOXYGEN
8319 if test -n "$DOXYGEN"; then
8320 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8321 echo "${ECHO_T}$DOXYGEN" >&6; }
8322 else
8323 { echo "$as_me:$LINENO: result: no" >&5
8324 echo "${ECHO_T}no" >&6; }
8328 # Extract the first word of "groff", so it can be a program name with args.
8329 set dummy groff; ac_word=$2
8330 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8332 if test "${ac_cv_path_GROFF+set}" = set; then
8333 echo $ECHO_N "(cached) $ECHO_C" >&6
8334 else
8335 case $GROFF in
8336 [\\/]* | ?:[\\/]*)
8337 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8341 for as_dir in $PATH
8343 IFS=$as_save_IFS
8344 test -z "$as_dir" && as_dir=.
8345 for ac_exec_ext in '' $ac_executable_extensions; do
8346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8347 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
8348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8349 break 2
8351 done
8352 done
8353 IFS=$as_save_IFS
8356 esac
8358 GROFF=$ac_cv_path_GROFF
8359 if test -n "$GROFF"; then
8360 { echo "$as_me:$LINENO: result: $GROFF" >&5
8361 echo "${ECHO_T}$GROFF" >&6; }
8362 else
8363 { echo "$as_me:$LINENO: result: no" >&5
8364 echo "${ECHO_T}no" >&6; }
8368 # Extract the first word of "gzip", so it can be a program name with args.
8369 set dummy gzip; ac_word=$2
8370 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8372 if test "${ac_cv_path_GZIPBIN+set}" = set; then
8373 echo $ECHO_N "(cached) $ECHO_C" >&6
8374 else
8375 case $GZIPBIN in
8376 [\\/]* | ?:[\\/]*)
8377 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
8380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8381 for as_dir in $PATH
8383 IFS=$as_save_IFS
8384 test -z "$as_dir" && as_dir=.
8385 for ac_exec_ext in '' $ac_executable_extensions; do
8386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8387 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
8388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8389 break 2
8391 done
8392 done
8393 IFS=$as_save_IFS
8396 esac
8398 GZIPBIN=$ac_cv_path_GZIPBIN
8399 if test -n "$GZIPBIN"; then
8400 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
8401 echo "${ECHO_T}$GZIPBIN" >&6; }
8402 else
8403 { echo "$as_me:$LINENO: result: no" >&5
8404 echo "${ECHO_T}no" >&6; }
8408 # Extract the first word of "pod2html", so it can be a program name with args.
8409 set dummy pod2html; ac_word=$2
8410 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8412 if test "${ac_cv_path_POD2HTML+set}" = set; then
8413 echo $ECHO_N "(cached) $ECHO_C" >&6
8414 else
8415 case $POD2HTML in
8416 [\\/]* | ?:[\\/]*)
8417 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8421 for as_dir in $PATH
8423 IFS=$as_save_IFS
8424 test -z "$as_dir" && as_dir=.
8425 for ac_exec_ext in '' $ac_executable_extensions; do
8426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8427 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8429 break 2
8431 done
8432 done
8433 IFS=$as_save_IFS
8436 esac
8438 POD2HTML=$ac_cv_path_POD2HTML
8439 if test -n "$POD2HTML"; then
8440 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8441 echo "${ECHO_T}$POD2HTML" >&6; }
8442 else
8443 { echo "$as_me:$LINENO: result: no" >&5
8444 echo "${ECHO_T}no" >&6; }
8448 # Extract the first word of "pod2man", so it can be a program name with args.
8449 set dummy pod2man; ac_word=$2
8450 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8452 if test "${ac_cv_path_POD2MAN+set}" = set; then
8453 echo $ECHO_N "(cached) $ECHO_C" >&6
8454 else
8455 case $POD2MAN in
8456 [\\/]* | ?:[\\/]*)
8457 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8461 for as_dir in $PATH
8463 IFS=$as_save_IFS
8464 test -z "$as_dir" && as_dir=.
8465 for ac_exec_ext in '' $ac_executable_extensions; do
8466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8467 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8469 break 2
8471 done
8472 done
8473 IFS=$as_save_IFS
8476 esac
8478 POD2MAN=$ac_cv_path_POD2MAN
8479 if test -n "$POD2MAN"; then
8480 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8481 echo "${ECHO_T}$POD2MAN" >&6; }
8482 else
8483 { echo "$as_me:$LINENO: result: no" >&5
8484 echo "${ECHO_T}no" >&6; }
8488 # Extract the first word of "pdfroff", so it can be a program name with args.
8489 set dummy pdfroff; ac_word=$2
8490 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8492 if test "${ac_cv_path_PDFROFF+set}" = set; then
8493 echo $ECHO_N "(cached) $ECHO_C" >&6
8494 else
8495 case $PDFROFF in
8496 [\\/]* | ?:[\\/]*)
8497 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
8500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8501 for as_dir in $PATH
8503 IFS=$as_save_IFS
8504 test -z "$as_dir" && as_dir=.
8505 for ac_exec_ext in '' $ac_executable_extensions; do
8506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8507 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
8508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8509 break 2
8511 done
8512 done
8513 IFS=$as_save_IFS
8516 esac
8518 PDFROFF=$ac_cv_path_PDFROFF
8519 if test -n "$PDFROFF"; then
8520 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
8521 echo "${ECHO_T}$PDFROFF" >&6; }
8522 else
8523 { echo "$as_me:$LINENO: result: no" >&5
8524 echo "${ECHO_T}no" >&6; }
8528 # Extract the first word of "runtest", so it can be a program name with args.
8529 set dummy runtest; ac_word=$2
8530 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8532 if test "${ac_cv_path_RUNTEST+set}" = set; then
8533 echo $ECHO_N "(cached) $ECHO_C" >&6
8534 else
8535 case $RUNTEST in
8536 [\\/]* | ?:[\\/]*)
8537 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8541 for as_dir in $PATH
8543 IFS=$as_save_IFS
8544 test -z "$as_dir" && as_dir=.
8545 for ac_exec_ext in '' $ac_executable_extensions; do
8546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8547 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8549 break 2
8551 done
8552 done
8553 IFS=$as_save_IFS
8556 esac
8558 RUNTEST=$ac_cv_path_RUNTEST
8559 if test -n "$RUNTEST"; then
8560 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8561 echo "${ECHO_T}$RUNTEST" >&6; }
8562 else
8563 { echo "$as_me:$LINENO: result: no" >&5
8564 echo "${ECHO_T}no" >&6; }
8569 no_itcl=true
8570 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8571 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8573 # Check whether --with-tclinclude was given.
8574 if test "${with_tclinclude+set}" = set; then
8575 withval=$with_tclinclude; with_tclinclude=${withval}
8576 else
8577 with_tclinclude=''
8580 if test "${ac_cv_path_tclsh+set}" = set; then
8581 echo $ECHO_N "(cached) $ECHO_C" >&6
8582 else
8584 if test x"${with_tclinclude}" != x ; then
8585 if test -f ${with_tclinclude}/tclsh ; then
8586 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8587 elif test -f ${with_tclinclude}/src/tclsh ; then
8588 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8589 else
8590 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8591 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8592 { (exit 1); exit 1; }; }
8598 if test x"${ac_cv_path_tclsh}" = x ; then
8599 { echo "$as_me:$LINENO: result: none" >&5
8600 echo "${ECHO_T}none" >&6; }
8601 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
8603 # Extract the first word of "$ac_prog", so it can be a program name with args.
8604 set dummy $ac_prog; ac_word=$2
8605 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8607 if test "${ac_cv_path_TCLSH+set}" = set; then
8608 echo $ECHO_N "(cached) $ECHO_C" >&6
8609 else
8610 case $TCLSH in
8611 [\\/]* | ?:[\\/]*)
8612 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8616 for as_dir in $PATH
8618 IFS=$as_save_IFS
8619 test -z "$as_dir" && as_dir=.
8620 for ac_exec_ext in '' $ac_executable_extensions; do
8621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8622 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8624 break 2
8626 done
8627 done
8628 IFS=$as_save_IFS
8631 esac
8633 TCLSH=$ac_cv_path_TCLSH
8634 if test -n "$TCLSH"; then
8635 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8636 echo "${ECHO_T}$TCLSH" >&6; }
8637 else
8638 { echo "$as_me:$LINENO: result: no" >&5
8639 echo "${ECHO_T}no" >&6; }
8643 test -n "$TCLSH" && break
8644 done
8646 if test x"${TCLSH}" = x ; then
8647 ac_cv_path_tclsh='';
8648 else
8649 ac_cv_path_tclsh="${TCLSH}";
8651 else
8652 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8653 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8654 TCLSH="${ac_cv_path_tclsh}"
8658 # Extract the first word of "zip", so it can be a program name with args.
8659 set dummy zip; ac_word=$2
8660 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8662 if test "${ac_cv_path_ZIP+set}" = set; then
8663 echo $ECHO_N "(cached) $ECHO_C" >&6
8664 else
8665 case $ZIP in
8666 [\\/]* | ?:[\\/]*)
8667 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8671 for as_dir in $PATH
8673 IFS=$as_save_IFS
8674 test -z "$as_dir" && as_dir=.
8675 for ac_exec_ext in '' $ac_executable_extensions; do
8676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8677 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8679 break 2
8681 done
8682 done
8683 IFS=$as_save_IFS
8686 esac
8688 ZIP=$ac_cv_path_ZIP
8689 if test -n "$ZIP"; then
8690 { echo "$as_me:$LINENO: result: $ZIP" >&5
8691 echo "${ECHO_T}$ZIP" >&6; }
8692 else
8693 { echo "$as_me:$LINENO: result: no" >&5
8694 echo "${ECHO_T}no" >&6; }
8698 for ac_prog in ocamlc
8700 # Extract the first word of "$ac_prog", so it can be a program name with args.
8701 set dummy $ac_prog; ac_word=$2
8702 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8704 if test "${ac_cv_path_OCAMLC+set}" = set; then
8705 echo $ECHO_N "(cached) $ECHO_C" >&6
8706 else
8707 case $OCAMLC in
8708 [\\/]* | ?:[\\/]*)
8709 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8713 for as_dir in $PATH
8715 IFS=$as_save_IFS
8716 test -z "$as_dir" && as_dir=.
8717 for ac_exec_ext in '' $ac_executable_extensions; do
8718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8719 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8721 break 2
8723 done
8724 done
8725 IFS=$as_save_IFS
8728 esac
8730 OCAMLC=$ac_cv_path_OCAMLC
8731 if test -n "$OCAMLC"; then
8732 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8733 echo "${ECHO_T}$OCAMLC" >&6; }
8734 else
8735 { echo "$as_me:$LINENO: result: no" >&5
8736 echo "${ECHO_T}no" >&6; }
8740 test -n "$OCAMLC" && break
8741 done
8743 for ac_prog in ocamlopt
8745 # Extract the first word of "$ac_prog", so it can be a program name with args.
8746 set dummy $ac_prog; ac_word=$2
8747 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8749 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8750 echo $ECHO_N "(cached) $ECHO_C" >&6
8751 else
8752 case $OCAMLOPT in
8753 [\\/]* | ?:[\\/]*)
8754 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8758 for as_dir in $PATH
8760 IFS=$as_save_IFS
8761 test -z "$as_dir" && as_dir=.
8762 for ac_exec_ext in '' $ac_executable_extensions; do
8763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8764 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8766 break 2
8768 done
8769 done
8770 IFS=$as_save_IFS
8773 esac
8775 OCAMLOPT=$ac_cv_path_OCAMLOPT
8776 if test -n "$OCAMLOPT"; then
8777 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8778 echo "${ECHO_T}$OCAMLOPT" >&6; }
8779 else
8780 { echo "$as_me:$LINENO: result: no" >&5
8781 echo "${ECHO_T}no" >&6; }
8785 test -n "$OCAMLOPT" && break
8786 done
8788 for ac_prog in ocamldep
8790 # Extract the first word of "$ac_prog", so it can be a program name with args.
8791 set dummy $ac_prog; ac_word=$2
8792 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8794 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8795 echo $ECHO_N "(cached) $ECHO_C" >&6
8796 else
8797 case $OCAMLDEP in
8798 [\\/]* | ?:[\\/]*)
8799 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8803 for as_dir in $PATH
8805 IFS=$as_save_IFS
8806 test -z "$as_dir" && as_dir=.
8807 for ac_exec_ext in '' $ac_executable_extensions; do
8808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8809 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8811 break 2
8813 done
8814 done
8815 IFS=$as_save_IFS
8818 esac
8820 OCAMLDEP=$ac_cv_path_OCAMLDEP
8821 if test -n "$OCAMLDEP"; then
8822 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8823 echo "${ECHO_T}$OCAMLDEP" >&6; }
8824 else
8825 { echo "$as_me:$LINENO: result: no" >&5
8826 echo "${ECHO_T}no" >&6; }
8830 test -n "$OCAMLDEP" && break
8831 done
8833 for ac_prog in ocamldoc
8835 # Extract the first word of "$ac_prog", so it can be a program name with args.
8836 set dummy $ac_prog; ac_word=$2
8837 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8839 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8840 echo $ECHO_N "(cached) $ECHO_C" >&6
8841 else
8842 case $OCAMLDOC in
8843 [\\/]* | ?:[\\/]*)
8844 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8848 for as_dir in $PATH
8850 IFS=$as_save_IFS
8851 test -z "$as_dir" && as_dir=.
8852 for ac_exec_ext in '' $ac_executable_extensions; do
8853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8854 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8856 break 2
8858 done
8859 done
8860 IFS=$as_save_IFS
8863 esac
8865 OCAMLDOC=$ac_cv_path_OCAMLDOC
8866 if test -n "$OCAMLDOC"; then
8867 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8868 echo "${ECHO_T}$OCAMLDOC" >&6; }
8869 else
8870 { echo "$as_me:$LINENO: result: no" >&5
8871 echo "${ECHO_T}no" >&6; }
8875 test -n "$OCAMLDOC" && break
8876 done
8878 for ac_prog in gas as
8880 # Extract the first word of "$ac_prog", so it can be a program name with args.
8881 set dummy $ac_prog; ac_word=$2
8882 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8884 if test "${ac_cv_path_GAS+set}" = set; then
8885 echo $ECHO_N "(cached) $ECHO_C" >&6
8886 else
8887 case $GAS in
8888 [\\/]* | ?:[\\/]*)
8889 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8893 for as_dir in $PATH
8895 IFS=$as_save_IFS
8896 test -z "$as_dir" && as_dir=.
8897 for ac_exec_ext in '' $ac_executable_extensions; do
8898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8899 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8901 break 2
8903 done
8904 done
8905 IFS=$as_save_IFS
8908 esac
8910 GAS=$ac_cv_path_GAS
8911 if test -n "$GAS"; then
8912 { echo "$as_me:$LINENO: result: $GAS" >&5
8913 echo "${ECHO_T}$GAS" >&6; }
8914 else
8915 { echo "$as_me:$LINENO: result: no" >&5
8916 echo "${ECHO_T}no" >&6; }
8920 test -n "$GAS" && break
8921 done
8924 { echo "$as_me:$LINENO: checking for linker version" >&5
8925 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
8926 if test "${llvm_cv_link_version+set}" = set; then
8927 echo $ECHO_N "(cached) $ECHO_C" >&6
8928 else
8930 version_string="$(ld -v 2>&1 | head -1)"
8932 # Check for ld64.
8933 if (echo "$version_string" | grep -q "ld64"); then
8934 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
8935 else
8936 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
8940 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
8941 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
8943 cat >>confdefs.h <<_ACEOF
8944 #define HOST_LINK_VERSION "$llvm_cv_link_version"
8945 _ACEOF
8949 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8950 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8951 if test "${llvm_cv_link_use_r+set}" = set; then
8952 echo $ECHO_N "(cached) $ECHO_C" >&6
8953 else
8954 ac_ext=c
8955 ac_cpp='$CPP $CPPFLAGS'
8956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8960 oldcflags="$CFLAGS"
8961 CFLAGS="$CFLAGS -Wl,-R."
8962 cat >conftest.$ac_ext <<_ACEOF
8963 /* confdefs.h. */
8964 _ACEOF
8965 cat confdefs.h >>conftest.$ac_ext
8966 cat >>conftest.$ac_ext <<_ACEOF
8967 /* end confdefs.h. */
8970 main ()
8974 return 0;
8976 _ACEOF
8977 rm -f conftest.$ac_objext conftest$ac_exeext
8978 if { (ac_try="$ac_link"
8979 case "(($ac_try" in
8980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8981 *) ac_try_echo=$ac_try;;
8982 esac
8983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8984 (eval "$ac_link") 2>conftest.er1
8985 ac_status=$?
8986 grep -v '^ *+' conftest.er1 >conftest.err
8987 rm -f conftest.er1
8988 cat conftest.err >&5
8989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990 (exit $ac_status); } &&
8991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8992 { (case "(($ac_try" in
8993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8994 *) ac_try_echo=$ac_try;;
8995 esac
8996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8997 (eval "$ac_try") 2>&5
8998 ac_status=$?
8999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000 (exit $ac_status); }; } &&
9001 { ac_try='test -s conftest$ac_exeext'
9002 { (case "(($ac_try" in
9003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9004 *) ac_try_echo=$ac_try;;
9005 esac
9006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9007 (eval "$ac_try") 2>&5
9008 ac_status=$?
9009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010 (exit $ac_status); }; }; then
9011 llvm_cv_link_use_r=yes
9012 else
9013 echo "$as_me: failed program was:" >&5
9014 sed 's/^/| /' conftest.$ac_ext >&5
9016 llvm_cv_link_use_r=no
9019 rm -f core conftest.err conftest.$ac_objext \
9020 conftest$ac_exeext conftest.$ac_ext
9021 CFLAGS="$oldcflags"
9022 ac_ext=c
9023 ac_cpp='$CPP $CPPFLAGS'
9024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9030 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
9031 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
9032 if test "$llvm_cv_link_use_r" = yes ; then
9034 cat >>confdefs.h <<\_ACEOF
9035 #define HAVE_LINK_R 1
9036 _ACEOF
9041 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
9042 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
9043 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
9044 echo $ECHO_N "(cached) $ECHO_C" >&6
9045 else
9046 ac_ext=c
9047 ac_cpp='$CPP $CPPFLAGS'
9048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9052 oldcflags="$CFLAGS"
9053 CFLAGS="$CFLAGS -Wl,-export-dynamic"
9054 cat >conftest.$ac_ext <<_ACEOF
9055 /* confdefs.h. */
9056 _ACEOF
9057 cat confdefs.h >>conftest.$ac_ext
9058 cat >>conftest.$ac_ext <<_ACEOF
9059 /* end confdefs.h. */
9062 main ()
9066 return 0;
9068 _ACEOF
9069 rm -f conftest.$ac_objext conftest$ac_exeext
9070 if { (ac_try="$ac_link"
9071 case "(($ac_try" in
9072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9073 *) ac_try_echo=$ac_try;;
9074 esac
9075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9076 (eval "$ac_link") 2>conftest.er1
9077 ac_status=$?
9078 grep -v '^ *+' conftest.er1 >conftest.err
9079 rm -f conftest.er1
9080 cat conftest.err >&5
9081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9082 (exit $ac_status); } &&
9083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9084 { (case "(($ac_try" in
9085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9086 *) ac_try_echo=$ac_try;;
9087 esac
9088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9089 (eval "$ac_try") 2>&5
9090 ac_status=$?
9091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9092 (exit $ac_status); }; } &&
9093 { ac_try='test -s conftest$ac_exeext'
9094 { (case "(($ac_try" in
9095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9096 *) ac_try_echo=$ac_try;;
9097 esac
9098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9099 (eval "$ac_try") 2>&5
9100 ac_status=$?
9101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102 (exit $ac_status); }; }; then
9103 llvm_cv_link_use_export_dynamic=yes
9104 else
9105 echo "$as_me: failed program was:" >&5
9106 sed 's/^/| /' conftest.$ac_ext >&5
9108 llvm_cv_link_use_export_dynamic=no
9111 rm -f core conftest.err conftest.$ac_objext \
9112 conftest$ac_exeext conftest.$ac_ext
9113 CFLAGS="$oldcflags"
9114 ac_ext=c
9115 ac_cpp='$CPP $CPPFLAGS'
9116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9122 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
9123 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
9124 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
9126 cat >>confdefs.h <<\_ACEOF
9127 #define HAVE_LINK_EXPORT_DYNAMIC 1
9128 _ACEOF
9133 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
9134 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
9135 if test "${llvm_cv_link_use_version_script+set}" = set; then
9136 echo $ECHO_N "(cached) $ECHO_C" >&6
9137 else
9138 ac_ext=c
9139 ac_cpp='$CPP $CPPFLAGS'
9140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9144 oldcflags="$CFLAGS"
9146 # The following code is from the autoconf manual,
9147 # "11.13: Limitations of Usual Tools".
9148 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
9149 # Use mktemp if possible; otherwise fall back on mkdir,
9150 # with $RANDOM to make collisions less likely.
9151 : ${TMPDIR=/tmp}
9153 tmp=`
9154 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
9155 ` &&
9156 test -n "$tmp" && test -d "$tmp"
9157 } || {
9158 tmp=$TMPDIR/foo$$-$RANDOM
9159 (umask 077 && mkdir "$tmp")
9160 } || exit $?
9162 echo "{" > "$tmp/export.map"
9163 echo " global: main;" >> "$tmp/export.map"
9164 echo " local: *;" >> "$tmp/export.map"
9165 echo "};" >> "$tmp/export.map"
9167 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
9168 cat >conftest.$ac_ext <<_ACEOF
9169 /* confdefs.h. */
9170 _ACEOF
9171 cat confdefs.h >>conftest.$ac_ext
9172 cat >>conftest.$ac_ext <<_ACEOF
9173 /* end confdefs.h. */
9176 main ()
9180 return 0;
9182 _ACEOF
9183 rm -f conftest.$ac_objext conftest$ac_exeext
9184 if { (ac_try="$ac_link"
9185 case "(($ac_try" in
9186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9187 *) ac_try_echo=$ac_try;;
9188 esac
9189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9190 (eval "$ac_link") 2>conftest.er1
9191 ac_status=$?
9192 grep -v '^ *+' conftest.er1 >conftest.err
9193 rm -f conftest.er1
9194 cat conftest.err >&5
9195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9196 (exit $ac_status); } &&
9197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9198 { (case "(($ac_try" in
9199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9200 *) ac_try_echo=$ac_try;;
9201 esac
9202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9203 (eval "$ac_try") 2>&5
9204 ac_status=$?
9205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206 (exit $ac_status); }; } &&
9207 { ac_try='test -s conftest$ac_exeext'
9208 { (case "(($ac_try" in
9209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9210 *) ac_try_echo=$ac_try;;
9211 esac
9212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9213 (eval "$ac_try") 2>&5
9214 ac_status=$?
9215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9216 (exit $ac_status); }; }; then
9217 llvm_cv_link_use_version_script=yes
9218 else
9219 echo "$as_me: failed program was:" >&5
9220 sed 's/^/| /' conftest.$ac_ext >&5
9222 llvm_cv_link_use_version_script=no
9225 rm -f core conftest.err conftest.$ac_objext \
9226 conftest$ac_exeext conftest.$ac_ext
9227 rm "$tmp/export.map"
9228 rmdir "$tmp"
9229 CFLAGS="$oldcflags"
9230 ac_ext=c
9231 ac_cpp='$CPP $CPPFLAGS'
9232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9238 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
9239 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
9240 if test "$llvm_cv_link_use_version_script" = yes ; then
9241 HAVE_LINK_VERSION_SCRIPT=1
9248 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9249 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9250 if test "${ac_cv_c_const+set}" = set; then
9251 echo $ECHO_N "(cached) $ECHO_C" >&6
9252 else
9253 cat >conftest.$ac_ext <<_ACEOF
9254 /* confdefs.h. */
9255 _ACEOF
9256 cat confdefs.h >>conftest.$ac_ext
9257 cat >>conftest.$ac_ext <<_ACEOF
9258 /* end confdefs.h. */
9261 main ()
9263 /* FIXME: Include the comments suggested by Paul. */
9264 #ifndef __cplusplus
9265 /* Ultrix mips cc rejects this. */
9266 typedef int charset[2];
9267 const charset x;
9268 /* SunOS 4.1.1 cc rejects this. */
9269 char const *const *ccp;
9270 char **p;
9271 /* NEC SVR4.0.2 mips cc rejects this. */
9272 struct point {int x, y;};
9273 static struct point const zero = {0,0};
9274 /* AIX XL C 1.02.0.0 rejects this.
9275 It does not let you subtract one const X* pointer from another in
9276 an arm of an if-expression whose if-part is not a constant
9277 expression */
9278 const char *g = "string";
9279 ccp = &g + (g ? g-g : 0);
9280 /* HPUX 7.0 cc rejects these. */
9281 ++ccp;
9282 p = (char**) ccp;
9283 ccp = (char const *const *) p;
9284 { /* SCO 3.2v4 cc rejects this. */
9285 char *t;
9286 char const *s = 0 ? (char *) 0 : (char const *) 0;
9288 *t++ = 0;
9289 if (s) return 0;
9291 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9292 int x[] = {25, 17};
9293 const int *foo = &x[0];
9294 ++foo;
9296 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9297 typedef const int *iptr;
9298 iptr p = 0;
9299 ++p;
9301 { /* AIX XL C 1.02.0.0 rejects this saying
9302 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9303 struct s { int j; const int *ap[3]; };
9304 struct s *b; b->j = 5;
9306 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9307 const int foo = 10;
9308 if (!foo) return 0;
9310 return !x[0] && !zero.x;
9311 #endif
9314 return 0;
9316 _ACEOF
9317 rm -f conftest.$ac_objext
9318 if { (ac_try="$ac_compile"
9319 case "(($ac_try" in
9320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9321 *) ac_try_echo=$ac_try;;
9322 esac
9323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9324 (eval "$ac_compile") 2>conftest.er1
9325 ac_status=$?
9326 grep -v '^ *+' conftest.er1 >conftest.err
9327 rm -f conftest.er1
9328 cat conftest.err >&5
9329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9330 (exit $ac_status); } &&
9331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9332 { (case "(($ac_try" in
9333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9334 *) ac_try_echo=$ac_try;;
9335 esac
9336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9337 (eval "$ac_try") 2>&5
9338 ac_status=$?
9339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9340 (exit $ac_status); }; } &&
9341 { ac_try='test -s conftest.$ac_objext'
9342 { (case "(($ac_try" in
9343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9344 *) ac_try_echo=$ac_try;;
9345 esac
9346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9347 (eval "$ac_try") 2>&5
9348 ac_status=$?
9349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9350 (exit $ac_status); }; }; then
9351 ac_cv_c_const=yes
9352 else
9353 echo "$as_me: failed program was:" >&5
9354 sed 's/^/| /' conftest.$ac_ext >&5
9356 ac_cv_c_const=no
9359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9361 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9362 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9363 if test $ac_cv_c_const = no; then
9365 cat >>confdefs.h <<\_ACEOF
9366 #define const
9367 _ACEOF
9376 ac_header_dirent=no
9377 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9378 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9379 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9380 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9381 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9382 echo $ECHO_N "(cached) $ECHO_C" >&6
9383 else
9384 cat >conftest.$ac_ext <<_ACEOF
9385 /* confdefs.h. */
9386 _ACEOF
9387 cat confdefs.h >>conftest.$ac_ext
9388 cat >>conftest.$ac_ext <<_ACEOF
9389 /* end confdefs.h. */
9390 #include <sys/types.h>
9391 #include <$ac_hdr>
9394 main ()
9396 if ((DIR *) 0)
9397 return 0;
9399 return 0;
9401 _ACEOF
9402 rm -f conftest.$ac_objext
9403 if { (ac_try="$ac_compile"
9404 case "(($ac_try" in
9405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9406 *) ac_try_echo=$ac_try;;
9407 esac
9408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9409 (eval "$ac_compile") 2>conftest.er1
9410 ac_status=$?
9411 grep -v '^ *+' conftest.er1 >conftest.err
9412 rm -f conftest.er1
9413 cat conftest.err >&5
9414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415 (exit $ac_status); } &&
9416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9417 { (case "(($ac_try" in
9418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9419 *) ac_try_echo=$ac_try;;
9420 esac
9421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9422 (eval "$ac_try") 2>&5
9423 ac_status=$?
9424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9425 (exit $ac_status); }; } &&
9426 { ac_try='test -s conftest.$ac_objext'
9427 { (case "(($ac_try" in
9428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9429 *) ac_try_echo=$ac_try;;
9430 esac
9431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9432 (eval "$ac_try") 2>&5
9433 ac_status=$?
9434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435 (exit $ac_status); }; }; then
9436 eval "$as_ac_Header=yes"
9437 else
9438 echo "$as_me: failed program was:" >&5
9439 sed 's/^/| /' conftest.$ac_ext >&5
9441 eval "$as_ac_Header=no"
9444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9446 ac_res=`eval echo '${'$as_ac_Header'}'`
9447 { echo "$as_me:$LINENO: result: $ac_res" >&5
9448 echo "${ECHO_T}$ac_res" >&6; }
9449 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9450 cat >>confdefs.h <<_ACEOF
9451 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9452 _ACEOF
9454 ac_header_dirent=$ac_hdr; break
9457 done
9458 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9459 if test $ac_header_dirent = dirent.h; then
9460 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9461 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9462 if test "${ac_cv_search_opendir+set}" = set; then
9463 echo $ECHO_N "(cached) $ECHO_C" >&6
9464 else
9465 ac_func_search_save_LIBS=$LIBS
9466 cat >conftest.$ac_ext <<_ACEOF
9467 /* confdefs.h. */
9468 _ACEOF
9469 cat confdefs.h >>conftest.$ac_ext
9470 cat >>conftest.$ac_ext <<_ACEOF
9471 /* end confdefs.h. */
9473 /* Override any GCC internal prototype to avoid an error.
9474 Use char because int might match the return type of a GCC
9475 builtin and then its argument prototype would still apply. */
9476 #ifdef __cplusplus
9477 extern "C"
9478 #endif
9479 char opendir ();
9481 main ()
9483 return opendir ();
9485 return 0;
9487 _ACEOF
9488 for ac_lib in '' dir; do
9489 if test -z "$ac_lib"; then
9490 ac_res="none required"
9491 else
9492 ac_res=-l$ac_lib
9493 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9495 rm -f conftest.$ac_objext conftest$ac_exeext
9496 if { (ac_try="$ac_link"
9497 case "(($ac_try" in
9498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9499 *) ac_try_echo=$ac_try;;
9500 esac
9501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9502 (eval "$ac_link") 2>conftest.er1
9503 ac_status=$?
9504 grep -v '^ *+' conftest.er1 >conftest.err
9505 rm -f conftest.er1
9506 cat conftest.err >&5
9507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9508 (exit $ac_status); } &&
9509 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9510 { (case "(($ac_try" in
9511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9512 *) ac_try_echo=$ac_try;;
9513 esac
9514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9515 (eval "$ac_try") 2>&5
9516 ac_status=$?
9517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9518 (exit $ac_status); }; } &&
9519 { ac_try='test -s conftest$ac_exeext'
9520 { (case "(($ac_try" in
9521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9522 *) ac_try_echo=$ac_try;;
9523 esac
9524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9525 (eval "$ac_try") 2>&5
9526 ac_status=$?
9527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9528 (exit $ac_status); }; }; then
9529 ac_cv_search_opendir=$ac_res
9530 else
9531 echo "$as_me: failed program was:" >&5
9532 sed 's/^/| /' conftest.$ac_ext >&5
9537 rm -f core conftest.err conftest.$ac_objext \
9538 conftest$ac_exeext
9539 if test "${ac_cv_search_opendir+set}" = set; then
9540 break
9542 done
9543 if test "${ac_cv_search_opendir+set}" = set; then
9545 else
9546 ac_cv_search_opendir=no
9548 rm conftest.$ac_ext
9549 LIBS=$ac_func_search_save_LIBS
9551 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9552 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9553 ac_res=$ac_cv_search_opendir
9554 if test "$ac_res" != no; then
9555 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9559 else
9560 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9561 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9562 if test "${ac_cv_search_opendir+set}" = set; then
9563 echo $ECHO_N "(cached) $ECHO_C" >&6
9564 else
9565 ac_func_search_save_LIBS=$LIBS
9566 cat >conftest.$ac_ext <<_ACEOF
9567 /* confdefs.h. */
9568 _ACEOF
9569 cat confdefs.h >>conftest.$ac_ext
9570 cat >>conftest.$ac_ext <<_ACEOF
9571 /* end confdefs.h. */
9573 /* Override any GCC internal prototype to avoid an error.
9574 Use char because int might match the return type of a GCC
9575 builtin and then its argument prototype would still apply. */
9576 #ifdef __cplusplus
9577 extern "C"
9578 #endif
9579 char opendir ();
9581 main ()
9583 return opendir ();
9585 return 0;
9587 _ACEOF
9588 for ac_lib in '' x; do
9589 if test -z "$ac_lib"; then
9590 ac_res="none required"
9591 else
9592 ac_res=-l$ac_lib
9593 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9595 rm -f conftest.$ac_objext conftest$ac_exeext
9596 if { (ac_try="$ac_link"
9597 case "(($ac_try" in
9598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9599 *) ac_try_echo=$ac_try;;
9600 esac
9601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9602 (eval "$ac_link") 2>conftest.er1
9603 ac_status=$?
9604 grep -v '^ *+' conftest.er1 >conftest.err
9605 rm -f conftest.er1
9606 cat conftest.err >&5
9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608 (exit $ac_status); } &&
9609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9610 { (case "(($ac_try" in
9611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9612 *) ac_try_echo=$ac_try;;
9613 esac
9614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9615 (eval "$ac_try") 2>&5
9616 ac_status=$?
9617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618 (exit $ac_status); }; } &&
9619 { ac_try='test -s conftest$ac_exeext'
9620 { (case "(($ac_try" in
9621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9622 *) ac_try_echo=$ac_try;;
9623 esac
9624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9625 (eval "$ac_try") 2>&5
9626 ac_status=$?
9627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9628 (exit $ac_status); }; }; then
9629 ac_cv_search_opendir=$ac_res
9630 else
9631 echo "$as_me: failed program was:" >&5
9632 sed 's/^/| /' conftest.$ac_ext >&5
9637 rm -f core conftest.err conftest.$ac_objext \
9638 conftest$ac_exeext
9639 if test "${ac_cv_search_opendir+set}" = set; then
9640 break
9642 done
9643 if test "${ac_cv_search_opendir+set}" = set; then
9645 else
9646 ac_cv_search_opendir=no
9648 rm conftest.$ac_ext
9649 LIBS=$ac_func_search_save_LIBS
9651 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9652 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9653 ac_res=$ac_cv_search_opendir
9654 if test "$ac_res" != no; then
9655 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9662 for ac_header in dlfcn.h
9664 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9665 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9666 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9667 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9669 echo $ECHO_N "(cached) $ECHO_C" >&6
9671 ac_res=`eval echo '${'$as_ac_Header'}'`
9672 { echo "$as_me:$LINENO: result: $ac_res" >&5
9673 echo "${ECHO_T}$ac_res" >&6; }
9674 else
9675 # Is the header compilable?
9676 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9677 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9678 cat >conftest.$ac_ext <<_ACEOF
9679 /* confdefs.h. */
9680 _ACEOF
9681 cat confdefs.h >>conftest.$ac_ext
9682 cat >>conftest.$ac_ext <<_ACEOF
9683 /* end confdefs.h. */
9684 $ac_includes_default
9685 #include <$ac_header>
9686 _ACEOF
9687 rm -f conftest.$ac_objext
9688 if { (ac_try="$ac_compile"
9689 case "(($ac_try" in
9690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9691 *) ac_try_echo=$ac_try;;
9692 esac
9693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9694 (eval "$ac_compile") 2>conftest.er1
9695 ac_status=$?
9696 grep -v '^ *+' conftest.er1 >conftest.err
9697 rm -f conftest.er1
9698 cat conftest.err >&5
9699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700 (exit $ac_status); } &&
9701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9702 { (case "(($ac_try" in
9703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9704 *) ac_try_echo=$ac_try;;
9705 esac
9706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9707 (eval "$ac_try") 2>&5
9708 ac_status=$?
9709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710 (exit $ac_status); }; } &&
9711 { ac_try='test -s conftest.$ac_objext'
9712 { (case "(($ac_try" in
9713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9714 *) ac_try_echo=$ac_try;;
9715 esac
9716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9717 (eval "$ac_try") 2>&5
9718 ac_status=$?
9719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9720 (exit $ac_status); }; }; then
9721 ac_header_compiler=yes
9722 else
9723 echo "$as_me: failed program was:" >&5
9724 sed 's/^/| /' conftest.$ac_ext >&5
9726 ac_header_compiler=no
9729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9730 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9731 echo "${ECHO_T}$ac_header_compiler" >&6; }
9733 # Is the header present?
9734 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9735 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9736 cat >conftest.$ac_ext <<_ACEOF
9737 /* confdefs.h. */
9738 _ACEOF
9739 cat confdefs.h >>conftest.$ac_ext
9740 cat >>conftest.$ac_ext <<_ACEOF
9741 /* end confdefs.h. */
9742 #include <$ac_header>
9743 _ACEOF
9744 if { (ac_try="$ac_cpp conftest.$ac_ext"
9745 case "(($ac_try" in
9746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9747 *) ac_try_echo=$ac_try;;
9748 esac
9749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9750 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9751 ac_status=$?
9752 grep -v '^ *+' conftest.er1 >conftest.err
9753 rm -f conftest.er1
9754 cat conftest.err >&5
9755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756 (exit $ac_status); } >/dev/null; then
9757 if test -s conftest.err; then
9758 ac_cpp_err=$ac_c_preproc_warn_flag
9759 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9760 else
9761 ac_cpp_err=
9763 else
9764 ac_cpp_err=yes
9766 if test -z "$ac_cpp_err"; then
9767 ac_header_preproc=yes
9768 else
9769 echo "$as_me: failed program was:" >&5
9770 sed 's/^/| /' conftest.$ac_ext >&5
9772 ac_header_preproc=no
9775 rm -f conftest.err conftest.$ac_ext
9776 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9777 echo "${ECHO_T}$ac_header_preproc" >&6; }
9779 # So? What about this header?
9780 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9781 yes:no: )
9782 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9783 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9784 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9785 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9786 ac_header_preproc=yes
9788 no:yes:* )
9789 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9790 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9791 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9792 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9793 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9794 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9795 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9796 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9797 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9798 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9799 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9800 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9801 ( cat <<\_ASBOX
9802 ## ----------------------------------- ##
9803 ## Report this to llvmbugs@cs.uiuc.edu ##
9804 ## ----------------------------------- ##
9805 _ASBOX
9806 ) | sed "s/^/$as_me: WARNING: /" >&2
9808 esac
9809 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9811 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9812 echo $ECHO_N "(cached) $ECHO_C" >&6
9813 else
9814 eval "$as_ac_Header=\$ac_header_preproc"
9816 ac_res=`eval echo '${'$as_ac_Header'}'`
9817 { echo "$as_me:$LINENO: result: $ac_res" >&5
9818 echo "${ECHO_T}$ac_res" >&6; }
9821 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9822 cat >>confdefs.h <<_ACEOF
9823 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9824 _ACEOF
9828 done
9830 # Check whether --enable-ltdl-install was given.
9831 if test "${enable_ltdl_install+set}" = set; then
9832 enableval=$enable_ltdl_install;
9838 if test x"${enable_ltdl_install-no}" != xno; then
9839 INSTALL_LTDL_TRUE=
9840 INSTALL_LTDL_FALSE='#'
9841 else
9842 INSTALL_LTDL_TRUE='#'
9843 INSTALL_LTDL_FALSE=
9848 if test x"${enable_ltdl_convenience-no}" != xno; then
9849 CONVENIENCE_LTDL_TRUE=
9850 CONVENIENCE_LTDL_FALSE='#'
9851 else
9852 CONVENIENCE_LTDL_TRUE='#'
9853 CONVENIENCE_LTDL_FALSE=
9857 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9858 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9859 library_names_spec=
9860 libname_spec='lib$name'
9861 soname_spec=
9862 shrext_cmds=".so"
9863 postinstall_cmds=
9864 postuninstall_cmds=
9865 finish_cmds=
9866 finish_eval=
9867 shlibpath_var=
9868 shlibpath_overrides_runpath=unknown
9869 version_type=none
9870 dynamic_linker="$host_os ld.so"
9871 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9872 if test "$GCC" = yes; then
9873 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9874 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9875 # if the path contains ";" then we assume it to be the separator
9876 # otherwise default to the standard path separator (i.e. ":") - it is
9877 # assumed that no part of a normal pathname contains ";" but that should
9878 # okay in the real world where ";" in dirpaths is itself problematic.
9879 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9880 else
9881 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9883 else
9884 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9886 need_lib_prefix=unknown
9887 hardcode_into_libs=no
9889 # when you set need_version to no, make sure it does not cause -set_version
9890 # flags to be left without arguments
9891 need_version=unknown
9893 case $host_os in
9894 aix3*)
9895 version_type=linux
9896 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9897 shlibpath_var=LIBPATH
9899 # AIX 3 has no versioning support, so we append a major version to the name.
9900 soname_spec='${libname}${release}${shared_ext}$major'
9903 aix4* | aix5*)
9904 version_type=linux
9905 need_lib_prefix=no
9906 need_version=no
9907 hardcode_into_libs=yes
9908 if test "$host_cpu" = ia64; then
9909 # AIX 5 supports IA64
9910 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9911 shlibpath_var=LD_LIBRARY_PATH
9912 else
9913 # With GCC up to 2.95.x, collect2 would create an import file
9914 # for dependence libraries. The import file would start with
9915 # the line `#! .'. This would cause the generated library to
9916 # depend on `.', always an invalid library. This was fixed in
9917 # development snapshots of GCC prior to 3.0.
9918 case $host_os in
9919 aix4 | aix4.[01] | aix4.[01].*)
9920 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9921 echo ' yes '
9922 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9924 else
9925 can_build_shared=no
9928 esac
9929 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9930 # soname into executable. Probably we can add versioning support to
9931 # collect2, so additional links can be useful in future.
9932 if test "$aix_use_runtimelinking" = yes; then
9933 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9934 # instead of lib<name>.a to let people know that these are not
9935 # typical AIX shared libraries.
9936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9937 else
9938 # We preserve .a as extension for shared libraries through AIX4.2
9939 # and later when we are not doing run time linking.
9940 library_names_spec='${libname}${release}.a $libname.a'
9941 soname_spec='${libname}${release}${shared_ext}$major'
9943 shlibpath_var=LIBPATH
9947 amigaos*)
9948 library_names_spec='$libname.ixlibrary $libname.a'
9949 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9950 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'
9953 beos*)
9954 library_names_spec='${libname}${shared_ext}'
9955 dynamic_linker="$host_os ld.so"
9956 shlibpath_var=LIBRARY_PATH
9959 bsdi[45]*)
9960 version_type=linux
9961 need_version=no
9962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9963 soname_spec='${libname}${release}${shared_ext}$major'
9964 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9965 shlibpath_var=LD_LIBRARY_PATH
9966 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9967 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9968 # the default ld.so.conf also contains /usr/contrib/lib and
9969 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9970 # libtool to hard-code these into programs
9973 cygwin* | mingw* | pw32*)
9974 version_type=windows
9975 shrext_cmds=".dll"
9976 need_version=no
9977 need_lib_prefix=no
9979 case $GCC,$host_os in
9980 yes,cygwin* | yes,mingw* | yes,pw32*)
9981 library_names_spec='$libname.dll.a'
9982 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9983 postinstall_cmds='base_file=`basename \${file}`~
9984 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9985 dldir=$destdir/`dirname \$dlpath`~
9986 test -d \$dldir || mkdir -p \$dldir~
9987 $install_prog $dir/$dlname \$dldir/$dlname~
9988 chmod a+x \$dldir/$dlname'
9989 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9990 dlpath=$dir/\$dldll~
9991 $rm \$dlpath'
9992 shlibpath_overrides_runpath=yes
9994 case $host_os in
9995 cygwin*)
9996 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9997 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9998 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10000 mingw*)
10001 # MinGW DLLs use traditional 'lib' prefix
10002 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10003 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10004 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10005 # It is most probably a Windows format PATH printed by
10006 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10007 # path with ; separators, and with drive letters. We can handle the
10008 # drive letters (cygwin fileutils understands them), so leave them,
10009 # especially as we might pass files found there to a mingw objdump,
10010 # which wouldn't understand a cygwinified path. Ahh.
10011 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10012 else
10013 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10016 pw32*)
10017 # pw32 DLLs use 'pw' prefix rather than 'lib'
10018 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10020 esac
10024 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10026 esac
10027 dynamic_linker='Win32 ld.exe'
10028 # FIXME: first we should search . and the directory the executable is in
10029 shlibpath_var=PATH
10032 darwin* | rhapsody*)
10033 dynamic_linker="$host_os dyld"
10034 version_type=darwin
10035 need_lib_prefix=no
10036 need_version=no
10037 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10038 soname_spec='${libname}${release}${major}$shared_ext'
10039 shlibpath_overrides_runpath=yes
10040 shlibpath_var=DYLD_LIBRARY_PATH
10041 shrext_cmds='.dylib'
10042 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10043 if test "$GCC" = yes; then
10044 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"`
10045 else
10046 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10048 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10051 dgux*)
10052 version_type=linux
10053 need_lib_prefix=no
10054 need_version=no
10055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10056 soname_spec='${libname}${release}${shared_ext}$major'
10057 shlibpath_var=LD_LIBRARY_PATH
10060 freebsd1*)
10061 dynamic_linker=no
10064 kfreebsd*-gnu)
10065 version_type=linux
10066 need_lib_prefix=no
10067 need_version=no
10068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10069 soname_spec='${libname}${release}${shared_ext}$major'
10070 shlibpath_var=LD_LIBRARY_PATH
10071 shlibpath_overrides_runpath=no
10072 hardcode_into_libs=yes
10073 dynamic_linker='GNU ld.so'
10076 freebsd* | dragonfly*)
10077 # DragonFly does not have aout. When/if they implement a new
10078 # versioning mechanism, adjust this.
10079 if test -x /usr/bin/objformat; then
10080 objformat=`/usr/bin/objformat`
10081 else
10082 case $host_os in
10083 freebsd[123]*) objformat=aout ;;
10084 *) objformat=elf ;;
10085 esac
10087 version_type=freebsd-$objformat
10088 case $version_type in
10089 freebsd-elf*)
10090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10091 need_version=no
10092 need_lib_prefix=no
10094 freebsd-*)
10095 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10096 need_version=yes
10098 esac
10099 shlibpath_var=LD_LIBRARY_PATH
10100 case $host_os in
10101 freebsd2*)
10102 shlibpath_overrides_runpath=yes
10104 freebsd3.[01]* | freebsdelf3.[01]*)
10105 shlibpath_overrides_runpath=yes
10106 hardcode_into_libs=yes
10108 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10109 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10110 shlibpath_overrides_runpath=no
10111 hardcode_into_libs=yes
10113 freebsd*) # from 4.6 on
10114 shlibpath_overrides_runpath=yes
10115 hardcode_into_libs=yes
10117 esac
10120 gnu*)
10121 version_type=linux
10122 need_lib_prefix=no
10123 need_version=no
10124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10125 soname_spec='${libname}${release}${shared_ext}$major'
10126 shlibpath_var=LD_LIBRARY_PATH
10127 hardcode_into_libs=yes
10130 hpux9* | hpux10* | hpux11*)
10131 # Give a soname corresponding to the major version so that dld.sl refuses to
10132 # link against other versions.
10133 version_type=sunos
10134 need_lib_prefix=no
10135 need_version=no
10136 case $host_cpu in
10137 ia64*)
10138 shrext_cmds='.so'
10139 hardcode_into_libs=yes
10140 dynamic_linker="$host_os dld.so"
10141 shlibpath_var=LD_LIBRARY_PATH
10142 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10144 soname_spec='${libname}${release}${shared_ext}$major'
10145 if test "X$HPUX_IA64_MODE" = X32; then
10146 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10147 else
10148 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10150 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10152 hppa*64*)
10153 shrext_cmds='.sl'
10154 hardcode_into_libs=yes
10155 dynamic_linker="$host_os dld.sl"
10156 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10157 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10159 soname_spec='${libname}${release}${shared_ext}$major'
10160 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10161 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10164 shrext_cmds='.sl'
10165 dynamic_linker="$host_os dld.sl"
10166 shlibpath_var=SHLIB_PATH
10167 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10169 soname_spec='${libname}${release}${shared_ext}$major'
10171 esac
10172 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10173 postinstall_cmds='chmod 555 $lib'
10176 interix3*)
10177 version_type=linux
10178 need_lib_prefix=no
10179 need_version=no
10180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10181 soname_spec='${libname}${release}${shared_ext}$major'
10182 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10183 shlibpath_var=LD_LIBRARY_PATH
10184 shlibpath_overrides_runpath=no
10185 hardcode_into_libs=yes
10188 irix5* | irix6* | nonstopux*)
10189 case $host_os in
10190 nonstopux*) version_type=nonstopux ;;
10192 if test "$lt_cv_prog_gnu_ld" = yes; then
10193 version_type=linux
10194 else
10195 version_type=irix
10196 fi ;;
10197 esac
10198 need_lib_prefix=no
10199 need_version=no
10200 soname_spec='${libname}${release}${shared_ext}$major'
10201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10202 case $host_os in
10203 irix5* | nonstopux*)
10204 libsuff= shlibsuff=
10207 case $LD in # libtool.m4 will add one of these switches to LD
10208 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10209 libsuff= shlibsuff= libmagic=32-bit;;
10210 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10211 libsuff=32 shlibsuff=N32 libmagic=N32;;
10212 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10213 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10214 *) libsuff= shlibsuff= libmagic=never-match;;
10215 esac
10217 esac
10218 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10219 shlibpath_overrides_runpath=no
10220 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10221 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10222 hardcode_into_libs=yes
10225 # No shared lib support for Linux oldld, aout, or coff.
10226 linux*oldld* | linux*aout* | linux*coff*)
10227 dynamic_linker=no
10230 # This must be Linux ELF.
10231 linux*)
10232 version_type=linux
10233 need_lib_prefix=no
10234 need_version=no
10235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10236 soname_spec='${libname}${release}${shared_ext}$major'
10237 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10238 shlibpath_var=LD_LIBRARY_PATH
10239 shlibpath_overrides_runpath=no
10240 # This implies no fast_install, which is unacceptable.
10241 # Some rework will be needed to allow for fast_install
10242 # before this can be enabled.
10243 hardcode_into_libs=yes
10245 # Append ld.so.conf contents to the search path
10246 if test -f /etc/ld.so.conf; then
10247 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' ' '`
10248 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10251 # We used to test for /lib/ld.so.1 and disable shared libraries on
10252 # powerpc, because MkLinux only supported shared libraries with the
10253 # GNU dynamic linker. Since this was broken with cross compilers,
10254 # most powerpc-linux boxes support dynamic linking these days and
10255 # people can always --disable-shared, the test was removed, and we
10256 # assume the GNU/Linux dynamic linker is in use.
10257 dynamic_linker='GNU/Linux ld.so'
10260 knetbsd*-gnu)
10261 version_type=linux
10262 need_lib_prefix=no
10263 need_version=no
10264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10265 soname_spec='${libname}${release}${shared_ext}$major'
10266 shlibpath_var=LD_LIBRARY_PATH
10267 shlibpath_overrides_runpath=no
10268 hardcode_into_libs=yes
10269 dynamic_linker='GNU ld.so'
10272 netbsd*)
10273 version_type=sunos
10274 need_lib_prefix=no
10275 need_version=no
10276 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10278 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10279 dynamic_linker='NetBSD (a.out) ld.so'
10280 else
10281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10282 soname_spec='${libname}${release}${shared_ext}$major'
10283 dynamic_linker='NetBSD ld.elf_so'
10285 shlibpath_var=LD_LIBRARY_PATH
10286 shlibpath_overrides_runpath=yes
10287 hardcode_into_libs=yes
10290 newsos6)
10291 version_type=linux
10292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10293 shlibpath_var=LD_LIBRARY_PATH
10294 shlibpath_overrides_runpath=yes
10297 nto-qnx*)
10298 version_type=linux
10299 need_lib_prefix=no
10300 need_version=no
10301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10302 soname_spec='${libname}${release}${shared_ext}$major'
10303 shlibpath_var=LD_LIBRARY_PATH
10304 shlibpath_overrides_runpath=yes
10307 openbsd*)
10308 version_type=sunos
10309 sys_lib_dlsearch_path_spec="/usr/lib"
10310 need_lib_prefix=no
10311 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10312 case $host_os in
10313 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10314 *) need_version=no ;;
10315 esac
10316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10317 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10318 shlibpath_var=LD_LIBRARY_PATH
10319 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10320 case $host_os in
10321 openbsd2.[89] | openbsd2.[89].*)
10322 shlibpath_overrides_runpath=no
10325 shlibpath_overrides_runpath=yes
10327 esac
10328 else
10329 shlibpath_overrides_runpath=yes
10333 os2*)
10334 libname_spec='$name'
10335 shrext_cmds=".dll"
10336 need_lib_prefix=no
10337 library_names_spec='$libname${shared_ext} $libname.a'
10338 dynamic_linker='OS/2 ld.exe'
10339 shlibpath_var=LIBPATH
10342 osf3* | osf4* | osf5*)
10343 version_type=osf
10344 need_lib_prefix=no
10345 need_version=no
10346 soname_spec='${libname}${release}${shared_ext}$major'
10347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10348 shlibpath_var=LD_LIBRARY_PATH
10349 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10350 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10353 solaris*)
10354 version_type=linux
10355 need_lib_prefix=no
10356 need_version=no
10357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10358 soname_spec='${libname}${release}${shared_ext}$major'
10359 shlibpath_var=LD_LIBRARY_PATH
10360 shlibpath_overrides_runpath=yes
10361 hardcode_into_libs=yes
10362 # ldd complains unless libraries are executable
10363 postinstall_cmds='chmod +x $lib'
10366 sunos4*)
10367 version_type=sunos
10368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10369 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10370 shlibpath_var=LD_LIBRARY_PATH
10371 shlibpath_overrides_runpath=yes
10372 if test "$with_gnu_ld" = yes; then
10373 need_lib_prefix=no
10375 need_version=yes
10378 sysv4 | sysv4.3*)
10379 version_type=linux
10380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10381 soname_spec='${libname}${release}${shared_ext}$major'
10382 shlibpath_var=LD_LIBRARY_PATH
10383 case $host_vendor in
10384 sni)
10385 shlibpath_overrides_runpath=no
10386 need_lib_prefix=no
10387 export_dynamic_flag_spec='${wl}-Blargedynsym'
10388 runpath_var=LD_RUN_PATH
10390 siemens)
10391 need_lib_prefix=no
10393 motorola)
10394 need_lib_prefix=no
10395 need_version=no
10396 shlibpath_overrides_runpath=no
10397 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10399 esac
10402 sysv4*MP*)
10403 if test -d /usr/nec ;then
10404 version_type=linux
10405 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10406 soname_spec='$libname${shared_ext}.$major'
10407 shlibpath_var=LD_LIBRARY_PATH
10411 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10412 version_type=freebsd-elf
10413 need_lib_prefix=no
10414 need_version=no
10415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10416 soname_spec='${libname}${release}${shared_ext}$major'
10417 shlibpath_var=LD_LIBRARY_PATH
10418 hardcode_into_libs=yes
10419 if test "$with_gnu_ld" = yes; then
10420 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10421 shlibpath_overrides_runpath=no
10422 else
10423 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10424 shlibpath_overrides_runpath=yes
10425 case $host_os in
10426 sco3.2v5*)
10427 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10429 esac
10431 sys_lib_dlsearch_path_spec='/usr/lib'
10434 uts4*)
10435 version_type=linux
10436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10437 soname_spec='${libname}${release}${shared_ext}$major'
10438 shlibpath_var=LD_LIBRARY_PATH
10442 dynamic_linker=no
10444 esac
10445 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10446 echo "${ECHO_T}$dynamic_linker" >&6; }
10447 test "$dynamic_linker" = no && can_build_shared=no
10449 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10450 if test "$GCC" = yes; then
10451 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10455 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10456 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10457 if test "${libltdl_cv_shlibext+set}" = set; then
10458 echo $ECHO_N "(cached) $ECHO_C" >&6
10459 else
10461 module=yes
10462 eval libltdl_cv_shlibext=$shrext_cmds
10465 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10466 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
10467 if test -n "$libltdl_cv_shlibext"; then
10469 cat >>confdefs.h <<_ACEOF
10470 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10471 _ACEOF
10476 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10477 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10478 if test "${libltdl_cv_shlibpath_var+set}" = set; then
10479 echo $ECHO_N "(cached) $ECHO_C" >&6
10480 else
10481 libltdl_cv_shlibpath_var="$shlibpath_var"
10483 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10484 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
10485 if test -n "$libltdl_cv_shlibpath_var"; then
10487 cat >>confdefs.h <<_ACEOF
10488 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10489 _ACEOF
10494 { echo "$as_me:$LINENO: checking for the default library search path" >&5
10495 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10496 if test "${libltdl_cv_sys_search_path+set}" = set; then
10497 echo $ECHO_N "(cached) $ECHO_C" >&6
10498 else
10499 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10501 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10502 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
10503 if test -n "$libltdl_cv_sys_search_path"; then
10504 sys_search_path=
10505 for dir in $libltdl_cv_sys_search_path; do
10506 if test -z "$sys_search_path"; then
10507 sys_search_path="$dir"
10508 else
10509 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10511 done
10513 cat >>confdefs.h <<_ACEOF
10514 #define LTDL_SYSSEARCHPATH "$sys_search_path"
10515 _ACEOF
10519 { echo "$as_me:$LINENO: checking for objdir" >&5
10520 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10521 if test "${libltdl_cv_objdir+set}" = set; then
10522 echo $ECHO_N "(cached) $ECHO_C" >&6
10523 else
10524 libltdl_cv_objdir="$objdir"
10525 if test -n "$objdir"; then
10527 else
10528 rm -f .libs 2>/dev/null
10529 mkdir .libs 2>/dev/null
10530 if test -d .libs; then
10531 libltdl_cv_objdir=.libs
10532 else
10533 # MS-DOS does not allow filenames that begin with a dot.
10534 libltdl_cv_objdir=_libs
10536 rmdir .libs 2>/dev/null
10540 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10541 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
10543 cat >>confdefs.h <<_ACEOF
10544 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
10545 _ACEOF
10552 # Check for command to grab the raw symbol name followed by C symbol from nm.
10553 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10554 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10555 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10556 echo $ECHO_N "(cached) $ECHO_C" >&6
10557 else
10559 # These are sane defaults that work on at least a few old systems.
10560 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10562 # Character class describing NM global symbol codes.
10563 symcode='[BCDEGRST]'
10565 # Regexp to match symbols that can be accessed directly from C.
10566 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10568 # Transform an extracted symbol line into a proper C declaration
10569 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10571 # Transform an extracted symbol line into symbol name and symbol address
10572 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'"
10574 # Define system-specific variables.
10575 case $host_os in
10576 aix*)
10577 symcode='[BCDT]'
10579 cygwin* | mingw* | pw32*)
10580 symcode='[ABCDGISTW]'
10582 hpux*) # Its linker distinguishes data from code symbols
10583 if test "$host_cpu" = ia64; then
10584 symcode='[ABCDEGRST]'
10586 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10587 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'"
10589 linux*)
10590 if test "$host_cpu" = ia64; then
10591 symcode='[ABCDGIRSTW]'
10592 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10593 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'"
10596 irix* | nonstopux*)
10597 symcode='[BCDEGRST]'
10599 osf*)
10600 symcode='[BCDEGQRST]'
10602 solaris*)
10603 symcode='[BDRT]'
10605 sco3.2v5*)
10606 symcode='[DT]'
10608 sysv4.2uw2*)
10609 symcode='[DT]'
10611 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10612 symcode='[ABDT]'
10614 sysv4)
10615 symcode='[DFNSTU]'
10617 esac
10619 # Handle CRLF in mingw tool chain
10620 opt_cr=
10621 case $build_os in
10622 mingw*)
10623 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10625 esac
10627 # If we're using GNU nm, then use its standard symbol codes.
10628 case `$NM -V 2>&1` in
10629 *GNU* | *'with BFD'*)
10630 symcode='[ABCDGIRSTW]' ;;
10631 esac
10633 # Try without a prefix undercore, then with it.
10634 for ac_symprfx in "" "_"; do
10636 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10637 symxfrm="\\1 $ac_symprfx\\2 \\2"
10639 # Write the raw and C identifiers.
10640 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10642 # Check to see that the pipe works correctly.
10643 pipe_works=no
10645 rm -f conftest*
10646 cat > conftest.$ac_ext <<EOF
10647 #ifdef __cplusplus
10648 extern "C" {
10649 #endif
10650 char nm_test_var;
10651 void nm_test_func(){}
10652 #ifdef __cplusplus
10654 #endif
10655 int main(){nm_test_var='a';nm_test_func();return(0);}
10658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10659 (eval $ac_compile) 2>&5
10660 ac_status=$?
10661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662 (exit $ac_status); }; then
10663 # Now try to grab the symbols.
10664 nlist=conftest.nm
10665 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10666 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10667 ac_status=$?
10668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10669 (exit $ac_status); } && test -s "$nlist"; then
10670 # Try sorting and uniquifying the output.
10671 if sort "$nlist" | uniq > "$nlist"T; then
10672 mv -f "$nlist"T "$nlist"
10673 else
10674 rm -f "$nlist"T
10677 # Make sure that we snagged all the symbols we need.
10678 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10679 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10680 cat <<EOF > conftest.$ac_ext
10681 #ifdef __cplusplus
10682 extern "C" {
10683 #endif
10686 # Now generate the symbol file.
10687 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10689 cat <<EOF >> conftest.$ac_ext
10690 #if defined (__STDC__) && __STDC__
10691 # define lt_ptr_t void *
10692 #else
10693 # define lt_ptr_t char *
10694 # define const
10695 #endif
10697 /* The mapping between symbol names and symbols. */
10698 const struct {
10699 const char *name;
10700 lt_ptr_t address;
10702 lt_preloaded_symbols[] =
10705 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10706 cat <<\EOF >> conftest.$ac_ext
10707 {0, (lt_ptr_t) 0}
10710 #ifdef __cplusplus
10712 #endif
10714 # Now try linking the two files.
10715 mv conftest.$ac_objext conftstm.$ac_objext
10716 lt_save_LIBS="$LIBS"
10717 lt_save_CFLAGS="$CFLAGS"
10718 LIBS="conftstm.$ac_objext"
10719 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10721 (eval $ac_link) 2>&5
10722 ac_status=$?
10723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10725 pipe_works=yes
10727 LIBS="$lt_save_LIBS"
10728 CFLAGS="$lt_save_CFLAGS"
10729 else
10730 echo "cannot find nm_test_func in $nlist" >&5
10732 else
10733 echo "cannot find nm_test_var in $nlist" >&5
10735 else
10736 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10738 else
10739 echo "$progname: failed program was:" >&5
10740 cat conftest.$ac_ext >&5
10742 rm -f conftest* conftst*
10744 # Do not use the global_symbol_pipe unless it works.
10745 if test "$pipe_works" = yes; then
10746 break
10747 else
10748 lt_cv_sys_global_symbol_pipe=
10750 done
10754 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10755 lt_cv_sys_global_symbol_to_cdecl=
10757 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10758 { echo "$as_me:$LINENO: result: failed" >&5
10759 echo "${ECHO_T}failed" >&6; }
10760 else
10761 { echo "$as_me:$LINENO: result: ok" >&5
10762 echo "${ECHO_T}ok" >&6; }
10766 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10767 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10768 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10769 echo $ECHO_N "(cached) $ECHO_C" >&6
10770 else
10771 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10772 libltdl_cv_preloaded_symbols=yes
10773 else
10774 libltdl_cv_preloaded_symbols=no
10778 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10779 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10780 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10782 cat >>confdefs.h <<\_ACEOF
10783 #define HAVE_PRELOADED_SYMBOLS 1
10784 _ACEOF
10788 LIBADD_DL=
10790 ac_ext=c
10791 ac_cpp='$CPP $CPPFLAGS'
10792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10797 { echo "$as_me:$LINENO: checking for shl_load" >&5
10798 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10799 if test "${ac_cv_func_shl_load+set}" = set; then
10800 echo $ECHO_N "(cached) $ECHO_C" >&6
10801 else
10802 cat >conftest.$ac_ext <<_ACEOF
10803 /* confdefs.h. */
10804 _ACEOF
10805 cat confdefs.h >>conftest.$ac_ext
10806 cat >>conftest.$ac_ext <<_ACEOF
10807 /* end confdefs.h. */
10808 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10809 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10810 #define shl_load innocuous_shl_load
10812 /* System header to define __stub macros and hopefully few prototypes,
10813 which can conflict with char shl_load (); below.
10814 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10815 <limits.h> exists even on freestanding compilers. */
10817 #ifdef __STDC__
10818 # include <limits.h>
10819 #else
10820 # include <assert.h>
10821 #endif
10823 #undef shl_load
10825 /* Override any GCC internal prototype to avoid an error.
10826 Use char because int might match the return type of a GCC
10827 builtin and then its argument prototype would still apply. */
10828 #ifdef __cplusplus
10829 extern "C"
10830 #endif
10831 char shl_load ();
10832 /* The GNU C library defines this for functions which it implements
10833 to always fail with ENOSYS. Some functions are actually named
10834 something starting with __ and the normal name is an alias. */
10835 #if defined __stub_shl_load || defined __stub___shl_load
10836 choke me
10837 #endif
10840 main ()
10842 return shl_load ();
10844 return 0;
10846 _ACEOF
10847 rm -f conftest.$ac_objext conftest$ac_exeext
10848 if { (ac_try="$ac_link"
10849 case "(($ac_try" in
10850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10851 *) ac_try_echo=$ac_try;;
10852 esac
10853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10854 (eval "$ac_link") 2>conftest.er1
10855 ac_status=$?
10856 grep -v '^ *+' conftest.er1 >conftest.err
10857 rm -f conftest.er1
10858 cat conftest.err >&5
10859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10860 (exit $ac_status); } &&
10861 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10862 { (case "(($ac_try" in
10863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10864 *) ac_try_echo=$ac_try;;
10865 esac
10866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10867 (eval "$ac_try") 2>&5
10868 ac_status=$?
10869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870 (exit $ac_status); }; } &&
10871 { ac_try='test -s conftest$ac_exeext'
10872 { (case "(($ac_try" in
10873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10874 *) ac_try_echo=$ac_try;;
10875 esac
10876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10877 (eval "$ac_try") 2>&5
10878 ac_status=$?
10879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10880 (exit $ac_status); }; }; then
10881 ac_cv_func_shl_load=yes
10882 else
10883 echo "$as_me: failed program was:" >&5
10884 sed 's/^/| /' conftest.$ac_ext >&5
10886 ac_cv_func_shl_load=no
10889 rm -f core conftest.err conftest.$ac_objext \
10890 conftest$ac_exeext conftest.$ac_ext
10892 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10893 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10894 if test $ac_cv_func_shl_load = yes; then
10896 cat >>confdefs.h <<\_ACEOF
10897 #define HAVE_SHL_LOAD 1
10898 _ACEOF
10900 else
10901 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10902 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10903 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10904 echo $ECHO_N "(cached) $ECHO_C" >&6
10905 else
10906 ac_check_lib_save_LIBS=$LIBS
10907 LIBS="-ldld $LIBS"
10908 cat >conftest.$ac_ext <<_ACEOF
10909 /* confdefs.h. */
10910 _ACEOF
10911 cat confdefs.h >>conftest.$ac_ext
10912 cat >>conftest.$ac_ext <<_ACEOF
10913 /* end confdefs.h. */
10915 /* Override any GCC internal prototype to avoid an error.
10916 Use char because int might match the return type of a GCC
10917 builtin and then its argument prototype would still apply. */
10918 #ifdef __cplusplus
10919 extern "C"
10920 #endif
10921 char shl_load ();
10923 main ()
10925 return shl_load ();
10927 return 0;
10929 _ACEOF
10930 rm -f conftest.$ac_objext conftest$ac_exeext
10931 if { (ac_try="$ac_link"
10932 case "(($ac_try" in
10933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10934 *) ac_try_echo=$ac_try;;
10935 esac
10936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10937 (eval "$ac_link") 2>conftest.er1
10938 ac_status=$?
10939 grep -v '^ *+' conftest.er1 >conftest.err
10940 rm -f conftest.er1
10941 cat conftest.err >&5
10942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10943 (exit $ac_status); } &&
10944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10945 { (case "(($ac_try" in
10946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10947 *) ac_try_echo=$ac_try;;
10948 esac
10949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10950 (eval "$ac_try") 2>&5
10951 ac_status=$?
10952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953 (exit $ac_status); }; } &&
10954 { ac_try='test -s conftest$ac_exeext'
10955 { (case "(($ac_try" in
10956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10957 *) ac_try_echo=$ac_try;;
10958 esac
10959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10960 (eval "$ac_try") 2>&5
10961 ac_status=$?
10962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10963 (exit $ac_status); }; }; then
10964 ac_cv_lib_dld_shl_load=yes
10965 else
10966 echo "$as_me: failed program was:" >&5
10967 sed 's/^/| /' conftest.$ac_ext >&5
10969 ac_cv_lib_dld_shl_load=no
10972 rm -f core conftest.err conftest.$ac_objext \
10973 conftest$ac_exeext conftest.$ac_ext
10974 LIBS=$ac_check_lib_save_LIBS
10976 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10977 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10978 if test $ac_cv_lib_dld_shl_load = yes; then
10980 cat >>confdefs.h <<\_ACEOF
10981 #define HAVE_SHL_LOAD 1
10982 _ACEOF
10984 LIBADD_DL="$LIBADD_DL -ldld"
10985 else
10986 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10987 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10988 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10989 echo $ECHO_N "(cached) $ECHO_C" >&6
10990 else
10991 ac_check_lib_save_LIBS=$LIBS
10992 LIBS="-ldl $LIBS"
10993 cat >conftest.$ac_ext <<_ACEOF
10994 /* confdefs.h. */
10995 _ACEOF
10996 cat confdefs.h >>conftest.$ac_ext
10997 cat >>conftest.$ac_ext <<_ACEOF
10998 /* end confdefs.h. */
11000 /* Override any GCC internal prototype to avoid an error.
11001 Use char because int might match the return type of a GCC
11002 builtin and then its argument prototype would still apply. */
11003 #ifdef __cplusplus
11004 extern "C"
11005 #endif
11006 char dlopen ();
11008 main ()
11010 return dlopen ();
11012 return 0;
11014 _ACEOF
11015 rm -f conftest.$ac_objext conftest$ac_exeext
11016 if { (ac_try="$ac_link"
11017 case "(($ac_try" in
11018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11019 *) ac_try_echo=$ac_try;;
11020 esac
11021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11022 (eval "$ac_link") 2>conftest.er1
11023 ac_status=$?
11024 grep -v '^ *+' conftest.er1 >conftest.err
11025 rm -f conftest.er1
11026 cat conftest.err >&5
11027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028 (exit $ac_status); } &&
11029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11030 { (case "(($ac_try" in
11031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11032 *) ac_try_echo=$ac_try;;
11033 esac
11034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11035 (eval "$ac_try") 2>&5
11036 ac_status=$?
11037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038 (exit $ac_status); }; } &&
11039 { ac_try='test -s conftest$ac_exeext'
11040 { (case "(($ac_try" in
11041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11042 *) ac_try_echo=$ac_try;;
11043 esac
11044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11045 (eval "$ac_try") 2>&5
11046 ac_status=$?
11047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048 (exit $ac_status); }; }; then
11049 ac_cv_lib_dl_dlopen=yes
11050 else
11051 echo "$as_me: failed program was:" >&5
11052 sed 's/^/| /' conftest.$ac_ext >&5
11054 ac_cv_lib_dl_dlopen=no
11057 rm -f core conftest.err conftest.$ac_objext \
11058 conftest$ac_exeext conftest.$ac_ext
11059 LIBS=$ac_check_lib_save_LIBS
11061 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11062 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11063 if test $ac_cv_lib_dl_dlopen = yes; then
11065 cat >>confdefs.h <<\_ACEOF
11066 #define HAVE_LIBDL 1
11067 _ACEOF
11069 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
11070 else
11071 cat >conftest.$ac_ext <<_ACEOF
11072 /* confdefs.h. */
11073 _ACEOF
11074 cat confdefs.h >>conftest.$ac_ext
11075 cat >>conftest.$ac_ext <<_ACEOF
11076 /* end confdefs.h. */
11077 #if HAVE_DLFCN_H
11078 # include <dlfcn.h>
11079 #endif
11082 main ()
11084 dlopen(0, 0);
11086 return 0;
11088 _ACEOF
11089 rm -f conftest.$ac_objext conftest$ac_exeext
11090 if { (ac_try="$ac_link"
11091 case "(($ac_try" in
11092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11093 *) ac_try_echo=$ac_try;;
11094 esac
11095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11096 (eval "$ac_link") 2>conftest.er1
11097 ac_status=$?
11098 grep -v '^ *+' conftest.er1 >conftest.err
11099 rm -f conftest.er1
11100 cat conftest.err >&5
11101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102 (exit $ac_status); } &&
11103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11104 { (case "(($ac_try" in
11105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11106 *) ac_try_echo=$ac_try;;
11107 esac
11108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11109 (eval "$ac_try") 2>&5
11110 ac_status=$?
11111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112 (exit $ac_status); }; } &&
11113 { ac_try='test -s conftest$ac_exeext'
11114 { (case "(($ac_try" in
11115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11116 *) ac_try_echo=$ac_try;;
11117 esac
11118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11119 (eval "$ac_try") 2>&5
11120 ac_status=$?
11121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11122 (exit $ac_status); }; }; then
11124 cat >>confdefs.h <<\_ACEOF
11125 #define HAVE_LIBDL 1
11126 _ACEOF
11127 libltdl_cv_func_dlopen="yes"
11128 else
11129 echo "$as_me: failed program was:" >&5
11130 sed 's/^/| /' conftest.$ac_ext >&5
11132 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11133 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11134 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11135 echo $ECHO_N "(cached) $ECHO_C" >&6
11136 else
11137 ac_check_lib_save_LIBS=$LIBS
11138 LIBS="-lsvld $LIBS"
11139 cat >conftest.$ac_ext <<_ACEOF
11140 /* confdefs.h. */
11141 _ACEOF
11142 cat confdefs.h >>conftest.$ac_ext
11143 cat >>conftest.$ac_ext <<_ACEOF
11144 /* end confdefs.h. */
11146 /* Override any GCC internal prototype to avoid an error.
11147 Use char because int might match the return type of a GCC
11148 builtin and then its argument prototype would still apply. */
11149 #ifdef __cplusplus
11150 extern "C"
11151 #endif
11152 char dlopen ();
11154 main ()
11156 return dlopen ();
11158 return 0;
11160 _ACEOF
11161 rm -f conftest.$ac_objext conftest$ac_exeext
11162 if { (ac_try="$ac_link"
11163 case "(($ac_try" in
11164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11165 *) ac_try_echo=$ac_try;;
11166 esac
11167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11168 (eval "$ac_link") 2>conftest.er1
11169 ac_status=$?
11170 grep -v '^ *+' conftest.er1 >conftest.err
11171 rm -f conftest.er1
11172 cat conftest.err >&5
11173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11174 (exit $ac_status); } &&
11175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11176 { (case "(($ac_try" in
11177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11178 *) ac_try_echo=$ac_try;;
11179 esac
11180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11181 (eval "$ac_try") 2>&5
11182 ac_status=$?
11183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184 (exit $ac_status); }; } &&
11185 { ac_try='test -s conftest$ac_exeext'
11186 { (case "(($ac_try" in
11187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11188 *) ac_try_echo=$ac_try;;
11189 esac
11190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11191 (eval "$ac_try") 2>&5
11192 ac_status=$?
11193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); }; }; then
11195 ac_cv_lib_svld_dlopen=yes
11196 else
11197 echo "$as_me: failed program was:" >&5
11198 sed 's/^/| /' conftest.$ac_ext >&5
11200 ac_cv_lib_svld_dlopen=no
11203 rm -f core conftest.err conftest.$ac_objext \
11204 conftest$ac_exeext conftest.$ac_ext
11205 LIBS=$ac_check_lib_save_LIBS
11207 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11208 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11209 if test $ac_cv_lib_svld_dlopen = yes; then
11211 cat >>confdefs.h <<\_ACEOF
11212 #define HAVE_LIBDL 1
11213 _ACEOF
11215 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
11216 else
11217 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11218 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11219 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11220 echo $ECHO_N "(cached) $ECHO_C" >&6
11221 else
11222 ac_check_lib_save_LIBS=$LIBS
11223 LIBS="-ldld $LIBS"
11224 cat >conftest.$ac_ext <<_ACEOF
11225 /* confdefs.h. */
11226 _ACEOF
11227 cat confdefs.h >>conftest.$ac_ext
11228 cat >>conftest.$ac_ext <<_ACEOF
11229 /* end confdefs.h. */
11231 /* Override any GCC internal prototype to avoid an error.
11232 Use char because int might match the return type of a GCC
11233 builtin and then its argument prototype would still apply. */
11234 #ifdef __cplusplus
11235 extern "C"
11236 #endif
11237 char dld_link ();
11239 main ()
11241 return dld_link ();
11243 return 0;
11245 _ACEOF
11246 rm -f conftest.$ac_objext conftest$ac_exeext
11247 if { (ac_try="$ac_link"
11248 case "(($ac_try" in
11249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11250 *) ac_try_echo=$ac_try;;
11251 esac
11252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11253 (eval "$ac_link") 2>conftest.er1
11254 ac_status=$?
11255 grep -v '^ *+' conftest.er1 >conftest.err
11256 rm -f conftest.er1
11257 cat conftest.err >&5
11258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259 (exit $ac_status); } &&
11260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11261 { (case "(($ac_try" in
11262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11263 *) ac_try_echo=$ac_try;;
11264 esac
11265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11266 (eval "$ac_try") 2>&5
11267 ac_status=$?
11268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11269 (exit $ac_status); }; } &&
11270 { ac_try='test -s conftest$ac_exeext'
11271 { (case "(($ac_try" in
11272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11273 *) ac_try_echo=$ac_try;;
11274 esac
11275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11276 (eval "$ac_try") 2>&5
11277 ac_status=$?
11278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11279 (exit $ac_status); }; }; then
11280 ac_cv_lib_dld_dld_link=yes
11281 else
11282 echo "$as_me: failed program was:" >&5
11283 sed 's/^/| /' conftest.$ac_ext >&5
11285 ac_cv_lib_dld_dld_link=no
11288 rm -f core conftest.err conftest.$ac_objext \
11289 conftest$ac_exeext conftest.$ac_ext
11290 LIBS=$ac_check_lib_save_LIBS
11292 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11293 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11294 if test $ac_cv_lib_dld_dld_link = yes; then
11296 cat >>confdefs.h <<\_ACEOF
11297 #define HAVE_DLD 1
11298 _ACEOF
11300 LIBADD_DL="$LIBADD_DL -ldld"
11301 else
11302 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11303 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11304 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11305 echo $ECHO_N "(cached) $ECHO_C" >&6
11306 else
11307 cat >conftest.$ac_ext <<_ACEOF
11308 /* confdefs.h. */
11309 _ACEOF
11310 cat confdefs.h >>conftest.$ac_ext
11311 cat >>conftest.$ac_ext <<_ACEOF
11312 /* end confdefs.h. */
11313 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11314 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11315 #define _dyld_func_lookup innocuous__dyld_func_lookup
11317 /* System header to define __stub macros and hopefully few prototypes,
11318 which can conflict with char _dyld_func_lookup (); below.
11319 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11320 <limits.h> exists even on freestanding compilers. */
11322 #ifdef __STDC__
11323 # include <limits.h>
11324 #else
11325 # include <assert.h>
11326 #endif
11328 #undef _dyld_func_lookup
11330 /* Override any GCC internal prototype to avoid an error.
11331 Use char because int might match the return type of a GCC
11332 builtin and then its argument prototype would still apply. */
11333 #ifdef __cplusplus
11334 extern "C"
11335 #endif
11336 char _dyld_func_lookup ();
11337 /* The GNU C library defines this for functions which it implements
11338 to always fail with ENOSYS. Some functions are actually named
11339 something starting with __ and the normal name is an alias. */
11340 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11341 choke me
11342 #endif
11345 main ()
11347 return _dyld_func_lookup ();
11349 return 0;
11351 _ACEOF
11352 rm -f conftest.$ac_objext conftest$ac_exeext
11353 if { (ac_try="$ac_link"
11354 case "(($ac_try" in
11355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11356 *) ac_try_echo=$ac_try;;
11357 esac
11358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11359 (eval "$ac_link") 2>conftest.er1
11360 ac_status=$?
11361 grep -v '^ *+' conftest.er1 >conftest.err
11362 rm -f conftest.er1
11363 cat conftest.err >&5
11364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11365 (exit $ac_status); } &&
11366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11367 { (case "(($ac_try" in
11368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11369 *) ac_try_echo=$ac_try;;
11370 esac
11371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11372 (eval "$ac_try") 2>&5
11373 ac_status=$?
11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); }; } &&
11376 { ac_try='test -s conftest$ac_exeext'
11377 { (case "(($ac_try" in
11378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11379 *) ac_try_echo=$ac_try;;
11380 esac
11381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11382 (eval "$ac_try") 2>&5
11383 ac_status=$?
11384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385 (exit $ac_status); }; }; then
11386 ac_cv_func__dyld_func_lookup=yes
11387 else
11388 echo "$as_me: failed program was:" >&5
11389 sed 's/^/| /' conftest.$ac_ext >&5
11391 ac_cv_func__dyld_func_lookup=no
11394 rm -f core conftest.err conftest.$ac_objext \
11395 conftest$ac_exeext conftest.$ac_ext
11397 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11398 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11399 if test $ac_cv_func__dyld_func_lookup = yes; then
11401 cat >>confdefs.h <<\_ACEOF
11402 #define HAVE_DYLD 1
11403 _ACEOF
11416 rm -f core conftest.err conftest.$ac_objext \
11417 conftest$ac_exeext conftest.$ac_ext
11428 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11429 then
11430 lt_save_LIBS="$LIBS"
11431 LIBS="$LIBS $LIBADD_DL"
11433 for ac_func in dlerror
11435 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11436 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11437 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11438 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11439 echo $ECHO_N "(cached) $ECHO_C" >&6
11440 else
11441 cat >conftest.$ac_ext <<_ACEOF
11442 /* confdefs.h. */
11443 _ACEOF
11444 cat confdefs.h >>conftest.$ac_ext
11445 cat >>conftest.$ac_ext <<_ACEOF
11446 /* end confdefs.h. */
11447 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11448 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11449 #define $ac_func innocuous_$ac_func
11451 /* System header to define __stub macros and hopefully few prototypes,
11452 which can conflict with char $ac_func (); below.
11453 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11454 <limits.h> exists even on freestanding compilers. */
11456 #ifdef __STDC__
11457 # include <limits.h>
11458 #else
11459 # include <assert.h>
11460 #endif
11462 #undef $ac_func
11464 /* Override any GCC internal prototype to avoid an error.
11465 Use char because int might match the return type of a GCC
11466 builtin and then its argument prototype would still apply. */
11467 #ifdef __cplusplus
11468 extern "C"
11469 #endif
11470 char $ac_func ();
11471 /* The GNU C library defines this for functions which it implements
11472 to always fail with ENOSYS. Some functions are actually named
11473 something starting with __ and the normal name is an alias. */
11474 #if defined __stub_$ac_func || defined __stub___$ac_func
11475 choke me
11476 #endif
11479 main ()
11481 return $ac_func ();
11483 return 0;
11485 _ACEOF
11486 rm -f conftest.$ac_objext conftest$ac_exeext
11487 if { (ac_try="$ac_link"
11488 case "(($ac_try" in
11489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11490 *) ac_try_echo=$ac_try;;
11491 esac
11492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11493 (eval "$ac_link") 2>conftest.er1
11494 ac_status=$?
11495 grep -v '^ *+' conftest.er1 >conftest.err
11496 rm -f conftest.er1
11497 cat conftest.err >&5
11498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499 (exit $ac_status); } &&
11500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11501 { (case "(($ac_try" in
11502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11503 *) ac_try_echo=$ac_try;;
11504 esac
11505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11506 (eval "$ac_try") 2>&5
11507 ac_status=$?
11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509 (exit $ac_status); }; } &&
11510 { ac_try='test -s conftest$ac_exeext'
11511 { (case "(($ac_try" in
11512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11513 *) ac_try_echo=$ac_try;;
11514 esac
11515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11516 (eval "$ac_try") 2>&5
11517 ac_status=$?
11518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519 (exit $ac_status); }; }; then
11520 eval "$as_ac_var=yes"
11521 else
11522 echo "$as_me: failed program was:" >&5
11523 sed 's/^/| /' conftest.$ac_ext >&5
11525 eval "$as_ac_var=no"
11528 rm -f core conftest.err conftest.$ac_objext \
11529 conftest$ac_exeext conftest.$ac_ext
11531 ac_res=`eval echo '${'$as_ac_var'}'`
11532 { echo "$as_me:$LINENO: result: $ac_res" >&5
11533 echo "${ECHO_T}$ac_res" >&6; }
11534 if test `eval echo '${'$as_ac_var'}'` = yes; then
11535 cat >>confdefs.h <<_ACEOF
11536 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11537 _ACEOF
11540 done
11542 LIBS="$lt_save_LIBS"
11544 ac_ext=c
11545 ac_cpp='$CPP $CPPFLAGS'
11546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11552 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11553 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11554 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11555 echo $ECHO_N "(cached) $ECHO_C" >&6
11556 else
11557 ac_cv_sys_symbol_underscore=no
11558 cat > conftest.$ac_ext <<EOF
11559 void nm_test_func(){}
11560 int main(){nm_test_func;return 0;}
11562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11563 (eval $ac_compile) 2>&5
11564 ac_status=$?
11565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566 (exit $ac_status); }; then
11567 # Now try to grab the symbols.
11568 ac_nlist=conftest.nm
11569 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11570 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11571 ac_status=$?
11572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573 (exit $ac_status); } && test -s "$ac_nlist"; then
11574 # See whether the symbols have a leading underscore.
11575 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11576 ac_cv_sys_symbol_underscore=yes
11577 else
11578 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11580 else
11581 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11584 else
11585 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11587 else
11588 echo "configure: failed program was:" >&5
11589 cat conftest.c >&5
11591 rm -rf conftest*
11594 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11595 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11598 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11599 if test x"$libltdl_cv_func_dlopen" = xyes ||
11600 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11601 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11602 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11603 if test "${libltdl_cv_need_uscore+set}" = set; then
11604 echo $ECHO_N "(cached) $ECHO_C" >&6
11605 else
11606 libltdl_cv_need_uscore=unknown
11607 save_LIBS="$LIBS"
11608 LIBS="$LIBS $LIBADD_DL"
11609 if test "$cross_compiling" = yes; then :
11610 libltdl_cv_need_uscore=cross
11611 else
11612 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11613 lt_status=$lt_dlunknown
11614 cat > conftest.$ac_ext <<EOF
11615 #line 11621 "configure"
11616 #include "confdefs.h"
11618 #if HAVE_DLFCN_H
11619 #include <dlfcn.h>
11620 #endif
11622 #include <stdio.h>
11624 #ifdef RTLD_GLOBAL
11625 # define LT_DLGLOBAL RTLD_GLOBAL
11626 #else
11627 # ifdef DL_GLOBAL
11628 # define LT_DLGLOBAL DL_GLOBAL
11629 # else
11630 # define LT_DLGLOBAL 0
11631 # endif
11632 #endif
11634 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11635 find out it does not work in some platform. */
11636 #ifndef LT_DLLAZY_OR_NOW
11637 # ifdef RTLD_LAZY
11638 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11639 # else
11640 # ifdef DL_LAZY
11641 # define LT_DLLAZY_OR_NOW DL_LAZY
11642 # else
11643 # ifdef RTLD_NOW
11644 # define LT_DLLAZY_OR_NOW RTLD_NOW
11645 # else
11646 # ifdef DL_NOW
11647 # define LT_DLLAZY_OR_NOW DL_NOW
11648 # else
11649 # define LT_DLLAZY_OR_NOW 0
11650 # endif
11651 # endif
11652 # endif
11653 # endif
11654 #endif
11656 #ifdef __cplusplus
11657 extern "C" void exit (int);
11658 #endif
11660 void fnord() { int i=42;}
11661 int main ()
11663 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11664 int status = $lt_dlunknown;
11666 if (self)
11668 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11669 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11670 /* dlclose (self); */
11672 else
11673 puts (dlerror ());
11675 exit (status);
11678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11679 (eval $ac_link) 2>&5
11680 ac_status=$?
11681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11683 (./conftest; exit; ) >&5 2>/dev/null
11684 lt_status=$?
11685 case x$lt_status in
11686 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11687 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11688 x$lt_dlunknown|x*) ;;
11689 esac
11690 else :
11691 # compilation failed
11695 rm -fr conftest*
11697 LIBS="$save_LIBS"
11700 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11701 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11705 if test x"$libltdl_cv_need_uscore" = xyes; then
11707 cat >>confdefs.h <<\_ACEOF
11708 #define NEED_USCORE 1
11709 _ACEOF
11714 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11715 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11716 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11717 echo $ECHO_N "(cached) $ECHO_C" >&6
11718 else
11719 # PORTME does your system automatically load deplibs for dlopen?
11720 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11721 # For now, we just catch OSes we know something about -- in the
11722 # future, we'll try test this programmatically.
11723 libltdl_cv_sys_dlopen_deplibs=unknown
11724 case "$host_os" in
11725 aix3*|aix4.1.*|aix4.2.*)
11726 # Unknown whether this is true for these versions of AIX, but
11727 # we want this `case' here to explicitly catch those versions.
11728 libltdl_cv_sys_dlopen_deplibs=unknown
11730 aix[45]*)
11731 libltdl_cv_sys_dlopen_deplibs=yes
11733 darwin*)
11734 # Assuming the user has installed a libdl from somewhere, this is true
11735 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11736 libltdl_cv_sys_dlopen_deplibs=yes
11738 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11739 # GNU and its variants, using gnu ld.so (Glibc)
11740 libltdl_cv_sys_dlopen_deplibs=yes
11742 hpux10*|hpux11*)
11743 libltdl_cv_sys_dlopen_deplibs=yes
11745 interix*)
11746 libltdl_cv_sys_dlopen_deplibs=yes
11748 irix[12345]*|irix6.[01]*)
11749 # Catch all versions of IRIX before 6.2, and indicate that we don't
11750 # know how it worked for any of those versions.
11751 libltdl_cv_sys_dlopen_deplibs=unknown
11753 irix*)
11754 # The case above catches anything before 6.2, and it's known that
11755 # at 6.2 and later dlopen does load deplibs.
11756 libltdl_cv_sys_dlopen_deplibs=yes
11758 netbsd*)
11759 libltdl_cv_sys_dlopen_deplibs=yes
11761 openbsd*)
11762 libltdl_cv_sys_dlopen_deplibs=yes
11764 osf[1234]*)
11765 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11766 # it did *not* use an RPATH in a shared library to find objects the
11767 # library depends on, so we explicitly say `no'.
11768 libltdl_cv_sys_dlopen_deplibs=no
11770 osf5.0|osf5.0a|osf5.1)
11771 # dlopen *does* load deplibs and with the right loader patch applied
11772 # it even uses RPATH in a shared library to search for shared objects
11773 # that the library depends on, but there's no easy way to know if that
11774 # patch is installed. Since this is the case, all we can really
11775 # say is unknown -- it depends on the patch being installed. If
11776 # it is, this changes to `yes'. Without it, it would be `no'.
11777 libltdl_cv_sys_dlopen_deplibs=unknown
11779 osf*)
11780 # the two cases above should catch all versions of osf <= 5.1. Read
11781 # the comments above for what we know about them.
11782 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11783 # is used to find them so we can finally say `yes'.
11784 libltdl_cv_sys_dlopen_deplibs=yes
11786 solaris*)
11787 libltdl_cv_sys_dlopen_deplibs=yes
11789 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11790 libltdl_cv_sys_dlopen_deplibs=yes
11792 esac
11795 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11796 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11797 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11799 cat >>confdefs.h <<\_ACEOF
11800 #define LTDL_DLOPEN_DEPLIBS 1
11801 _ACEOF
11806 for ac_header in argz.h
11808 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11809 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11810 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11811 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11812 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11813 echo $ECHO_N "(cached) $ECHO_C" >&6
11815 ac_res=`eval echo '${'$as_ac_Header'}'`
11816 { echo "$as_me:$LINENO: result: $ac_res" >&5
11817 echo "${ECHO_T}$ac_res" >&6; }
11818 else
11819 # Is the header compilable?
11820 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11821 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11822 cat >conftest.$ac_ext <<_ACEOF
11823 /* confdefs.h. */
11824 _ACEOF
11825 cat confdefs.h >>conftest.$ac_ext
11826 cat >>conftest.$ac_ext <<_ACEOF
11827 /* end confdefs.h. */
11828 $ac_includes_default
11829 #include <$ac_header>
11830 _ACEOF
11831 rm -f conftest.$ac_objext
11832 if { (ac_try="$ac_compile"
11833 case "(($ac_try" in
11834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11835 *) ac_try_echo=$ac_try;;
11836 esac
11837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11838 (eval "$ac_compile") 2>conftest.er1
11839 ac_status=$?
11840 grep -v '^ *+' conftest.er1 >conftest.err
11841 rm -f conftest.er1
11842 cat conftest.err >&5
11843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11844 (exit $ac_status); } &&
11845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11846 { (case "(($ac_try" in
11847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11848 *) ac_try_echo=$ac_try;;
11849 esac
11850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11851 (eval "$ac_try") 2>&5
11852 ac_status=$?
11853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854 (exit $ac_status); }; } &&
11855 { ac_try='test -s conftest.$ac_objext'
11856 { (case "(($ac_try" in
11857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11858 *) ac_try_echo=$ac_try;;
11859 esac
11860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11861 (eval "$ac_try") 2>&5
11862 ac_status=$?
11863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11864 (exit $ac_status); }; }; then
11865 ac_header_compiler=yes
11866 else
11867 echo "$as_me: failed program was:" >&5
11868 sed 's/^/| /' conftest.$ac_ext >&5
11870 ac_header_compiler=no
11873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11874 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11875 echo "${ECHO_T}$ac_header_compiler" >&6; }
11877 # Is the header present?
11878 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11879 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11880 cat >conftest.$ac_ext <<_ACEOF
11881 /* confdefs.h. */
11882 _ACEOF
11883 cat confdefs.h >>conftest.$ac_ext
11884 cat >>conftest.$ac_ext <<_ACEOF
11885 /* end confdefs.h. */
11886 #include <$ac_header>
11887 _ACEOF
11888 if { (ac_try="$ac_cpp conftest.$ac_ext"
11889 case "(($ac_try" in
11890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11891 *) ac_try_echo=$ac_try;;
11892 esac
11893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11894 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11895 ac_status=$?
11896 grep -v '^ *+' conftest.er1 >conftest.err
11897 rm -f conftest.er1
11898 cat conftest.err >&5
11899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900 (exit $ac_status); } >/dev/null; then
11901 if test -s conftest.err; then
11902 ac_cpp_err=$ac_c_preproc_warn_flag
11903 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11904 else
11905 ac_cpp_err=
11907 else
11908 ac_cpp_err=yes
11910 if test -z "$ac_cpp_err"; then
11911 ac_header_preproc=yes
11912 else
11913 echo "$as_me: failed program was:" >&5
11914 sed 's/^/| /' conftest.$ac_ext >&5
11916 ac_header_preproc=no
11919 rm -f conftest.err conftest.$ac_ext
11920 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11921 echo "${ECHO_T}$ac_header_preproc" >&6; }
11923 # So? What about this header?
11924 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11925 yes:no: )
11926 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11927 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11928 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11929 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11930 ac_header_preproc=yes
11932 no:yes:* )
11933 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11934 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11935 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11936 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11937 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11938 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11939 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11940 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11941 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11942 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11943 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11944 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11945 ( cat <<\_ASBOX
11946 ## ----------------------------------- ##
11947 ## Report this to llvmbugs@cs.uiuc.edu ##
11948 ## ----------------------------------- ##
11949 _ASBOX
11950 ) | sed "s/^/$as_me: WARNING: /" >&2
11952 esac
11953 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11954 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11955 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11956 echo $ECHO_N "(cached) $ECHO_C" >&6
11957 else
11958 eval "$as_ac_Header=\$ac_header_preproc"
11960 ac_res=`eval echo '${'$as_ac_Header'}'`
11961 { echo "$as_me:$LINENO: result: $ac_res" >&5
11962 echo "${ECHO_T}$ac_res" >&6; }
11965 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11966 cat >>confdefs.h <<_ACEOF
11967 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11968 _ACEOF
11972 done
11975 { echo "$as_me:$LINENO: checking for error_t" >&5
11976 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11977 if test "${ac_cv_type_error_t+set}" = set; then
11978 echo $ECHO_N "(cached) $ECHO_C" >&6
11979 else
11980 cat >conftest.$ac_ext <<_ACEOF
11981 /* confdefs.h. */
11982 _ACEOF
11983 cat confdefs.h >>conftest.$ac_ext
11984 cat >>conftest.$ac_ext <<_ACEOF
11985 /* end confdefs.h. */
11986 #if HAVE_ARGZ_H
11987 # include <argz.h>
11988 #endif
11990 typedef error_t ac__type_new_;
11992 main ()
11994 if ((ac__type_new_ *) 0)
11995 return 0;
11996 if (sizeof (ac__type_new_))
11997 return 0;
11999 return 0;
12001 _ACEOF
12002 rm -f conftest.$ac_objext
12003 if { (ac_try="$ac_compile"
12004 case "(($ac_try" in
12005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12006 *) ac_try_echo=$ac_try;;
12007 esac
12008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12009 (eval "$ac_compile") 2>conftest.er1
12010 ac_status=$?
12011 grep -v '^ *+' conftest.er1 >conftest.err
12012 rm -f conftest.er1
12013 cat conftest.err >&5
12014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015 (exit $ac_status); } &&
12016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12017 { (case "(($ac_try" in
12018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12019 *) ac_try_echo=$ac_try;;
12020 esac
12021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12022 (eval "$ac_try") 2>&5
12023 ac_status=$?
12024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025 (exit $ac_status); }; } &&
12026 { ac_try='test -s conftest.$ac_objext'
12027 { (case "(($ac_try" in
12028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12029 *) ac_try_echo=$ac_try;;
12030 esac
12031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12032 (eval "$ac_try") 2>&5
12033 ac_status=$?
12034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035 (exit $ac_status); }; }; then
12036 ac_cv_type_error_t=yes
12037 else
12038 echo "$as_me: failed program was:" >&5
12039 sed 's/^/| /' conftest.$ac_ext >&5
12041 ac_cv_type_error_t=no
12044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12046 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
12047 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
12048 if test $ac_cv_type_error_t = yes; then
12050 cat >>confdefs.h <<_ACEOF
12051 #define HAVE_ERROR_T 1
12052 _ACEOF
12055 else
12057 cat >>confdefs.h <<\_ACEOF
12058 #define error_t int
12059 _ACEOF
12069 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
12071 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12072 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12073 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12074 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12075 echo $ECHO_N "(cached) $ECHO_C" >&6
12076 else
12077 cat >conftest.$ac_ext <<_ACEOF
12078 /* confdefs.h. */
12079 _ACEOF
12080 cat confdefs.h >>conftest.$ac_ext
12081 cat >>conftest.$ac_ext <<_ACEOF
12082 /* end confdefs.h. */
12083 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12084 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12085 #define $ac_func innocuous_$ac_func
12087 /* System header to define __stub macros and hopefully few prototypes,
12088 which can conflict with char $ac_func (); below.
12089 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12090 <limits.h> exists even on freestanding compilers. */
12092 #ifdef __STDC__
12093 # include <limits.h>
12094 #else
12095 # include <assert.h>
12096 #endif
12098 #undef $ac_func
12100 /* Override any GCC internal prototype to avoid an error.
12101 Use char because int might match the return type of a GCC
12102 builtin and then its argument prototype would still apply. */
12103 #ifdef __cplusplus
12104 extern "C"
12105 #endif
12106 char $ac_func ();
12107 /* The GNU C library defines this for functions which it implements
12108 to always fail with ENOSYS. Some functions are actually named
12109 something starting with __ and the normal name is an alias. */
12110 #if defined __stub_$ac_func || defined __stub___$ac_func
12111 choke me
12112 #endif
12115 main ()
12117 return $ac_func ();
12119 return 0;
12121 _ACEOF
12122 rm -f conftest.$ac_objext conftest$ac_exeext
12123 if { (ac_try="$ac_link"
12124 case "(($ac_try" in
12125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12126 *) ac_try_echo=$ac_try;;
12127 esac
12128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12129 (eval "$ac_link") 2>conftest.er1
12130 ac_status=$?
12131 grep -v '^ *+' conftest.er1 >conftest.err
12132 rm -f conftest.er1
12133 cat conftest.err >&5
12134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12135 (exit $ac_status); } &&
12136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12137 { (case "(($ac_try" in
12138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12139 *) ac_try_echo=$ac_try;;
12140 esac
12141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12142 (eval "$ac_try") 2>&5
12143 ac_status=$?
12144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145 (exit $ac_status); }; } &&
12146 { ac_try='test -s conftest$ac_exeext'
12147 { (case "(($ac_try" in
12148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12149 *) ac_try_echo=$ac_try;;
12150 esac
12151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12152 (eval "$ac_try") 2>&5
12153 ac_status=$?
12154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155 (exit $ac_status); }; }; then
12156 eval "$as_ac_var=yes"
12157 else
12158 echo "$as_me: failed program was:" >&5
12159 sed 's/^/| /' conftest.$ac_ext >&5
12161 eval "$as_ac_var=no"
12164 rm -f core conftest.err conftest.$ac_objext \
12165 conftest$ac_exeext conftest.$ac_ext
12167 ac_res=`eval echo '${'$as_ac_var'}'`
12168 { echo "$as_me:$LINENO: result: $ac_res" >&5
12169 echo "${ECHO_T}$ac_res" >&6; }
12170 if test `eval echo '${'$as_ac_var'}'` = yes; then
12171 cat >>confdefs.h <<_ACEOF
12172 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12173 _ACEOF
12176 done
12205 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
12206 stdio.h unistd.h
12208 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12209 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12210 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12212 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12213 echo $ECHO_N "(cached) $ECHO_C" >&6
12215 ac_res=`eval echo '${'$as_ac_Header'}'`
12216 { echo "$as_me:$LINENO: result: $ac_res" >&5
12217 echo "${ECHO_T}$ac_res" >&6; }
12218 else
12219 # Is the header compilable?
12220 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12221 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12222 cat >conftest.$ac_ext <<_ACEOF
12223 /* confdefs.h. */
12224 _ACEOF
12225 cat confdefs.h >>conftest.$ac_ext
12226 cat >>conftest.$ac_ext <<_ACEOF
12227 /* end confdefs.h. */
12228 $ac_includes_default
12229 #include <$ac_header>
12230 _ACEOF
12231 rm -f conftest.$ac_objext
12232 if { (ac_try="$ac_compile"
12233 case "(($ac_try" in
12234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12235 *) ac_try_echo=$ac_try;;
12236 esac
12237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12238 (eval "$ac_compile") 2>conftest.er1
12239 ac_status=$?
12240 grep -v '^ *+' conftest.er1 >conftest.err
12241 rm -f conftest.er1
12242 cat conftest.err >&5
12243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12244 (exit $ac_status); } &&
12245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12246 { (case "(($ac_try" in
12247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12248 *) ac_try_echo=$ac_try;;
12249 esac
12250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12251 (eval "$ac_try") 2>&5
12252 ac_status=$?
12253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12254 (exit $ac_status); }; } &&
12255 { ac_try='test -s conftest.$ac_objext'
12256 { (case "(($ac_try" in
12257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12258 *) ac_try_echo=$ac_try;;
12259 esac
12260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12261 (eval "$ac_try") 2>&5
12262 ac_status=$?
12263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12264 (exit $ac_status); }; }; then
12265 ac_header_compiler=yes
12266 else
12267 echo "$as_me: failed program was:" >&5
12268 sed 's/^/| /' conftest.$ac_ext >&5
12270 ac_header_compiler=no
12273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12274 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12275 echo "${ECHO_T}$ac_header_compiler" >&6; }
12277 # Is the header present?
12278 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12279 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12280 cat >conftest.$ac_ext <<_ACEOF
12281 /* confdefs.h. */
12282 _ACEOF
12283 cat confdefs.h >>conftest.$ac_ext
12284 cat >>conftest.$ac_ext <<_ACEOF
12285 /* end confdefs.h. */
12286 #include <$ac_header>
12287 _ACEOF
12288 if { (ac_try="$ac_cpp conftest.$ac_ext"
12289 case "(($ac_try" in
12290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12291 *) ac_try_echo=$ac_try;;
12292 esac
12293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12294 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12295 ac_status=$?
12296 grep -v '^ *+' conftest.er1 >conftest.err
12297 rm -f conftest.er1
12298 cat conftest.err >&5
12299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300 (exit $ac_status); } >/dev/null; then
12301 if test -s conftest.err; then
12302 ac_cpp_err=$ac_c_preproc_warn_flag
12303 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12304 else
12305 ac_cpp_err=
12307 else
12308 ac_cpp_err=yes
12310 if test -z "$ac_cpp_err"; then
12311 ac_header_preproc=yes
12312 else
12313 echo "$as_me: failed program was:" >&5
12314 sed 's/^/| /' conftest.$ac_ext >&5
12316 ac_header_preproc=no
12319 rm -f conftest.err conftest.$ac_ext
12320 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12321 echo "${ECHO_T}$ac_header_preproc" >&6; }
12323 # So? What about this header?
12324 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12325 yes:no: )
12326 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12327 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12328 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12329 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12330 ac_header_preproc=yes
12332 no:yes:* )
12333 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12334 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12335 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12336 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12337 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12338 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12339 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12340 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12341 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12342 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12343 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12344 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12345 ( cat <<\_ASBOX
12346 ## ----------------------------------- ##
12347 ## Report this to llvmbugs@cs.uiuc.edu ##
12348 ## ----------------------------------- ##
12349 _ASBOX
12350 ) | sed "s/^/$as_me: WARNING: /" >&2
12352 esac
12353 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12354 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12355 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12356 echo $ECHO_N "(cached) $ECHO_C" >&6
12357 else
12358 eval "$as_ac_Header=\$ac_header_preproc"
12360 ac_res=`eval echo '${'$as_ac_Header'}'`
12361 { echo "$as_me:$LINENO: result: $ac_res" >&5
12362 echo "${ECHO_T}$ac_res" >&6; }
12365 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12366 cat >>confdefs.h <<_ACEOF
12367 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12368 _ACEOF
12372 done
12378 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
12380 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12381 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12382 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12384 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12385 echo $ECHO_N "(cached) $ECHO_C" >&6
12387 ac_res=`eval echo '${'$as_ac_Header'}'`
12388 { echo "$as_me:$LINENO: result: $ac_res" >&5
12389 echo "${ECHO_T}$ac_res" >&6; }
12390 else
12391 # Is the header compilable?
12392 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12393 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12394 cat >conftest.$ac_ext <<_ACEOF
12395 /* confdefs.h. */
12396 _ACEOF
12397 cat confdefs.h >>conftest.$ac_ext
12398 cat >>conftest.$ac_ext <<_ACEOF
12399 /* end confdefs.h. */
12400 $ac_includes_default
12401 #include <$ac_header>
12402 _ACEOF
12403 rm -f conftest.$ac_objext
12404 if { (ac_try="$ac_compile"
12405 case "(($ac_try" in
12406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12407 *) ac_try_echo=$ac_try;;
12408 esac
12409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12410 (eval "$ac_compile") 2>conftest.er1
12411 ac_status=$?
12412 grep -v '^ *+' conftest.er1 >conftest.err
12413 rm -f conftest.er1
12414 cat conftest.err >&5
12415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416 (exit $ac_status); } &&
12417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12418 { (case "(($ac_try" in
12419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12420 *) ac_try_echo=$ac_try;;
12421 esac
12422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12423 (eval "$ac_try") 2>&5
12424 ac_status=$?
12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 (exit $ac_status); }; } &&
12427 { ac_try='test -s conftest.$ac_objext'
12428 { (case "(($ac_try" in
12429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12430 *) ac_try_echo=$ac_try;;
12431 esac
12432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12433 (eval "$ac_try") 2>&5
12434 ac_status=$?
12435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436 (exit $ac_status); }; }; then
12437 ac_header_compiler=yes
12438 else
12439 echo "$as_me: failed program was:" >&5
12440 sed 's/^/| /' conftest.$ac_ext >&5
12442 ac_header_compiler=no
12445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12446 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12447 echo "${ECHO_T}$ac_header_compiler" >&6; }
12449 # Is the header present?
12450 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12451 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12452 cat >conftest.$ac_ext <<_ACEOF
12453 /* confdefs.h. */
12454 _ACEOF
12455 cat confdefs.h >>conftest.$ac_ext
12456 cat >>conftest.$ac_ext <<_ACEOF
12457 /* end confdefs.h. */
12458 #include <$ac_header>
12459 _ACEOF
12460 if { (ac_try="$ac_cpp conftest.$ac_ext"
12461 case "(($ac_try" in
12462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12463 *) ac_try_echo=$ac_try;;
12464 esac
12465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12466 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12467 ac_status=$?
12468 grep -v '^ *+' conftest.er1 >conftest.err
12469 rm -f conftest.er1
12470 cat conftest.err >&5
12471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472 (exit $ac_status); } >/dev/null; then
12473 if test -s conftest.err; then
12474 ac_cpp_err=$ac_c_preproc_warn_flag
12475 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12476 else
12477 ac_cpp_err=
12479 else
12480 ac_cpp_err=yes
12482 if test -z "$ac_cpp_err"; then
12483 ac_header_preproc=yes
12484 else
12485 echo "$as_me: failed program was:" >&5
12486 sed 's/^/| /' conftest.$ac_ext >&5
12488 ac_header_preproc=no
12491 rm -f conftest.err conftest.$ac_ext
12492 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12493 echo "${ECHO_T}$ac_header_preproc" >&6; }
12495 # So? What about this header?
12496 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12497 yes:no: )
12498 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12499 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12500 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12501 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12502 ac_header_preproc=yes
12504 no:yes:* )
12505 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12506 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12507 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12508 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12509 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12510 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12511 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12512 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12514 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12515 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12516 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12517 ( cat <<\_ASBOX
12518 ## ----------------------------------- ##
12519 ## Report this to llvmbugs@cs.uiuc.edu ##
12520 ## ----------------------------------- ##
12521 _ASBOX
12522 ) | sed "s/^/$as_me: WARNING: /" >&2
12524 esac
12525 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12526 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12527 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12528 echo $ECHO_N "(cached) $ECHO_C" >&6
12529 else
12530 eval "$as_ac_Header=\$ac_header_preproc"
12532 ac_res=`eval echo '${'$as_ac_Header'}'`
12533 { echo "$as_me:$LINENO: result: $ac_res" >&5
12534 echo "${ECHO_T}$ac_res" >&6; }
12537 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12538 cat >>confdefs.h <<_ACEOF
12539 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12540 _ACEOF
12544 done
12548 for ac_header in string.h strings.h
12550 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12551 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12552 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12554 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12555 echo $ECHO_N "(cached) $ECHO_C" >&6
12557 ac_res=`eval echo '${'$as_ac_Header'}'`
12558 { echo "$as_me:$LINENO: result: $ac_res" >&5
12559 echo "${ECHO_T}$ac_res" >&6; }
12560 else
12561 # Is the header compilable?
12562 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12563 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12564 cat >conftest.$ac_ext <<_ACEOF
12565 /* confdefs.h. */
12566 _ACEOF
12567 cat confdefs.h >>conftest.$ac_ext
12568 cat >>conftest.$ac_ext <<_ACEOF
12569 /* end confdefs.h. */
12570 $ac_includes_default
12571 #include <$ac_header>
12572 _ACEOF
12573 rm -f conftest.$ac_objext
12574 if { (ac_try="$ac_compile"
12575 case "(($ac_try" in
12576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12577 *) ac_try_echo=$ac_try;;
12578 esac
12579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12580 (eval "$ac_compile") 2>conftest.er1
12581 ac_status=$?
12582 grep -v '^ *+' conftest.er1 >conftest.err
12583 rm -f conftest.er1
12584 cat conftest.err >&5
12585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12586 (exit $ac_status); } &&
12587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12588 { (case "(($ac_try" in
12589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12590 *) ac_try_echo=$ac_try;;
12591 esac
12592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12593 (eval "$ac_try") 2>&5
12594 ac_status=$?
12595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12596 (exit $ac_status); }; } &&
12597 { ac_try='test -s conftest.$ac_objext'
12598 { (case "(($ac_try" in
12599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12600 *) ac_try_echo=$ac_try;;
12601 esac
12602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12603 (eval "$ac_try") 2>&5
12604 ac_status=$?
12605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606 (exit $ac_status); }; }; then
12607 ac_header_compiler=yes
12608 else
12609 echo "$as_me: failed program was:" >&5
12610 sed 's/^/| /' conftest.$ac_ext >&5
12612 ac_header_compiler=no
12615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12616 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12617 echo "${ECHO_T}$ac_header_compiler" >&6; }
12619 # Is the header present?
12620 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12621 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12622 cat >conftest.$ac_ext <<_ACEOF
12623 /* confdefs.h. */
12624 _ACEOF
12625 cat confdefs.h >>conftest.$ac_ext
12626 cat >>conftest.$ac_ext <<_ACEOF
12627 /* end confdefs.h. */
12628 #include <$ac_header>
12629 _ACEOF
12630 if { (ac_try="$ac_cpp conftest.$ac_ext"
12631 case "(($ac_try" in
12632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12633 *) ac_try_echo=$ac_try;;
12634 esac
12635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12636 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12637 ac_status=$?
12638 grep -v '^ *+' conftest.er1 >conftest.err
12639 rm -f conftest.er1
12640 cat conftest.err >&5
12641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12642 (exit $ac_status); } >/dev/null; then
12643 if test -s conftest.err; then
12644 ac_cpp_err=$ac_c_preproc_warn_flag
12645 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12646 else
12647 ac_cpp_err=
12649 else
12650 ac_cpp_err=yes
12652 if test -z "$ac_cpp_err"; then
12653 ac_header_preproc=yes
12654 else
12655 echo "$as_me: failed program was:" >&5
12656 sed 's/^/| /' conftest.$ac_ext >&5
12658 ac_header_preproc=no
12661 rm -f conftest.err conftest.$ac_ext
12662 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12663 echo "${ECHO_T}$ac_header_preproc" >&6; }
12665 # So? What about this header?
12666 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12667 yes:no: )
12668 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12669 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12671 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12672 ac_header_preproc=yes
12674 no:yes:* )
12675 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12676 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12677 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12678 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12679 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12680 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12681 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12682 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12684 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12685 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12686 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12687 ( cat <<\_ASBOX
12688 ## ----------------------------------- ##
12689 ## Report this to llvmbugs@cs.uiuc.edu ##
12690 ## ----------------------------------- ##
12691 _ASBOX
12692 ) | sed "s/^/$as_me: WARNING: /" >&2
12694 esac
12695 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12696 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12697 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12698 echo $ECHO_N "(cached) $ECHO_C" >&6
12699 else
12700 eval "$as_ac_Header=\$ac_header_preproc"
12702 ac_res=`eval echo '${'$as_ac_Header'}'`
12703 { echo "$as_me:$LINENO: result: $ac_res" >&5
12704 echo "${ECHO_T}$ac_res" >&6; }
12707 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12708 cat >>confdefs.h <<_ACEOF
12709 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12710 _ACEOF
12711 break
12714 done
12719 for ac_func in strchr index
12721 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12722 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12723 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12724 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12725 echo $ECHO_N "(cached) $ECHO_C" >&6
12726 else
12727 cat >conftest.$ac_ext <<_ACEOF
12728 /* confdefs.h. */
12729 _ACEOF
12730 cat confdefs.h >>conftest.$ac_ext
12731 cat >>conftest.$ac_ext <<_ACEOF
12732 /* end confdefs.h. */
12733 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12734 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12735 #define $ac_func innocuous_$ac_func
12737 /* System header to define __stub macros and hopefully few prototypes,
12738 which can conflict with char $ac_func (); below.
12739 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12740 <limits.h> exists even on freestanding compilers. */
12742 #ifdef __STDC__
12743 # include <limits.h>
12744 #else
12745 # include <assert.h>
12746 #endif
12748 #undef $ac_func
12750 /* Override any GCC internal prototype to avoid an error.
12751 Use char because int might match the return type of a GCC
12752 builtin and then its argument prototype would still apply. */
12753 #ifdef __cplusplus
12754 extern "C"
12755 #endif
12756 char $ac_func ();
12757 /* The GNU C library defines this for functions which it implements
12758 to always fail with ENOSYS. Some functions are actually named
12759 something starting with __ and the normal name is an alias. */
12760 #if defined __stub_$ac_func || defined __stub___$ac_func
12761 choke me
12762 #endif
12765 main ()
12767 return $ac_func ();
12769 return 0;
12771 _ACEOF
12772 rm -f conftest.$ac_objext conftest$ac_exeext
12773 if { (ac_try="$ac_link"
12774 case "(($ac_try" in
12775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12776 *) ac_try_echo=$ac_try;;
12777 esac
12778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12779 (eval "$ac_link") 2>conftest.er1
12780 ac_status=$?
12781 grep -v '^ *+' conftest.er1 >conftest.err
12782 rm -f conftest.er1
12783 cat conftest.err >&5
12784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785 (exit $ac_status); } &&
12786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12787 { (case "(($ac_try" in
12788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12789 *) ac_try_echo=$ac_try;;
12790 esac
12791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12792 (eval "$ac_try") 2>&5
12793 ac_status=$?
12794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795 (exit $ac_status); }; } &&
12796 { ac_try='test -s conftest$ac_exeext'
12797 { (case "(($ac_try" in
12798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12799 *) ac_try_echo=$ac_try;;
12800 esac
12801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12802 (eval "$ac_try") 2>&5
12803 ac_status=$?
12804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805 (exit $ac_status); }; }; then
12806 eval "$as_ac_var=yes"
12807 else
12808 echo "$as_me: failed program was:" >&5
12809 sed 's/^/| /' conftest.$ac_ext >&5
12811 eval "$as_ac_var=no"
12814 rm -f core conftest.err conftest.$ac_objext \
12815 conftest$ac_exeext conftest.$ac_ext
12817 ac_res=`eval echo '${'$as_ac_var'}'`
12818 { echo "$as_me:$LINENO: result: $ac_res" >&5
12819 echo "${ECHO_T}$ac_res" >&6; }
12820 if test `eval echo '${'$as_ac_var'}'` = yes; then
12821 cat >>confdefs.h <<_ACEOF
12822 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12823 _ACEOF
12824 break
12826 done
12830 for ac_func in strrchr rindex
12832 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12833 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12834 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12835 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12836 echo $ECHO_N "(cached) $ECHO_C" >&6
12837 else
12838 cat >conftest.$ac_ext <<_ACEOF
12839 /* confdefs.h. */
12840 _ACEOF
12841 cat confdefs.h >>conftest.$ac_ext
12842 cat >>conftest.$ac_ext <<_ACEOF
12843 /* end confdefs.h. */
12844 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12845 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12846 #define $ac_func innocuous_$ac_func
12848 /* System header to define __stub macros and hopefully few prototypes,
12849 which can conflict with char $ac_func (); below.
12850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12851 <limits.h> exists even on freestanding compilers. */
12853 #ifdef __STDC__
12854 # include <limits.h>
12855 #else
12856 # include <assert.h>
12857 #endif
12859 #undef $ac_func
12861 /* Override any GCC internal prototype to avoid an error.
12862 Use char because int might match the return type of a GCC
12863 builtin and then its argument prototype would still apply. */
12864 #ifdef __cplusplus
12865 extern "C"
12866 #endif
12867 char $ac_func ();
12868 /* The GNU C library defines this for functions which it implements
12869 to always fail with ENOSYS. Some functions are actually named
12870 something starting with __ and the normal name is an alias. */
12871 #if defined __stub_$ac_func || defined __stub___$ac_func
12872 choke me
12873 #endif
12876 main ()
12878 return $ac_func ();
12880 return 0;
12882 _ACEOF
12883 rm -f conftest.$ac_objext conftest$ac_exeext
12884 if { (ac_try="$ac_link"
12885 case "(($ac_try" in
12886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12887 *) ac_try_echo=$ac_try;;
12888 esac
12889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12890 (eval "$ac_link") 2>conftest.er1
12891 ac_status=$?
12892 grep -v '^ *+' conftest.er1 >conftest.err
12893 rm -f conftest.er1
12894 cat conftest.err >&5
12895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12896 (exit $ac_status); } &&
12897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12898 { (case "(($ac_try" in
12899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12900 *) ac_try_echo=$ac_try;;
12901 esac
12902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12903 (eval "$ac_try") 2>&5
12904 ac_status=$?
12905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12906 (exit $ac_status); }; } &&
12907 { ac_try='test -s conftest$ac_exeext'
12908 { (case "(($ac_try" in
12909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12910 *) ac_try_echo=$ac_try;;
12911 esac
12912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12913 (eval "$ac_try") 2>&5
12914 ac_status=$?
12915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12916 (exit $ac_status); }; }; then
12917 eval "$as_ac_var=yes"
12918 else
12919 echo "$as_me: failed program was:" >&5
12920 sed 's/^/| /' conftest.$ac_ext >&5
12922 eval "$as_ac_var=no"
12925 rm -f core conftest.err conftest.$ac_objext \
12926 conftest$ac_exeext conftest.$ac_ext
12928 ac_res=`eval echo '${'$as_ac_var'}'`
12929 { echo "$as_me:$LINENO: result: $ac_res" >&5
12930 echo "${ECHO_T}$ac_res" >&6; }
12931 if test `eval echo '${'$as_ac_var'}'` = yes; then
12932 cat >>confdefs.h <<_ACEOF
12933 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12934 _ACEOF
12935 break
12937 done
12941 for ac_func in memcpy bcopy
12943 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12944 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12945 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12946 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12947 echo $ECHO_N "(cached) $ECHO_C" >&6
12948 else
12949 cat >conftest.$ac_ext <<_ACEOF
12950 /* confdefs.h. */
12951 _ACEOF
12952 cat confdefs.h >>conftest.$ac_ext
12953 cat >>conftest.$ac_ext <<_ACEOF
12954 /* end confdefs.h. */
12955 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12956 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12957 #define $ac_func innocuous_$ac_func
12959 /* System header to define __stub macros and hopefully few prototypes,
12960 which can conflict with char $ac_func (); below.
12961 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12962 <limits.h> exists even on freestanding compilers. */
12964 #ifdef __STDC__
12965 # include <limits.h>
12966 #else
12967 # include <assert.h>
12968 #endif
12970 #undef $ac_func
12972 /* Override any GCC internal prototype to avoid an error.
12973 Use char because int might match the return type of a GCC
12974 builtin and then its argument prototype would still apply. */
12975 #ifdef __cplusplus
12976 extern "C"
12977 #endif
12978 char $ac_func ();
12979 /* The GNU C library defines this for functions which it implements
12980 to always fail with ENOSYS. Some functions are actually named
12981 something starting with __ and the normal name is an alias. */
12982 #if defined __stub_$ac_func || defined __stub___$ac_func
12983 choke me
12984 #endif
12987 main ()
12989 return $ac_func ();
12991 return 0;
12993 _ACEOF
12994 rm -f conftest.$ac_objext conftest$ac_exeext
12995 if { (ac_try="$ac_link"
12996 case "(($ac_try" in
12997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12998 *) ac_try_echo=$ac_try;;
12999 esac
13000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13001 (eval "$ac_link") 2>conftest.er1
13002 ac_status=$?
13003 grep -v '^ *+' conftest.er1 >conftest.err
13004 rm -f conftest.er1
13005 cat conftest.err >&5
13006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13007 (exit $ac_status); } &&
13008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13009 { (case "(($ac_try" in
13010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13011 *) ac_try_echo=$ac_try;;
13012 esac
13013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13014 (eval "$ac_try") 2>&5
13015 ac_status=$?
13016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13017 (exit $ac_status); }; } &&
13018 { ac_try='test -s conftest$ac_exeext'
13019 { (case "(($ac_try" in
13020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13021 *) ac_try_echo=$ac_try;;
13022 esac
13023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13024 (eval "$ac_try") 2>&5
13025 ac_status=$?
13026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13027 (exit $ac_status); }; }; then
13028 eval "$as_ac_var=yes"
13029 else
13030 echo "$as_me: failed program was:" >&5
13031 sed 's/^/| /' conftest.$ac_ext >&5
13033 eval "$as_ac_var=no"
13036 rm -f core conftest.err conftest.$ac_objext \
13037 conftest$ac_exeext conftest.$ac_ext
13039 ac_res=`eval echo '${'$as_ac_var'}'`
13040 { echo "$as_me:$LINENO: result: $ac_res" >&5
13041 echo "${ECHO_T}$ac_res" >&6; }
13042 if test `eval echo '${'$as_ac_var'}'` = yes; then
13043 cat >>confdefs.h <<_ACEOF
13044 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13045 _ACEOF
13046 break
13048 done
13052 for ac_func in memmove strcmp
13054 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13055 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13056 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13057 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13058 echo $ECHO_N "(cached) $ECHO_C" >&6
13059 else
13060 cat >conftest.$ac_ext <<_ACEOF
13061 /* confdefs.h. */
13062 _ACEOF
13063 cat confdefs.h >>conftest.$ac_ext
13064 cat >>conftest.$ac_ext <<_ACEOF
13065 /* end confdefs.h. */
13066 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13067 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13068 #define $ac_func innocuous_$ac_func
13070 /* System header to define __stub macros and hopefully few prototypes,
13071 which can conflict with char $ac_func (); below.
13072 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13073 <limits.h> exists even on freestanding compilers. */
13075 #ifdef __STDC__
13076 # include <limits.h>
13077 #else
13078 # include <assert.h>
13079 #endif
13081 #undef $ac_func
13083 /* Override any GCC internal prototype to avoid an error.
13084 Use char because int might match the return type of a GCC
13085 builtin and then its argument prototype would still apply. */
13086 #ifdef __cplusplus
13087 extern "C"
13088 #endif
13089 char $ac_func ();
13090 /* The GNU C library defines this for functions which it implements
13091 to always fail with ENOSYS. Some functions are actually named
13092 something starting with __ and the normal name is an alias. */
13093 #if defined __stub_$ac_func || defined __stub___$ac_func
13094 choke me
13095 #endif
13098 main ()
13100 return $ac_func ();
13102 return 0;
13104 _ACEOF
13105 rm -f conftest.$ac_objext conftest$ac_exeext
13106 if { (ac_try="$ac_link"
13107 case "(($ac_try" in
13108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13109 *) ac_try_echo=$ac_try;;
13110 esac
13111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13112 (eval "$ac_link") 2>conftest.er1
13113 ac_status=$?
13114 grep -v '^ *+' conftest.er1 >conftest.err
13115 rm -f conftest.er1
13116 cat conftest.err >&5
13117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118 (exit $ac_status); } &&
13119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13120 { (case "(($ac_try" in
13121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13122 *) ac_try_echo=$ac_try;;
13123 esac
13124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13125 (eval "$ac_try") 2>&5
13126 ac_status=$?
13127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13128 (exit $ac_status); }; } &&
13129 { ac_try='test -s conftest$ac_exeext'
13130 { (case "(($ac_try" in
13131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13132 *) ac_try_echo=$ac_try;;
13133 esac
13134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13135 (eval "$ac_try") 2>&5
13136 ac_status=$?
13137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13138 (exit $ac_status); }; }; then
13139 eval "$as_ac_var=yes"
13140 else
13141 echo "$as_me: failed program was:" >&5
13142 sed 's/^/| /' conftest.$ac_ext >&5
13144 eval "$as_ac_var=no"
13147 rm -f core conftest.err conftest.$ac_objext \
13148 conftest$ac_exeext conftest.$ac_ext
13150 ac_res=`eval echo '${'$as_ac_var'}'`
13151 { echo "$as_me:$LINENO: result: $ac_res" >&5
13152 echo "${ECHO_T}$ac_res" >&6; }
13153 if test `eval echo '${'$as_ac_var'}'` = yes; then
13154 cat >>confdefs.h <<_ACEOF
13155 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13156 _ACEOF
13159 done
13164 for ac_func in closedir opendir readdir
13166 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13167 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13168 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13169 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13170 echo $ECHO_N "(cached) $ECHO_C" >&6
13171 else
13172 cat >conftest.$ac_ext <<_ACEOF
13173 /* confdefs.h. */
13174 _ACEOF
13175 cat confdefs.h >>conftest.$ac_ext
13176 cat >>conftest.$ac_ext <<_ACEOF
13177 /* end confdefs.h. */
13178 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13179 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13180 #define $ac_func innocuous_$ac_func
13182 /* System header to define __stub macros and hopefully few prototypes,
13183 which can conflict with char $ac_func (); below.
13184 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13185 <limits.h> exists even on freestanding compilers. */
13187 #ifdef __STDC__
13188 # include <limits.h>
13189 #else
13190 # include <assert.h>
13191 #endif
13193 #undef $ac_func
13195 /* Override any GCC internal prototype to avoid an error.
13196 Use char because int might match the return type of a GCC
13197 builtin and then its argument prototype would still apply. */
13198 #ifdef __cplusplus
13199 extern "C"
13200 #endif
13201 char $ac_func ();
13202 /* The GNU C library defines this for functions which it implements
13203 to always fail with ENOSYS. Some functions are actually named
13204 something starting with __ and the normal name is an alias. */
13205 #if defined __stub_$ac_func || defined __stub___$ac_func
13206 choke me
13207 #endif
13210 main ()
13212 return $ac_func ();
13214 return 0;
13216 _ACEOF
13217 rm -f conftest.$ac_objext conftest$ac_exeext
13218 if { (ac_try="$ac_link"
13219 case "(($ac_try" in
13220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13221 *) ac_try_echo=$ac_try;;
13222 esac
13223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13224 (eval "$ac_link") 2>conftest.er1
13225 ac_status=$?
13226 grep -v '^ *+' conftest.er1 >conftest.err
13227 rm -f conftest.er1
13228 cat conftest.err >&5
13229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13230 (exit $ac_status); } &&
13231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13232 { (case "(($ac_try" in
13233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13234 *) ac_try_echo=$ac_try;;
13235 esac
13236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13237 (eval "$ac_try") 2>&5
13238 ac_status=$?
13239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13240 (exit $ac_status); }; } &&
13241 { ac_try='test -s conftest$ac_exeext'
13242 { (case "(($ac_try" in
13243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13244 *) ac_try_echo=$ac_try;;
13245 esac
13246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13247 (eval "$ac_try") 2>&5
13248 ac_status=$?
13249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13250 (exit $ac_status); }; }; then
13251 eval "$as_ac_var=yes"
13252 else
13253 echo "$as_me: failed program was:" >&5
13254 sed 's/^/| /' conftest.$ac_ext >&5
13256 eval "$as_ac_var=no"
13259 rm -f core conftest.err conftest.$ac_objext \
13260 conftest$ac_exeext conftest.$ac_ext
13262 ac_res=`eval echo '${'$as_ac_var'}'`
13263 { echo "$as_me:$LINENO: result: $ac_res" >&5
13264 echo "${ECHO_T}$ac_res" >&6; }
13265 if test `eval echo '${'$as_ac_var'}'` = yes; then
13266 cat >>confdefs.h <<_ACEOF
13267 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13268 _ACEOF
13271 done
13275 if test "$WITH_LLVMGCCDIR" = "default" ; then
13276 LLVMGCC="llvm-gcc${EXEEXT}"
13277 LLVMGXX="llvm-g++${EXEEXT}"
13278 LLVMGCCCOMMAND="$LLVMGCC"
13279 LLVMGXXCOMMAND="$LLVMGXX"
13280 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13282 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13284 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
13285 set dummy $LLVMGCC; ac_word=$2
13286 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13288 if test "${ac_cv_path_LLVMGCC+set}" = set; then
13289 echo $ECHO_N "(cached) $ECHO_C" >&6
13290 else
13291 case $LLVMGCC in
13292 [\\/]* | ?:[\\/]*)
13293 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
13296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13297 for as_dir in $PATH
13299 IFS=$as_save_IFS
13300 test -z "$as_dir" && as_dir=.
13301 for ac_exec_ext in '' $ac_executable_extensions; do
13302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13303 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
13304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13305 break 2
13307 done
13308 done
13309 IFS=$as_save_IFS
13312 esac
13314 LLVMGCC=$ac_cv_path_LLVMGCC
13315 if test -n "$LLVMGCC"; then
13316 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
13317 echo "${ECHO_T}$LLVMGCC" >&6; }
13318 else
13319 { echo "$as_me:$LINENO: result: no" >&5
13320 echo "${ECHO_T}no" >&6; }
13324 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
13325 set dummy $LLVMGXX; ac_word=$2
13326 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13327 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13328 if test "${ac_cv_path_LLVMGXX+set}" = set; then
13329 echo $ECHO_N "(cached) $ECHO_C" >&6
13330 else
13331 case $LLVMGXX in
13332 [\\/]* | ?:[\\/]*)
13333 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
13336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13337 for as_dir in $PATH
13339 IFS=$as_save_IFS
13340 test -z "$as_dir" && as_dir=.
13341 for ac_exec_ext in '' $ac_executable_extensions; do
13342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13343 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
13344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13345 break 2
13347 done
13348 done
13349 IFS=$as_save_IFS
13352 esac
13354 LLVMGXX=$ac_cv_path_LLVMGXX
13355 if test -n "$LLVMGXX"; then
13356 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13357 echo "${ECHO_T}$LLVMGXX" >&6; }
13358 else
13359 { echo "$as_me:$LINENO: result: no" >&5
13360 echo "${ECHO_T}no" >&6; }
13364 else
13365 if test -z "$LLVMGCC"; then
13366 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
13367 LLVMGCCCOMMAND="$LLVMGCC"
13369 if test -z "$LLVMGXX"; then
13370 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
13371 LLVMGXXCOMMAND="$LLVMGXX"
13374 LLVMGCC=$LLVMGCC
13376 LLVMGXX=$LLVMGXX
13378 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13380 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13385 # Check whether --with-llvmcc was given.
13386 if test "${with_llvmcc+set}" = set; then
13387 withval=$with_llvmcc;
13388 else
13389 with_llvmcc=check
13392 { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13393 echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13394 if test "$with_llvmcc" != "check"; then
13395 if (test "$with_llvmcc" != "llvm-gcc" &&
13396 test "$with_llvmcc" != "clang" &&
13397 test "$with_llvmcc" != "none"); then
13398 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13399 echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13400 { (exit 1); exit 1; }; }
13402 WITH_LLVMCC="$with_llvmcc"
13403 elif test -n "$LLVMGCC"; then
13404 WITH_LLVMCC=llvm-gcc
13405 elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13406 WITH_LLVMCC=clang
13407 else
13408 WITH_LLVMCC=none
13410 { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13411 echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13412 LLVMCC_OPTION=$WITH_LLVMCC
13415 { echo "$as_me:$LINENO: checking tool compatibility" >&5
13416 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
13418 ICC=no
13419 IXX=no
13420 case $CC in
13421 icc*|icpc*)
13422 ICC=yes
13423 IXX=yes
13427 esac
13429 if test "$GCC" != "yes" && test "$ICC" != "yes"
13430 then
13431 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13432 echo "$as_me: error: gcc|icc required but not found" >&2;}
13433 { (exit 1); exit 1; }; }
13436 if test "$GXX" != "yes" && test "$IXX" != "yes"
13437 then
13438 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
13439 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
13440 { (exit 1); exit 1; }; }
13443 if test "$GCC" = "yes"
13444 then
13445 cat >conftest.$ac_ext <<_ACEOF
13446 #if !defined(__GNUC__) || __GNUC__ < 3
13447 #error Unsupported GCC version
13448 #endif
13450 _ACEOF
13451 rm -f conftest.$ac_objext
13452 if { (ac_try="$ac_compile"
13453 case "(($ac_try" in
13454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13455 *) ac_try_echo=$ac_try;;
13456 esac
13457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13458 (eval "$ac_compile") 2>conftest.er1
13459 ac_status=$?
13460 grep -v '^ *+' conftest.er1 >conftest.err
13461 rm -f conftest.er1
13462 cat conftest.err >&5
13463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13464 (exit $ac_status); } &&
13465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13466 { (case "(($ac_try" in
13467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13468 *) ac_try_echo=$ac_try;;
13469 esac
13470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13471 (eval "$ac_try") 2>&5
13472 ac_status=$?
13473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13474 (exit $ac_status); }; } &&
13475 { ac_try='test -s conftest.$ac_objext'
13476 { (case "(($ac_try" in
13477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13478 *) ac_try_echo=$ac_try;;
13479 esac
13480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13481 (eval "$ac_try") 2>&5
13482 ac_status=$?
13483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13484 (exit $ac_status); }; }; then
13486 else
13487 echo "$as_me: failed program was:" >&5
13488 sed 's/^/| /' conftest.$ac_ext >&5
13490 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13491 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13492 { (exit 1); exit 1; }; }
13495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13498 if test -z "$llvm_cv_gnu_make_command"
13499 then
13500 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13501 echo "$as_me: error: GNU Make required but not found" >&2;}
13502 { (exit 1); exit 1; }; }
13505 { echo "$as_me:$LINENO: result: ok" >&5
13506 echo "${ECHO_T}ok" >&6; }
13508 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
13509 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
13510 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13512 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13514 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13515 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
13519 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
13520 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13521 if test "${ac_cv_lib_m_sin+set}" = set; then
13522 echo $ECHO_N "(cached) $ECHO_C" >&6
13523 else
13524 ac_check_lib_save_LIBS=$LIBS
13525 LIBS="-lm $LIBS"
13526 cat >conftest.$ac_ext <<_ACEOF
13527 /* confdefs.h. */
13528 _ACEOF
13529 cat confdefs.h >>conftest.$ac_ext
13530 cat >>conftest.$ac_ext <<_ACEOF
13531 /* end confdefs.h. */
13533 /* Override any GCC internal prototype to avoid an error.
13534 Use char because int might match the return type of a GCC
13535 builtin and then its argument prototype would still apply. */
13536 #ifdef __cplusplus
13537 extern "C"
13538 #endif
13539 char sin ();
13541 main ()
13543 return sin ();
13545 return 0;
13547 _ACEOF
13548 rm -f conftest.$ac_objext conftest$ac_exeext
13549 if { (ac_try="$ac_link"
13550 case "(($ac_try" in
13551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13552 *) ac_try_echo=$ac_try;;
13553 esac
13554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13555 (eval "$ac_link") 2>conftest.er1
13556 ac_status=$?
13557 grep -v '^ *+' conftest.er1 >conftest.err
13558 rm -f conftest.er1
13559 cat conftest.err >&5
13560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13561 (exit $ac_status); } &&
13562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13563 { (case "(($ac_try" in
13564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13565 *) ac_try_echo=$ac_try;;
13566 esac
13567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13568 (eval "$ac_try") 2>&5
13569 ac_status=$?
13570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571 (exit $ac_status); }; } &&
13572 { ac_try='test -s conftest$ac_exeext'
13573 { (case "(($ac_try" in
13574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13575 *) ac_try_echo=$ac_try;;
13576 esac
13577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13578 (eval "$ac_try") 2>&5
13579 ac_status=$?
13580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581 (exit $ac_status); }; }; then
13582 ac_cv_lib_m_sin=yes
13583 else
13584 echo "$as_me: failed program was:" >&5
13585 sed 's/^/| /' conftest.$ac_ext >&5
13587 ac_cv_lib_m_sin=no
13590 rm -f core conftest.err conftest.$ac_objext \
13591 conftest$ac_exeext conftest.$ac_ext
13592 LIBS=$ac_check_lib_save_LIBS
13594 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13595 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13596 if test $ac_cv_lib_m_sin = yes; then
13597 cat >>confdefs.h <<_ACEOF
13598 #define HAVE_LIBM 1
13599 _ACEOF
13601 LIBS="-lm $LIBS"
13605 if test "$llvm_cv_os_type" = "MingW" ; then
13607 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13608 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13609 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13610 echo $ECHO_N "(cached) $ECHO_C" >&6
13611 else
13612 ac_check_lib_save_LIBS=$LIBS
13613 LIBS="-limagehlp $LIBS"
13614 cat >conftest.$ac_ext <<_ACEOF
13615 /* confdefs.h. */
13616 _ACEOF
13617 cat confdefs.h >>conftest.$ac_ext
13618 cat >>conftest.$ac_ext <<_ACEOF
13619 /* end confdefs.h. */
13623 main ()
13625 return main ();
13627 return 0;
13629 _ACEOF
13630 rm -f conftest.$ac_objext conftest$ac_exeext
13631 if { (ac_try="$ac_link"
13632 case "(($ac_try" in
13633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13634 *) ac_try_echo=$ac_try;;
13635 esac
13636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13637 (eval "$ac_link") 2>conftest.er1
13638 ac_status=$?
13639 grep -v '^ *+' conftest.er1 >conftest.err
13640 rm -f conftest.er1
13641 cat conftest.err >&5
13642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643 (exit $ac_status); } &&
13644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13645 { (case "(($ac_try" in
13646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13647 *) ac_try_echo=$ac_try;;
13648 esac
13649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13650 (eval "$ac_try") 2>&5
13651 ac_status=$?
13652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653 (exit $ac_status); }; } &&
13654 { ac_try='test -s conftest$ac_exeext'
13655 { (case "(($ac_try" in
13656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13657 *) ac_try_echo=$ac_try;;
13658 esac
13659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13660 (eval "$ac_try") 2>&5
13661 ac_status=$?
13662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663 (exit $ac_status); }; }; then
13664 ac_cv_lib_imagehlp_main=yes
13665 else
13666 echo "$as_me: failed program was:" >&5
13667 sed 's/^/| /' conftest.$ac_ext >&5
13669 ac_cv_lib_imagehlp_main=no
13672 rm -f core conftest.err conftest.$ac_objext \
13673 conftest$ac_exeext conftest.$ac_ext
13674 LIBS=$ac_check_lib_save_LIBS
13676 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13677 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13678 if test $ac_cv_lib_imagehlp_main = yes; then
13679 cat >>confdefs.h <<_ACEOF
13680 #define HAVE_LIBIMAGEHLP 1
13681 _ACEOF
13683 LIBS="-limagehlp $LIBS"
13688 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13689 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13690 if test "${ac_cv_lib_psapi_main+set}" = set; then
13691 echo $ECHO_N "(cached) $ECHO_C" >&6
13692 else
13693 ac_check_lib_save_LIBS=$LIBS
13694 LIBS="-lpsapi $LIBS"
13695 cat >conftest.$ac_ext <<_ACEOF
13696 /* confdefs.h. */
13697 _ACEOF
13698 cat confdefs.h >>conftest.$ac_ext
13699 cat >>conftest.$ac_ext <<_ACEOF
13700 /* end confdefs.h. */
13704 main ()
13706 return main ();
13708 return 0;
13710 _ACEOF
13711 rm -f conftest.$ac_objext conftest$ac_exeext
13712 if { (ac_try="$ac_link"
13713 case "(($ac_try" in
13714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13715 *) ac_try_echo=$ac_try;;
13716 esac
13717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13718 (eval "$ac_link") 2>conftest.er1
13719 ac_status=$?
13720 grep -v '^ *+' conftest.er1 >conftest.err
13721 rm -f conftest.er1
13722 cat conftest.err >&5
13723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724 (exit $ac_status); } &&
13725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13726 { (case "(($ac_try" in
13727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13728 *) ac_try_echo=$ac_try;;
13729 esac
13730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13731 (eval "$ac_try") 2>&5
13732 ac_status=$?
13733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734 (exit $ac_status); }; } &&
13735 { ac_try='test -s conftest$ac_exeext'
13736 { (case "(($ac_try" in
13737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13738 *) ac_try_echo=$ac_try;;
13739 esac
13740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13741 (eval "$ac_try") 2>&5
13742 ac_status=$?
13743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13744 (exit $ac_status); }; }; then
13745 ac_cv_lib_psapi_main=yes
13746 else
13747 echo "$as_me: failed program was:" >&5
13748 sed 's/^/| /' conftest.$ac_ext >&5
13750 ac_cv_lib_psapi_main=no
13753 rm -f core conftest.err conftest.$ac_objext \
13754 conftest$ac_exeext conftest.$ac_ext
13755 LIBS=$ac_check_lib_save_LIBS
13757 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13758 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13759 if test $ac_cv_lib_psapi_main = yes; then
13760 cat >>confdefs.h <<_ACEOF
13761 #define HAVE_LIBPSAPI 1
13762 _ACEOF
13764 LIBS="-lpsapi $LIBS"
13770 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13771 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13772 if test "${ac_cv_search_dlopen+set}" = set; then
13773 echo $ECHO_N "(cached) $ECHO_C" >&6
13774 else
13775 ac_func_search_save_LIBS=$LIBS
13776 cat >conftest.$ac_ext <<_ACEOF
13777 /* confdefs.h. */
13778 _ACEOF
13779 cat confdefs.h >>conftest.$ac_ext
13780 cat >>conftest.$ac_ext <<_ACEOF
13781 /* end confdefs.h. */
13783 /* Override any GCC internal prototype to avoid an error.
13784 Use char because int might match the return type of a GCC
13785 builtin and then its argument prototype would still apply. */
13786 #ifdef __cplusplus
13787 extern "C"
13788 #endif
13789 char dlopen ();
13791 main ()
13793 return dlopen ();
13795 return 0;
13797 _ACEOF
13798 for ac_lib in '' dl; do
13799 if test -z "$ac_lib"; then
13800 ac_res="none required"
13801 else
13802 ac_res=-l$ac_lib
13803 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13805 rm -f conftest.$ac_objext conftest$ac_exeext
13806 if { (ac_try="$ac_link"
13807 case "(($ac_try" in
13808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13809 *) ac_try_echo=$ac_try;;
13810 esac
13811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13812 (eval "$ac_link") 2>conftest.er1
13813 ac_status=$?
13814 grep -v '^ *+' conftest.er1 >conftest.err
13815 rm -f conftest.er1
13816 cat conftest.err >&5
13817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818 (exit $ac_status); } &&
13819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13820 { (case "(($ac_try" in
13821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13822 *) ac_try_echo=$ac_try;;
13823 esac
13824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13825 (eval "$ac_try") 2>&5
13826 ac_status=$?
13827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13828 (exit $ac_status); }; } &&
13829 { ac_try='test -s conftest$ac_exeext'
13830 { (case "(($ac_try" in
13831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13832 *) ac_try_echo=$ac_try;;
13833 esac
13834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13835 (eval "$ac_try") 2>&5
13836 ac_status=$?
13837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13838 (exit $ac_status); }; }; then
13839 ac_cv_search_dlopen=$ac_res
13840 else
13841 echo "$as_me: failed program was:" >&5
13842 sed 's/^/| /' conftest.$ac_ext >&5
13847 rm -f core conftest.err conftest.$ac_objext \
13848 conftest$ac_exeext
13849 if test "${ac_cv_search_dlopen+set}" = set; then
13850 break
13852 done
13853 if test "${ac_cv_search_dlopen+set}" = set; then
13855 else
13856 ac_cv_search_dlopen=no
13858 rm conftest.$ac_ext
13859 LIBS=$ac_func_search_save_LIBS
13861 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13862 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13863 ac_res=$ac_cv_search_dlopen
13864 if test "$ac_res" != no; then
13865 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13867 cat >>confdefs.h <<\_ACEOF
13868 #define HAVE_DLOPEN 1
13869 _ACEOF
13871 else
13872 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13873 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
13877 if test "$llvm_cv_enable_libffi" = "yes" ; then
13878 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13879 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13880 if test "${ac_cv_search_ffi_call+set}" = set; then
13881 echo $ECHO_N "(cached) $ECHO_C" >&6
13882 else
13883 ac_func_search_save_LIBS=$LIBS
13884 cat >conftest.$ac_ext <<_ACEOF
13885 /* confdefs.h. */
13886 _ACEOF
13887 cat confdefs.h >>conftest.$ac_ext
13888 cat >>conftest.$ac_ext <<_ACEOF
13889 /* end confdefs.h. */
13891 /* Override any GCC internal prototype to avoid an error.
13892 Use char because int might match the return type of a GCC
13893 builtin and then its argument prototype would still apply. */
13894 #ifdef __cplusplus
13895 extern "C"
13896 #endif
13897 char ffi_call ();
13899 main ()
13901 return ffi_call ();
13903 return 0;
13905 _ACEOF
13906 for ac_lib in '' ffi; do
13907 if test -z "$ac_lib"; then
13908 ac_res="none required"
13909 else
13910 ac_res=-l$ac_lib
13911 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13913 rm -f conftest.$ac_objext conftest$ac_exeext
13914 if { (ac_try="$ac_link"
13915 case "(($ac_try" in
13916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13917 *) ac_try_echo=$ac_try;;
13918 esac
13919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13920 (eval "$ac_link") 2>conftest.er1
13921 ac_status=$?
13922 grep -v '^ *+' conftest.er1 >conftest.err
13923 rm -f conftest.er1
13924 cat conftest.err >&5
13925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13926 (exit $ac_status); } &&
13927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13928 { (case "(($ac_try" in
13929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13930 *) ac_try_echo=$ac_try;;
13931 esac
13932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13933 (eval "$ac_try") 2>&5
13934 ac_status=$?
13935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936 (exit $ac_status); }; } &&
13937 { ac_try='test -s conftest$ac_exeext'
13938 { (case "(($ac_try" in
13939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13940 *) ac_try_echo=$ac_try;;
13941 esac
13942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13943 (eval "$ac_try") 2>&5
13944 ac_status=$?
13945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13946 (exit $ac_status); }; }; then
13947 ac_cv_search_ffi_call=$ac_res
13948 else
13949 echo "$as_me: failed program was:" >&5
13950 sed 's/^/| /' conftest.$ac_ext >&5
13955 rm -f core conftest.err conftest.$ac_objext \
13956 conftest$ac_exeext
13957 if test "${ac_cv_search_ffi_call+set}" = set; then
13958 break
13960 done
13961 if test "${ac_cv_search_ffi_call+set}" = set; then
13963 else
13964 ac_cv_search_ffi_call=no
13966 rm conftest.$ac_ext
13967 LIBS=$ac_func_search_save_LIBS
13969 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13970 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
13971 ac_res=$ac_cv_search_ffi_call
13972 if test "$ac_res" != no; then
13973 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13975 cat >>confdefs.h <<\_ACEOF
13976 #define HAVE_FFI_CALL 1
13977 _ACEOF
13979 else
13980 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13981 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13982 { (exit 1); exit 1; }; }
13987 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13988 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13989 if test "${ac_cv_search_mallinfo+set}" = set; then
13990 echo $ECHO_N "(cached) $ECHO_C" >&6
13991 else
13992 ac_func_search_save_LIBS=$LIBS
13993 cat >conftest.$ac_ext <<_ACEOF
13994 /* confdefs.h. */
13995 _ACEOF
13996 cat confdefs.h >>conftest.$ac_ext
13997 cat >>conftest.$ac_ext <<_ACEOF
13998 /* end confdefs.h. */
14000 /* Override any GCC internal prototype to avoid an error.
14001 Use char because int might match the return type of a GCC
14002 builtin and then its argument prototype would still apply. */
14003 #ifdef __cplusplus
14004 extern "C"
14005 #endif
14006 char mallinfo ();
14008 main ()
14010 return mallinfo ();
14012 return 0;
14014 _ACEOF
14015 for ac_lib in '' malloc; do
14016 if test -z "$ac_lib"; then
14017 ac_res="none required"
14018 else
14019 ac_res=-l$ac_lib
14020 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14022 rm -f conftest.$ac_objext conftest$ac_exeext
14023 if { (ac_try="$ac_link"
14024 case "(($ac_try" in
14025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14026 *) ac_try_echo=$ac_try;;
14027 esac
14028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14029 (eval "$ac_link") 2>conftest.er1
14030 ac_status=$?
14031 grep -v '^ *+' conftest.er1 >conftest.err
14032 rm -f conftest.er1
14033 cat conftest.err >&5
14034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14035 (exit $ac_status); } &&
14036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14037 { (case "(($ac_try" in
14038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14039 *) ac_try_echo=$ac_try;;
14040 esac
14041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14042 (eval "$ac_try") 2>&5
14043 ac_status=$?
14044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045 (exit $ac_status); }; } &&
14046 { ac_try='test -s conftest$ac_exeext'
14047 { (case "(($ac_try" in
14048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14049 *) ac_try_echo=$ac_try;;
14050 esac
14051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14052 (eval "$ac_try") 2>&5
14053 ac_status=$?
14054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055 (exit $ac_status); }; }; then
14056 ac_cv_search_mallinfo=$ac_res
14057 else
14058 echo "$as_me: failed program was:" >&5
14059 sed 's/^/| /' conftest.$ac_ext >&5
14064 rm -f core conftest.err conftest.$ac_objext \
14065 conftest$ac_exeext
14066 if test "${ac_cv_search_mallinfo+set}" = set; then
14067 break
14069 done
14070 if test "${ac_cv_search_mallinfo+set}" = set; then
14072 else
14073 ac_cv_search_mallinfo=no
14075 rm conftest.$ac_ext
14076 LIBS=$ac_func_search_save_LIBS
14078 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
14079 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
14080 ac_res=$ac_cv_search_mallinfo
14081 if test "$ac_res" != no; then
14082 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14084 cat >>confdefs.h <<\_ACEOF
14085 #define HAVE_MALLINFO 1
14086 _ACEOF
14091 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
14093 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
14094 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
14095 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
14096 echo $ECHO_N "(cached) $ECHO_C" >&6
14097 else
14098 ac_check_lib_save_LIBS=$LIBS
14099 LIBS="-lpthread $LIBS"
14100 cat >conftest.$ac_ext <<_ACEOF
14101 /* confdefs.h. */
14102 _ACEOF
14103 cat confdefs.h >>conftest.$ac_ext
14104 cat >>conftest.$ac_ext <<_ACEOF
14105 /* end confdefs.h. */
14107 /* Override any GCC internal prototype to avoid an error.
14108 Use char because int might match the return type of a GCC
14109 builtin and then its argument prototype would still apply. */
14110 #ifdef __cplusplus
14111 extern "C"
14112 #endif
14113 char pthread_mutex_init ();
14115 main ()
14117 return pthread_mutex_init ();
14119 return 0;
14121 _ACEOF
14122 rm -f conftest.$ac_objext conftest$ac_exeext
14123 if { (ac_try="$ac_link"
14124 case "(($ac_try" in
14125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14126 *) ac_try_echo=$ac_try;;
14127 esac
14128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14129 (eval "$ac_link") 2>conftest.er1
14130 ac_status=$?
14131 grep -v '^ *+' conftest.er1 >conftest.err
14132 rm -f conftest.er1
14133 cat conftest.err >&5
14134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14135 (exit $ac_status); } &&
14136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14137 { (case "(($ac_try" in
14138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14139 *) ac_try_echo=$ac_try;;
14140 esac
14141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14142 (eval "$ac_try") 2>&5
14143 ac_status=$?
14144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14145 (exit $ac_status); }; } &&
14146 { ac_try='test -s conftest$ac_exeext'
14147 { (case "(($ac_try" in
14148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14149 *) ac_try_echo=$ac_try;;
14150 esac
14151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14152 (eval "$ac_try") 2>&5
14153 ac_status=$?
14154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14155 (exit $ac_status); }; }; then
14156 ac_cv_lib_pthread_pthread_mutex_init=yes
14157 else
14158 echo "$as_me: failed program was:" >&5
14159 sed 's/^/| /' conftest.$ac_ext >&5
14161 ac_cv_lib_pthread_pthread_mutex_init=no
14164 rm -f core conftest.err conftest.$ac_objext \
14165 conftest$ac_exeext conftest.$ac_ext
14166 LIBS=$ac_check_lib_save_LIBS
14168 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
14169 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
14170 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
14171 cat >>confdefs.h <<_ACEOF
14172 #define HAVE_LIBPTHREAD 1
14173 _ACEOF
14175 LIBS="-lpthread $LIBS"
14179 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
14180 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
14181 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14182 echo $ECHO_N "(cached) $ECHO_C" >&6
14183 else
14184 ac_func_search_save_LIBS=$LIBS
14185 cat >conftest.$ac_ext <<_ACEOF
14186 /* confdefs.h. */
14187 _ACEOF
14188 cat confdefs.h >>conftest.$ac_ext
14189 cat >>conftest.$ac_ext <<_ACEOF
14190 /* end confdefs.h. */
14192 /* Override any GCC internal prototype to avoid an error.
14193 Use char because int might match the return type of a GCC
14194 builtin and then its argument prototype would still apply. */
14195 #ifdef __cplusplus
14196 extern "C"
14197 #endif
14198 char pthread_mutex_lock ();
14200 main ()
14202 return pthread_mutex_lock ();
14204 return 0;
14206 _ACEOF
14207 for ac_lib in '' pthread; do
14208 if test -z "$ac_lib"; then
14209 ac_res="none required"
14210 else
14211 ac_res=-l$ac_lib
14212 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14214 rm -f conftest.$ac_objext conftest$ac_exeext
14215 if { (ac_try="$ac_link"
14216 case "(($ac_try" in
14217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14218 *) ac_try_echo=$ac_try;;
14219 esac
14220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14221 (eval "$ac_link") 2>conftest.er1
14222 ac_status=$?
14223 grep -v '^ *+' conftest.er1 >conftest.err
14224 rm -f conftest.er1
14225 cat conftest.err >&5
14226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227 (exit $ac_status); } &&
14228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14229 { (case "(($ac_try" in
14230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14231 *) ac_try_echo=$ac_try;;
14232 esac
14233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14234 (eval "$ac_try") 2>&5
14235 ac_status=$?
14236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14237 (exit $ac_status); }; } &&
14238 { ac_try='test -s conftest$ac_exeext'
14239 { (case "(($ac_try" in
14240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14241 *) ac_try_echo=$ac_try;;
14242 esac
14243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14244 (eval "$ac_try") 2>&5
14245 ac_status=$?
14246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14247 (exit $ac_status); }; }; then
14248 ac_cv_search_pthread_mutex_lock=$ac_res
14249 else
14250 echo "$as_me: failed program was:" >&5
14251 sed 's/^/| /' conftest.$ac_ext >&5
14256 rm -f core conftest.err conftest.$ac_objext \
14257 conftest$ac_exeext
14258 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14259 break
14261 done
14262 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14264 else
14265 ac_cv_search_pthread_mutex_lock=no
14267 rm conftest.$ac_ext
14268 LIBS=$ac_func_search_save_LIBS
14270 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
14271 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
14272 ac_res=$ac_cv_search_pthread_mutex_lock
14273 if test "$ac_res" != no; then
14274 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14276 cat >>confdefs.h <<\_ACEOF
14277 #define HAVE_PTHREAD_MUTEX_LOCK 1
14278 _ACEOF
14282 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
14283 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
14284 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14285 echo $ECHO_N "(cached) $ECHO_C" >&6
14286 else
14287 ac_func_search_save_LIBS=$LIBS
14288 cat >conftest.$ac_ext <<_ACEOF
14289 /* confdefs.h. */
14290 _ACEOF
14291 cat confdefs.h >>conftest.$ac_ext
14292 cat >>conftest.$ac_ext <<_ACEOF
14293 /* end confdefs.h. */
14295 /* Override any GCC internal prototype to avoid an error.
14296 Use char because int might match the return type of a GCC
14297 builtin and then its argument prototype would still apply. */
14298 #ifdef __cplusplus
14299 extern "C"
14300 #endif
14301 char pthread_rwlock_init ();
14303 main ()
14305 return pthread_rwlock_init ();
14307 return 0;
14309 _ACEOF
14310 for ac_lib in '' pthread; do
14311 if test -z "$ac_lib"; then
14312 ac_res="none required"
14313 else
14314 ac_res=-l$ac_lib
14315 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14317 rm -f conftest.$ac_objext conftest$ac_exeext
14318 if { (ac_try="$ac_link"
14319 case "(($ac_try" in
14320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14321 *) ac_try_echo=$ac_try;;
14322 esac
14323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14324 (eval "$ac_link") 2>conftest.er1
14325 ac_status=$?
14326 grep -v '^ *+' conftest.er1 >conftest.err
14327 rm -f conftest.er1
14328 cat conftest.err >&5
14329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14330 (exit $ac_status); } &&
14331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14332 { (case "(($ac_try" in
14333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14334 *) ac_try_echo=$ac_try;;
14335 esac
14336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14337 (eval "$ac_try") 2>&5
14338 ac_status=$?
14339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340 (exit $ac_status); }; } &&
14341 { ac_try='test -s conftest$ac_exeext'
14342 { (case "(($ac_try" in
14343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14344 *) ac_try_echo=$ac_try;;
14345 esac
14346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14347 (eval "$ac_try") 2>&5
14348 ac_status=$?
14349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14350 (exit $ac_status); }; }; then
14351 ac_cv_search_pthread_rwlock_init=$ac_res
14352 else
14353 echo "$as_me: failed program was:" >&5
14354 sed 's/^/| /' conftest.$ac_ext >&5
14359 rm -f core conftest.err conftest.$ac_objext \
14360 conftest$ac_exeext
14361 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14362 break
14364 done
14365 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14367 else
14368 ac_cv_search_pthread_rwlock_init=no
14370 rm conftest.$ac_ext
14371 LIBS=$ac_func_search_save_LIBS
14373 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14374 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
14375 ac_res=$ac_cv_search_pthread_rwlock_init
14376 if test "$ac_res" != no; then
14377 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14379 cat >>confdefs.h <<\_ACEOF
14380 #define HAVE_PTHREAD_RWLOCK_INIT 1
14381 _ACEOF
14385 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14386 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14387 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14388 echo $ECHO_N "(cached) $ECHO_C" >&6
14389 else
14390 ac_func_search_save_LIBS=$LIBS
14391 cat >conftest.$ac_ext <<_ACEOF
14392 /* confdefs.h. */
14393 _ACEOF
14394 cat confdefs.h >>conftest.$ac_ext
14395 cat >>conftest.$ac_ext <<_ACEOF
14396 /* end confdefs.h. */
14398 /* Override any GCC internal prototype to avoid an error.
14399 Use char because int might match the return type of a GCC
14400 builtin and then its argument prototype would still apply. */
14401 #ifdef __cplusplus
14402 extern "C"
14403 #endif
14404 char pthread_getspecific ();
14406 main ()
14408 return pthread_getspecific ();
14410 return 0;
14412 _ACEOF
14413 for ac_lib in '' pthread; do
14414 if test -z "$ac_lib"; then
14415 ac_res="none required"
14416 else
14417 ac_res=-l$ac_lib
14418 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14420 rm -f conftest.$ac_objext conftest$ac_exeext
14421 if { (ac_try="$ac_link"
14422 case "(($ac_try" in
14423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14424 *) ac_try_echo=$ac_try;;
14425 esac
14426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14427 (eval "$ac_link") 2>conftest.er1
14428 ac_status=$?
14429 grep -v '^ *+' conftest.er1 >conftest.err
14430 rm -f conftest.er1
14431 cat conftest.err >&5
14432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433 (exit $ac_status); } &&
14434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14435 { (case "(($ac_try" in
14436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14437 *) ac_try_echo=$ac_try;;
14438 esac
14439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14440 (eval "$ac_try") 2>&5
14441 ac_status=$?
14442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14443 (exit $ac_status); }; } &&
14444 { ac_try='test -s conftest$ac_exeext'
14445 { (case "(($ac_try" in
14446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14447 *) ac_try_echo=$ac_try;;
14448 esac
14449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14450 (eval "$ac_try") 2>&5
14451 ac_status=$?
14452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453 (exit $ac_status); }; }; then
14454 ac_cv_search_pthread_getspecific=$ac_res
14455 else
14456 echo "$as_me: failed program was:" >&5
14457 sed 's/^/| /' conftest.$ac_ext >&5
14462 rm -f core conftest.err conftest.$ac_objext \
14463 conftest$ac_exeext
14464 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14465 break
14467 done
14468 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14470 else
14471 ac_cv_search_pthread_getspecific=no
14473 rm conftest.$ac_ext
14474 LIBS=$ac_func_search_save_LIBS
14476 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14477 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
14478 ac_res=$ac_cv_search_pthread_getspecific
14479 if test "$ac_res" != no; then
14480 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14482 cat >>confdefs.h <<\_ACEOF
14483 #define HAVE_PTHREAD_GETSPECIFIC 1
14484 _ACEOF
14491 # Check whether --with-udis86 was given.
14492 if test "${with_udis86+set}" = set; then
14493 withval=$with_udis86;
14494 USE_UDIS86=1
14496 case "$withval" in
14497 /usr/lib|yes) ;;
14498 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14499 esac
14501 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14502 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14503 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14504 echo $ECHO_N "(cached) $ECHO_C" >&6
14505 else
14506 ac_check_lib_save_LIBS=$LIBS
14507 LIBS="-ludis86 $LIBS"
14508 cat >conftest.$ac_ext <<_ACEOF
14509 /* confdefs.h. */
14510 _ACEOF
14511 cat confdefs.h >>conftest.$ac_ext
14512 cat >>conftest.$ac_ext <<_ACEOF
14513 /* end confdefs.h. */
14515 /* Override any GCC internal prototype to avoid an error.
14516 Use char because int might match the return type of a GCC
14517 builtin and then its argument prototype would still apply. */
14518 #ifdef __cplusplus
14519 extern "C"
14520 #endif
14521 char ud_init ();
14523 main ()
14525 return ud_init ();
14527 return 0;
14529 _ACEOF
14530 rm -f conftest.$ac_objext conftest$ac_exeext
14531 if { (ac_try="$ac_link"
14532 case "(($ac_try" in
14533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14534 *) ac_try_echo=$ac_try;;
14535 esac
14536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14537 (eval "$ac_link") 2>conftest.er1
14538 ac_status=$?
14539 grep -v '^ *+' conftest.er1 >conftest.err
14540 rm -f conftest.er1
14541 cat conftest.err >&5
14542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14543 (exit $ac_status); } &&
14544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14545 { (case "(($ac_try" in
14546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14547 *) ac_try_echo=$ac_try;;
14548 esac
14549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14550 (eval "$ac_try") 2>&5
14551 ac_status=$?
14552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14553 (exit $ac_status); }; } &&
14554 { ac_try='test -s conftest$ac_exeext'
14555 { (case "(($ac_try" in
14556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14557 *) ac_try_echo=$ac_try;;
14558 esac
14559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14560 (eval "$ac_try") 2>&5
14561 ac_status=$?
14562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14563 (exit $ac_status); }; }; then
14564 ac_cv_lib_udis86_ud_init=yes
14565 else
14566 echo "$as_me: failed program was:" >&5
14567 sed 's/^/| /' conftest.$ac_ext >&5
14569 ac_cv_lib_udis86_ud_init=no
14572 rm -f core conftest.err conftest.$ac_objext \
14573 conftest$ac_exeext conftest.$ac_ext
14574 LIBS=$ac_check_lib_save_LIBS
14576 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14577 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14578 if test $ac_cv_lib_udis86_ud_init = yes; then
14579 cat >>confdefs.h <<_ACEOF
14580 #define HAVE_LIBUDIS86 1
14581 _ACEOF
14583 LIBS="-ludis86 $LIBS"
14585 else
14587 echo "Error! You need to have libudis86 around."
14588 exit -1
14593 else
14594 USE_UDIS86=0
14599 cat >>confdefs.h <<_ACEOF
14600 #define USE_UDIS86 $USE_UDIS86
14601 _ACEOF
14605 # Check whether --with-oprofile was given.
14606 if test "${with_oprofile+set}" = set; then
14607 withval=$with_oprofile;
14608 USE_OPROFILE=1
14610 case "$withval" in
14611 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
14612 no) llvm_cv_oppath=
14613 USE_OPROFILE=0
14615 *) llvm_cv_oppath="${withval}/lib/oprofile"
14616 CPPFLAGS="-I${withval}/include";;
14617 esac
14618 if test -n "$llvm_cv_oppath" ; then
14619 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
14620 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14621 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14622 if test "${ac_cv_search_bfd_init+set}" = set; then
14623 echo $ECHO_N "(cached) $ECHO_C" >&6
14624 else
14625 ac_func_search_save_LIBS=$LIBS
14626 cat >conftest.$ac_ext <<_ACEOF
14627 /* confdefs.h. */
14628 _ACEOF
14629 cat confdefs.h >>conftest.$ac_ext
14630 cat >>conftest.$ac_ext <<_ACEOF
14631 /* end confdefs.h. */
14633 /* Override any GCC internal prototype to avoid an error.
14634 Use char because int might match the return type of a GCC
14635 builtin and then its argument prototype would still apply. */
14636 #ifdef __cplusplus
14637 extern "C"
14638 #endif
14639 char bfd_init ();
14641 main ()
14643 return bfd_init ();
14645 return 0;
14647 _ACEOF
14648 for ac_lib in '' bfd; do
14649 if test -z "$ac_lib"; then
14650 ac_res="none required"
14651 else
14652 ac_res=-l$ac_lib
14653 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14655 rm -f conftest.$ac_objext conftest$ac_exeext
14656 if { (ac_try="$ac_link"
14657 case "(($ac_try" in
14658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14659 *) ac_try_echo=$ac_try;;
14660 esac
14661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14662 (eval "$ac_link") 2>conftest.er1
14663 ac_status=$?
14664 grep -v '^ *+' conftest.er1 >conftest.err
14665 rm -f conftest.er1
14666 cat conftest.err >&5
14667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14668 (exit $ac_status); } &&
14669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14670 { (case "(($ac_try" in
14671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14672 *) ac_try_echo=$ac_try;;
14673 esac
14674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14675 (eval "$ac_try") 2>&5
14676 ac_status=$?
14677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678 (exit $ac_status); }; } &&
14679 { ac_try='test -s conftest$ac_exeext'
14680 { (case "(($ac_try" in
14681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14682 *) ac_try_echo=$ac_try;;
14683 esac
14684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14685 (eval "$ac_try") 2>&5
14686 ac_status=$?
14687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14688 (exit $ac_status); }; }; then
14689 ac_cv_search_bfd_init=$ac_res
14690 else
14691 echo "$as_me: failed program was:" >&5
14692 sed 's/^/| /' conftest.$ac_ext >&5
14697 rm -f core conftest.err conftest.$ac_objext \
14698 conftest$ac_exeext
14699 if test "${ac_cv_search_bfd_init+set}" = set; then
14700 break
14702 done
14703 if test "${ac_cv_search_bfd_init+set}" = set; then
14705 else
14706 ac_cv_search_bfd_init=no
14708 rm conftest.$ac_ext
14709 LIBS=$ac_func_search_save_LIBS
14711 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14712 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
14713 ac_res=$ac_cv_search_bfd_init
14714 if test "$ac_res" != no; then
14715 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14719 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14720 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14721 if test "${ac_cv_search_op_open_agent+set}" = set; then
14722 echo $ECHO_N "(cached) $ECHO_C" >&6
14723 else
14724 ac_func_search_save_LIBS=$LIBS
14725 cat >conftest.$ac_ext <<_ACEOF
14726 /* confdefs.h. */
14727 _ACEOF
14728 cat confdefs.h >>conftest.$ac_ext
14729 cat >>conftest.$ac_ext <<_ACEOF
14730 /* end confdefs.h. */
14732 /* Override any GCC internal prototype to avoid an error.
14733 Use char because int might match the return type of a GCC
14734 builtin and then its argument prototype would still apply. */
14735 #ifdef __cplusplus
14736 extern "C"
14737 #endif
14738 char op_open_agent ();
14740 main ()
14742 return op_open_agent ();
14744 return 0;
14746 _ACEOF
14747 for ac_lib in '' opagent; do
14748 if test -z "$ac_lib"; then
14749 ac_res="none required"
14750 else
14751 ac_res=-l$ac_lib
14752 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14754 rm -f conftest.$ac_objext conftest$ac_exeext
14755 if { (ac_try="$ac_link"
14756 case "(($ac_try" in
14757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14758 *) ac_try_echo=$ac_try;;
14759 esac
14760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14761 (eval "$ac_link") 2>conftest.er1
14762 ac_status=$?
14763 grep -v '^ *+' conftest.er1 >conftest.err
14764 rm -f conftest.er1
14765 cat conftest.err >&5
14766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14767 (exit $ac_status); } &&
14768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14769 { (case "(($ac_try" in
14770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14771 *) ac_try_echo=$ac_try;;
14772 esac
14773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14774 (eval "$ac_try") 2>&5
14775 ac_status=$?
14776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777 (exit $ac_status); }; } &&
14778 { ac_try='test -s conftest$ac_exeext'
14779 { (case "(($ac_try" in
14780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14781 *) ac_try_echo=$ac_try;;
14782 esac
14783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14784 (eval "$ac_try") 2>&5
14785 ac_status=$?
14786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14787 (exit $ac_status); }; }; then
14788 ac_cv_search_op_open_agent=$ac_res
14789 else
14790 echo "$as_me: failed program was:" >&5
14791 sed 's/^/| /' conftest.$ac_ext >&5
14796 rm -f core conftest.err conftest.$ac_objext \
14797 conftest$ac_exeext
14798 if test "${ac_cv_search_op_open_agent+set}" = set; then
14799 break
14801 done
14802 if test "${ac_cv_search_op_open_agent+set}" = set; then
14804 else
14805 ac_cv_search_op_open_agent=no
14807 rm conftest.$ac_ext
14808 LIBS=$ac_func_search_save_LIBS
14810 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14811 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
14812 ac_res=$ac_cv_search_op_open_agent
14813 if test "$ac_res" != no; then
14814 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14816 else
14818 echo "Error! You need to have libopagent around."
14819 exit -1
14823 if test "${ac_cv_header_opagent_h+set}" = set; then
14824 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14825 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14826 if test "${ac_cv_header_opagent_h+set}" = set; then
14827 echo $ECHO_N "(cached) $ECHO_C" >&6
14829 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14830 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14831 else
14832 # Is the header compilable?
14833 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
14834 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14835 cat >conftest.$ac_ext <<_ACEOF
14836 /* confdefs.h. */
14837 _ACEOF
14838 cat confdefs.h >>conftest.$ac_ext
14839 cat >>conftest.$ac_ext <<_ACEOF
14840 /* end confdefs.h. */
14841 $ac_includes_default
14842 #include <opagent.h>
14843 _ACEOF
14844 rm -f conftest.$ac_objext
14845 if { (ac_try="$ac_compile"
14846 case "(($ac_try" in
14847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14848 *) ac_try_echo=$ac_try;;
14849 esac
14850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14851 (eval "$ac_compile") 2>conftest.er1
14852 ac_status=$?
14853 grep -v '^ *+' conftest.er1 >conftest.err
14854 rm -f conftest.er1
14855 cat conftest.err >&5
14856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14857 (exit $ac_status); } &&
14858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14859 { (case "(($ac_try" in
14860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14861 *) ac_try_echo=$ac_try;;
14862 esac
14863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14864 (eval "$ac_try") 2>&5
14865 ac_status=$?
14866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14867 (exit $ac_status); }; } &&
14868 { ac_try='test -s conftest.$ac_objext'
14869 { (case "(($ac_try" in
14870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14871 *) ac_try_echo=$ac_try;;
14872 esac
14873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14874 (eval "$ac_try") 2>&5
14875 ac_status=$?
14876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14877 (exit $ac_status); }; }; then
14878 ac_header_compiler=yes
14879 else
14880 echo "$as_me: failed program was:" >&5
14881 sed 's/^/| /' conftest.$ac_ext >&5
14883 ac_header_compiler=no
14886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14887 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14888 echo "${ECHO_T}$ac_header_compiler" >&6; }
14890 # Is the header present?
14891 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
14892 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14893 cat >conftest.$ac_ext <<_ACEOF
14894 /* confdefs.h. */
14895 _ACEOF
14896 cat confdefs.h >>conftest.$ac_ext
14897 cat >>conftest.$ac_ext <<_ACEOF
14898 /* end confdefs.h. */
14899 #include <opagent.h>
14900 _ACEOF
14901 if { (ac_try="$ac_cpp conftest.$ac_ext"
14902 case "(($ac_try" in
14903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14904 *) ac_try_echo=$ac_try;;
14905 esac
14906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14907 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14908 ac_status=$?
14909 grep -v '^ *+' conftest.er1 >conftest.err
14910 rm -f conftest.er1
14911 cat conftest.err >&5
14912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14913 (exit $ac_status); } >/dev/null; then
14914 if test -s conftest.err; then
14915 ac_cpp_err=$ac_c_preproc_warn_flag
14916 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14917 else
14918 ac_cpp_err=
14920 else
14921 ac_cpp_err=yes
14923 if test -z "$ac_cpp_err"; then
14924 ac_header_preproc=yes
14925 else
14926 echo "$as_me: failed program was:" >&5
14927 sed 's/^/| /' conftest.$ac_ext >&5
14929 ac_header_preproc=no
14932 rm -f conftest.err conftest.$ac_ext
14933 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14934 echo "${ECHO_T}$ac_header_preproc" >&6; }
14936 # So? What about this header?
14937 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14938 yes:no: )
14939 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14940 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14941 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14942 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14943 ac_header_preproc=yes
14945 no:yes:* )
14946 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14947 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14948 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14949 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14950 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14951 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14952 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14953 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14954 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14955 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14956 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14957 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14958 ( cat <<\_ASBOX
14959 ## ----------------------------------- ##
14960 ## Report this to llvmbugs@cs.uiuc.edu ##
14961 ## ----------------------------------- ##
14962 _ASBOX
14963 ) | sed "s/^/$as_me: WARNING: /" >&2
14965 esac
14966 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14967 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14968 if test "${ac_cv_header_opagent_h+set}" = set; then
14969 echo $ECHO_N "(cached) $ECHO_C" >&6
14970 else
14971 ac_cv_header_opagent_h=$ac_header_preproc
14973 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14974 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14977 if test $ac_cv_header_opagent_h = yes; then
14979 else
14981 echo "Error! You need to have opagent.h around."
14982 exit -1
14989 else
14991 USE_OPROFILE=0
14997 cat >>confdefs.h <<_ACEOF
14998 #define USE_OPROFILE $USE_OPROFILE
14999 _ACEOF
15008 ac_header_dirent=no
15009 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15010 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15011 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
15012 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
15013 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15014 echo $ECHO_N "(cached) $ECHO_C" >&6
15015 else
15016 cat >conftest.$ac_ext <<_ACEOF
15017 /* confdefs.h. */
15018 _ACEOF
15019 cat confdefs.h >>conftest.$ac_ext
15020 cat >>conftest.$ac_ext <<_ACEOF
15021 /* end confdefs.h. */
15022 #include <sys/types.h>
15023 #include <$ac_hdr>
15026 main ()
15028 if ((DIR *) 0)
15029 return 0;
15031 return 0;
15033 _ACEOF
15034 rm -f conftest.$ac_objext
15035 if { (ac_try="$ac_compile"
15036 case "(($ac_try" in
15037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15038 *) ac_try_echo=$ac_try;;
15039 esac
15040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15041 (eval "$ac_compile") 2>conftest.er1
15042 ac_status=$?
15043 grep -v '^ *+' conftest.er1 >conftest.err
15044 rm -f conftest.er1
15045 cat conftest.err >&5
15046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15047 (exit $ac_status); } &&
15048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15049 { (case "(($ac_try" in
15050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15051 *) ac_try_echo=$ac_try;;
15052 esac
15053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15054 (eval "$ac_try") 2>&5
15055 ac_status=$?
15056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15057 (exit $ac_status); }; } &&
15058 { ac_try='test -s conftest.$ac_objext'
15059 { (case "(($ac_try" in
15060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15061 *) ac_try_echo=$ac_try;;
15062 esac
15063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15064 (eval "$ac_try") 2>&5
15065 ac_status=$?
15066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067 (exit $ac_status); }; }; then
15068 eval "$as_ac_Header=yes"
15069 else
15070 echo "$as_me: failed program was:" >&5
15071 sed 's/^/| /' conftest.$ac_ext >&5
15073 eval "$as_ac_Header=no"
15076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15078 ac_res=`eval echo '${'$as_ac_Header'}'`
15079 { echo "$as_me:$LINENO: result: $ac_res" >&5
15080 echo "${ECHO_T}$ac_res" >&6; }
15081 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15082 cat >>confdefs.h <<_ACEOF
15083 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15084 _ACEOF
15086 ac_header_dirent=$ac_hdr; break
15089 done
15090 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15091 if test $ac_header_dirent = dirent.h; then
15092 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15093 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15094 if test "${ac_cv_search_opendir+set}" = set; then
15095 echo $ECHO_N "(cached) $ECHO_C" >&6
15096 else
15097 ac_func_search_save_LIBS=$LIBS
15098 cat >conftest.$ac_ext <<_ACEOF
15099 /* confdefs.h. */
15100 _ACEOF
15101 cat confdefs.h >>conftest.$ac_ext
15102 cat >>conftest.$ac_ext <<_ACEOF
15103 /* end confdefs.h. */
15105 /* Override any GCC internal prototype to avoid an error.
15106 Use char because int might match the return type of a GCC
15107 builtin and then its argument prototype would still apply. */
15108 #ifdef __cplusplus
15109 extern "C"
15110 #endif
15111 char opendir ();
15113 main ()
15115 return opendir ();
15117 return 0;
15119 _ACEOF
15120 for ac_lib in '' dir; do
15121 if test -z "$ac_lib"; then
15122 ac_res="none required"
15123 else
15124 ac_res=-l$ac_lib
15125 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15127 rm -f conftest.$ac_objext conftest$ac_exeext
15128 if { (ac_try="$ac_link"
15129 case "(($ac_try" in
15130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15131 *) ac_try_echo=$ac_try;;
15132 esac
15133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15134 (eval "$ac_link") 2>conftest.er1
15135 ac_status=$?
15136 grep -v '^ *+' conftest.er1 >conftest.err
15137 rm -f conftest.er1
15138 cat conftest.err >&5
15139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140 (exit $ac_status); } &&
15141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15142 { (case "(($ac_try" in
15143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15144 *) ac_try_echo=$ac_try;;
15145 esac
15146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15147 (eval "$ac_try") 2>&5
15148 ac_status=$?
15149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15150 (exit $ac_status); }; } &&
15151 { ac_try='test -s conftest$ac_exeext'
15152 { (case "(($ac_try" in
15153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15154 *) ac_try_echo=$ac_try;;
15155 esac
15156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15157 (eval "$ac_try") 2>&5
15158 ac_status=$?
15159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15160 (exit $ac_status); }; }; then
15161 ac_cv_search_opendir=$ac_res
15162 else
15163 echo "$as_me: failed program was:" >&5
15164 sed 's/^/| /' conftest.$ac_ext >&5
15169 rm -f core conftest.err conftest.$ac_objext \
15170 conftest$ac_exeext
15171 if test "${ac_cv_search_opendir+set}" = set; then
15172 break
15174 done
15175 if test "${ac_cv_search_opendir+set}" = set; then
15177 else
15178 ac_cv_search_opendir=no
15180 rm conftest.$ac_ext
15181 LIBS=$ac_func_search_save_LIBS
15183 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15184 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15185 ac_res=$ac_cv_search_opendir
15186 if test "$ac_res" != no; then
15187 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15191 else
15192 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15193 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15194 if test "${ac_cv_search_opendir+set}" = set; then
15195 echo $ECHO_N "(cached) $ECHO_C" >&6
15196 else
15197 ac_func_search_save_LIBS=$LIBS
15198 cat >conftest.$ac_ext <<_ACEOF
15199 /* confdefs.h. */
15200 _ACEOF
15201 cat confdefs.h >>conftest.$ac_ext
15202 cat >>conftest.$ac_ext <<_ACEOF
15203 /* end confdefs.h. */
15205 /* Override any GCC internal prototype to avoid an error.
15206 Use char because int might match the return type of a GCC
15207 builtin and then its argument prototype would still apply. */
15208 #ifdef __cplusplus
15209 extern "C"
15210 #endif
15211 char opendir ();
15213 main ()
15215 return opendir ();
15217 return 0;
15219 _ACEOF
15220 for ac_lib in '' x; do
15221 if test -z "$ac_lib"; then
15222 ac_res="none required"
15223 else
15224 ac_res=-l$ac_lib
15225 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15227 rm -f conftest.$ac_objext conftest$ac_exeext
15228 if { (ac_try="$ac_link"
15229 case "(($ac_try" in
15230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15231 *) ac_try_echo=$ac_try;;
15232 esac
15233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15234 (eval "$ac_link") 2>conftest.er1
15235 ac_status=$?
15236 grep -v '^ *+' conftest.er1 >conftest.err
15237 rm -f conftest.er1
15238 cat conftest.err >&5
15239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15240 (exit $ac_status); } &&
15241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15242 { (case "(($ac_try" in
15243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15244 *) ac_try_echo=$ac_try;;
15245 esac
15246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15247 (eval "$ac_try") 2>&5
15248 ac_status=$?
15249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15250 (exit $ac_status); }; } &&
15251 { ac_try='test -s conftest$ac_exeext'
15252 { (case "(($ac_try" in
15253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15254 *) ac_try_echo=$ac_try;;
15255 esac
15256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15257 (eval "$ac_try") 2>&5
15258 ac_status=$?
15259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260 (exit $ac_status); }; }; then
15261 ac_cv_search_opendir=$ac_res
15262 else
15263 echo "$as_me: failed program was:" >&5
15264 sed 's/^/| /' conftest.$ac_ext >&5
15269 rm -f core conftest.err conftest.$ac_objext \
15270 conftest$ac_exeext
15271 if test "${ac_cv_search_opendir+set}" = set; then
15272 break
15274 done
15275 if test "${ac_cv_search_opendir+set}" = set; then
15277 else
15278 ac_cv_search_opendir=no
15280 rm conftest.$ac_ext
15281 LIBS=$ac_func_search_save_LIBS
15283 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15284 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15285 ac_res=$ac_cv_search_opendir
15286 if test "$ac_res" != no; then
15287 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15293 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
15294 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
15295 if test "${ac_cv_header_mmap_anon+set}" = set; then
15296 echo $ECHO_N "(cached) $ECHO_C" >&6
15297 else
15298 ac_ext=c
15299 ac_cpp='$CPP $CPPFLAGS'
15300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15304 cat >conftest.$ac_ext <<_ACEOF
15305 /* confdefs.h. */
15306 _ACEOF
15307 cat confdefs.h >>conftest.$ac_ext
15308 cat >>conftest.$ac_ext <<_ACEOF
15309 /* end confdefs.h. */
15310 #include <sys/mman.h>
15311 #include <unistd.h>
15312 #include <fcntl.h>
15314 main ()
15316 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
15318 return 0;
15320 _ACEOF
15321 rm -f conftest.$ac_objext
15322 if { (ac_try="$ac_compile"
15323 case "(($ac_try" in
15324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15325 *) ac_try_echo=$ac_try;;
15326 esac
15327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15328 (eval "$ac_compile") 2>conftest.er1
15329 ac_status=$?
15330 grep -v '^ *+' conftest.er1 >conftest.err
15331 rm -f conftest.er1
15332 cat conftest.err >&5
15333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15334 (exit $ac_status); } &&
15335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15336 { (case "(($ac_try" in
15337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15338 *) ac_try_echo=$ac_try;;
15339 esac
15340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15341 (eval "$ac_try") 2>&5
15342 ac_status=$?
15343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15344 (exit $ac_status); }; } &&
15345 { ac_try='test -s conftest.$ac_objext'
15346 { (case "(($ac_try" in
15347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15348 *) ac_try_echo=$ac_try;;
15349 esac
15350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15351 (eval "$ac_try") 2>&5
15352 ac_status=$?
15353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15354 (exit $ac_status); }; }; then
15355 ac_cv_header_mmap_anon=yes
15356 else
15357 echo "$as_me: failed program was:" >&5
15358 sed 's/^/| /' conftest.$ac_ext >&5
15360 ac_cv_header_mmap_anon=no
15363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15364 ac_ext=c
15365 ac_cpp='$CPP $CPPFLAGS'
15366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15372 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15373 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
15374 if test "$ac_cv_header_mmap_anon" = yes; then
15376 cat >>confdefs.h <<\_ACEOF
15377 #define HAVE_MMAP_ANONYMOUS 1
15378 _ACEOF
15382 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15383 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15384 if test "${ac_cv_header_stat_broken+set}" = set; then
15385 echo $ECHO_N "(cached) $ECHO_C" >&6
15386 else
15387 cat >conftest.$ac_ext <<_ACEOF
15388 /* confdefs.h. */
15389 _ACEOF
15390 cat confdefs.h >>conftest.$ac_ext
15391 cat >>conftest.$ac_ext <<_ACEOF
15392 /* end confdefs.h. */
15393 #include <sys/types.h>
15394 #include <sys/stat.h>
15396 #if defined S_ISBLK && defined S_IFDIR
15397 # if S_ISBLK (S_IFDIR)
15398 You lose.
15399 # endif
15400 #endif
15402 #if defined S_ISBLK && defined S_IFCHR
15403 # if S_ISBLK (S_IFCHR)
15404 You lose.
15405 # endif
15406 #endif
15408 #if defined S_ISLNK && defined S_IFREG
15409 # if S_ISLNK (S_IFREG)
15410 You lose.
15411 # endif
15412 #endif
15414 #if defined S_ISSOCK && defined S_IFREG
15415 # if S_ISSOCK (S_IFREG)
15416 You lose.
15417 # endif
15418 #endif
15420 _ACEOF
15421 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15422 $EGREP "You lose" >/dev/null 2>&1; then
15423 ac_cv_header_stat_broken=yes
15424 else
15425 ac_cv_header_stat_broken=no
15427 rm -f conftest*
15430 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15431 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
15432 if test $ac_cv_header_stat_broken = yes; then
15434 cat >>confdefs.h <<\_ACEOF
15435 #define STAT_MACROS_BROKEN 1
15436 _ACEOF
15440 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15441 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15442 if test "${ac_cv_header_stdc+set}" = set; then
15443 echo $ECHO_N "(cached) $ECHO_C" >&6
15444 else
15445 cat >conftest.$ac_ext <<_ACEOF
15446 /* confdefs.h. */
15447 _ACEOF
15448 cat confdefs.h >>conftest.$ac_ext
15449 cat >>conftest.$ac_ext <<_ACEOF
15450 /* end confdefs.h. */
15451 #include <stdlib.h>
15452 #include <stdarg.h>
15453 #include <string.h>
15454 #include <float.h>
15457 main ()
15461 return 0;
15463 _ACEOF
15464 rm -f conftest.$ac_objext
15465 if { (ac_try="$ac_compile"
15466 case "(($ac_try" in
15467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15468 *) ac_try_echo=$ac_try;;
15469 esac
15470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15471 (eval "$ac_compile") 2>conftest.er1
15472 ac_status=$?
15473 grep -v '^ *+' conftest.er1 >conftest.err
15474 rm -f conftest.er1
15475 cat conftest.err >&5
15476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15477 (exit $ac_status); } &&
15478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15479 { (case "(($ac_try" in
15480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15481 *) ac_try_echo=$ac_try;;
15482 esac
15483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15484 (eval "$ac_try") 2>&5
15485 ac_status=$?
15486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15487 (exit $ac_status); }; } &&
15488 { ac_try='test -s conftest.$ac_objext'
15489 { (case "(($ac_try" in
15490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15491 *) ac_try_echo=$ac_try;;
15492 esac
15493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15494 (eval "$ac_try") 2>&5
15495 ac_status=$?
15496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15497 (exit $ac_status); }; }; then
15498 ac_cv_header_stdc=yes
15499 else
15500 echo "$as_me: failed program was:" >&5
15501 sed 's/^/| /' conftest.$ac_ext >&5
15503 ac_cv_header_stdc=no
15506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15508 if test $ac_cv_header_stdc = yes; then
15509 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15510 cat >conftest.$ac_ext <<_ACEOF
15511 /* confdefs.h. */
15512 _ACEOF
15513 cat confdefs.h >>conftest.$ac_ext
15514 cat >>conftest.$ac_ext <<_ACEOF
15515 /* end confdefs.h. */
15516 #include <string.h>
15518 _ACEOF
15519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15520 $EGREP "memchr" >/dev/null 2>&1; then
15522 else
15523 ac_cv_header_stdc=no
15525 rm -f conftest*
15529 if test $ac_cv_header_stdc = yes; then
15530 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15531 cat >conftest.$ac_ext <<_ACEOF
15532 /* confdefs.h. */
15533 _ACEOF
15534 cat confdefs.h >>conftest.$ac_ext
15535 cat >>conftest.$ac_ext <<_ACEOF
15536 /* end confdefs.h. */
15537 #include <stdlib.h>
15539 _ACEOF
15540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15541 $EGREP "free" >/dev/null 2>&1; then
15543 else
15544 ac_cv_header_stdc=no
15546 rm -f conftest*
15550 if test $ac_cv_header_stdc = yes; then
15551 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15552 if test "$cross_compiling" = yes; then
15554 else
15555 cat >conftest.$ac_ext <<_ACEOF
15556 /* confdefs.h. */
15557 _ACEOF
15558 cat confdefs.h >>conftest.$ac_ext
15559 cat >>conftest.$ac_ext <<_ACEOF
15560 /* end confdefs.h. */
15561 #include <ctype.h>
15562 #include <stdlib.h>
15563 #if ((' ' & 0x0FF) == 0x020)
15564 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15565 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15566 #else
15567 # define ISLOWER(c) \
15568 (('a' <= (c) && (c) <= 'i') \
15569 || ('j' <= (c) && (c) <= 'r') \
15570 || ('s' <= (c) && (c) <= 'z'))
15571 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15572 #endif
15574 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15576 main ()
15578 int i;
15579 for (i = 0; i < 256; i++)
15580 if (XOR (islower (i), ISLOWER (i))
15581 || toupper (i) != TOUPPER (i))
15582 return 2;
15583 return 0;
15585 _ACEOF
15586 rm -f conftest$ac_exeext
15587 if { (ac_try="$ac_link"
15588 case "(($ac_try" in
15589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15590 *) ac_try_echo=$ac_try;;
15591 esac
15592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15593 (eval "$ac_link") 2>&5
15594 ac_status=$?
15595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15597 { (case "(($ac_try" in
15598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15599 *) ac_try_echo=$ac_try;;
15600 esac
15601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15602 (eval "$ac_try") 2>&5
15603 ac_status=$?
15604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15605 (exit $ac_status); }; }; then
15607 else
15608 echo "$as_me: program exited with status $ac_status" >&5
15609 echo "$as_me: failed program was:" >&5
15610 sed 's/^/| /' conftest.$ac_ext >&5
15612 ( exit $ac_status )
15613 ac_cv_header_stdc=no
15615 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15621 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15622 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15623 if test $ac_cv_header_stdc = yes; then
15625 cat >>confdefs.h <<\_ACEOF
15626 #define STDC_HEADERS 1
15627 _ACEOF
15631 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15632 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15633 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15634 echo $ECHO_N "(cached) $ECHO_C" >&6
15635 else
15636 cat >conftest.$ac_ext <<_ACEOF
15637 /* confdefs.h. */
15638 _ACEOF
15639 cat confdefs.h >>conftest.$ac_ext
15640 cat >>conftest.$ac_ext <<_ACEOF
15641 /* end confdefs.h. */
15642 #include <sys/types.h>
15643 #include <sys/wait.h>
15644 #ifndef WEXITSTATUS
15645 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15646 #endif
15647 #ifndef WIFEXITED
15648 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15649 #endif
15652 main ()
15654 int s;
15655 wait (&s);
15656 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15658 return 0;
15660 _ACEOF
15661 rm -f conftest.$ac_objext
15662 if { (ac_try="$ac_compile"
15663 case "(($ac_try" in
15664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15665 *) ac_try_echo=$ac_try;;
15666 esac
15667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15668 (eval "$ac_compile") 2>conftest.er1
15669 ac_status=$?
15670 grep -v '^ *+' conftest.er1 >conftest.err
15671 rm -f conftest.er1
15672 cat conftest.err >&5
15673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674 (exit $ac_status); } &&
15675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15676 { (case "(($ac_try" in
15677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15678 *) ac_try_echo=$ac_try;;
15679 esac
15680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15681 (eval "$ac_try") 2>&5
15682 ac_status=$?
15683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684 (exit $ac_status); }; } &&
15685 { ac_try='test -s conftest.$ac_objext'
15686 { (case "(($ac_try" in
15687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15688 *) ac_try_echo=$ac_try;;
15689 esac
15690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15691 (eval "$ac_try") 2>&5
15692 ac_status=$?
15693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694 (exit $ac_status); }; }; then
15695 ac_cv_header_sys_wait_h=yes
15696 else
15697 echo "$as_me: failed program was:" >&5
15698 sed 's/^/| /' conftest.$ac_ext >&5
15700 ac_cv_header_sys_wait_h=no
15703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15705 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15706 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15707 if test $ac_cv_header_sys_wait_h = yes; then
15709 cat >>confdefs.h <<\_ACEOF
15710 #define HAVE_SYS_WAIT_H 1
15711 _ACEOF
15715 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15716 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15717 if test "${ac_cv_header_time+set}" = set; then
15718 echo $ECHO_N "(cached) $ECHO_C" >&6
15719 else
15720 cat >conftest.$ac_ext <<_ACEOF
15721 /* confdefs.h. */
15722 _ACEOF
15723 cat confdefs.h >>conftest.$ac_ext
15724 cat >>conftest.$ac_ext <<_ACEOF
15725 /* end confdefs.h. */
15726 #include <sys/types.h>
15727 #include <sys/time.h>
15728 #include <time.h>
15731 main ()
15733 if ((struct tm *) 0)
15734 return 0;
15736 return 0;
15738 _ACEOF
15739 rm -f conftest.$ac_objext
15740 if { (ac_try="$ac_compile"
15741 case "(($ac_try" in
15742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15743 *) ac_try_echo=$ac_try;;
15744 esac
15745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15746 (eval "$ac_compile") 2>conftest.er1
15747 ac_status=$?
15748 grep -v '^ *+' conftest.er1 >conftest.err
15749 rm -f conftest.er1
15750 cat conftest.err >&5
15751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15752 (exit $ac_status); } &&
15753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15754 { (case "(($ac_try" in
15755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15756 *) ac_try_echo=$ac_try;;
15757 esac
15758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15759 (eval "$ac_try") 2>&5
15760 ac_status=$?
15761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762 (exit $ac_status); }; } &&
15763 { ac_try='test -s conftest.$ac_objext'
15764 { (case "(($ac_try" in
15765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15766 *) ac_try_echo=$ac_try;;
15767 esac
15768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15769 (eval "$ac_try") 2>&5
15770 ac_status=$?
15771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15772 (exit $ac_status); }; }; then
15773 ac_cv_header_time=yes
15774 else
15775 echo "$as_me: failed program was:" >&5
15776 sed 's/^/| /' conftest.$ac_ext >&5
15778 ac_cv_header_time=no
15781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15783 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15784 echo "${ECHO_T}$ac_cv_header_time" >&6; }
15785 if test $ac_cv_header_time = yes; then
15787 cat >>confdefs.h <<\_ACEOF
15788 #define TIME_WITH_SYS_TIME 1
15789 _ACEOF
15800 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15802 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15804 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15806 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15807 echo $ECHO_N "(cached) $ECHO_C" >&6
15809 ac_res=`eval echo '${'$as_ac_Header'}'`
15810 { echo "$as_me:$LINENO: result: $ac_res" >&5
15811 echo "${ECHO_T}$ac_res" >&6; }
15812 else
15813 # Is the header compilable?
15814 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15815 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15816 cat >conftest.$ac_ext <<_ACEOF
15817 /* confdefs.h. */
15818 _ACEOF
15819 cat confdefs.h >>conftest.$ac_ext
15820 cat >>conftest.$ac_ext <<_ACEOF
15821 /* end confdefs.h. */
15822 $ac_includes_default
15823 #include <$ac_header>
15824 _ACEOF
15825 rm -f conftest.$ac_objext
15826 if { (ac_try="$ac_compile"
15827 case "(($ac_try" in
15828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15829 *) ac_try_echo=$ac_try;;
15830 esac
15831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15832 (eval "$ac_compile") 2>conftest.er1
15833 ac_status=$?
15834 grep -v '^ *+' conftest.er1 >conftest.err
15835 rm -f conftest.er1
15836 cat conftest.err >&5
15837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15838 (exit $ac_status); } &&
15839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15840 { (case "(($ac_try" in
15841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15842 *) ac_try_echo=$ac_try;;
15843 esac
15844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15845 (eval "$ac_try") 2>&5
15846 ac_status=$?
15847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848 (exit $ac_status); }; } &&
15849 { ac_try='test -s conftest.$ac_objext'
15850 { (case "(($ac_try" in
15851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15852 *) ac_try_echo=$ac_try;;
15853 esac
15854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15855 (eval "$ac_try") 2>&5
15856 ac_status=$?
15857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15858 (exit $ac_status); }; }; then
15859 ac_header_compiler=yes
15860 else
15861 echo "$as_me: failed program was:" >&5
15862 sed 's/^/| /' conftest.$ac_ext >&5
15864 ac_header_compiler=no
15867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15868 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15869 echo "${ECHO_T}$ac_header_compiler" >&6; }
15871 # Is the header present?
15872 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15873 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15874 cat >conftest.$ac_ext <<_ACEOF
15875 /* confdefs.h. */
15876 _ACEOF
15877 cat confdefs.h >>conftest.$ac_ext
15878 cat >>conftest.$ac_ext <<_ACEOF
15879 /* end confdefs.h. */
15880 #include <$ac_header>
15881 _ACEOF
15882 if { (ac_try="$ac_cpp conftest.$ac_ext"
15883 case "(($ac_try" in
15884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15885 *) ac_try_echo=$ac_try;;
15886 esac
15887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15888 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15889 ac_status=$?
15890 grep -v '^ *+' conftest.er1 >conftest.err
15891 rm -f conftest.er1
15892 cat conftest.err >&5
15893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15894 (exit $ac_status); } >/dev/null; then
15895 if test -s conftest.err; then
15896 ac_cpp_err=$ac_c_preproc_warn_flag
15897 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15898 else
15899 ac_cpp_err=
15901 else
15902 ac_cpp_err=yes
15904 if test -z "$ac_cpp_err"; then
15905 ac_header_preproc=yes
15906 else
15907 echo "$as_me: failed program was:" >&5
15908 sed 's/^/| /' conftest.$ac_ext >&5
15910 ac_header_preproc=no
15913 rm -f conftest.err conftest.$ac_ext
15914 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15915 echo "${ECHO_T}$ac_header_preproc" >&6; }
15917 # So? What about this header?
15918 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15919 yes:no: )
15920 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15921 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15922 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15923 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15924 ac_header_preproc=yes
15926 no:yes:* )
15927 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15928 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15929 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15930 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15931 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15932 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15933 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15934 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15935 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15936 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15937 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15938 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15939 ( cat <<\_ASBOX
15940 ## ----------------------------------- ##
15941 ## Report this to llvmbugs@cs.uiuc.edu ##
15942 ## ----------------------------------- ##
15943 _ASBOX
15944 ) | sed "s/^/$as_me: WARNING: /" >&2
15946 esac
15947 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15949 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15950 echo $ECHO_N "(cached) $ECHO_C" >&6
15951 else
15952 eval "$as_ac_Header=\$ac_header_preproc"
15954 ac_res=`eval echo '${'$as_ac_Header'}'`
15955 { echo "$as_me:$LINENO: result: $ac_res" >&5
15956 echo "${ECHO_T}$ac_res" >&6; }
15959 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15960 cat >>confdefs.h <<_ACEOF
15961 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15962 _ACEOF
15966 done
15974 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15976 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15978 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15979 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15981 echo $ECHO_N "(cached) $ECHO_C" >&6
15983 ac_res=`eval echo '${'$as_ac_Header'}'`
15984 { echo "$as_me:$LINENO: result: $ac_res" >&5
15985 echo "${ECHO_T}$ac_res" >&6; }
15986 else
15987 # Is the header compilable?
15988 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15989 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15990 cat >conftest.$ac_ext <<_ACEOF
15991 /* confdefs.h. */
15992 _ACEOF
15993 cat confdefs.h >>conftest.$ac_ext
15994 cat >>conftest.$ac_ext <<_ACEOF
15995 /* end confdefs.h. */
15996 $ac_includes_default
15997 #include <$ac_header>
15998 _ACEOF
15999 rm -f conftest.$ac_objext
16000 if { (ac_try="$ac_compile"
16001 case "(($ac_try" in
16002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16003 *) ac_try_echo=$ac_try;;
16004 esac
16005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16006 (eval "$ac_compile") 2>conftest.er1
16007 ac_status=$?
16008 grep -v '^ *+' conftest.er1 >conftest.err
16009 rm -f conftest.er1
16010 cat conftest.err >&5
16011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16012 (exit $ac_status); } &&
16013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16014 { (case "(($ac_try" in
16015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16016 *) ac_try_echo=$ac_try;;
16017 esac
16018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16019 (eval "$ac_try") 2>&5
16020 ac_status=$?
16021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16022 (exit $ac_status); }; } &&
16023 { ac_try='test -s conftest.$ac_objext'
16024 { (case "(($ac_try" in
16025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16026 *) ac_try_echo=$ac_try;;
16027 esac
16028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16029 (eval "$ac_try") 2>&5
16030 ac_status=$?
16031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16032 (exit $ac_status); }; }; then
16033 ac_header_compiler=yes
16034 else
16035 echo "$as_me: failed program was:" >&5
16036 sed 's/^/| /' conftest.$ac_ext >&5
16038 ac_header_compiler=no
16041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16042 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16043 echo "${ECHO_T}$ac_header_compiler" >&6; }
16045 # Is the header present?
16046 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16047 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16048 cat >conftest.$ac_ext <<_ACEOF
16049 /* confdefs.h. */
16050 _ACEOF
16051 cat confdefs.h >>conftest.$ac_ext
16052 cat >>conftest.$ac_ext <<_ACEOF
16053 /* end confdefs.h. */
16054 #include <$ac_header>
16055 _ACEOF
16056 if { (ac_try="$ac_cpp conftest.$ac_ext"
16057 case "(($ac_try" in
16058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16059 *) ac_try_echo=$ac_try;;
16060 esac
16061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16062 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16063 ac_status=$?
16064 grep -v '^ *+' conftest.er1 >conftest.err
16065 rm -f conftest.er1
16066 cat conftest.err >&5
16067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16068 (exit $ac_status); } >/dev/null; then
16069 if test -s conftest.err; then
16070 ac_cpp_err=$ac_c_preproc_warn_flag
16071 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16072 else
16073 ac_cpp_err=
16075 else
16076 ac_cpp_err=yes
16078 if test -z "$ac_cpp_err"; then
16079 ac_header_preproc=yes
16080 else
16081 echo "$as_me: failed program was:" >&5
16082 sed 's/^/| /' conftest.$ac_ext >&5
16084 ac_header_preproc=no
16087 rm -f conftest.err conftest.$ac_ext
16088 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16089 echo "${ECHO_T}$ac_header_preproc" >&6; }
16091 # So? What about this header?
16092 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16093 yes:no: )
16094 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16095 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16096 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16097 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16098 ac_header_preproc=yes
16100 no:yes:* )
16101 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16102 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16103 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16104 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16105 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16106 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16107 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16108 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16109 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16110 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16111 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16112 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16113 ( cat <<\_ASBOX
16114 ## ----------------------------------- ##
16115 ## Report this to llvmbugs@cs.uiuc.edu ##
16116 ## ----------------------------------- ##
16117 _ASBOX
16118 ) | sed "s/^/$as_me: WARNING: /" >&2
16120 esac
16121 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16122 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16123 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16124 echo $ECHO_N "(cached) $ECHO_C" >&6
16125 else
16126 eval "$as_ac_Header=\$ac_header_preproc"
16128 ac_res=`eval echo '${'$as_ac_Header'}'`
16129 { echo "$as_me:$LINENO: result: $ac_res" >&5
16130 echo "${ECHO_T}$ac_res" >&6; }
16133 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16134 cat >>confdefs.h <<_ACEOF
16135 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16136 _ACEOF
16140 done
16144 for ac_header in utime.h windows.h
16146 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16147 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16148 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16149 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16150 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16151 echo $ECHO_N "(cached) $ECHO_C" >&6
16153 ac_res=`eval echo '${'$as_ac_Header'}'`
16154 { echo "$as_me:$LINENO: result: $ac_res" >&5
16155 echo "${ECHO_T}$ac_res" >&6; }
16156 else
16157 # Is the header compilable?
16158 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16159 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16160 cat >conftest.$ac_ext <<_ACEOF
16161 /* confdefs.h. */
16162 _ACEOF
16163 cat confdefs.h >>conftest.$ac_ext
16164 cat >>conftest.$ac_ext <<_ACEOF
16165 /* end confdefs.h. */
16166 $ac_includes_default
16167 #include <$ac_header>
16168 _ACEOF
16169 rm -f conftest.$ac_objext
16170 if { (ac_try="$ac_compile"
16171 case "(($ac_try" in
16172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16173 *) ac_try_echo=$ac_try;;
16174 esac
16175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16176 (eval "$ac_compile") 2>conftest.er1
16177 ac_status=$?
16178 grep -v '^ *+' conftest.er1 >conftest.err
16179 rm -f conftest.er1
16180 cat conftest.err >&5
16181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16182 (exit $ac_status); } &&
16183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16184 { (case "(($ac_try" in
16185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16186 *) ac_try_echo=$ac_try;;
16187 esac
16188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16189 (eval "$ac_try") 2>&5
16190 ac_status=$?
16191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16192 (exit $ac_status); }; } &&
16193 { ac_try='test -s conftest.$ac_objext'
16194 { (case "(($ac_try" in
16195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16196 *) ac_try_echo=$ac_try;;
16197 esac
16198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16199 (eval "$ac_try") 2>&5
16200 ac_status=$?
16201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16202 (exit $ac_status); }; }; then
16203 ac_header_compiler=yes
16204 else
16205 echo "$as_me: failed program was:" >&5
16206 sed 's/^/| /' conftest.$ac_ext >&5
16208 ac_header_compiler=no
16211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16212 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16213 echo "${ECHO_T}$ac_header_compiler" >&6; }
16215 # Is the header present?
16216 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16217 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16218 cat >conftest.$ac_ext <<_ACEOF
16219 /* confdefs.h. */
16220 _ACEOF
16221 cat confdefs.h >>conftest.$ac_ext
16222 cat >>conftest.$ac_ext <<_ACEOF
16223 /* end confdefs.h. */
16224 #include <$ac_header>
16225 _ACEOF
16226 if { (ac_try="$ac_cpp conftest.$ac_ext"
16227 case "(($ac_try" in
16228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16229 *) ac_try_echo=$ac_try;;
16230 esac
16231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16232 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16233 ac_status=$?
16234 grep -v '^ *+' conftest.er1 >conftest.err
16235 rm -f conftest.er1
16236 cat conftest.err >&5
16237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16238 (exit $ac_status); } >/dev/null; then
16239 if test -s conftest.err; then
16240 ac_cpp_err=$ac_c_preproc_warn_flag
16241 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16242 else
16243 ac_cpp_err=
16245 else
16246 ac_cpp_err=yes
16248 if test -z "$ac_cpp_err"; then
16249 ac_header_preproc=yes
16250 else
16251 echo "$as_me: failed program was:" >&5
16252 sed 's/^/| /' conftest.$ac_ext >&5
16254 ac_header_preproc=no
16257 rm -f conftest.err conftest.$ac_ext
16258 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16259 echo "${ECHO_T}$ac_header_preproc" >&6; }
16261 # So? What about this header?
16262 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16263 yes:no: )
16264 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16265 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16266 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16267 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16268 ac_header_preproc=yes
16270 no:yes:* )
16271 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16272 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16273 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16274 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16275 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16276 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16277 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16278 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16279 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16280 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16281 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16282 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16283 ( cat <<\_ASBOX
16284 ## ----------------------------------- ##
16285 ## Report this to llvmbugs@cs.uiuc.edu ##
16286 ## ----------------------------------- ##
16287 _ASBOX
16288 ) | sed "s/^/$as_me: WARNING: /" >&2
16290 esac
16291 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16292 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16293 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16294 echo $ECHO_N "(cached) $ECHO_C" >&6
16295 else
16296 eval "$as_ac_Header=\$ac_header_preproc"
16298 ac_res=`eval echo '${'$as_ac_Header'}'`
16299 { echo "$as_me:$LINENO: result: $ac_res" >&5
16300 echo "${ECHO_T}$ac_res" >&6; }
16303 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16304 cat >>confdefs.h <<_ACEOF
16305 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16306 _ACEOF
16310 done
16317 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
16319 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16320 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16321 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16324 echo $ECHO_N "(cached) $ECHO_C" >&6
16326 ac_res=`eval echo '${'$as_ac_Header'}'`
16327 { echo "$as_me:$LINENO: result: $ac_res" >&5
16328 echo "${ECHO_T}$ac_res" >&6; }
16329 else
16330 # Is the header compilable?
16331 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16332 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16333 cat >conftest.$ac_ext <<_ACEOF
16334 /* confdefs.h. */
16335 _ACEOF
16336 cat confdefs.h >>conftest.$ac_ext
16337 cat >>conftest.$ac_ext <<_ACEOF
16338 /* end confdefs.h. */
16339 $ac_includes_default
16340 #include <$ac_header>
16341 _ACEOF
16342 rm -f conftest.$ac_objext
16343 if { (ac_try="$ac_compile"
16344 case "(($ac_try" in
16345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16346 *) ac_try_echo=$ac_try;;
16347 esac
16348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16349 (eval "$ac_compile") 2>conftest.er1
16350 ac_status=$?
16351 grep -v '^ *+' conftest.er1 >conftest.err
16352 rm -f conftest.er1
16353 cat conftest.err >&5
16354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16355 (exit $ac_status); } &&
16356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16357 { (case "(($ac_try" in
16358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16359 *) ac_try_echo=$ac_try;;
16360 esac
16361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16362 (eval "$ac_try") 2>&5
16363 ac_status=$?
16364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16365 (exit $ac_status); }; } &&
16366 { ac_try='test -s conftest.$ac_objext'
16367 { (case "(($ac_try" in
16368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16369 *) ac_try_echo=$ac_try;;
16370 esac
16371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16372 (eval "$ac_try") 2>&5
16373 ac_status=$?
16374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16375 (exit $ac_status); }; }; then
16376 ac_header_compiler=yes
16377 else
16378 echo "$as_me: failed program was:" >&5
16379 sed 's/^/| /' conftest.$ac_ext >&5
16381 ac_header_compiler=no
16384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16385 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16386 echo "${ECHO_T}$ac_header_compiler" >&6; }
16388 # Is the header present?
16389 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16390 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16391 cat >conftest.$ac_ext <<_ACEOF
16392 /* confdefs.h. */
16393 _ACEOF
16394 cat confdefs.h >>conftest.$ac_ext
16395 cat >>conftest.$ac_ext <<_ACEOF
16396 /* end confdefs.h. */
16397 #include <$ac_header>
16398 _ACEOF
16399 if { (ac_try="$ac_cpp conftest.$ac_ext"
16400 case "(($ac_try" in
16401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16402 *) ac_try_echo=$ac_try;;
16403 esac
16404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16405 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16406 ac_status=$?
16407 grep -v '^ *+' conftest.er1 >conftest.err
16408 rm -f conftest.er1
16409 cat conftest.err >&5
16410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16411 (exit $ac_status); } >/dev/null; then
16412 if test -s conftest.err; then
16413 ac_cpp_err=$ac_c_preproc_warn_flag
16414 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16415 else
16416 ac_cpp_err=
16418 else
16419 ac_cpp_err=yes
16421 if test -z "$ac_cpp_err"; then
16422 ac_header_preproc=yes
16423 else
16424 echo "$as_me: failed program was:" >&5
16425 sed 's/^/| /' conftest.$ac_ext >&5
16427 ac_header_preproc=no
16430 rm -f conftest.err conftest.$ac_ext
16431 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16432 echo "${ECHO_T}$ac_header_preproc" >&6; }
16434 # So? What about this header?
16435 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16436 yes:no: )
16437 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16438 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16439 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16440 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16441 ac_header_preproc=yes
16443 no:yes:* )
16444 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16445 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16446 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16447 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16448 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16449 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16450 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16451 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16452 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16453 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16454 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16455 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16456 ( cat <<\_ASBOX
16457 ## ----------------------------------- ##
16458 ## Report this to llvmbugs@cs.uiuc.edu ##
16459 ## ----------------------------------- ##
16460 _ASBOX
16461 ) | sed "s/^/$as_me: WARNING: /" >&2
16463 esac
16464 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16465 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16466 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16467 echo $ECHO_N "(cached) $ECHO_C" >&6
16468 else
16469 eval "$as_ac_Header=\$ac_header_preproc"
16471 ac_res=`eval echo '${'$as_ac_Header'}'`
16472 { echo "$as_me:$LINENO: result: $ac_res" >&5
16473 echo "${ECHO_T}$ac_res" >&6; }
16476 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16477 cat >>confdefs.h <<_ACEOF
16478 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16479 _ACEOF
16483 done
16489 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
16491 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16492 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16493 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16495 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16496 echo $ECHO_N "(cached) $ECHO_C" >&6
16498 ac_res=`eval echo '${'$as_ac_Header'}'`
16499 { echo "$as_me:$LINENO: result: $ac_res" >&5
16500 echo "${ECHO_T}$ac_res" >&6; }
16501 else
16502 # Is the header compilable?
16503 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16504 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16505 cat >conftest.$ac_ext <<_ACEOF
16506 /* confdefs.h. */
16507 _ACEOF
16508 cat confdefs.h >>conftest.$ac_ext
16509 cat >>conftest.$ac_ext <<_ACEOF
16510 /* end confdefs.h. */
16511 $ac_includes_default
16512 #include <$ac_header>
16513 _ACEOF
16514 rm -f conftest.$ac_objext
16515 if { (ac_try="$ac_compile"
16516 case "(($ac_try" in
16517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16518 *) ac_try_echo=$ac_try;;
16519 esac
16520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16521 (eval "$ac_compile") 2>conftest.er1
16522 ac_status=$?
16523 grep -v '^ *+' conftest.er1 >conftest.err
16524 rm -f conftest.er1
16525 cat conftest.err >&5
16526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527 (exit $ac_status); } &&
16528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16529 { (case "(($ac_try" in
16530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16531 *) ac_try_echo=$ac_try;;
16532 esac
16533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16534 (eval "$ac_try") 2>&5
16535 ac_status=$?
16536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16537 (exit $ac_status); }; } &&
16538 { ac_try='test -s conftest.$ac_objext'
16539 { (case "(($ac_try" in
16540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16541 *) ac_try_echo=$ac_try;;
16542 esac
16543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16544 (eval "$ac_try") 2>&5
16545 ac_status=$?
16546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547 (exit $ac_status); }; }; then
16548 ac_header_compiler=yes
16549 else
16550 echo "$as_me: failed program was:" >&5
16551 sed 's/^/| /' conftest.$ac_ext >&5
16553 ac_header_compiler=no
16556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16557 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16558 echo "${ECHO_T}$ac_header_compiler" >&6; }
16560 # Is the header present?
16561 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16562 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16563 cat >conftest.$ac_ext <<_ACEOF
16564 /* confdefs.h. */
16565 _ACEOF
16566 cat confdefs.h >>conftest.$ac_ext
16567 cat >>conftest.$ac_ext <<_ACEOF
16568 /* end confdefs.h. */
16569 #include <$ac_header>
16570 _ACEOF
16571 if { (ac_try="$ac_cpp conftest.$ac_ext"
16572 case "(($ac_try" in
16573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16574 *) ac_try_echo=$ac_try;;
16575 esac
16576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16577 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16578 ac_status=$?
16579 grep -v '^ *+' conftest.er1 >conftest.err
16580 rm -f conftest.er1
16581 cat conftest.err >&5
16582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16583 (exit $ac_status); } >/dev/null; then
16584 if test -s conftest.err; then
16585 ac_cpp_err=$ac_c_preproc_warn_flag
16586 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16587 else
16588 ac_cpp_err=
16590 else
16591 ac_cpp_err=yes
16593 if test -z "$ac_cpp_err"; then
16594 ac_header_preproc=yes
16595 else
16596 echo "$as_me: failed program was:" >&5
16597 sed 's/^/| /' conftest.$ac_ext >&5
16599 ac_header_preproc=no
16602 rm -f conftest.err conftest.$ac_ext
16603 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16604 echo "${ECHO_T}$ac_header_preproc" >&6; }
16606 # So? What about this header?
16607 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16608 yes:no: )
16609 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16610 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16611 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16612 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16613 ac_header_preproc=yes
16615 no:yes:* )
16616 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16617 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16618 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16619 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16620 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16621 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16622 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16623 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16624 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16625 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16626 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16627 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16628 ( cat <<\_ASBOX
16629 ## ----------------------------------- ##
16630 ## Report this to llvmbugs@cs.uiuc.edu ##
16631 ## ----------------------------------- ##
16632 _ASBOX
16633 ) | sed "s/^/$as_me: WARNING: /" >&2
16635 esac
16636 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16638 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16639 echo $ECHO_N "(cached) $ECHO_C" >&6
16640 else
16641 eval "$as_ac_Header=\$ac_header_preproc"
16643 ac_res=`eval echo '${'$as_ac_Header'}'`
16644 { echo "$as_me:$LINENO: result: $ac_res" >&5
16645 echo "${ECHO_T}$ac_res" >&6; }
16648 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16649 cat >>confdefs.h <<_ACEOF
16650 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16651 _ACEOF
16655 done
16658 for ac_header in valgrind/valgrind.h
16660 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16661 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16662 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16664 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16665 echo $ECHO_N "(cached) $ECHO_C" >&6
16667 ac_res=`eval echo '${'$as_ac_Header'}'`
16668 { echo "$as_me:$LINENO: result: $ac_res" >&5
16669 echo "${ECHO_T}$ac_res" >&6; }
16670 else
16671 # Is the header compilable?
16672 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16673 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16674 cat >conftest.$ac_ext <<_ACEOF
16675 /* confdefs.h. */
16676 _ACEOF
16677 cat confdefs.h >>conftest.$ac_ext
16678 cat >>conftest.$ac_ext <<_ACEOF
16679 /* end confdefs.h. */
16680 $ac_includes_default
16681 #include <$ac_header>
16682 _ACEOF
16683 rm -f conftest.$ac_objext
16684 if { (ac_try="$ac_compile"
16685 case "(($ac_try" in
16686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16687 *) ac_try_echo=$ac_try;;
16688 esac
16689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16690 (eval "$ac_compile") 2>conftest.er1
16691 ac_status=$?
16692 grep -v '^ *+' conftest.er1 >conftest.err
16693 rm -f conftest.er1
16694 cat conftest.err >&5
16695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16696 (exit $ac_status); } &&
16697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16698 { (case "(($ac_try" in
16699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16700 *) ac_try_echo=$ac_try;;
16701 esac
16702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16703 (eval "$ac_try") 2>&5
16704 ac_status=$?
16705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16706 (exit $ac_status); }; } &&
16707 { ac_try='test -s conftest.$ac_objext'
16708 { (case "(($ac_try" in
16709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16710 *) ac_try_echo=$ac_try;;
16711 esac
16712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16713 (eval "$ac_try") 2>&5
16714 ac_status=$?
16715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16716 (exit $ac_status); }; }; then
16717 ac_header_compiler=yes
16718 else
16719 echo "$as_me: failed program was:" >&5
16720 sed 's/^/| /' conftest.$ac_ext >&5
16722 ac_header_compiler=no
16725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16726 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16727 echo "${ECHO_T}$ac_header_compiler" >&6; }
16729 # Is the header present?
16730 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16731 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16732 cat >conftest.$ac_ext <<_ACEOF
16733 /* confdefs.h. */
16734 _ACEOF
16735 cat confdefs.h >>conftest.$ac_ext
16736 cat >>conftest.$ac_ext <<_ACEOF
16737 /* end confdefs.h. */
16738 #include <$ac_header>
16739 _ACEOF
16740 if { (ac_try="$ac_cpp conftest.$ac_ext"
16741 case "(($ac_try" in
16742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16743 *) ac_try_echo=$ac_try;;
16744 esac
16745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16746 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16747 ac_status=$?
16748 grep -v '^ *+' conftest.er1 >conftest.err
16749 rm -f conftest.er1
16750 cat conftest.err >&5
16751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16752 (exit $ac_status); } >/dev/null; then
16753 if test -s conftest.err; then
16754 ac_cpp_err=$ac_c_preproc_warn_flag
16755 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16756 else
16757 ac_cpp_err=
16759 else
16760 ac_cpp_err=yes
16762 if test -z "$ac_cpp_err"; then
16763 ac_header_preproc=yes
16764 else
16765 echo "$as_me: failed program was:" >&5
16766 sed 's/^/| /' conftest.$ac_ext >&5
16768 ac_header_preproc=no
16771 rm -f conftest.err conftest.$ac_ext
16772 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16773 echo "${ECHO_T}$ac_header_preproc" >&6; }
16775 # So? What about this header?
16776 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16777 yes:no: )
16778 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16779 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16780 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16781 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16782 ac_header_preproc=yes
16784 no:yes:* )
16785 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16786 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16787 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16788 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16789 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16790 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16791 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16792 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16793 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16794 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16795 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16796 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16797 ( cat <<\_ASBOX
16798 ## ----------------------------------- ##
16799 ## Report this to llvmbugs@cs.uiuc.edu ##
16800 ## ----------------------------------- ##
16801 _ASBOX
16802 ) | sed "s/^/$as_me: WARNING: /" >&2
16804 esac
16805 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16806 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16807 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16808 echo $ECHO_N "(cached) $ECHO_C" >&6
16809 else
16810 eval "$as_ac_Header=\$ac_header_preproc"
16812 ac_res=`eval echo '${'$as_ac_Header'}'`
16813 { echo "$as_me:$LINENO: result: $ac_res" >&5
16814 echo "${ECHO_T}$ac_res" >&6; }
16817 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16818 cat >>confdefs.h <<_ACEOF
16819 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16820 _ACEOF
16824 done
16827 for ac_header in fenv.h
16829 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16830 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16831 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16833 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16834 echo $ECHO_N "(cached) $ECHO_C" >&6
16836 ac_res=`eval echo '${'$as_ac_Header'}'`
16837 { echo "$as_me:$LINENO: result: $ac_res" >&5
16838 echo "${ECHO_T}$ac_res" >&6; }
16839 else
16840 # Is the header compilable?
16841 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16842 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16843 cat >conftest.$ac_ext <<_ACEOF
16844 /* confdefs.h. */
16845 _ACEOF
16846 cat confdefs.h >>conftest.$ac_ext
16847 cat >>conftest.$ac_ext <<_ACEOF
16848 /* end confdefs.h. */
16849 $ac_includes_default
16850 #include <$ac_header>
16851 _ACEOF
16852 rm -f conftest.$ac_objext
16853 if { (ac_try="$ac_compile"
16854 case "(($ac_try" in
16855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16856 *) ac_try_echo=$ac_try;;
16857 esac
16858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16859 (eval "$ac_compile") 2>conftest.er1
16860 ac_status=$?
16861 grep -v '^ *+' conftest.er1 >conftest.err
16862 rm -f conftest.er1
16863 cat conftest.err >&5
16864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16865 (exit $ac_status); } &&
16866 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16867 { (case "(($ac_try" in
16868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16869 *) ac_try_echo=$ac_try;;
16870 esac
16871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16872 (eval "$ac_try") 2>&5
16873 ac_status=$?
16874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16875 (exit $ac_status); }; } &&
16876 { ac_try='test -s conftest.$ac_objext'
16877 { (case "(($ac_try" in
16878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16879 *) ac_try_echo=$ac_try;;
16880 esac
16881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16882 (eval "$ac_try") 2>&5
16883 ac_status=$?
16884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16885 (exit $ac_status); }; }; then
16886 ac_header_compiler=yes
16887 else
16888 echo "$as_me: failed program was:" >&5
16889 sed 's/^/| /' conftest.$ac_ext >&5
16891 ac_header_compiler=no
16894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16895 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16896 echo "${ECHO_T}$ac_header_compiler" >&6; }
16898 # Is the header present?
16899 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16900 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16901 cat >conftest.$ac_ext <<_ACEOF
16902 /* confdefs.h. */
16903 _ACEOF
16904 cat confdefs.h >>conftest.$ac_ext
16905 cat >>conftest.$ac_ext <<_ACEOF
16906 /* end confdefs.h. */
16907 #include <$ac_header>
16908 _ACEOF
16909 if { (ac_try="$ac_cpp conftest.$ac_ext"
16910 case "(($ac_try" in
16911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16912 *) ac_try_echo=$ac_try;;
16913 esac
16914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16915 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16916 ac_status=$?
16917 grep -v '^ *+' conftest.er1 >conftest.err
16918 rm -f conftest.er1
16919 cat conftest.err >&5
16920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16921 (exit $ac_status); } >/dev/null; then
16922 if test -s conftest.err; then
16923 ac_cpp_err=$ac_c_preproc_warn_flag
16924 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16925 else
16926 ac_cpp_err=
16928 else
16929 ac_cpp_err=yes
16931 if test -z "$ac_cpp_err"; then
16932 ac_header_preproc=yes
16933 else
16934 echo "$as_me: failed program was:" >&5
16935 sed 's/^/| /' conftest.$ac_ext >&5
16937 ac_header_preproc=no
16940 rm -f conftest.err conftest.$ac_ext
16941 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16942 echo "${ECHO_T}$ac_header_preproc" >&6; }
16944 # So? What about this header?
16945 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16946 yes:no: )
16947 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16948 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16949 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16950 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16951 ac_header_preproc=yes
16953 no:yes:* )
16954 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16955 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16956 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16957 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16958 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16959 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16960 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16961 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16962 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16963 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16964 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16965 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16966 ( cat <<\_ASBOX
16967 ## ----------------------------------- ##
16968 ## Report this to llvmbugs@cs.uiuc.edu ##
16969 ## ----------------------------------- ##
16970 _ASBOX
16971 ) | sed "s/^/$as_me: WARNING: /" >&2
16973 esac
16974 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16975 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16976 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16977 echo $ECHO_N "(cached) $ECHO_C" >&6
16978 else
16979 eval "$as_ac_Header=\$ac_header_preproc"
16981 ac_res=`eval echo '${'$as_ac_Header'}'`
16982 { echo "$as_me:$LINENO: result: $ac_res" >&5
16983 echo "${ECHO_T}$ac_res" >&6; }
16986 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16987 cat >>confdefs.h <<_ACEOF
16988 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16989 _ACEOF
16993 done
16995 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
16997 for ac_header in pthread.h
16999 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17000 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17001 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17002 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17003 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17004 echo $ECHO_N "(cached) $ECHO_C" >&6
17006 ac_res=`eval echo '${'$as_ac_Header'}'`
17007 { echo "$as_me:$LINENO: result: $ac_res" >&5
17008 echo "${ECHO_T}$ac_res" >&6; }
17009 else
17010 # Is the header compilable?
17011 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17012 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17013 cat >conftest.$ac_ext <<_ACEOF
17014 /* confdefs.h. */
17015 _ACEOF
17016 cat confdefs.h >>conftest.$ac_ext
17017 cat >>conftest.$ac_ext <<_ACEOF
17018 /* end confdefs.h. */
17019 $ac_includes_default
17020 #include <$ac_header>
17021 _ACEOF
17022 rm -f conftest.$ac_objext
17023 if { (ac_try="$ac_compile"
17024 case "(($ac_try" in
17025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17026 *) ac_try_echo=$ac_try;;
17027 esac
17028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17029 (eval "$ac_compile") 2>conftest.er1
17030 ac_status=$?
17031 grep -v '^ *+' conftest.er1 >conftest.err
17032 rm -f conftest.er1
17033 cat conftest.err >&5
17034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17035 (exit $ac_status); } &&
17036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17037 { (case "(($ac_try" in
17038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17039 *) ac_try_echo=$ac_try;;
17040 esac
17041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17042 (eval "$ac_try") 2>&5
17043 ac_status=$?
17044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17045 (exit $ac_status); }; } &&
17046 { ac_try='test -s conftest.$ac_objext'
17047 { (case "(($ac_try" in
17048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17049 *) ac_try_echo=$ac_try;;
17050 esac
17051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17052 (eval "$ac_try") 2>&5
17053 ac_status=$?
17054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17055 (exit $ac_status); }; }; then
17056 ac_header_compiler=yes
17057 else
17058 echo "$as_me: failed program was:" >&5
17059 sed 's/^/| /' conftest.$ac_ext >&5
17061 ac_header_compiler=no
17064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17065 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17066 echo "${ECHO_T}$ac_header_compiler" >&6; }
17068 # Is the header present?
17069 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17070 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17071 cat >conftest.$ac_ext <<_ACEOF
17072 /* confdefs.h. */
17073 _ACEOF
17074 cat confdefs.h >>conftest.$ac_ext
17075 cat >>conftest.$ac_ext <<_ACEOF
17076 /* end confdefs.h. */
17077 #include <$ac_header>
17078 _ACEOF
17079 if { (ac_try="$ac_cpp conftest.$ac_ext"
17080 case "(($ac_try" in
17081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17082 *) ac_try_echo=$ac_try;;
17083 esac
17084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17085 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17086 ac_status=$?
17087 grep -v '^ *+' conftest.er1 >conftest.err
17088 rm -f conftest.er1
17089 cat conftest.err >&5
17090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17091 (exit $ac_status); } >/dev/null; then
17092 if test -s conftest.err; then
17093 ac_cpp_err=$ac_c_preproc_warn_flag
17094 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17095 else
17096 ac_cpp_err=
17098 else
17099 ac_cpp_err=yes
17101 if test -z "$ac_cpp_err"; then
17102 ac_header_preproc=yes
17103 else
17104 echo "$as_me: failed program was:" >&5
17105 sed 's/^/| /' conftest.$ac_ext >&5
17107 ac_header_preproc=no
17110 rm -f conftest.err conftest.$ac_ext
17111 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17112 echo "${ECHO_T}$ac_header_preproc" >&6; }
17114 # So? What about this header?
17115 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17116 yes:no: )
17117 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17118 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17119 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17120 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17121 ac_header_preproc=yes
17123 no:yes:* )
17124 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17125 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17126 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17127 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17128 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17129 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17130 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17131 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17132 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17133 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17134 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17135 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17136 ( cat <<\_ASBOX
17137 ## ----------------------------------- ##
17138 ## Report this to llvmbugs@cs.uiuc.edu ##
17139 ## ----------------------------------- ##
17140 _ASBOX
17141 ) | sed "s/^/$as_me: WARNING: /" >&2
17143 esac
17144 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17145 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17146 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17147 echo $ECHO_N "(cached) $ECHO_C" >&6
17148 else
17149 eval "$as_ac_Header=\$ac_header_preproc"
17151 ac_res=`eval echo '${'$as_ac_Header'}'`
17152 { echo "$as_me:$LINENO: result: $ac_res" >&5
17153 echo "${ECHO_T}$ac_res" >&6; }
17156 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17157 cat >>confdefs.h <<_ACEOF
17158 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17159 _ACEOF
17160 HAVE_PTHREAD=1
17162 else
17163 HAVE_PTHREAD=0
17167 done
17169 else
17170 HAVE_PTHREAD=0
17174 if test "$llvm_cv_enable_libffi" = "yes" ; then
17177 for ac_header in ffi.h ffi/ffi.h
17179 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17180 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17181 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17182 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17183 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17184 echo $ECHO_N "(cached) $ECHO_C" >&6
17186 ac_res=`eval echo '${'$as_ac_Header'}'`
17187 { echo "$as_me:$LINENO: result: $ac_res" >&5
17188 echo "${ECHO_T}$ac_res" >&6; }
17189 else
17190 # Is the header compilable?
17191 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17192 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17193 cat >conftest.$ac_ext <<_ACEOF
17194 /* confdefs.h. */
17195 _ACEOF
17196 cat confdefs.h >>conftest.$ac_ext
17197 cat >>conftest.$ac_ext <<_ACEOF
17198 /* end confdefs.h. */
17199 $ac_includes_default
17200 #include <$ac_header>
17201 _ACEOF
17202 rm -f conftest.$ac_objext
17203 if { (ac_try="$ac_compile"
17204 case "(($ac_try" in
17205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17206 *) ac_try_echo=$ac_try;;
17207 esac
17208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17209 (eval "$ac_compile") 2>conftest.er1
17210 ac_status=$?
17211 grep -v '^ *+' conftest.er1 >conftest.err
17212 rm -f conftest.er1
17213 cat conftest.err >&5
17214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17215 (exit $ac_status); } &&
17216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17217 { (case "(($ac_try" in
17218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17219 *) ac_try_echo=$ac_try;;
17220 esac
17221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17222 (eval "$ac_try") 2>&5
17223 ac_status=$?
17224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17225 (exit $ac_status); }; } &&
17226 { ac_try='test -s conftest.$ac_objext'
17227 { (case "(($ac_try" in
17228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17229 *) ac_try_echo=$ac_try;;
17230 esac
17231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17232 (eval "$ac_try") 2>&5
17233 ac_status=$?
17234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17235 (exit $ac_status); }; }; then
17236 ac_header_compiler=yes
17237 else
17238 echo "$as_me: failed program was:" >&5
17239 sed 's/^/| /' conftest.$ac_ext >&5
17241 ac_header_compiler=no
17244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17245 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17246 echo "${ECHO_T}$ac_header_compiler" >&6; }
17248 # Is the header present?
17249 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17250 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17251 cat >conftest.$ac_ext <<_ACEOF
17252 /* confdefs.h. */
17253 _ACEOF
17254 cat confdefs.h >>conftest.$ac_ext
17255 cat >>conftest.$ac_ext <<_ACEOF
17256 /* end confdefs.h. */
17257 #include <$ac_header>
17258 _ACEOF
17259 if { (ac_try="$ac_cpp conftest.$ac_ext"
17260 case "(($ac_try" in
17261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17262 *) ac_try_echo=$ac_try;;
17263 esac
17264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17265 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17266 ac_status=$?
17267 grep -v '^ *+' conftest.er1 >conftest.err
17268 rm -f conftest.er1
17269 cat conftest.err >&5
17270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17271 (exit $ac_status); } >/dev/null; then
17272 if test -s conftest.err; then
17273 ac_cpp_err=$ac_c_preproc_warn_flag
17274 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17275 else
17276 ac_cpp_err=
17278 else
17279 ac_cpp_err=yes
17281 if test -z "$ac_cpp_err"; then
17282 ac_header_preproc=yes
17283 else
17284 echo "$as_me: failed program was:" >&5
17285 sed 's/^/| /' conftest.$ac_ext >&5
17287 ac_header_preproc=no
17290 rm -f conftest.err conftest.$ac_ext
17291 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17292 echo "${ECHO_T}$ac_header_preproc" >&6; }
17294 # So? What about this header?
17295 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17296 yes:no: )
17297 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17298 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17299 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17300 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17301 ac_header_preproc=yes
17303 no:yes:* )
17304 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17305 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17306 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17307 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17308 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17309 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17310 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17311 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17312 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17313 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17314 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17315 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17316 ( cat <<\_ASBOX
17317 ## ----------------------------------- ##
17318 ## Report this to llvmbugs@cs.uiuc.edu ##
17319 ## ----------------------------------- ##
17320 _ASBOX
17321 ) | sed "s/^/$as_me: WARNING: /" >&2
17323 esac
17324 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17327 echo $ECHO_N "(cached) $ECHO_C" >&6
17328 else
17329 eval "$as_ac_Header=\$ac_header_preproc"
17331 ac_res=`eval echo '${'$as_ac_Header'}'`
17332 { echo "$as_me:$LINENO: result: $ac_res" >&5
17333 echo "${ECHO_T}$ac_res" >&6; }
17336 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17337 cat >>confdefs.h <<_ACEOF
17338 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17339 _ACEOF
17343 done
17348 for ac_header in CrashReporterClient.h
17350 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17351 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17352 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17354 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17355 echo $ECHO_N "(cached) $ECHO_C" >&6
17357 ac_res=`eval echo '${'$as_ac_Header'}'`
17358 { echo "$as_me:$LINENO: result: $ac_res" >&5
17359 echo "${ECHO_T}$ac_res" >&6; }
17360 else
17361 # Is the header compilable?
17362 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17363 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17364 cat >conftest.$ac_ext <<_ACEOF
17365 /* confdefs.h. */
17366 _ACEOF
17367 cat confdefs.h >>conftest.$ac_ext
17368 cat >>conftest.$ac_ext <<_ACEOF
17369 /* end confdefs.h. */
17370 $ac_includes_default
17371 #include <$ac_header>
17372 _ACEOF
17373 rm -f conftest.$ac_objext
17374 if { (ac_try="$ac_compile"
17375 case "(($ac_try" in
17376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17377 *) ac_try_echo=$ac_try;;
17378 esac
17379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17380 (eval "$ac_compile") 2>conftest.er1
17381 ac_status=$?
17382 grep -v '^ *+' conftest.er1 >conftest.err
17383 rm -f conftest.er1
17384 cat conftest.err >&5
17385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17386 (exit $ac_status); } &&
17387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17388 { (case "(($ac_try" in
17389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17390 *) ac_try_echo=$ac_try;;
17391 esac
17392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17393 (eval "$ac_try") 2>&5
17394 ac_status=$?
17395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17396 (exit $ac_status); }; } &&
17397 { ac_try='test -s conftest.$ac_objext'
17398 { (case "(($ac_try" in
17399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17400 *) ac_try_echo=$ac_try;;
17401 esac
17402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17403 (eval "$ac_try") 2>&5
17404 ac_status=$?
17405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406 (exit $ac_status); }; }; then
17407 ac_header_compiler=yes
17408 else
17409 echo "$as_me: failed program was:" >&5
17410 sed 's/^/| /' conftest.$ac_ext >&5
17412 ac_header_compiler=no
17415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17416 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17417 echo "${ECHO_T}$ac_header_compiler" >&6; }
17419 # Is the header present?
17420 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17421 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17422 cat >conftest.$ac_ext <<_ACEOF
17423 /* confdefs.h. */
17424 _ACEOF
17425 cat confdefs.h >>conftest.$ac_ext
17426 cat >>conftest.$ac_ext <<_ACEOF
17427 /* end confdefs.h. */
17428 #include <$ac_header>
17429 _ACEOF
17430 if { (ac_try="$ac_cpp conftest.$ac_ext"
17431 case "(($ac_try" in
17432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17433 *) ac_try_echo=$ac_try;;
17434 esac
17435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17436 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17437 ac_status=$?
17438 grep -v '^ *+' conftest.er1 >conftest.err
17439 rm -f conftest.er1
17440 cat conftest.err >&5
17441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17442 (exit $ac_status); } >/dev/null; then
17443 if test -s conftest.err; then
17444 ac_cpp_err=$ac_c_preproc_warn_flag
17445 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17446 else
17447 ac_cpp_err=
17449 else
17450 ac_cpp_err=yes
17452 if test -z "$ac_cpp_err"; then
17453 ac_header_preproc=yes
17454 else
17455 echo "$as_me: failed program was:" >&5
17456 sed 's/^/| /' conftest.$ac_ext >&5
17458 ac_header_preproc=no
17461 rm -f conftest.err conftest.$ac_ext
17462 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17463 echo "${ECHO_T}$ac_header_preproc" >&6; }
17465 # So? What about this header?
17466 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17467 yes:no: )
17468 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17469 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17470 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17471 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17472 ac_header_preproc=yes
17474 no:yes:* )
17475 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17476 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17477 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17478 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17479 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17480 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17481 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17482 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17483 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17484 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17485 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17486 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17487 ( cat <<\_ASBOX
17488 ## ----------------------------------- ##
17489 ## Report this to llvmbugs@cs.uiuc.edu ##
17490 ## ----------------------------------- ##
17491 _ASBOX
17492 ) | sed "s/^/$as_me: WARNING: /" >&2
17494 esac
17495 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17498 echo $ECHO_N "(cached) $ECHO_C" >&6
17499 else
17500 eval "$as_ac_Header=\$ac_header_preproc"
17502 ac_res=`eval echo '${'$as_ac_Header'}'`
17503 { echo "$as_me:$LINENO: result: $ac_res" >&5
17504 echo "${ECHO_T}$ac_res" >&6; }
17507 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17508 cat >>confdefs.h <<_ACEOF
17509 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17510 _ACEOF
17514 done
17517 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
17518 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
17519 cat >conftest.$ac_ext <<_ACEOF
17520 /* confdefs.h. */
17521 _ACEOF
17522 cat confdefs.h >>conftest.$ac_ext
17523 cat >>conftest.$ac_ext <<_ACEOF
17524 /* end confdefs.h. */
17525 extern const char *__crashreporter_info__;
17526 int main() {
17527 __crashreporter_info__ = "test";
17528 return 0;
17531 _ACEOF
17532 rm -f conftest.$ac_objext conftest$ac_exeext
17533 if { (ac_try="$ac_link"
17534 case "(($ac_try" in
17535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17536 *) ac_try_echo=$ac_try;;
17537 esac
17538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17539 (eval "$ac_link") 2>conftest.er1
17540 ac_status=$?
17541 grep -v '^ *+' conftest.er1 >conftest.err
17542 rm -f conftest.er1
17543 cat conftest.err >&5
17544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545 (exit $ac_status); } &&
17546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17547 { (case "(($ac_try" in
17548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17549 *) ac_try_echo=$ac_try;;
17550 esac
17551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17552 (eval "$ac_try") 2>&5
17553 ac_status=$?
17554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17555 (exit $ac_status); }; } &&
17556 { ac_try='test -s conftest$ac_exeext'
17557 { (case "(($ac_try" in
17558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17559 *) ac_try_echo=$ac_try;;
17560 esac
17561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17562 (eval "$ac_try") 2>&5
17563 ac_status=$?
17564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17565 (exit $ac_status); }; }; then
17566 { echo "$as_me:$LINENO: result: yes" >&5
17567 echo "${ECHO_T}yes" >&6; }
17569 cat >>confdefs.h <<\_ACEOF
17570 #define HAVE_CRASHREPORTER_INFO 1
17571 _ACEOF
17573 else
17574 echo "$as_me: failed program was:" >&5
17575 sed 's/^/| /' conftest.$ac_ext >&5
17577 { echo "$as_me:$LINENO: result: no" >&5
17578 echo "${ECHO_T}no" >&6; }
17580 cat >>confdefs.h <<\_ACEOF
17581 #define HAVE_CRASHREPORTER_INFO 0
17582 _ACEOF
17586 rm -f core conftest.err conftest.$ac_objext \
17587 conftest$ac_exeext conftest.$ac_ext
17592 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17593 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17594 if test "${ac_cv_huge_val_sanity+set}" = set; then
17595 echo $ECHO_N "(cached) $ECHO_C" >&6
17596 else
17598 ac_ext=cpp
17599 ac_cpp='$CXXCPP $CPPFLAGS'
17600 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17601 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17602 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17604 ac_save_CXXFLAGS=$CXXFLAGS
17605 CXXFLAGS=-pedantic
17606 if test "$cross_compiling" = yes; then
17607 ac_cv_huge_val_sanity=yes
17608 else
17609 cat >conftest.$ac_ext <<_ACEOF
17610 /* confdefs.h. */
17611 _ACEOF
17612 cat confdefs.h >>conftest.$ac_ext
17613 cat >>conftest.$ac_ext <<_ACEOF
17614 /* end confdefs.h. */
17615 #include <math.h>
17617 main ()
17619 double x = HUGE_VAL; return x != x;
17621 return 0;
17623 _ACEOF
17624 rm -f conftest$ac_exeext
17625 if { (ac_try="$ac_link"
17626 case "(($ac_try" in
17627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17628 *) ac_try_echo=$ac_try;;
17629 esac
17630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17631 (eval "$ac_link") 2>&5
17632 ac_status=$?
17633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17634 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17635 { (case "(($ac_try" in
17636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17637 *) ac_try_echo=$ac_try;;
17638 esac
17639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17640 (eval "$ac_try") 2>&5
17641 ac_status=$?
17642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17643 (exit $ac_status); }; }; then
17644 ac_cv_huge_val_sanity=yes
17645 else
17646 echo "$as_me: program exited with status $ac_status" >&5
17647 echo "$as_me: failed program was:" >&5
17648 sed 's/^/| /' conftest.$ac_ext >&5
17650 ( exit $ac_status )
17651 ac_cv_huge_val_sanity=no
17653 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17657 CXXFLAGS=$ac_save_CXXFLAGS
17658 ac_ext=c
17659 ac_cpp='$CPP $CPPFLAGS'
17660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17666 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17667 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17668 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17671 { echo "$as_me:$LINENO: checking for pid_t" >&5
17672 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17673 if test "${ac_cv_type_pid_t+set}" = set; then
17674 echo $ECHO_N "(cached) $ECHO_C" >&6
17675 else
17676 cat >conftest.$ac_ext <<_ACEOF
17677 /* confdefs.h. */
17678 _ACEOF
17679 cat confdefs.h >>conftest.$ac_ext
17680 cat >>conftest.$ac_ext <<_ACEOF
17681 /* end confdefs.h. */
17682 $ac_includes_default
17683 typedef pid_t ac__type_new_;
17685 main ()
17687 if ((ac__type_new_ *) 0)
17688 return 0;
17689 if (sizeof (ac__type_new_))
17690 return 0;
17692 return 0;
17694 _ACEOF
17695 rm -f conftest.$ac_objext
17696 if { (ac_try="$ac_compile"
17697 case "(($ac_try" in
17698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17699 *) ac_try_echo=$ac_try;;
17700 esac
17701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17702 (eval "$ac_compile") 2>conftest.er1
17703 ac_status=$?
17704 grep -v '^ *+' conftest.er1 >conftest.err
17705 rm -f conftest.er1
17706 cat conftest.err >&5
17707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17708 (exit $ac_status); } &&
17709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17710 { (case "(($ac_try" in
17711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17712 *) ac_try_echo=$ac_try;;
17713 esac
17714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17715 (eval "$ac_try") 2>&5
17716 ac_status=$?
17717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17718 (exit $ac_status); }; } &&
17719 { ac_try='test -s conftest.$ac_objext'
17720 { (case "(($ac_try" in
17721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17722 *) ac_try_echo=$ac_try;;
17723 esac
17724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17725 (eval "$ac_try") 2>&5
17726 ac_status=$?
17727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17728 (exit $ac_status); }; }; then
17729 ac_cv_type_pid_t=yes
17730 else
17731 echo "$as_me: failed program was:" >&5
17732 sed 's/^/| /' conftest.$ac_ext >&5
17734 ac_cv_type_pid_t=no
17737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17739 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17740 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17741 if test $ac_cv_type_pid_t = yes; then
17743 else
17745 cat >>confdefs.h <<_ACEOF
17746 #define pid_t int
17747 _ACEOF
17751 { echo "$as_me:$LINENO: checking for size_t" >&5
17752 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17753 if test "${ac_cv_type_size_t+set}" = set; then
17754 echo $ECHO_N "(cached) $ECHO_C" >&6
17755 else
17756 cat >conftest.$ac_ext <<_ACEOF
17757 /* confdefs.h. */
17758 _ACEOF
17759 cat confdefs.h >>conftest.$ac_ext
17760 cat >>conftest.$ac_ext <<_ACEOF
17761 /* end confdefs.h. */
17762 $ac_includes_default
17763 typedef size_t ac__type_new_;
17765 main ()
17767 if ((ac__type_new_ *) 0)
17768 return 0;
17769 if (sizeof (ac__type_new_))
17770 return 0;
17772 return 0;
17774 _ACEOF
17775 rm -f conftest.$ac_objext
17776 if { (ac_try="$ac_compile"
17777 case "(($ac_try" in
17778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17779 *) ac_try_echo=$ac_try;;
17780 esac
17781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17782 (eval "$ac_compile") 2>conftest.er1
17783 ac_status=$?
17784 grep -v '^ *+' conftest.er1 >conftest.err
17785 rm -f conftest.er1
17786 cat conftest.err >&5
17787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17788 (exit $ac_status); } &&
17789 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17790 { (case "(($ac_try" in
17791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17792 *) ac_try_echo=$ac_try;;
17793 esac
17794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17795 (eval "$ac_try") 2>&5
17796 ac_status=$?
17797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17798 (exit $ac_status); }; } &&
17799 { ac_try='test -s conftest.$ac_objext'
17800 { (case "(($ac_try" in
17801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17802 *) ac_try_echo=$ac_try;;
17803 esac
17804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17805 (eval "$ac_try") 2>&5
17806 ac_status=$?
17807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17808 (exit $ac_status); }; }; then
17809 ac_cv_type_size_t=yes
17810 else
17811 echo "$as_me: failed program was:" >&5
17812 sed 's/^/| /' conftest.$ac_ext >&5
17814 ac_cv_type_size_t=no
17817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17819 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17820 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17821 if test $ac_cv_type_size_t = yes; then
17823 else
17825 cat >>confdefs.h <<_ACEOF
17826 #define size_t unsigned int
17827 _ACEOF
17832 cat >>confdefs.h <<_ACEOF
17833 #define RETSIGTYPE void
17834 _ACEOF
17836 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17837 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17838 if test "${ac_cv_struct_tm+set}" = set; then
17839 echo $ECHO_N "(cached) $ECHO_C" >&6
17840 else
17841 cat >conftest.$ac_ext <<_ACEOF
17842 /* confdefs.h. */
17843 _ACEOF
17844 cat confdefs.h >>conftest.$ac_ext
17845 cat >>conftest.$ac_ext <<_ACEOF
17846 /* end confdefs.h. */
17847 #include <sys/types.h>
17848 #include <time.h>
17851 main ()
17853 struct tm *tp; tp->tm_sec;
17855 return 0;
17857 _ACEOF
17858 rm -f conftest.$ac_objext
17859 if { (ac_try="$ac_compile"
17860 case "(($ac_try" in
17861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17862 *) ac_try_echo=$ac_try;;
17863 esac
17864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17865 (eval "$ac_compile") 2>conftest.er1
17866 ac_status=$?
17867 grep -v '^ *+' conftest.er1 >conftest.err
17868 rm -f conftest.er1
17869 cat conftest.err >&5
17870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17871 (exit $ac_status); } &&
17872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17873 { (case "(($ac_try" in
17874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17875 *) ac_try_echo=$ac_try;;
17876 esac
17877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17878 (eval "$ac_try") 2>&5
17879 ac_status=$?
17880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17881 (exit $ac_status); }; } &&
17882 { ac_try='test -s conftest.$ac_objext'
17883 { (case "(($ac_try" in
17884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17885 *) ac_try_echo=$ac_try;;
17886 esac
17887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17888 (eval "$ac_try") 2>&5
17889 ac_status=$?
17890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891 (exit $ac_status); }; }; then
17892 ac_cv_struct_tm=time.h
17893 else
17894 echo "$as_me: failed program was:" >&5
17895 sed 's/^/| /' conftest.$ac_ext >&5
17897 ac_cv_struct_tm=sys/time.h
17900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17902 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17903 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17904 if test $ac_cv_struct_tm = sys/time.h; then
17906 cat >>confdefs.h <<\_ACEOF
17907 #define TM_IN_SYS_TIME 1
17908 _ACEOF
17912 { echo "$as_me:$LINENO: checking for int64_t" >&5
17913 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17914 if test "${ac_cv_type_int64_t+set}" = set; then
17915 echo $ECHO_N "(cached) $ECHO_C" >&6
17916 else
17917 cat >conftest.$ac_ext <<_ACEOF
17918 /* confdefs.h. */
17919 _ACEOF
17920 cat confdefs.h >>conftest.$ac_ext
17921 cat >>conftest.$ac_ext <<_ACEOF
17922 /* end confdefs.h. */
17923 $ac_includes_default
17924 typedef int64_t ac__type_new_;
17926 main ()
17928 if ((ac__type_new_ *) 0)
17929 return 0;
17930 if (sizeof (ac__type_new_))
17931 return 0;
17933 return 0;
17935 _ACEOF
17936 rm -f conftest.$ac_objext
17937 if { (ac_try="$ac_compile"
17938 case "(($ac_try" in
17939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17940 *) ac_try_echo=$ac_try;;
17941 esac
17942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17943 (eval "$ac_compile") 2>conftest.er1
17944 ac_status=$?
17945 grep -v '^ *+' conftest.er1 >conftest.err
17946 rm -f conftest.er1
17947 cat conftest.err >&5
17948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17949 (exit $ac_status); } &&
17950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17951 { (case "(($ac_try" in
17952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17953 *) ac_try_echo=$ac_try;;
17954 esac
17955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17956 (eval "$ac_try") 2>&5
17957 ac_status=$?
17958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17959 (exit $ac_status); }; } &&
17960 { ac_try='test -s conftest.$ac_objext'
17961 { (case "(($ac_try" in
17962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17963 *) ac_try_echo=$ac_try;;
17964 esac
17965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17966 (eval "$ac_try") 2>&5
17967 ac_status=$?
17968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17969 (exit $ac_status); }; }; then
17970 ac_cv_type_int64_t=yes
17971 else
17972 echo "$as_me: failed program was:" >&5
17973 sed 's/^/| /' conftest.$ac_ext >&5
17975 ac_cv_type_int64_t=no
17978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17980 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17981 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17982 if test $ac_cv_type_int64_t = yes; then
17984 cat >>confdefs.h <<_ACEOF
17985 #define HAVE_INT64_T 1
17986 _ACEOF
17989 else
17990 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17991 echo "$as_me: error: Type int64_t required but not found" >&2;}
17992 { (exit 1); exit 1; }; }
17995 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17996 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17997 if test "${ac_cv_type_uint64_t+set}" = set; then
17998 echo $ECHO_N "(cached) $ECHO_C" >&6
17999 else
18000 cat >conftest.$ac_ext <<_ACEOF
18001 /* confdefs.h. */
18002 _ACEOF
18003 cat confdefs.h >>conftest.$ac_ext
18004 cat >>conftest.$ac_ext <<_ACEOF
18005 /* end confdefs.h. */
18006 $ac_includes_default
18007 typedef uint64_t ac__type_new_;
18009 main ()
18011 if ((ac__type_new_ *) 0)
18012 return 0;
18013 if (sizeof (ac__type_new_))
18014 return 0;
18016 return 0;
18018 _ACEOF
18019 rm -f conftest.$ac_objext
18020 if { (ac_try="$ac_compile"
18021 case "(($ac_try" in
18022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18023 *) ac_try_echo=$ac_try;;
18024 esac
18025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18026 (eval "$ac_compile") 2>conftest.er1
18027 ac_status=$?
18028 grep -v '^ *+' conftest.er1 >conftest.err
18029 rm -f conftest.er1
18030 cat conftest.err >&5
18031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18032 (exit $ac_status); } &&
18033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18034 { (case "(($ac_try" in
18035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18036 *) ac_try_echo=$ac_try;;
18037 esac
18038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18039 (eval "$ac_try") 2>&5
18040 ac_status=$?
18041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18042 (exit $ac_status); }; } &&
18043 { ac_try='test -s conftest.$ac_objext'
18044 { (case "(($ac_try" in
18045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18046 *) ac_try_echo=$ac_try;;
18047 esac
18048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18049 (eval "$ac_try") 2>&5
18050 ac_status=$?
18051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18052 (exit $ac_status); }; }; then
18053 ac_cv_type_uint64_t=yes
18054 else
18055 echo "$as_me: failed program was:" >&5
18056 sed 's/^/| /' conftest.$ac_ext >&5
18058 ac_cv_type_uint64_t=no
18061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18063 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
18064 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
18065 if test $ac_cv_type_uint64_t = yes; then
18067 cat >>confdefs.h <<_ACEOF
18068 #define HAVE_UINT64_T 1
18069 _ACEOF
18072 else
18073 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
18074 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
18075 if test "${ac_cv_type_u_int64_t+set}" = set; then
18076 echo $ECHO_N "(cached) $ECHO_C" >&6
18077 else
18078 cat >conftest.$ac_ext <<_ACEOF
18079 /* confdefs.h. */
18080 _ACEOF
18081 cat confdefs.h >>conftest.$ac_ext
18082 cat >>conftest.$ac_ext <<_ACEOF
18083 /* end confdefs.h. */
18084 $ac_includes_default
18085 typedef u_int64_t ac__type_new_;
18087 main ()
18089 if ((ac__type_new_ *) 0)
18090 return 0;
18091 if (sizeof (ac__type_new_))
18092 return 0;
18094 return 0;
18096 _ACEOF
18097 rm -f conftest.$ac_objext
18098 if { (ac_try="$ac_compile"
18099 case "(($ac_try" in
18100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18101 *) ac_try_echo=$ac_try;;
18102 esac
18103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18104 (eval "$ac_compile") 2>conftest.er1
18105 ac_status=$?
18106 grep -v '^ *+' conftest.er1 >conftest.err
18107 rm -f conftest.er1
18108 cat conftest.err >&5
18109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18110 (exit $ac_status); } &&
18111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18112 { (case "(($ac_try" in
18113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18114 *) ac_try_echo=$ac_try;;
18115 esac
18116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18117 (eval "$ac_try") 2>&5
18118 ac_status=$?
18119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18120 (exit $ac_status); }; } &&
18121 { ac_try='test -s conftest.$ac_objext'
18122 { (case "(($ac_try" in
18123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18124 *) ac_try_echo=$ac_try;;
18125 esac
18126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18127 (eval "$ac_try") 2>&5
18128 ac_status=$?
18129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18130 (exit $ac_status); }; }; then
18131 ac_cv_type_u_int64_t=yes
18132 else
18133 echo "$as_me: failed program was:" >&5
18134 sed 's/^/| /' conftest.$ac_ext >&5
18136 ac_cv_type_u_int64_t=no
18139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18141 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
18142 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
18143 if test $ac_cv_type_u_int64_t = yes; then
18145 cat >>confdefs.h <<_ACEOF
18146 #define HAVE_U_INT64_T 1
18147 _ACEOF
18150 else
18151 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
18152 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
18153 { (exit 1); exit 1; }; }
18167 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
18169 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18170 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18171 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18172 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18173 echo $ECHO_N "(cached) $ECHO_C" >&6
18174 else
18175 cat >conftest.$ac_ext <<_ACEOF
18176 /* confdefs.h. */
18177 _ACEOF
18178 cat confdefs.h >>conftest.$ac_ext
18179 cat >>conftest.$ac_ext <<_ACEOF
18180 /* end confdefs.h. */
18181 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18182 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18183 #define $ac_func innocuous_$ac_func
18185 /* System header to define __stub macros and hopefully few prototypes,
18186 which can conflict with char $ac_func (); below.
18187 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18188 <limits.h> exists even on freestanding compilers. */
18190 #ifdef __STDC__
18191 # include <limits.h>
18192 #else
18193 # include <assert.h>
18194 #endif
18196 #undef $ac_func
18198 /* Override any GCC internal prototype to avoid an error.
18199 Use char because int might match the return type of a GCC
18200 builtin and then its argument prototype would still apply. */
18201 #ifdef __cplusplus
18202 extern "C"
18203 #endif
18204 char $ac_func ();
18205 /* The GNU C library defines this for functions which it implements
18206 to always fail with ENOSYS. Some functions are actually named
18207 something starting with __ and the normal name is an alias. */
18208 #if defined __stub_$ac_func || defined __stub___$ac_func
18209 choke me
18210 #endif
18213 main ()
18215 return $ac_func ();
18217 return 0;
18219 _ACEOF
18220 rm -f conftest.$ac_objext conftest$ac_exeext
18221 if { (ac_try="$ac_link"
18222 case "(($ac_try" in
18223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18224 *) ac_try_echo=$ac_try;;
18225 esac
18226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18227 (eval "$ac_link") 2>conftest.er1
18228 ac_status=$?
18229 grep -v '^ *+' conftest.er1 >conftest.err
18230 rm -f conftest.er1
18231 cat conftest.err >&5
18232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18233 (exit $ac_status); } &&
18234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18235 { (case "(($ac_try" in
18236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18237 *) ac_try_echo=$ac_try;;
18238 esac
18239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18240 (eval "$ac_try") 2>&5
18241 ac_status=$?
18242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18243 (exit $ac_status); }; } &&
18244 { ac_try='test -s conftest$ac_exeext'
18245 { (case "(($ac_try" in
18246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18247 *) ac_try_echo=$ac_try;;
18248 esac
18249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18250 (eval "$ac_try") 2>&5
18251 ac_status=$?
18252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18253 (exit $ac_status); }; }; then
18254 eval "$as_ac_var=yes"
18255 else
18256 echo "$as_me: failed program was:" >&5
18257 sed 's/^/| /' conftest.$ac_ext >&5
18259 eval "$as_ac_var=no"
18262 rm -f core conftest.err conftest.$ac_objext \
18263 conftest$ac_exeext conftest.$ac_ext
18265 ac_res=`eval echo '${'$as_ac_var'}'`
18266 { echo "$as_me:$LINENO: result: $ac_res" >&5
18267 echo "${ECHO_T}$ac_res" >&6; }
18268 if test `eval echo '${'$as_ac_var'}'` = yes; then
18269 cat >>confdefs.h <<_ACEOF
18270 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18271 _ACEOF
18274 done
18280 for ac_func in powf fmodf strtof round
18282 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18283 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18284 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18285 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18286 echo $ECHO_N "(cached) $ECHO_C" >&6
18287 else
18288 cat >conftest.$ac_ext <<_ACEOF
18289 /* confdefs.h. */
18290 _ACEOF
18291 cat confdefs.h >>conftest.$ac_ext
18292 cat >>conftest.$ac_ext <<_ACEOF
18293 /* end confdefs.h. */
18294 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18295 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18296 #define $ac_func innocuous_$ac_func
18298 /* System header to define __stub macros and hopefully few prototypes,
18299 which can conflict with char $ac_func (); below.
18300 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18301 <limits.h> exists even on freestanding compilers. */
18303 #ifdef __STDC__
18304 # include <limits.h>
18305 #else
18306 # include <assert.h>
18307 #endif
18309 #undef $ac_func
18311 /* Override any GCC internal prototype to avoid an error.
18312 Use char because int might match the return type of a GCC
18313 builtin and then its argument prototype would still apply. */
18314 #ifdef __cplusplus
18315 extern "C"
18316 #endif
18317 char $ac_func ();
18318 /* The GNU C library defines this for functions which it implements
18319 to always fail with ENOSYS. Some functions are actually named
18320 something starting with __ and the normal name is an alias. */
18321 #if defined __stub_$ac_func || defined __stub___$ac_func
18322 choke me
18323 #endif
18326 main ()
18328 return $ac_func ();
18330 return 0;
18332 _ACEOF
18333 rm -f conftest.$ac_objext conftest$ac_exeext
18334 if { (ac_try="$ac_link"
18335 case "(($ac_try" in
18336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18337 *) ac_try_echo=$ac_try;;
18338 esac
18339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18340 (eval "$ac_link") 2>conftest.er1
18341 ac_status=$?
18342 grep -v '^ *+' conftest.er1 >conftest.err
18343 rm -f conftest.er1
18344 cat conftest.err >&5
18345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346 (exit $ac_status); } &&
18347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18348 { (case "(($ac_try" in
18349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18350 *) ac_try_echo=$ac_try;;
18351 esac
18352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18353 (eval "$ac_try") 2>&5
18354 ac_status=$?
18355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18356 (exit $ac_status); }; } &&
18357 { ac_try='test -s conftest$ac_exeext'
18358 { (case "(($ac_try" in
18359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18360 *) ac_try_echo=$ac_try;;
18361 esac
18362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18363 (eval "$ac_try") 2>&5
18364 ac_status=$?
18365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18366 (exit $ac_status); }; }; then
18367 eval "$as_ac_var=yes"
18368 else
18369 echo "$as_me: failed program was:" >&5
18370 sed 's/^/| /' conftest.$ac_ext >&5
18372 eval "$as_ac_var=no"
18375 rm -f core conftest.err conftest.$ac_objext \
18376 conftest$ac_exeext conftest.$ac_ext
18378 ac_res=`eval echo '${'$as_ac_var'}'`
18379 { echo "$as_me:$LINENO: result: $ac_res" >&5
18380 echo "${ECHO_T}$ac_res" >&6; }
18381 if test `eval echo '${'$as_ac_var'}'` = yes; then
18382 cat >>confdefs.h <<_ACEOF
18383 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18384 _ACEOF
18387 done
18394 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
18396 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18397 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18398 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18399 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18400 echo $ECHO_N "(cached) $ECHO_C" >&6
18401 else
18402 cat >conftest.$ac_ext <<_ACEOF
18403 /* confdefs.h. */
18404 _ACEOF
18405 cat confdefs.h >>conftest.$ac_ext
18406 cat >>conftest.$ac_ext <<_ACEOF
18407 /* end confdefs.h. */
18408 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18409 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18410 #define $ac_func innocuous_$ac_func
18412 /* System header to define __stub macros and hopefully few prototypes,
18413 which can conflict with char $ac_func (); below.
18414 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18415 <limits.h> exists even on freestanding compilers. */
18417 #ifdef __STDC__
18418 # include <limits.h>
18419 #else
18420 # include <assert.h>
18421 #endif
18423 #undef $ac_func
18425 /* Override any GCC internal prototype to avoid an error.
18426 Use char because int might match the return type of a GCC
18427 builtin and then its argument prototype would still apply. */
18428 #ifdef __cplusplus
18429 extern "C"
18430 #endif
18431 char $ac_func ();
18432 /* The GNU C library defines this for functions which it implements
18433 to always fail with ENOSYS. Some functions are actually named
18434 something starting with __ and the normal name is an alias. */
18435 #if defined __stub_$ac_func || defined __stub___$ac_func
18436 choke me
18437 #endif
18440 main ()
18442 return $ac_func ();
18444 return 0;
18446 _ACEOF
18447 rm -f conftest.$ac_objext conftest$ac_exeext
18448 if { (ac_try="$ac_link"
18449 case "(($ac_try" in
18450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18451 *) ac_try_echo=$ac_try;;
18452 esac
18453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18454 (eval "$ac_link") 2>conftest.er1
18455 ac_status=$?
18456 grep -v '^ *+' conftest.er1 >conftest.err
18457 rm -f conftest.er1
18458 cat conftest.err >&5
18459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18460 (exit $ac_status); } &&
18461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18462 { (case "(($ac_try" in
18463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18464 *) ac_try_echo=$ac_try;;
18465 esac
18466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18467 (eval "$ac_try") 2>&5
18468 ac_status=$?
18469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18470 (exit $ac_status); }; } &&
18471 { ac_try='test -s conftest$ac_exeext'
18472 { (case "(($ac_try" in
18473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18474 *) ac_try_echo=$ac_try;;
18475 esac
18476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18477 (eval "$ac_try") 2>&5
18478 ac_status=$?
18479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18480 (exit $ac_status); }; }; then
18481 eval "$as_ac_var=yes"
18482 else
18483 echo "$as_me: failed program was:" >&5
18484 sed 's/^/| /' conftest.$ac_ext >&5
18486 eval "$as_ac_var=no"
18489 rm -f core conftest.err conftest.$ac_objext \
18490 conftest$ac_exeext conftest.$ac_ext
18492 ac_res=`eval echo '${'$as_ac_var'}'`
18493 { echo "$as_me:$LINENO: result: $ac_res" >&5
18494 echo "${ECHO_T}$ac_res" >&6; }
18495 if test `eval echo '${'$as_ac_var'}'` = yes; then
18496 cat >>confdefs.h <<_ACEOF
18497 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18498 _ACEOF
18501 done
18506 for ac_func in isatty mkdtemp mkstemp
18508 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18509 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18510 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18511 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18512 echo $ECHO_N "(cached) $ECHO_C" >&6
18513 else
18514 cat >conftest.$ac_ext <<_ACEOF
18515 /* confdefs.h. */
18516 _ACEOF
18517 cat confdefs.h >>conftest.$ac_ext
18518 cat >>conftest.$ac_ext <<_ACEOF
18519 /* end confdefs.h. */
18520 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18521 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18522 #define $ac_func innocuous_$ac_func
18524 /* System header to define __stub macros and hopefully few prototypes,
18525 which can conflict with char $ac_func (); below.
18526 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18527 <limits.h> exists even on freestanding compilers. */
18529 #ifdef __STDC__
18530 # include <limits.h>
18531 #else
18532 # include <assert.h>
18533 #endif
18535 #undef $ac_func
18537 /* Override any GCC internal prototype to avoid an error.
18538 Use char because int might match the return type of a GCC
18539 builtin and then its argument prototype would still apply. */
18540 #ifdef __cplusplus
18541 extern "C"
18542 #endif
18543 char $ac_func ();
18544 /* The GNU C library defines this for functions which it implements
18545 to always fail with ENOSYS. Some functions are actually named
18546 something starting with __ and the normal name is an alias. */
18547 #if defined __stub_$ac_func || defined __stub___$ac_func
18548 choke me
18549 #endif
18552 main ()
18554 return $ac_func ();
18556 return 0;
18558 _ACEOF
18559 rm -f conftest.$ac_objext conftest$ac_exeext
18560 if { (ac_try="$ac_link"
18561 case "(($ac_try" in
18562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18563 *) ac_try_echo=$ac_try;;
18564 esac
18565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18566 (eval "$ac_link") 2>conftest.er1
18567 ac_status=$?
18568 grep -v '^ *+' conftest.er1 >conftest.err
18569 rm -f conftest.er1
18570 cat conftest.err >&5
18571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18572 (exit $ac_status); } &&
18573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18574 { (case "(($ac_try" in
18575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18576 *) ac_try_echo=$ac_try;;
18577 esac
18578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18579 (eval "$ac_try") 2>&5
18580 ac_status=$?
18581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18582 (exit $ac_status); }; } &&
18583 { ac_try='test -s conftest$ac_exeext'
18584 { (case "(($ac_try" in
18585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18586 *) ac_try_echo=$ac_try;;
18587 esac
18588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18589 (eval "$ac_try") 2>&5
18590 ac_status=$?
18591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18592 (exit $ac_status); }; }; then
18593 eval "$as_ac_var=yes"
18594 else
18595 echo "$as_me: failed program was:" >&5
18596 sed 's/^/| /' conftest.$ac_ext >&5
18598 eval "$as_ac_var=no"
18601 rm -f core conftest.err conftest.$ac_objext \
18602 conftest$ac_exeext conftest.$ac_ext
18604 ac_res=`eval echo '${'$as_ac_var'}'`
18605 { echo "$as_me:$LINENO: result: $ac_res" >&5
18606 echo "${ECHO_T}$ac_res" >&6; }
18607 if test `eval echo '${'$as_ac_var'}'` = yes; then
18608 cat >>confdefs.h <<_ACEOF
18609 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18610 _ACEOF
18613 done
18621 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
18623 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18624 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18625 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18626 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18627 echo $ECHO_N "(cached) $ECHO_C" >&6
18628 else
18629 cat >conftest.$ac_ext <<_ACEOF
18630 /* confdefs.h. */
18631 _ACEOF
18632 cat confdefs.h >>conftest.$ac_ext
18633 cat >>conftest.$ac_ext <<_ACEOF
18634 /* end confdefs.h. */
18635 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18636 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18637 #define $ac_func innocuous_$ac_func
18639 /* System header to define __stub macros and hopefully few prototypes,
18640 which can conflict with char $ac_func (); below.
18641 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18642 <limits.h> exists even on freestanding compilers. */
18644 #ifdef __STDC__
18645 # include <limits.h>
18646 #else
18647 # include <assert.h>
18648 #endif
18650 #undef $ac_func
18652 /* Override any GCC internal prototype to avoid an error.
18653 Use char because int might match the return type of a GCC
18654 builtin and then its argument prototype would still apply. */
18655 #ifdef __cplusplus
18656 extern "C"
18657 #endif
18658 char $ac_func ();
18659 /* The GNU C library defines this for functions which it implements
18660 to always fail with ENOSYS. Some functions are actually named
18661 something starting with __ and the normal name is an alias. */
18662 #if defined __stub_$ac_func || defined __stub___$ac_func
18663 choke me
18664 #endif
18667 main ()
18669 return $ac_func ();
18671 return 0;
18673 _ACEOF
18674 rm -f conftest.$ac_objext conftest$ac_exeext
18675 if { (ac_try="$ac_link"
18676 case "(($ac_try" in
18677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18678 *) ac_try_echo=$ac_try;;
18679 esac
18680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18681 (eval "$ac_link") 2>conftest.er1
18682 ac_status=$?
18683 grep -v '^ *+' conftest.er1 >conftest.err
18684 rm -f conftest.er1
18685 cat conftest.err >&5
18686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18687 (exit $ac_status); } &&
18688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18689 { (case "(($ac_try" in
18690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18691 *) ac_try_echo=$ac_try;;
18692 esac
18693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18694 (eval "$ac_try") 2>&5
18695 ac_status=$?
18696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18697 (exit $ac_status); }; } &&
18698 { ac_try='test -s conftest$ac_exeext'
18699 { (case "(($ac_try" in
18700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18701 *) ac_try_echo=$ac_try;;
18702 esac
18703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18704 (eval "$ac_try") 2>&5
18705 ac_status=$?
18706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18707 (exit $ac_status); }; }; then
18708 eval "$as_ac_var=yes"
18709 else
18710 echo "$as_me: failed program was:" >&5
18711 sed 's/^/| /' conftest.$ac_ext >&5
18713 eval "$as_ac_var=no"
18716 rm -f core conftest.err conftest.$ac_objext \
18717 conftest$ac_exeext conftest.$ac_ext
18719 ac_res=`eval echo '${'$as_ac_var'}'`
18720 { echo "$as_me:$LINENO: result: $ac_res" >&5
18721 echo "${ECHO_T}$ac_res" >&6; }
18722 if test `eval echo '${'$as_ac_var'}'` = yes; then
18723 cat >>confdefs.h <<_ACEOF
18724 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18725 _ACEOF
18728 done
18733 for ac_func in strerror strerror_r setenv
18735 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18736 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18737 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18738 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18739 echo $ECHO_N "(cached) $ECHO_C" >&6
18740 else
18741 cat >conftest.$ac_ext <<_ACEOF
18742 /* confdefs.h. */
18743 _ACEOF
18744 cat confdefs.h >>conftest.$ac_ext
18745 cat >>conftest.$ac_ext <<_ACEOF
18746 /* end confdefs.h. */
18747 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18748 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18749 #define $ac_func innocuous_$ac_func
18751 /* System header to define __stub macros and hopefully few prototypes,
18752 which can conflict with char $ac_func (); below.
18753 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18754 <limits.h> exists even on freestanding compilers. */
18756 #ifdef __STDC__
18757 # include <limits.h>
18758 #else
18759 # include <assert.h>
18760 #endif
18762 #undef $ac_func
18764 /* Override any GCC internal prototype to avoid an error.
18765 Use char because int might match the return type of a GCC
18766 builtin and then its argument prototype would still apply. */
18767 #ifdef __cplusplus
18768 extern "C"
18769 #endif
18770 char $ac_func ();
18771 /* The GNU C library defines this for functions which it implements
18772 to always fail with ENOSYS. Some functions are actually named
18773 something starting with __ and the normal name is an alias. */
18774 #if defined __stub_$ac_func || defined __stub___$ac_func
18775 choke me
18776 #endif
18779 main ()
18781 return $ac_func ();
18783 return 0;
18785 _ACEOF
18786 rm -f conftest.$ac_objext conftest$ac_exeext
18787 if { (ac_try="$ac_link"
18788 case "(($ac_try" in
18789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18790 *) ac_try_echo=$ac_try;;
18791 esac
18792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18793 (eval "$ac_link") 2>conftest.er1
18794 ac_status=$?
18795 grep -v '^ *+' conftest.er1 >conftest.err
18796 rm -f conftest.er1
18797 cat conftest.err >&5
18798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799 (exit $ac_status); } &&
18800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18801 { (case "(($ac_try" in
18802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18803 *) ac_try_echo=$ac_try;;
18804 esac
18805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18806 (eval "$ac_try") 2>&5
18807 ac_status=$?
18808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18809 (exit $ac_status); }; } &&
18810 { ac_try='test -s conftest$ac_exeext'
18811 { (case "(($ac_try" in
18812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18813 *) ac_try_echo=$ac_try;;
18814 esac
18815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18816 (eval "$ac_try") 2>&5
18817 ac_status=$?
18818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18819 (exit $ac_status); }; }; then
18820 eval "$as_ac_var=yes"
18821 else
18822 echo "$as_me: failed program was:" >&5
18823 sed 's/^/| /' conftest.$ac_ext >&5
18825 eval "$as_ac_var=no"
18828 rm -f core conftest.err conftest.$ac_objext \
18829 conftest$ac_exeext conftest.$ac_ext
18831 ac_res=`eval echo '${'$as_ac_var'}'`
18832 { echo "$as_me:$LINENO: result: $ac_res" >&5
18833 echo "${ECHO_T}$ac_res" >&6; }
18834 if test `eval echo '${'$as_ac_var'}'` = yes; then
18835 cat >>confdefs.h <<_ACEOF
18836 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18837 _ACEOF
18840 done
18846 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18848 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18849 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18850 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18851 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18852 echo $ECHO_N "(cached) $ECHO_C" >&6
18853 else
18854 cat >conftest.$ac_ext <<_ACEOF
18855 /* confdefs.h. */
18856 _ACEOF
18857 cat confdefs.h >>conftest.$ac_ext
18858 cat >>conftest.$ac_ext <<_ACEOF
18859 /* end confdefs.h. */
18860 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18861 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18862 #define $ac_func innocuous_$ac_func
18864 /* System header to define __stub macros and hopefully few prototypes,
18865 which can conflict with char $ac_func (); below.
18866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18867 <limits.h> exists even on freestanding compilers. */
18869 #ifdef __STDC__
18870 # include <limits.h>
18871 #else
18872 # include <assert.h>
18873 #endif
18875 #undef $ac_func
18877 /* Override any GCC internal prototype to avoid an error.
18878 Use char because int might match the return type of a GCC
18879 builtin and then its argument prototype would still apply. */
18880 #ifdef __cplusplus
18881 extern "C"
18882 #endif
18883 char $ac_func ();
18884 /* The GNU C library defines this for functions which it implements
18885 to always fail with ENOSYS. Some functions are actually named
18886 something starting with __ and the normal name is an alias. */
18887 #if defined __stub_$ac_func || defined __stub___$ac_func
18888 choke me
18889 #endif
18892 main ()
18894 return $ac_func ();
18896 return 0;
18898 _ACEOF
18899 rm -f conftest.$ac_objext conftest$ac_exeext
18900 if { (ac_try="$ac_link"
18901 case "(($ac_try" in
18902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18903 *) ac_try_echo=$ac_try;;
18904 esac
18905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18906 (eval "$ac_link") 2>conftest.er1
18907 ac_status=$?
18908 grep -v '^ *+' conftest.er1 >conftest.err
18909 rm -f conftest.er1
18910 cat conftest.err >&5
18911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18912 (exit $ac_status); } &&
18913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18914 { (case "(($ac_try" in
18915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18916 *) ac_try_echo=$ac_try;;
18917 esac
18918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18919 (eval "$ac_try") 2>&5
18920 ac_status=$?
18921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18922 (exit $ac_status); }; } &&
18923 { ac_try='test -s conftest$ac_exeext'
18924 { (case "(($ac_try" in
18925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18926 *) ac_try_echo=$ac_try;;
18927 esac
18928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18929 (eval "$ac_try") 2>&5
18930 ac_status=$?
18931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18932 (exit $ac_status); }; }; then
18933 eval "$as_ac_var=yes"
18934 else
18935 echo "$as_me: failed program was:" >&5
18936 sed 's/^/| /' conftest.$ac_ext >&5
18938 eval "$as_ac_var=no"
18941 rm -f core conftest.err conftest.$ac_objext \
18942 conftest$ac_exeext conftest.$ac_ext
18944 ac_res=`eval echo '${'$as_ac_var'}'`
18945 { echo "$as_me:$LINENO: result: $ac_res" >&5
18946 echo "${ECHO_T}$ac_res" >&6; }
18947 if test `eval echo '${'$as_ac_var'}'` = yes; then
18948 cat >>confdefs.h <<_ACEOF
18949 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18950 _ACEOF
18953 done
18960 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
18962 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18963 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18964 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18965 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18966 echo $ECHO_N "(cached) $ECHO_C" >&6
18967 else
18968 cat >conftest.$ac_ext <<_ACEOF
18969 /* confdefs.h. */
18970 _ACEOF
18971 cat confdefs.h >>conftest.$ac_ext
18972 cat >>conftest.$ac_ext <<_ACEOF
18973 /* end confdefs.h. */
18974 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18975 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18976 #define $ac_func innocuous_$ac_func
18978 /* System header to define __stub macros and hopefully few prototypes,
18979 which can conflict with char $ac_func (); below.
18980 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18981 <limits.h> exists even on freestanding compilers. */
18983 #ifdef __STDC__
18984 # include <limits.h>
18985 #else
18986 # include <assert.h>
18987 #endif
18989 #undef $ac_func
18991 /* Override any GCC internal prototype to avoid an error.
18992 Use char because int might match the return type of a GCC
18993 builtin and then its argument prototype would still apply. */
18994 #ifdef __cplusplus
18995 extern "C"
18996 #endif
18997 char $ac_func ();
18998 /* The GNU C library defines this for functions which it implements
18999 to always fail with ENOSYS. Some functions are actually named
19000 something starting with __ and the normal name is an alias. */
19001 #if defined __stub_$ac_func || defined __stub___$ac_func
19002 choke me
19003 #endif
19006 main ()
19008 return $ac_func ();
19010 return 0;
19012 _ACEOF
19013 rm -f conftest.$ac_objext conftest$ac_exeext
19014 if { (ac_try="$ac_link"
19015 case "(($ac_try" in
19016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19017 *) ac_try_echo=$ac_try;;
19018 esac
19019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19020 (eval "$ac_link") 2>conftest.er1
19021 ac_status=$?
19022 grep -v '^ *+' conftest.er1 >conftest.err
19023 rm -f conftest.er1
19024 cat conftest.err >&5
19025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19026 (exit $ac_status); } &&
19027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19028 { (case "(($ac_try" in
19029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19030 *) ac_try_echo=$ac_try;;
19031 esac
19032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19033 (eval "$ac_try") 2>&5
19034 ac_status=$?
19035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19036 (exit $ac_status); }; } &&
19037 { ac_try='test -s conftest$ac_exeext'
19038 { (case "(($ac_try" in
19039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19040 *) ac_try_echo=$ac_try;;
19041 esac
19042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19043 (eval "$ac_try") 2>&5
19044 ac_status=$?
19045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19046 (exit $ac_status); }; }; then
19047 eval "$as_ac_var=yes"
19048 else
19049 echo "$as_me: failed program was:" >&5
19050 sed 's/^/| /' conftest.$ac_ext >&5
19052 eval "$as_ac_var=no"
19055 rm -f core conftest.err conftest.$ac_objext \
19056 conftest$ac_exeext conftest.$ac_ext
19058 ac_res=`eval echo '${'$as_ac_var'}'`
19059 { echo "$as_me:$LINENO: result: $ac_res" >&5
19060 echo "${ECHO_T}$ac_res" >&6; }
19061 if test `eval echo '${'$as_ac_var'}'` = yes; then
19062 cat >>confdefs.h <<_ACEOF
19063 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19064 _ACEOF
19067 done
19069 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
19070 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
19071 if test "${llvm_cv_c_printf_a+set}" = set; then
19072 echo $ECHO_N "(cached) $ECHO_C" >&6
19073 else
19074 ac_ext=c
19075 ac_cpp='$CPP $CPPFLAGS'
19076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19080 if test "$cross_compiling" = yes; then
19081 llvmac_cv_c_printf_a=no
19082 else
19083 cat >conftest.$ac_ext <<_ACEOF
19085 /* confdefs.h. */
19086 _ACEOF
19087 cat confdefs.h >>conftest.$ac_ext
19088 cat >>conftest.$ac_ext <<_ACEOF
19089 /* end confdefs.h. */
19091 #include <stdio.h>
19092 #include <stdlib.h>
19095 main ()
19098 volatile double A, B;
19099 char Buffer[100];
19100 A = 1;
19101 A /= 10.0;
19102 sprintf(Buffer, "%a", A);
19103 B = atof(Buffer);
19104 if (A != B)
19105 return (1);
19106 if (A != 0x1.999999999999ap-4)
19107 return (1);
19108 return (0);
19110 return 0;
19112 _ACEOF
19113 rm -f conftest$ac_exeext
19114 if { (ac_try="$ac_link"
19115 case "(($ac_try" in
19116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19117 *) ac_try_echo=$ac_try;;
19118 esac
19119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19120 (eval "$ac_link") 2>&5
19121 ac_status=$?
19122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19123 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19124 { (case "(($ac_try" in
19125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19126 *) ac_try_echo=$ac_try;;
19127 esac
19128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19129 (eval "$ac_try") 2>&5
19130 ac_status=$?
19131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19132 (exit $ac_status); }; }; then
19133 llvm_cv_c_printf_a=yes
19134 else
19135 echo "$as_me: program exited with status $ac_status" >&5
19136 echo "$as_me: failed program was:" >&5
19137 sed 's/^/| /' conftest.$ac_ext >&5
19139 ( exit $ac_status )
19140 llvmac_cv_c_printf_a=no
19142 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19146 ac_ext=c
19147 ac_cpp='$CPP $CPPFLAGS'
19148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19153 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
19154 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
19155 if test "$llvm_cv_c_printf_a" = "yes"; then
19157 cat >>confdefs.h <<\_ACEOF
19158 #define HAVE_PRINTF_A 1
19159 _ACEOF
19164 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
19165 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
19166 if test "${ac_cv_func_rand48+set}" = set; then
19167 echo $ECHO_N "(cached) $ECHO_C" >&6
19168 else
19169 ac_ext=cpp
19170 ac_cpp='$CXXCPP $CPPFLAGS'
19171 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19172 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19173 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19175 cat >conftest.$ac_ext <<_ACEOF
19176 /* confdefs.h. */
19177 _ACEOF
19178 cat confdefs.h >>conftest.$ac_ext
19179 cat >>conftest.$ac_ext <<_ACEOF
19180 /* end confdefs.h. */
19181 #include <stdlib.h>
19183 main ()
19185 srand48(0);lrand48();drand48();
19187 return 0;
19189 _ACEOF
19190 rm -f conftest.$ac_objext
19191 if { (ac_try="$ac_compile"
19192 case "(($ac_try" in
19193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19194 *) ac_try_echo=$ac_try;;
19195 esac
19196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19197 (eval "$ac_compile") 2>conftest.er1
19198 ac_status=$?
19199 grep -v '^ *+' conftest.er1 >conftest.err
19200 rm -f conftest.er1
19201 cat conftest.err >&5
19202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203 (exit $ac_status); } &&
19204 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19205 { (case "(($ac_try" in
19206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19207 *) ac_try_echo=$ac_try;;
19208 esac
19209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19210 (eval "$ac_try") 2>&5
19211 ac_status=$?
19212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19213 (exit $ac_status); }; } &&
19214 { ac_try='test -s conftest.$ac_objext'
19215 { (case "(($ac_try" in
19216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19217 *) ac_try_echo=$ac_try;;
19218 esac
19219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19220 (eval "$ac_try") 2>&5
19221 ac_status=$?
19222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19223 (exit $ac_status); }; }; then
19224 ac_cv_func_rand48=yes
19225 else
19226 echo "$as_me: failed program was:" >&5
19227 sed 's/^/| /' conftest.$ac_ext >&5
19229 ac_cv_func_rand48=no
19232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19233 ac_ext=c
19234 ac_cpp='$CPP $CPPFLAGS'
19235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19240 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19241 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
19243 if test "$ac_cv_func_rand48" = "yes" ; then
19245 cat >>confdefs.h <<\_ACEOF
19246 #define HAVE_RAND48 1
19247 _ACEOF
19252 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
19253 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
19254 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
19255 echo $ECHO_N "(cached) $ECHO_C" >&6
19256 else
19257 cat >conftest.$ac_ext <<_ACEOF
19258 /* confdefs.h. */
19259 _ACEOF
19260 cat confdefs.h >>conftest.$ac_ext
19261 cat >>conftest.$ac_ext <<_ACEOF
19262 /* end confdefs.h. */
19263 $ac_includes_default
19265 main ()
19267 #ifndef strerror_s
19268 char *p = (char *) strerror_s;
19269 return !p;
19270 #endif
19273 return 0;
19275 _ACEOF
19276 rm -f conftest.$ac_objext
19277 if { (ac_try="$ac_compile"
19278 case "(($ac_try" in
19279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19280 *) ac_try_echo=$ac_try;;
19281 esac
19282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19283 (eval "$ac_compile") 2>conftest.er1
19284 ac_status=$?
19285 grep -v '^ *+' conftest.er1 >conftest.err
19286 rm -f conftest.er1
19287 cat conftest.err >&5
19288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19289 (exit $ac_status); } &&
19290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19291 { (case "(($ac_try" in
19292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19293 *) ac_try_echo=$ac_try;;
19294 esac
19295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19296 (eval "$ac_try") 2>&5
19297 ac_status=$?
19298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299 (exit $ac_status); }; } &&
19300 { ac_try='test -s conftest.$ac_objext'
19301 { (case "(($ac_try" in
19302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19303 *) ac_try_echo=$ac_try;;
19304 esac
19305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19306 (eval "$ac_try") 2>&5
19307 ac_status=$?
19308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19309 (exit $ac_status); }; }; then
19310 ac_cv_have_decl_strerror_s=yes
19311 else
19312 echo "$as_me: failed program was:" >&5
19313 sed 's/^/| /' conftest.$ac_ext >&5
19315 ac_cv_have_decl_strerror_s=no
19318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19320 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
19321 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
19322 if test $ac_cv_have_decl_strerror_s = yes; then
19324 cat >>confdefs.h <<_ACEOF
19325 #define HAVE_DECL_STRERROR_S 1
19326 _ACEOF
19329 else
19330 cat >>confdefs.h <<_ACEOF
19331 #define HAVE_DECL_STRERROR_S 0
19332 _ACEOF
19339 if test "$llvm_cv_os_type" = "MingW" ; then
19340 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
19341 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
19342 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
19343 echo $ECHO_N "(cached) $ECHO_C" >&6
19344 else
19345 ac_check_lib_save_LIBS=$LIBS
19346 LIBS="-lgcc $LIBS"
19347 cat >conftest.$ac_ext <<_ACEOF
19348 /* confdefs.h. */
19349 _ACEOF
19350 cat confdefs.h >>conftest.$ac_ext
19351 cat >>conftest.$ac_ext <<_ACEOF
19352 /* end confdefs.h. */
19354 /* Override any GCC internal prototype to avoid an error.
19355 Use char because int might match the return type of a GCC
19356 builtin and then its argument prototype would still apply. */
19357 #ifdef __cplusplus
19358 extern "C"
19359 #endif
19360 char _alloca ();
19362 main ()
19364 return _alloca ();
19366 return 0;
19368 _ACEOF
19369 rm -f conftest.$ac_objext conftest$ac_exeext
19370 if { (ac_try="$ac_link"
19371 case "(($ac_try" in
19372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19373 *) ac_try_echo=$ac_try;;
19374 esac
19375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19376 (eval "$ac_link") 2>conftest.er1
19377 ac_status=$?
19378 grep -v '^ *+' conftest.er1 >conftest.err
19379 rm -f conftest.er1
19380 cat conftest.err >&5
19381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19382 (exit $ac_status); } &&
19383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19384 { (case "(($ac_try" in
19385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19386 *) ac_try_echo=$ac_try;;
19387 esac
19388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19389 (eval "$ac_try") 2>&5
19390 ac_status=$?
19391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19392 (exit $ac_status); }; } &&
19393 { ac_try='test -s conftest$ac_exeext'
19394 { (case "(($ac_try" in
19395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19396 *) ac_try_echo=$ac_try;;
19397 esac
19398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19399 (eval "$ac_try") 2>&5
19400 ac_status=$?
19401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19402 (exit $ac_status); }; }; then
19403 ac_cv_lib_gcc__alloca=yes
19404 else
19405 echo "$as_me: failed program was:" >&5
19406 sed 's/^/| /' conftest.$ac_ext >&5
19408 ac_cv_lib_gcc__alloca=no
19411 rm -f core conftest.err conftest.$ac_objext \
19412 conftest$ac_exeext conftest.$ac_ext
19413 LIBS=$ac_check_lib_save_LIBS
19415 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
19416 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
19417 if test $ac_cv_lib_gcc__alloca = yes; then
19419 cat >>confdefs.h <<\_ACEOF
19420 #define HAVE__ALLOCA 1
19421 _ACEOF
19425 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
19426 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
19427 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
19428 echo $ECHO_N "(cached) $ECHO_C" >&6
19429 else
19430 ac_check_lib_save_LIBS=$LIBS
19431 LIBS="-lgcc $LIBS"
19432 cat >conftest.$ac_ext <<_ACEOF
19433 /* confdefs.h. */
19434 _ACEOF
19435 cat confdefs.h >>conftest.$ac_ext
19436 cat >>conftest.$ac_ext <<_ACEOF
19437 /* end confdefs.h. */
19439 /* Override any GCC internal prototype to avoid an error.
19440 Use char because int might match the return type of a GCC
19441 builtin and then its argument prototype would still apply. */
19442 #ifdef __cplusplus
19443 extern "C"
19444 #endif
19445 char __alloca ();
19447 main ()
19449 return __alloca ();
19451 return 0;
19453 _ACEOF
19454 rm -f conftest.$ac_objext conftest$ac_exeext
19455 if { (ac_try="$ac_link"
19456 case "(($ac_try" in
19457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19458 *) ac_try_echo=$ac_try;;
19459 esac
19460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19461 (eval "$ac_link") 2>conftest.er1
19462 ac_status=$?
19463 grep -v '^ *+' conftest.er1 >conftest.err
19464 rm -f conftest.er1
19465 cat conftest.err >&5
19466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19467 (exit $ac_status); } &&
19468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19469 { (case "(($ac_try" in
19470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19471 *) ac_try_echo=$ac_try;;
19472 esac
19473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19474 (eval "$ac_try") 2>&5
19475 ac_status=$?
19476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19477 (exit $ac_status); }; } &&
19478 { ac_try='test -s conftest$ac_exeext'
19479 { (case "(($ac_try" in
19480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19481 *) ac_try_echo=$ac_try;;
19482 esac
19483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19484 (eval "$ac_try") 2>&5
19485 ac_status=$?
19486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19487 (exit $ac_status); }; }; then
19488 ac_cv_lib_gcc___alloca=yes
19489 else
19490 echo "$as_me: failed program was:" >&5
19491 sed 's/^/| /' conftest.$ac_ext >&5
19493 ac_cv_lib_gcc___alloca=no
19496 rm -f core conftest.err conftest.$ac_objext \
19497 conftest$ac_exeext conftest.$ac_ext
19498 LIBS=$ac_check_lib_save_LIBS
19500 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
19501 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
19502 if test $ac_cv_lib_gcc___alloca = yes; then
19504 cat >>confdefs.h <<\_ACEOF
19505 #define HAVE___ALLOCA 1
19506 _ACEOF
19510 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
19511 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
19512 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
19513 echo $ECHO_N "(cached) $ECHO_C" >&6
19514 else
19515 ac_check_lib_save_LIBS=$LIBS
19516 LIBS="-lgcc $LIBS"
19517 cat >conftest.$ac_ext <<_ACEOF
19518 /* confdefs.h. */
19519 _ACEOF
19520 cat confdefs.h >>conftest.$ac_ext
19521 cat >>conftest.$ac_ext <<_ACEOF
19522 /* end confdefs.h. */
19524 /* Override any GCC internal prototype to avoid an error.
19525 Use char because int might match the return type of a GCC
19526 builtin and then its argument prototype would still apply. */
19527 #ifdef __cplusplus
19528 extern "C"
19529 #endif
19530 char __chkstk ();
19532 main ()
19534 return __chkstk ();
19536 return 0;
19538 _ACEOF
19539 rm -f conftest.$ac_objext conftest$ac_exeext
19540 if { (ac_try="$ac_link"
19541 case "(($ac_try" in
19542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19543 *) ac_try_echo=$ac_try;;
19544 esac
19545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19546 (eval "$ac_link") 2>conftest.er1
19547 ac_status=$?
19548 grep -v '^ *+' conftest.er1 >conftest.err
19549 rm -f conftest.er1
19550 cat conftest.err >&5
19551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19552 (exit $ac_status); } &&
19553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19554 { (case "(($ac_try" in
19555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19556 *) ac_try_echo=$ac_try;;
19557 esac
19558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19559 (eval "$ac_try") 2>&5
19560 ac_status=$?
19561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19562 (exit $ac_status); }; } &&
19563 { ac_try='test -s conftest$ac_exeext'
19564 { (case "(($ac_try" in
19565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19566 *) ac_try_echo=$ac_try;;
19567 esac
19568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19569 (eval "$ac_try") 2>&5
19570 ac_status=$?
19571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19572 (exit $ac_status); }; }; then
19573 ac_cv_lib_gcc___chkstk=yes
19574 else
19575 echo "$as_me: failed program was:" >&5
19576 sed 's/^/| /' conftest.$ac_ext >&5
19578 ac_cv_lib_gcc___chkstk=no
19581 rm -f core conftest.err conftest.$ac_objext \
19582 conftest$ac_exeext conftest.$ac_ext
19583 LIBS=$ac_check_lib_save_LIBS
19585 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19586 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19587 if test $ac_cv_lib_gcc___chkstk = yes; then
19589 cat >>confdefs.h <<\_ACEOF
19590 #define HAVE___CHKSTK 1
19591 _ACEOF
19595 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19596 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19597 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19598 echo $ECHO_N "(cached) $ECHO_C" >&6
19599 else
19600 ac_check_lib_save_LIBS=$LIBS
19601 LIBS="-lgcc $LIBS"
19602 cat >conftest.$ac_ext <<_ACEOF
19603 /* confdefs.h. */
19604 _ACEOF
19605 cat confdefs.h >>conftest.$ac_ext
19606 cat >>conftest.$ac_ext <<_ACEOF
19607 /* end confdefs.h. */
19609 /* Override any GCC internal prototype to avoid an error.
19610 Use char because int might match the return type of a GCC
19611 builtin and then its argument prototype would still apply. */
19612 #ifdef __cplusplus
19613 extern "C"
19614 #endif
19615 char ___chkstk ();
19617 main ()
19619 return ___chkstk ();
19621 return 0;
19623 _ACEOF
19624 rm -f conftest.$ac_objext conftest$ac_exeext
19625 if { (ac_try="$ac_link"
19626 case "(($ac_try" in
19627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19628 *) ac_try_echo=$ac_try;;
19629 esac
19630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19631 (eval "$ac_link") 2>conftest.er1
19632 ac_status=$?
19633 grep -v '^ *+' conftest.er1 >conftest.err
19634 rm -f conftest.er1
19635 cat conftest.err >&5
19636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637 (exit $ac_status); } &&
19638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19639 { (case "(($ac_try" in
19640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19641 *) ac_try_echo=$ac_try;;
19642 esac
19643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19644 (eval "$ac_try") 2>&5
19645 ac_status=$?
19646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19647 (exit $ac_status); }; } &&
19648 { ac_try='test -s conftest$ac_exeext'
19649 { (case "(($ac_try" in
19650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19651 *) ac_try_echo=$ac_try;;
19652 esac
19653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19654 (eval "$ac_try") 2>&5
19655 ac_status=$?
19656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19657 (exit $ac_status); }; }; then
19658 ac_cv_lib_gcc____chkstk=yes
19659 else
19660 echo "$as_me: failed program was:" >&5
19661 sed 's/^/| /' conftest.$ac_ext >&5
19663 ac_cv_lib_gcc____chkstk=no
19666 rm -f core conftest.err conftest.$ac_objext \
19667 conftest$ac_exeext conftest.$ac_ext
19668 LIBS=$ac_check_lib_save_LIBS
19670 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19671 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19672 if test $ac_cv_lib_gcc____chkstk = yes; then
19674 cat >>confdefs.h <<\_ACEOF
19675 #define HAVE____CHKSTK 1
19676 _ACEOF
19681 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19682 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19683 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19684 echo $ECHO_N "(cached) $ECHO_C" >&6
19685 else
19686 ac_check_lib_save_LIBS=$LIBS
19687 LIBS="-lgcc $LIBS"
19688 cat >conftest.$ac_ext <<_ACEOF
19689 /* confdefs.h. */
19690 _ACEOF
19691 cat confdefs.h >>conftest.$ac_ext
19692 cat >>conftest.$ac_ext <<_ACEOF
19693 /* end confdefs.h. */
19695 /* Override any GCC internal prototype to avoid an error.
19696 Use char because int might match the return type of a GCC
19697 builtin and then its argument prototype would still apply. */
19698 #ifdef __cplusplus
19699 extern "C"
19700 #endif
19701 char __ashldi3 ();
19703 main ()
19705 return __ashldi3 ();
19707 return 0;
19709 _ACEOF
19710 rm -f conftest.$ac_objext conftest$ac_exeext
19711 if { (ac_try="$ac_link"
19712 case "(($ac_try" in
19713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19714 *) ac_try_echo=$ac_try;;
19715 esac
19716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19717 (eval "$ac_link") 2>conftest.er1
19718 ac_status=$?
19719 grep -v '^ *+' conftest.er1 >conftest.err
19720 rm -f conftest.er1
19721 cat conftest.err >&5
19722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19723 (exit $ac_status); } &&
19724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19725 { (case "(($ac_try" in
19726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19727 *) ac_try_echo=$ac_try;;
19728 esac
19729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19730 (eval "$ac_try") 2>&5
19731 ac_status=$?
19732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19733 (exit $ac_status); }; } &&
19734 { ac_try='test -s conftest$ac_exeext'
19735 { (case "(($ac_try" in
19736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19737 *) ac_try_echo=$ac_try;;
19738 esac
19739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19740 (eval "$ac_try") 2>&5
19741 ac_status=$?
19742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19743 (exit $ac_status); }; }; then
19744 ac_cv_lib_gcc___ashldi3=yes
19745 else
19746 echo "$as_me: failed program was:" >&5
19747 sed 's/^/| /' conftest.$ac_ext >&5
19749 ac_cv_lib_gcc___ashldi3=no
19752 rm -f core conftest.err conftest.$ac_objext \
19753 conftest$ac_exeext conftest.$ac_ext
19754 LIBS=$ac_check_lib_save_LIBS
19756 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19757 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19758 if test $ac_cv_lib_gcc___ashldi3 = yes; then
19760 cat >>confdefs.h <<\_ACEOF
19761 #define HAVE___ASHLDI3 1
19762 _ACEOF
19766 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19767 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19768 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19769 echo $ECHO_N "(cached) $ECHO_C" >&6
19770 else
19771 ac_check_lib_save_LIBS=$LIBS
19772 LIBS="-lgcc $LIBS"
19773 cat >conftest.$ac_ext <<_ACEOF
19774 /* confdefs.h. */
19775 _ACEOF
19776 cat confdefs.h >>conftest.$ac_ext
19777 cat >>conftest.$ac_ext <<_ACEOF
19778 /* end confdefs.h. */
19780 /* Override any GCC internal prototype to avoid an error.
19781 Use char because int might match the return type of a GCC
19782 builtin and then its argument prototype would still apply. */
19783 #ifdef __cplusplus
19784 extern "C"
19785 #endif
19786 char __ashrdi3 ();
19788 main ()
19790 return __ashrdi3 ();
19792 return 0;
19794 _ACEOF
19795 rm -f conftest.$ac_objext conftest$ac_exeext
19796 if { (ac_try="$ac_link"
19797 case "(($ac_try" in
19798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19799 *) ac_try_echo=$ac_try;;
19800 esac
19801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19802 (eval "$ac_link") 2>conftest.er1
19803 ac_status=$?
19804 grep -v '^ *+' conftest.er1 >conftest.err
19805 rm -f conftest.er1
19806 cat conftest.err >&5
19807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19808 (exit $ac_status); } &&
19809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19810 { (case "(($ac_try" in
19811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19812 *) ac_try_echo=$ac_try;;
19813 esac
19814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19815 (eval "$ac_try") 2>&5
19816 ac_status=$?
19817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818 (exit $ac_status); }; } &&
19819 { ac_try='test -s conftest$ac_exeext'
19820 { (case "(($ac_try" in
19821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19822 *) ac_try_echo=$ac_try;;
19823 esac
19824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19825 (eval "$ac_try") 2>&5
19826 ac_status=$?
19827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19828 (exit $ac_status); }; }; then
19829 ac_cv_lib_gcc___ashrdi3=yes
19830 else
19831 echo "$as_me: failed program was:" >&5
19832 sed 's/^/| /' conftest.$ac_ext >&5
19834 ac_cv_lib_gcc___ashrdi3=no
19837 rm -f core conftest.err conftest.$ac_objext \
19838 conftest$ac_exeext conftest.$ac_ext
19839 LIBS=$ac_check_lib_save_LIBS
19841 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19842 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19843 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19845 cat >>confdefs.h <<\_ACEOF
19846 #define HAVE___ASHRDI3 1
19847 _ACEOF
19851 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19852 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19853 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19854 echo $ECHO_N "(cached) $ECHO_C" >&6
19855 else
19856 ac_check_lib_save_LIBS=$LIBS
19857 LIBS="-lgcc $LIBS"
19858 cat >conftest.$ac_ext <<_ACEOF
19859 /* confdefs.h. */
19860 _ACEOF
19861 cat confdefs.h >>conftest.$ac_ext
19862 cat >>conftest.$ac_ext <<_ACEOF
19863 /* end confdefs.h. */
19865 /* Override any GCC internal prototype to avoid an error.
19866 Use char because int might match the return type of a GCC
19867 builtin and then its argument prototype would still apply. */
19868 #ifdef __cplusplus
19869 extern "C"
19870 #endif
19871 char __divdi3 ();
19873 main ()
19875 return __divdi3 ();
19877 return 0;
19879 _ACEOF
19880 rm -f conftest.$ac_objext conftest$ac_exeext
19881 if { (ac_try="$ac_link"
19882 case "(($ac_try" in
19883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19884 *) ac_try_echo=$ac_try;;
19885 esac
19886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19887 (eval "$ac_link") 2>conftest.er1
19888 ac_status=$?
19889 grep -v '^ *+' conftest.er1 >conftest.err
19890 rm -f conftest.er1
19891 cat conftest.err >&5
19892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893 (exit $ac_status); } &&
19894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19895 { (case "(($ac_try" in
19896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19897 *) ac_try_echo=$ac_try;;
19898 esac
19899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19900 (eval "$ac_try") 2>&5
19901 ac_status=$?
19902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19903 (exit $ac_status); }; } &&
19904 { ac_try='test -s conftest$ac_exeext'
19905 { (case "(($ac_try" in
19906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19907 *) ac_try_echo=$ac_try;;
19908 esac
19909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19910 (eval "$ac_try") 2>&5
19911 ac_status=$?
19912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19913 (exit $ac_status); }; }; then
19914 ac_cv_lib_gcc___divdi3=yes
19915 else
19916 echo "$as_me: failed program was:" >&5
19917 sed 's/^/| /' conftest.$ac_ext >&5
19919 ac_cv_lib_gcc___divdi3=no
19922 rm -f core conftest.err conftest.$ac_objext \
19923 conftest$ac_exeext conftest.$ac_ext
19924 LIBS=$ac_check_lib_save_LIBS
19926 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19927 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19928 if test $ac_cv_lib_gcc___divdi3 = yes; then
19930 cat >>confdefs.h <<\_ACEOF
19931 #define HAVE___DIVDI3 1
19932 _ACEOF
19936 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19937 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19938 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19939 echo $ECHO_N "(cached) $ECHO_C" >&6
19940 else
19941 ac_check_lib_save_LIBS=$LIBS
19942 LIBS="-lgcc $LIBS"
19943 cat >conftest.$ac_ext <<_ACEOF
19944 /* confdefs.h. */
19945 _ACEOF
19946 cat confdefs.h >>conftest.$ac_ext
19947 cat >>conftest.$ac_ext <<_ACEOF
19948 /* end confdefs.h. */
19950 /* Override any GCC internal prototype to avoid an error.
19951 Use char because int might match the return type of a GCC
19952 builtin and then its argument prototype would still apply. */
19953 #ifdef __cplusplus
19954 extern "C"
19955 #endif
19956 char __fixdfdi ();
19958 main ()
19960 return __fixdfdi ();
19962 return 0;
19964 _ACEOF
19965 rm -f conftest.$ac_objext conftest$ac_exeext
19966 if { (ac_try="$ac_link"
19967 case "(($ac_try" in
19968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19969 *) ac_try_echo=$ac_try;;
19970 esac
19971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19972 (eval "$ac_link") 2>conftest.er1
19973 ac_status=$?
19974 grep -v '^ *+' conftest.er1 >conftest.err
19975 rm -f conftest.er1
19976 cat conftest.err >&5
19977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19978 (exit $ac_status); } &&
19979 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19980 { (case "(($ac_try" in
19981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19982 *) ac_try_echo=$ac_try;;
19983 esac
19984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19985 (eval "$ac_try") 2>&5
19986 ac_status=$?
19987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19988 (exit $ac_status); }; } &&
19989 { ac_try='test -s conftest$ac_exeext'
19990 { (case "(($ac_try" in
19991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19992 *) ac_try_echo=$ac_try;;
19993 esac
19994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19995 (eval "$ac_try") 2>&5
19996 ac_status=$?
19997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19998 (exit $ac_status); }; }; then
19999 ac_cv_lib_gcc___fixdfdi=yes
20000 else
20001 echo "$as_me: failed program was:" >&5
20002 sed 's/^/| /' conftest.$ac_ext >&5
20004 ac_cv_lib_gcc___fixdfdi=no
20007 rm -f core conftest.err conftest.$ac_objext \
20008 conftest$ac_exeext conftest.$ac_ext
20009 LIBS=$ac_check_lib_save_LIBS
20011 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
20012 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
20013 if test $ac_cv_lib_gcc___fixdfdi = yes; then
20015 cat >>confdefs.h <<\_ACEOF
20016 #define HAVE___FIXDFDI 1
20017 _ACEOF
20021 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
20022 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
20023 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
20024 echo $ECHO_N "(cached) $ECHO_C" >&6
20025 else
20026 ac_check_lib_save_LIBS=$LIBS
20027 LIBS="-lgcc $LIBS"
20028 cat >conftest.$ac_ext <<_ACEOF
20029 /* confdefs.h. */
20030 _ACEOF
20031 cat confdefs.h >>conftest.$ac_ext
20032 cat >>conftest.$ac_ext <<_ACEOF
20033 /* end confdefs.h. */
20035 /* Override any GCC internal prototype to avoid an error.
20036 Use char because int might match the return type of a GCC
20037 builtin and then its argument prototype would still apply. */
20038 #ifdef __cplusplus
20039 extern "C"
20040 #endif
20041 char __fixsfdi ();
20043 main ()
20045 return __fixsfdi ();
20047 return 0;
20049 _ACEOF
20050 rm -f conftest.$ac_objext conftest$ac_exeext
20051 if { (ac_try="$ac_link"
20052 case "(($ac_try" in
20053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20054 *) ac_try_echo=$ac_try;;
20055 esac
20056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20057 (eval "$ac_link") 2>conftest.er1
20058 ac_status=$?
20059 grep -v '^ *+' conftest.er1 >conftest.err
20060 rm -f conftest.er1
20061 cat conftest.err >&5
20062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20063 (exit $ac_status); } &&
20064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20065 { (case "(($ac_try" in
20066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20067 *) ac_try_echo=$ac_try;;
20068 esac
20069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20070 (eval "$ac_try") 2>&5
20071 ac_status=$?
20072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20073 (exit $ac_status); }; } &&
20074 { ac_try='test -s conftest$ac_exeext'
20075 { (case "(($ac_try" in
20076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20077 *) ac_try_echo=$ac_try;;
20078 esac
20079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20080 (eval "$ac_try") 2>&5
20081 ac_status=$?
20082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20083 (exit $ac_status); }; }; then
20084 ac_cv_lib_gcc___fixsfdi=yes
20085 else
20086 echo "$as_me: failed program was:" >&5
20087 sed 's/^/| /' conftest.$ac_ext >&5
20089 ac_cv_lib_gcc___fixsfdi=no
20092 rm -f core conftest.err conftest.$ac_objext \
20093 conftest$ac_exeext conftest.$ac_ext
20094 LIBS=$ac_check_lib_save_LIBS
20096 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
20097 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
20098 if test $ac_cv_lib_gcc___fixsfdi = yes; then
20100 cat >>confdefs.h <<\_ACEOF
20101 #define HAVE___FIXSFDI 1
20102 _ACEOF
20106 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
20107 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
20108 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
20109 echo $ECHO_N "(cached) $ECHO_C" >&6
20110 else
20111 ac_check_lib_save_LIBS=$LIBS
20112 LIBS="-lgcc $LIBS"
20113 cat >conftest.$ac_ext <<_ACEOF
20114 /* confdefs.h. */
20115 _ACEOF
20116 cat confdefs.h >>conftest.$ac_ext
20117 cat >>conftest.$ac_ext <<_ACEOF
20118 /* end confdefs.h. */
20120 /* Override any GCC internal prototype to avoid an error.
20121 Use char because int might match the return type of a GCC
20122 builtin and then its argument prototype would still apply. */
20123 #ifdef __cplusplus
20124 extern "C"
20125 #endif
20126 char __floatdidf ();
20128 main ()
20130 return __floatdidf ();
20132 return 0;
20134 _ACEOF
20135 rm -f conftest.$ac_objext conftest$ac_exeext
20136 if { (ac_try="$ac_link"
20137 case "(($ac_try" in
20138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20139 *) ac_try_echo=$ac_try;;
20140 esac
20141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20142 (eval "$ac_link") 2>conftest.er1
20143 ac_status=$?
20144 grep -v '^ *+' conftest.er1 >conftest.err
20145 rm -f conftest.er1
20146 cat conftest.err >&5
20147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20148 (exit $ac_status); } &&
20149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20150 { (case "(($ac_try" in
20151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20152 *) ac_try_echo=$ac_try;;
20153 esac
20154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20155 (eval "$ac_try") 2>&5
20156 ac_status=$?
20157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20158 (exit $ac_status); }; } &&
20159 { ac_try='test -s conftest$ac_exeext'
20160 { (case "(($ac_try" in
20161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20162 *) ac_try_echo=$ac_try;;
20163 esac
20164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20165 (eval "$ac_try") 2>&5
20166 ac_status=$?
20167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20168 (exit $ac_status); }; }; then
20169 ac_cv_lib_gcc___floatdidf=yes
20170 else
20171 echo "$as_me: failed program was:" >&5
20172 sed 's/^/| /' conftest.$ac_ext >&5
20174 ac_cv_lib_gcc___floatdidf=no
20177 rm -f core conftest.err conftest.$ac_objext \
20178 conftest$ac_exeext conftest.$ac_ext
20179 LIBS=$ac_check_lib_save_LIBS
20181 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
20182 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
20183 if test $ac_cv_lib_gcc___floatdidf = yes; then
20185 cat >>confdefs.h <<\_ACEOF
20186 #define HAVE___FLOATDIDF 1
20187 _ACEOF
20191 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
20192 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
20193 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
20194 echo $ECHO_N "(cached) $ECHO_C" >&6
20195 else
20196 ac_check_lib_save_LIBS=$LIBS
20197 LIBS="-lgcc $LIBS"
20198 cat >conftest.$ac_ext <<_ACEOF
20199 /* confdefs.h. */
20200 _ACEOF
20201 cat confdefs.h >>conftest.$ac_ext
20202 cat >>conftest.$ac_ext <<_ACEOF
20203 /* end confdefs.h. */
20205 /* Override any GCC internal prototype to avoid an error.
20206 Use char because int might match the return type of a GCC
20207 builtin and then its argument prototype would still apply. */
20208 #ifdef __cplusplus
20209 extern "C"
20210 #endif
20211 char __lshrdi3 ();
20213 main ()
20215 return __lshrdi3 ();
20217 return 0;
20219 _ACEOF
20220 rm -f conftest.$ac_objext conftest$ac_exeext
20221 if { (ac_try="$ac_link"
20222 case "(($ac_try" in
20223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20224 *) ac_try_echo=$ac_try;;
20225 esac
20226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20227 (eval "$ac_link") 2>conftest.er1
20228 ac_status=$?
20229 grep -v '^ *+' conftest.er1 >conftest.err
20230 rm -f conftest.er1
20231 cat conftest.err >&5
20232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20233 (exit $ac_status); } &&
20234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20235 { (case "(($ac_try" in
20236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20237 *) ac_try_echo=$ac_try;;
20238 esac
20239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20240 (eval "$ac_try") 2>&5
20241 ac_status=$?
20242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20243 (exit $ac_status); }; } &&
20244 { ac_try='test -s conftest$ac_exeext'
20245 { (case "(($ac_try" in
20246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20247 *) ac_try_echo=$ac_try;;
20248 esac
20249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20250 (eval "$ac_try") 2>&5
20251 ac_status=$?
20252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20253 (exit $ac_status); }; }; then
20254 ac_cv_lib_gcc___lshrdi3=yes
20255 else
20256 echo "$as_me: failed program was:" >&5
20257 sed 's/^/| /' conftest.$ac_ext >&5
20259 ac_cv_lib_gcc___lshrdi3=no
20262 rm -f core conftest.err conftest.$ac_objext \
20263 conftest$ac_exeext conftest.$ac_ext
20264 LIBS=$ac_check_lib_save_LIBS
20266 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
20267 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
20268 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
20270 cat >>confdefs.h <<\_ACEOF
20271 #define HAVE___LSHRDI3 1
20272 _ACEOF
20276 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
20277 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
20278 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
20279 echo $ECHO_N "(cached) $ECHO_C" >&6
20280 else
20281 ac_check_lib_save_LIBS=$LIBS
20282 LIBS="-lgcc $LIBS"
20283 cat >conftest.$ac_ext <<_ACEOF
20284 /* confdefs.h. */
20285 _ACEOF
20286 cat confdefs.h >>conftest.$ac_ext
20287 cat >>conftest.$ac_ext <<_ACEOF
20288 /* end confdefs.h. */
20290 /* Override any GCC internal prototype to avoid an error.
20291 Use char because int might match the return type of a GCC
20292 builtin and then its argument prototype would still apply. */
20293 #ifdef __cplusplus
20294 extern "C"
20295 #endif
20296 char __moddi3 ();
20298 main ()
20300 return __moddi3 ();
20302 return 0;
20304 _ACEOF
20305 rm -f conftest.$ac_objext conftest$ac_exeext
20306 if { (ac_try="$ac_link"
20307 case "(($ac_try" in
20308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20309 *) ac_try_echo=$ac_try;;
20310 esac
20311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20312 (eval "$ac_link") 2>conftest.er1
20313 ac_status=$?
20314 grep -v '^ *+' conftest.er1 >conftest.err
20315 rm -f conftest.er1
20316 cat conftest.err >&5
20317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20318 (exit $ac_status); } &&
20319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20320 { (case "(($ac_try" in
20321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20322 *) ac_try_echo=$ac_try;;
20323 esac
20324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20325 (eval "$ac_try") 2>&5
20326 ac_status=$?
20327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20328 (exit $ac_status); }; } &&
20329 { ac_try='test -s conftest$ac_exeext'
20330 { (case "(($ac_try" in
20331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20332 *) ac_try_echo=$ac_try;;
20333 esac
20334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20335 (eval "$ac_try") 2>&5
20336 ac_status=$?
20337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338 (exit $ac_status); }; }; then
20339 ac_cv_lib_gcc___moddi3=yes
20340 else
20341 echo "$as_me: failed program was:" >&5
20342 sed 's/^/| /' conftest.$ac_ext >&5
20344 ac_cv_lib_gcc___moddi3=no
20347 rm -f core conftest.err conftest.$ac_objext \
20348 conftest$ac_exeext conftest.$ac_ext
20349 LIBS=$ac_check_lib_save_LIBS
20351 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
20352 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
20353 if test $ac_cv_lib_gcc___moddi3 = yes; then
20355 cat >>confdefs.h <<\_ACEOF
20356 #define HAVE___MODDI3 1
20357 _ACEOF
20361 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
20362 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
20363 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
20364 echo $ECHO_N "(cached) $ECHO_C" >&6
20365 else
20366 ac_check_lib_save_LIBS=$LIBS
20367 LIBS="-lgcc $LIBS"
20368 cat >conftest.$ac_ext <<_ACEOF
20369 /* confdefs.h. */
20370 _ACEOF
20371 cat confdefs.h >>conftest.$ac_ext
20372 cat >>conftest.$ac_ext <<_ACEOF
20373 /* end confdefs.h. */
20375 /* Override any GCC internal prototype to avoid an error.
20376 Use char because int might match the return type of a GCC
20377 builtin and then its argument prototype would still apply. */
20378 #ifdef __cplusplus
20379 extern "C"
20380 #endif
20381 char __udivdi3 ();
20383 main ()
20385 return __udivdi3 ();
20387 return 0;
20389 _ACEOF
20390 rm -f conftest.$ac_objext conftest$ac_exeext
20391 if { (ac_try="$ac_link"
20392 case "(($ac_try" in
20393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20394 *) ac_try_echo=$ac_try;;
20395 esac
20396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20397 (eval "$ac_link") 2>conftest.er1
20398 ac_status=$?
20399 grep -v '^ *+' conftest.er1 >conftest.err
20400 rm -f conftest.er1
20401 cat conftest.err >&5
20402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403 (exit $ac_status); } &&
20404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20405 { (case "(($ac_try" in
20406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20407 *) ac_try_echo=$ac_try;;
20408 esac
20409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20410 (eval "$ac_try") 2>&5
20411 ac_status=$?
20412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20413 (exit $ac_status); }; } &&
20414 { ac_try='test -s conftest$ac_exeext'
20415 { (case "(($ac_try" in
20416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20417 *) ac_try_echo=$ac_try;;
20418 esac
20419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20420 (eval "$ac_try") 2>&5
20421 ac_status=$?
20422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20423 (exit $ac_status); }; }; then
20424 ac_cv_lib_gcc___udivdi3=yes
20425 else
20426 echo "$as_me: failed program was:" >&5
20427 sed 's/^/| /' conftest.$ac_ext >&5
20429 ac_cv_lib_gcc___udivdi3=no
20432 rm -f core conftest.err conftest.$ac_objext \
20433 conftest$ac_exeext conftest.$ac_ext
20434 LIBS=$ac_check_lib_save_LIBS
20436 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
20437 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
20438 if test $ac_cv_lib_gcc___udivdi3 = yes; then
20440 cat >>confdefs.h <<\_ACEOF
20441 #define HAVE___UDIVDI3 1
20442 _ACEOF
20446 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
20447 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
20448 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
20449 echo $ECHO_N "(cached) $ECHO_C" >&6
20450 else
20451 ac_check_lib_save_LIBS=$LIBS
20452 LIBS="-lgcc $LIBS"
20453 cat >conftest.$ac_ext <<_ACEOF
20454 /* confdefs.h. */
20455 _ACEOF
20456 cat confdefs.h >>conftest.$ac_ext
20457 cat >>conftest.$ac_ext <<_ACEOF
20458 /* end confdefs.h. */
20460 /* Override any GCC internal prototype to avoid an error.
20461 Use char because int might match the return type of a GCC
20462 builtin and then its argument prototype would still apply. */
20463 #ifdef __cplusplus
20464 extern "C"
20465 #endif
20466 char __umoddi3 ();
20468 main ()
20470 return __umoddi3 ();
20472 return 0;
20474 _ACEOF
20475 rm -f conftest.$ac_objext conftest$ac_exeext
20476 if { (ac_try="$ac_link"
20477 case "(($ac_try" in
20478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20479 *) ac_try_echo=$ac_try;;
20480 esac
20481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20482 (eval "$ac_link") 2>conftest.er1
20483 ac_status=$?
20484 grep -v '^ *+' conftest.er1 >conftest.err
20485 rm -f conftest.er1
20486 cat conftest.err >&5
20487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488 (exit $ac_status); } &&
20489 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20490 { (case "(($ac_try" in
20491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20492 *) ac_try_echo=$ac_try;;
20493 esac
20494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20495 (eval "$ac_try") 2>&5
20496 ac_status=$?
20497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20498 (exit $ac_status); }; } &&
20499 { ac_try='test -s conftest$ac_exeext'
20500 { (case "(($ac_try" in
20501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20502 *) ac_try_echo=$ac_try;;
20503 esac
20504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20505 (eval "$ac_try") 2>&5
20506 ac_status=$?
20507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20508 (exit $ac_status); }; }; then
20509 ac_cv_lib_gcc___umoddi3=yes
20510 else
20511 echo "$as_me: failed program was:" >&5
20512 sed 's/^/| /' conftest.$ac_ext >&5
20514 ac_cv_lib_gcc___umoddi3=no
20517 rm -f core conftest.err conftest.$ac_objext \
20518 conftest$ac_exeext conftest.$ac_ext
20519 LIBS=$ac_check_lib_save_LIBS
20521 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
20522 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
20523 if test $ac_cv_lib_gcc___umoddi3 = yes; then
20525 cat >>confdefs.h <<\_ACEOF
20526 #define HAVE___UMODDI3 1
20527 _ACEOF
20532 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
20533 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
20534 if test "${ac_cv_lib_gcc___main+set}" = set; then
20535 echo $ECHO_N "(cached) $ECHO_C" >&6
20536 else
20537 ac_check_lib_save_LIBS=$LIBS
20538 LIBS="-lgcc $LIBS"
20539 cat >conftest.$ac_ext <<_ACEOF
20540 /* confdefs.h. */
20541 _ACEOF
20542 cat confdefs.h >>conftest.$ac_ext
20543 cat >>conftest.$ac_ext <<_ACEOF
20544 /* end confdefs.h. */
20546 /* Override any GCC internal prototype to avoid an error.
20547 Use char because int might match the return type of a GCC
20548 builtin and then its argument prototype would still apply. */
20549 #ifdef __cplusplus
20550 extern "C"
20551 #endif
20552 char __main ();
20554 main ()
20556 return __main ();
20558 return 0;
20560 _ACEOF
20561 rm -f conftest.$ac_objext conftest$ac_exeext
20562 if { (ac_try="$ac_link"
20563 case "(($ac_try" in
20564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20565 *) ac_try_echo=$ac_try;;
20566 esac
20567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20568 (eval "$ac_link") 2>conftest.er1
20569 ac_status=$?
20570 grep -v '^ *+' conftest.er1 >conftest.err
20571 rm -f conftest.er1
20572 cat conftest.err >&5
20573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20574 (exit $ac_status); } &&
20575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20576 { (case "(($ac_try" in
20577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20578 *) ac_try_echo=$ac_try;;
20579 esac
20580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20581 (eval "$ac_try") 2>&5
20582 ac_status=$?
20583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20584 (exit $ac_status); }; } &&
20585 { ac_try='test -s conftest$ac_exeext'
20586 { (case "(($ac_try" in
20587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20588 *) ac_try_echo=$ac_try;;
20589 esac
20590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20591 (eval "$ac_try") 2>&5
20592 ac_status=$?
20593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20594 (exit $ac_status); }; }; then
20595 ac_cv_lib_gcc___main=yes
20596 else
20597 echo "$as_me: failed program was:" >&5
20598 sed 's/^/| /' conftest.$ac_ext >&5
20600 ac_cv_lib_gcc___main=no
20603 rm -f core conftest.err conftest.$ac_objext \
20604 conftest$ac_exeext conftest.$ac_ext
20605 LIBS=$ac_check_lib_save_LIBS
20607 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20608 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20609 if test $ac_cv_lib_gcc___main = yes; then
20611 cat >>confdefs.h <<\_ACEOF
20612 #define HAVE___MAIN 1
20613 _ACEOF
20617 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20618 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20619 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20620 echo $ECHO_N "(cached) $ECHO_C" >&6
20621 else
20622 ac_check_lib_save_LIBS=$LIBS
20623 LIBS="-lgcc $LIBS"
20624 cat >conftest.$ac_ext <<_ACEOF
20625 /* confdefs.h. */
20626 _ACEOF
20627 cat confdefs.h >>conftest.$ac_ext
20628 cat >>conftest.$ac_ext <<_ACEOF
20629 /* end confdefs.h. */
20631 /* Override any GCC internal prototype to avoid an error.
20632 Use char because int might match the return type of a GCC
20633 builtin and then its argument prototype would still apply. */
20634 #ifdef __cplusplus
20635 extern "C"
20636 #endif
20637 char __cmpdi2 ();
20639 main ()
20641 return __cmpdi2 ();
20643 return 0;
20645 _ACEOF
20646 rm -f conftest.$ac_objext conftest$ac_exeext
20647 if { (ac_try="$ac_link"
20648 case "(($ac_try" in
20649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20650 *) ac_try_echo=$ac_try;;
20651 esac
20652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20653 (eval "$ac_link") 2>conftest.er1
20654 ac_status=$?
20655 grep -v '^ *+' conftest.er1 >conftest.err
20656 rm -f conftest.er1
20657 cat conftest.err >&5
20658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20659 (exit $ac_status); } &&
20660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20661 { (case "(($ac_try" in
20662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20663 *) ac_try_echo=$ac_try;;
20664 esac
20665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20666 (eval "$ac_try") 2>&5
20667 ac_status=$?
20668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20669 (exit $ac_status); }; } &&
20670 { ac_try='test -s conftest$ac_exeext'
20671 { (case "(($ac_try" in
20672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20673 *) ac_try_echo=$ac_try;;
20674 esac
20675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20676 (eval "$ac_try") 2>&5
20677 ac_status=$?
20678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20679 (exit $ac_status); }; }; then
20680 ac_cv_lib_gcc___cmpdi2=yes
20681 else
20682 echo "$as_me: failed program was:" >&5
20683 sed 's/^/| /' conftest.$ac_ext >&5
20685 ac_cv_lib_gcc___cmpdi2=no
20688 rm -f core conftest.err conftest.$ac_objext \
20689 conftest$ac_exeext conftest.$ac_ext
20690 LIBS=$ac_check_lib_save_LIBS
20692 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20693 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20694 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20696 cat >>confdefs.h <<\_ACEOF
20697 #define HAVE___CMPDI2 1
20698 _ACEOF
20704 if test "$llvm_cv_os_type" = "MingW" ; then
20705 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
20706 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
20707 cat >conftest.$ac_ext <<_ACEOF
20708 #include <windows.h>
20709 #include <imagehlp.h>
20710 extern void foo(PENUMLOADED_MODULES_CALLBACK);
20711 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
20712 _ACEOF
20713 rm -f conftest.$ac_objext
20714 if { (ac_try="$ac_compile"
20715 case "(($ac_try" in
20716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20717 *) ac_try_echo=$ac_try;;
20718 esac
20719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20720 (eval "$ac_compile") 2>conftest.er1
20721 ac_status=$?
20722 grep -v '^ *+' conftest.er1 >conftest.err
20723 rm -f conftest.er1
20724 cat conftest.err >&5
20725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20726 (exit $ac_status); } &&
20727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20728 { (case "(($ac_try" in
20729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20730 *) ac_try_echo=$ac_try;;
20731 esac
20732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20733 (eval "$ac_try") 2>&5
20734 ac_status=$?
20735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20736 (exit $ac_status); }; } &&
20737 { ac_try='test -s conftest.$ac_objext'
20738 { (case "(($ac_try" in
20739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20740 *) ac_try_echo=$ac_try;;
20741 esac
20742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20743 (eval "$ac_try") 2>&5
20744 ac_status=$?
20745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20746 (exit $ac_status); }; }; then
20748 { echo "$as_me:$LINENO: result: yes" >&5
20749 echo "${ECHO_T}yes" >&6; }
20750 llvm_cv_win32_elmcb_pcstr="PCSTR"
20752 else
20753 echo "$as_me: failed program was:" >&5
20754 sed 's/^/| /' conftest.$ac_ext >&5
20757 { echo "$as_me:$LINENO: result: no" >&5
20758 echo "${ECHO_T}no" >&6; }
20759 llvm_cv_win32_elmcb_pcstr="PSTR"
20763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20765 cat >>confdefs.h <<_ACEOF
20766 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20767 _ACEOF
20772 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20773 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20774 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20775 echo $ECHO_N "(cached) $ECHO_C" >&6
20776 else
20777 ac_ext=cpp
20778 ac_cpp='$CXXCPP $CPPFLAGS'
20779 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20780 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20781 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20783 cat >conftest.$ac_ext <<_ACEOF
20784 /* confdefs.h. */
20785 _ACEOF
20786 cat confdefs.h >>conftest.$ac_ext
20787 cat >>conftest.$ac_ext <<_ACEOF
20788 /* end confdefs.h. */
20789 #include <math.h>
20791 main ()
20793 float f; isnan(f);
20795 return 0;
20797 _ACEOF
20798 rm -f conftest.$ac_objext
20799 if { (ac_try="$ac_compile"
20800 case "(($ac_try" in
20801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20802 *) ac_try_echo=$ac_try;;
20803 esac
20804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20805 (eval "$ac_compile") 2>conftest.er1
20806 ac_status=$?
20807 grep -v '^ *+' conftest.er1 >conftest.err
20808 rm -f conftest.er1
20809 cat conftest.err >&5
20810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20811 (exit $ac_status); } &&
20812 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20813 { (case "(($ac_try" in
20814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20815 *) ac_try_echo=$ac_try;;
20816 esac
20817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20818 (eval "$ac_try") 2>&5
20819 ac_status=$?
20820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20821 (exit $ac_status); }; } &&
20822 { ac_try='test -s conftest.$ac_objext'
20823 { (case "(($ac_try" in
20824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20825 *) ac_try_echo=$ac_try;;
20826 esac
20827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20828 (eval "$ac_try") 2>&5
20829 ac_status=$?
20830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20831 (exit $ac_status); }; }; then
20832 ac_cv_func_isnan_in_math_h=yes
20833 else
20834 echo "$as_me: failed program was:" >&5
20835 sed 's/^/| /' conftest.$ac_ext >&5
20837 ac_cv_func_isnan_in_math_h=no
20840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20841 ac_ext=c
20842 ac_cpp='$CPP $CPPFLAGS'
20843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20848 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20849 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
20852 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
20854 cat >>confdefs.h <<\_ACEOF
20855 #define HAVE_ISNAN_IN_MATH_H 1
20856 _ACEOF
20860 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20861 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20862 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20863 echo $ECHO_N "(cached) $ECHO_C" >&6
20864 else
20865 ac_ext=cpp
20866 ac_cpp='$CXXCPP $CPPFLAGS'
20867 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20868 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20869 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20871 cat >conftest.$ac_ext <<_ACEOF
20872 /* confdefs.h. */
20873 _ACEOF
20874 cat confdefs.h >>conftest.$ac_ext
20875 cat >>conftest.$ac_ext <<_ACEOF
20876 /* end confdefs.h. */
20877 #include <cmath>
20879 main ()
20881 float f; isnan(f);
20883 return 0;
20885 _ACEOF
20886 rm -f conftest.$ac_objext
20887 if { (ac_try="$ac_compile"
20888 case "(($ac_try" in
20889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20890 *) ac_try_echo=$ac_try;;
20891 esac
20892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20893 (eval "$ac_compile") 2>conftest.er1
20894 ac_status=$?
20895 grep -v '^ *+' conftest.er1 >conftest.err
20896 rm -f conftest.er1
20897 cat conftest.err >&5
20898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899 (exit $ac_status); } &&
20900 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20901 { (case "(($ac_try" in
20902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20903 *) ac_try_echo=$ac_try;;
20904 esac
20905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20906 (eval "$ac_try") 2>&5
20907 ac_status=$?
20908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20909 (exit $ac_status); }; } &&
20910 { ac_try='test -s conftest.$ac_objext'
20911 { (case "(($ac_try" in
20912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20913 *) ac_try_echo=$ac_try;;
20914 esac
20915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20916 (eval "$ac_try") 2>&5
20917 ac_status=$?
20918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20919 (exit $ac_status); }; }; then
20920 ac_cv_func_isnan_in_cmath=yes
20921 else
20922 echo "$as_me: failed program was:" >&5
20923 sed 's/^/| /' conftest.$ac_ext >&5
20925 ac_cv_func_isnan_in_cmath=no
20928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20929 ac_ext=c
20930 ac_cpp='$CPP $CPPFLAGS'
20931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20936 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20937 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
20939 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
20941 cat >>confdefs.h <<\_ACEOF
20942 #define HAVE_ISNAN_IN_CMATH 1
20943 _ACEOF
20947 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20948 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20949 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20950 echo $ECHO_N "(cached) $ECHO_C" >&6
20951 else
20952 ac_ext=cpp
20953 ac_cpp='$CXXCPP $CPPFLAGS'
20954 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20955 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20956 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20958 cat >conftest.$ac_ext <<_ACEOF
20959 /* confdefs.h. */
20960 _ACEOF
20961 cat confdefs.h >>conftest.$ac_ext
20962 cat >>conftest.$ac_ext <<_ACEOF
20963 /* end confdefs.h. */
20964 #include <cmath>
20966 main ()
20968 float f; std::isnan(f);
20970 return 0;
20972 _ACEOF
20973 rm -f conftest.$ac_objext
20974 if { (ac_try="$ac_compile"
20975 case "(($ac_try" in
20976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20977 *) ac_try_echo=$ac_try;;
20978 esac
20979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20980 (eval "$ac_compile") 2>conftest.er1
20981 ac_status=$?
20982 grep -v '^ *+' conftest.er1 >conftest.err
20983 rm -f conftest.er1
20984 cat conftest.err >&5
20985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20986 (exit $ac_status); } &&
20987 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20988 { (case "(($ac_try" in
20989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20990 *) ac_try_echo=$ac_try;;
20991 esac
20992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20993 (eval "$ac_try") 2>&5
20994 ac_status=$?
20995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20996 (exit $ac_status); }; } &&
20997 { ac_try='test -s conftest.$ac_objext'
20998 { (case "(($ac_try" in
20999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21000 *) ac_try_echo=$ac_try;;
21001 esac
21002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21003 (eval "$ac_try") 2>&5
21004 ac_status=$?
21005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21006 (exit $ac_status); }; }; then
21007 ac_cv_func_std_isnan_in_cmath=yes
21008 else
21009 echo "$as_me: failed program was:" >&5
21010 sed 's/^/| /' conftest.$ac_ext >&5
21012 ac_cv_func_std_isnan_in_cmath=no
21015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21016 ac_ext=c
21017 ac_cpp='$CPP $CPPFLAGS'
21018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21023 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
21024 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
21026 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
21028 cat >>confdefs.h <<\_ACEOF
21029 #define HAVE_STD_ISNAN_IN_CMATH 1
21030 _ACEOF
21035 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
21036 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
21037 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
21038 echo $ECHO_N "(cached) $ECHO_C" >&6
21039 else
21040 ac_ext=cpp
21041 ac_cpp='$CXXCPP $CPPFLAGS'
21042 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21043 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21044 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21046 cat >conftest.$ac_ext <<_ACEOF
21047 /* confdefs.h. */
21048 _ACEOF
21049 cat confdefs.h >>conftest.$ac_ext
21050 cat >>conftest.$ac_ext <<_ACEOF
21051 /* end confdefs.h. */
21052 #include <math.h>
21054 main ()
21056 float f; isinf(f);
21058 return 0;
21060 _ACEOF
21061 rm -f conftest.$ac_objext
21062 if { (ac_try="$ac_compile"
21063 case "(($ac_try" in
21064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21065 *) ac_try_echo=$ac_try;;
21066 esac
21067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21068 (eval "$ac_compile") 2>conftest.er1
21069 ac_status=$?
21070 grep -v '^ *+' conftest.er1 >conftest.err
21071 rm -f conftest.er1
21072 cat conftest.err >&5
21073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21074 (exit $ac_status); } &&
21075 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21076 { (case "(($ac_try" in
21077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21078 *) ac_try_echo=$ac_try;;
21079 esac
21080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21081 (eval "$ac_try") 2>&5
21082 ac_status=$?
21083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21084 (exit $ac_status); }; } &&
21085 { ac_try='test -s conftest.$ac_objext'
21086 { (case "(($ac_try" in
21087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21088 *) ac_try_echo=$ac_try;;
21089 esac
21090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21091 (eval "$ac_try") 2>&5
21092 ac_status=$?
21093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21094 (exit $ac_status); }; }; then
21095 ac_cv_func_isinf_in_math_h=yes
21096 else
21097 echo "$as_me: failed program was:" >&5
21098 sed 's/^/| /' conftest.$ac_ext >&5
21100 ac_cv_func_isinf_in_math_h=no
21103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21104 ac_ext=c
21105 ac_cpp='$CPP $CPPFLAGS'
21106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21111 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
21112 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
21114 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
21116 cat >>confdefs.h <<\_ACEOF
21117 #define HAVE_ISINF_IN_MATH_H 1
21118 _ACEOF
21122 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
21123 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
21124 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
21125 echo $ECHO_N "(cached) $ECHO_C" >&6
21126 else
21127 ac_ext=cpp
21128 ac_cpp='$CXXCPP $CPPFLAGS'
21129 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21130 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21131 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21133 cat >conftest.$ac_ext <<_ACEOF
21134 /* confdefs.h. */
21135 _ACEOF
21136 cat confdefs.h >>conftest.$ac_ext
21137 cat >>conftest.$ac_ext <<_ACEOF
21138 /* end confdefs.h. */
21139 #include <cmath>
21141 main ()
21143 float f; isinf(f);
21145 return 0;
21147 _ACEOF
21148 rm -f conftest.$ac_objext
21149 if { (ac_try="$ac_compile"
21150 case "(($ac_try" in
21151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21152 *) ac_try_echo=$ac_try;;
21153 esac
21154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21155 (eval "$ac_compile") 2>conftest.er1
21156 ac_status=$?
21157 grep -v '^ *+' conftest.er1 >conftest.err
21158 rm -f conftest.er1
21159 cat conftest.err >&5
21160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21161 (exit $ac_status); } &&
21162 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21163 { (case "(($ac_try" in
21164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21165 *) ac_try_echo=$ac_try;;
21166 esac
21167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21168 (eval "$ac_try") 2>&5
21169 ac_status=$?
21170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21171 (exit $ac_status); }; } &&
21172 { ac_try='test -s conftest.$ac_objext'
21173 { (case "(($ac_try" in
21174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21175 *) ac_try_echo=$ac_try;;
21176 esac
21177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21178 (eval "$ac_try") 2>&5
21179 ac_status=$?
21180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21181 (exit $ac_status); }; }; then
21182 ac_cv_func_isinf_in_cmath=yes
21183 else
21184 echo "$as_me: failed program was:" >&5
21185 sed 's/^/| /' conftest.$ac_ext >&5
21187 ac_cv_func_isinf_in_cmath=no
21190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21191 ac_ext=c
21192 ac_cpp='$CPP $CPPFLAGS'
21193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21198 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
21199 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
21201 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
21203 cat >>confdefs.h <<\_ACEOF
21204 #define HAVE_ISINF_IN_CMATH 1
21205 _ACEOF
21209 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
21210 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
21211 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
21212 echo $ECHO_N "(cached) $ECHO_C" >&6
21213 else
21214 ac_ext=cpp
21215 ac_cpp='$CXXCPP $CPPFLAGS'
21216 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21217 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21218 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21220 cat >conftest.$ac_ext <<_ACEOF
21221 /* confdefs.h. */
21222 _ACEOF
21223 cat confdefs.h >>conftest.$ac_ext
21224 cat >>conftest.$ac_ext <<_ACEOF
21225 /* end confdefs.h. */
21226 #include <cmath>
21228 main ()
21230 float f; std::isinf(f)}
21232 return 0;
21234 _ACEOF
21235 rm -f conftest.$ac_objext
21236 if { (ac_try="$ac_compile"
21237 case "(($ac_try" in
21238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21239 *) ac_try_echo=$ac_try;;
21240 esac
21241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21242 (eval "$ac_compile") 2>conftest.er1
21243 ac_status=$?
21244 grep -v '^ *+' conftest.er1 >conftest.err
21245 rm -f conftest.er1
21246 cat conftest.err >&5
21247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21248 (exit $ac_status); } &&
21249 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21250 { (case "(($ac_try" in
21251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21252 *) ac_try_echo=$ac_try;;
21253 esac
21254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21255 (eval "$ac_try") 2>&5
21256 ac_status=$?
21257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21258 (exit $ac_status); }; } &&
21259 { ac_try='test -s conftest.$ac_objext'
21260 { (case "(($ac_try" in
21261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21262 *) ac_try_echo=$ac_try;;
21263 esac
21264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21265 (eval "$ac_try") 2>&5
21266 ac_status=$?
21267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21268 (exit $ac_status); }; }; then
21269 ac_cv_func_std_isinf_in_cmath=yes
21270 else
21271 echo "$as_me: failed program was:" >&5
21272 sed 's/^/| /' conftest.$ac_ext >&5
21274 ac_cv_func_std_isinf_in_cmath=no
21277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21278 ac_ext=c
21279 ac_cpp='$CPP $CPPFLAGS'
21280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21285 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
21286 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
21288 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
21290 cat >>confdefs.h <<\_ACEOF
21291 #define HAVE_STD_ISINF_IN_CMATH 1
21292 _ACEOF
21296 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
21297 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
21298 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
21299 echo $ECHO_N "(cached) $ECHO_C" >&6
21300 else
21301 ac_ext=cpp
21302 ac_cpp='$CXXCPP $CPPFLAGS'
21303 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21304 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21305 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21307 cat >conftest.$ac_ext <<_ACEOF
21308 /* confdefs.h. */
21309 _ACEOF
21310 cat confdefs.h >>conftest.$ac_ext
21311 cat >>conftest.$ac_ext <<_ACEOF
21312 /* end confdefs.h. */
21313 #include <ieeefp.h>
21315 main ()
21317 float f; finite(f);
21319 return 0;
21321 _ACEOF
21322 rm -f conftest.$ac_objext
21323 if { (ac_try="$ac_compile"
21324 case "(($ac_try" in
21325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21326 *) ac_try_echo=$ac_try;;
21327 esac
21328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21329 (eval "$ac_compile") 2>conftest.er1
21330 ac_status=$?
21331 grep -v '^ *+' conftest.er1 >conftest.err
21332 rm -f conftest.er1
21333 cat conftest.err >&5
21334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21335 (exit $ac_status); } &&
21336 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21337 { (case "(($ac_try" in
21338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21339 *) ac_try_echo=$ac_try;;
21340 esac
21341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21342 (eval "$ac_try") 2>&5
21343 ac_status=$?
21344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21345 (exit $ac_status); }; } &&
21346 { ac_try='test -s conftest.$ac_objext'
21347 { (case "(($ac_try" in
21348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21349 *) ac_try_echo=$ac_try;;
21350 esac
21351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21352 (eval "$ac_try") 2>&5
21353 ac_status=$?
21354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21355 (exit $ac_status); }; }; then
21356 ac_cv_func_finite_in_ieeefp_h=yes
21357 else
21358 echo "$as_me: failed program was:" >&5
21359 sed 's/^/| /' conftest.$ac_ext >&5
21361 ac_cv_func_finite_in_ieeefp_h=no
21364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21365 ac_ext=c
21366 ac_cpp='$CPP $CPPFLAGS'
21367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21369 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21372 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21373 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
21375 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
21377 cat >>confdefs.h <<\_ACEOF
21378 #define HAVE_FINITE_IN_IEEEFP_H 1
21379 _ACEOF
21385 if test "$llvm_cv_platform_type" = "Unix" ; then
21388 for ac_header in stdlib.h unistd.h
21390 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21391 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21392 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21393 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21394 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21395 echo $ECHO_N "(cached) $ECHO_C" >&6
21397 ac_res=`eval echo '${'$as_ac_Header'}'`
21398 { echo "$as_me:$LINENO: result: $ac_res" >&5
21399 echo "${ECHO_T}$ac_res" >&6; }
21400 else
21401 # Is the header compilable?
21402 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21403 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21404 cat >conftest.$ac_ext <<_ACEOF
21405 /* confdefs.h. */
21406 _ACEOF
21407 cat confdefs.h >>conftest.$ac_ext
21408 cat >>conftest.$ac_ext <<_ACEOF
21409 /* end confdefs.h. */
21410 $ac_includes_default
21411 #include <$ac_header>
21412 _ACEOF
21413 rm -f conftest.$ac_objext
21414 if { (ac_try="$ac_compile"
21415 case "(($ac_try" in
21416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21417 *) ac_try_echo=$ac_try;;
21418 esac
21419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21420 (eval "$ac_compile") 2>conftest.er1
21421 ac_status=$?
21422 grep -v '^ *+' conftest.er1 >conftest.err
21423 rm -f conftest.er1
21424 cat conftest.err >&5
21425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21426 (exit $ac_status); } &&
21427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21428 { (case "(($ac_try" in
21429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21430 *) ac_try_echo=$ac_try;;
21431 esac
21432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21433 (eval "$ac_try") 2>&5
21434 ac_status=$?
21435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21436 (exit $ac_status); }; } &&
21437 { ac_try='test -s conftest.$ac_objext'
21438 { (case "(($ac_try" in
21439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21440 *) ac_try_echo=$ac_try;;
21441 esac
21442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21443 (eval "$ac_try") 2>&5
21444 ac_status=$?
21445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21446 (exit $ac_status); }; }; then
21447 ac_header_compiler=yes
21448 else
21449 echo "$as_me: failed program was:" >&5
21450 sed 's/^/| /' conftest.$ac_ext >&5
21452 ac_header_compiler=no
21455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21456 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21457 echo "${ECHO_T}$ac_header_compiler" >&6; }
21459 # Is the header present?
21460 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21461 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21462 cat >conftest.$ac_ext <<_ACEOF
21463 /* confdefs.h. */
21464 _ACEOF
21465 cat confdefs.h >>conftest.$ac_ext
21466 cat >>conftest.$ac_ext <<_ACEOF
21467 /* end confdefs.h. */
21468 #include <$ac_header>
21469 _ACEOF
21470 if { (ac_try="$ac_cpp conftest.$ac_ext"
21471 case "(($ac_try" in
21472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21473 *) ac_try_echo=$ac_try;;
21474 esac
21475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21476 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21477 ac_status=$?
21478 grep -v '^ *+' conftest.er1 >conftest.err
21479 rm -f conftest.er1
21480 cat conftest.err >&5
21481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21482 (exit $ac_status); } >/dev/null; then
21483 if test -s conftest.err; then
21484 ac_cpp_err=$ac_c_preproc_warn_flag
21485 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21486 else
21487 ac_cpp_err=
21489 else
21490 ac_cpp_err=yes
21492 if test -z "$ac_cpp_err"; then
21493 ac_header_preproc=yes
21494 else
21495 echo "$as_me: failed program was:" >&5
21496 sed 's/^/| /' conftest.$ac_ext >&5
21498 ac_header_preproc=no
21501 rm -f conftest.err conftest.$ac_ext
21502 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21503 echo "${ECHO_T}$ac_header_preproc" >&6; }
21505 # So? What about this header?
21506 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21507 yes:no: )
21508 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21509 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21510 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21511 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21512 ac_header_preproc=yes
21514 no:yes:* )
21515 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21516 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21517 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21518 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21519 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21520 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21521 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21522 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21523 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21524 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21525 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21526 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21527 ( cat <<\_ASBOX
21528 ## ----------------------------------- ##
21529 ## Report this to llvmbugs@cs.uiuc.edu ##
21530 ## ----------------------------------- ##
21531 _ASBOX
21532 ) | sed "s/^/$as_me: WARNING: /" >&2
21534 esac
21535 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21537 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21538 echo $ECHO_N "(cached) $ECHO_C" >&6
21539 else
21540 eval "$as_ac_Header=\$ac_header_preproc"
21542 ac_res=`eval echo '${'$as_ac_Header'}'`
21543 { echo "$as_me:$LINENO: result: $ac_res" >&5
21544 echo "${ECHO_T}$ac_res" >&6; }
21547 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21548 cat >>confdefs.h <<_ACEOF
21549 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21550 _ACEOF
21554 done
21557 for ac_func in getpagesize
21559 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21560 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21561 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21562 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21563 echo $ECHO_N "(cached) $ECHO_C" >&6
21564 else
21565 cat >conftest.$ac_ext <<_ACEOF
21566 /* confdefs.h. */
21567 _ACEOF
21568 cat confdefs.h >>conftest.$ac_ext
21569 cat >>conftest.$ac_ext <<_ACEOF
21570 /* end confdefs.h. */
21571 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21572 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21573 #define $ac_func innocuous_$ac_func
21575 /* System header to define __stub macros and hopefully few prototypes,
21576 which can conflict with char $ac_func (); below.
21577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21578 <limits.h> exists even on freestanding compilers. */
21580 #ifdef __STDC__
21581 # include <limits.h>
21582 #else
21583 # include <assert.h>
21584 #endif
21586 #undef $ac_func
21588 /* Override any GCC internal prototype to avoid an error.
21589 Use char because int might match the return type of a GCC
21590 builtin and then its argument prototype would still apply. */
21591 #ifdef __cplusplus
21592 extern "C"
21593 #endif
21594 char $ac_func ();
21595 /* The GNU C library defines this for functions which it implements
21596 to always fail with ENOSYS. Some functions are actually named
21597 something starting with __ and the normal name is an alias. */
21598 #if defined __stub_$ac_func || defined __stub___$ac_func
21599 choke me
21600 #endif
21603 main ()
21605 return $ac_func ();
21607 return 0;
21609 _ACEOF
21610 rm -f conftest.$ac_objext conftest$ac_exeext
21611 if { (ac_try="$ac_link"
21612 case "(($ac_try" in
21613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21614 *) ac_try_echo=$ac_try;;
21615 esac
21616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21617 (eval "$ac_link") 2>conftest.er1
21618 ac_status=$?
21619 grep -v '^ *+' conftest.er1 >conftest.err
21620 rm -f conftest.er1
21621 cat conftest.err >&5
21622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21623 (exit $ac_status); } &&
21624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21625 { (case "(($ac_try" in
21626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21627 *) ac_try_echo=$ac_try;;
21628 esac
21629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21630 (eval "$ac_try") 2>&5
21631 ac_status=$?
21632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21633 (exit $ac_status); }; } &&
21634 { ac_try='test -s conftest$ac_exeext'
21635 { (case "(($ac_try" in
21636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21637 *) ac_try_echo=$ac_try;;
21638 esac
21639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21640 (eval "$ac_try") 2>&5
21641 ac_status=$?
21642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21643 (exit $ac_status); }; }; then
21644 eval "$as_ac_var=yes"
21645 else
21646 echo "$as_me: failed program was:" >&5
21647 sed 's/^/| /' conftest.$ac_ext >&5
21649 eval "$as_ac_var=no"
21652 rm -f core conftest.err conftest.$ac_objext \
21653 conftest$ac_exeext conftest.$ac_ext
21655 ac_res=`eval echo '${'$as_ac_var'}'`
21656 { echo "$as_me:$LINENO: result: $ac_res" >&5
21657 echo "${ECHO_T}$ac_res" >&6; }
21658 if test `eval echo '${'$as_ac_var'}'` = yes; then
21659 cat >>confdefs.h <<_ACEOF
21660 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21661 _ACEOF
21664 done
21666 { echo "$as_me:$LINENO: checking for working mmap" >&5
21667 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21668 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21669 echo $ECHO_N "(cached) $ECHO_C" >&6
21670 else
21671 if test "$cross_compiling" = yes; then
21672 ac_cv_func_mmap_fixed_mapped=no
21673 else
21674 cat >conftest.$ac_ext <<_ACEOF
21675 /* confdefs.h. */
21676 _ACEOF
21677 cat confdefs.h >>conftest.$ac_ext
21678 cat >>conftest.$ac_ext <<_ACEOF
21679 /* end confdefs.h. */
21680 $ac_includes_default
21681 /* malloc might have been renamed as rpl_malloc. */
21682 #undef malloc
21684 /* Thanks to Mike Haertel and Jim Avera for this test.
21685 Here is a matrix of mmap possibilities:
21686 mmap private not fixed
21687 mmap private fixed at somewhere currently unmapped
21688 mmap private fixed at somewhere already mapped
21689 mmap shared not fixed
21690 mmap shared fixed at somewhere currently unmapped
21691 mmap shared fixed at somewhere already mapped
21692 For private mappings, we should verify that changes cannot be read()
21693 back from the file, nor mmap's back from the file at a different
21694 address. (There have been systems where private was not correctly
21695 implemented like the infamous i386 svr4.0, and systems where the
21696 VM page cache was not coherent with the file system buffer cache
21697 like early versions of FreeBSD and possibly contemporary NetBSD.)
21698 For shared mappings, we should conversely verify that changes get
21699 propagated back to all the places they're supposed to be.
21701 Grep wants private fixed already mapped.
21702 The main things grep needs to know about mmap are:
21703 * does it exist and is it safe to write into the mmap'd area
21704 * how to use it (BSD variants) */
21706 #include <fcntl.h>
21707 #include <sys/mman.h>
21709 #if !STDC_HEADERS && !HAVE_STDLIB_H
21710 char *malloc ();
21711 #endif
21713 /* This mess was copied from the GNU getpagesize.h. */
21714 #if !HAVE_GETPAGESIZE
21715 /* Assume that all systems that can run configure have sys/param.h. */
21716 # if !HAVE_SYS_PARAM_H
21717 # define HAVE_SYS_PARAM_H 1
21718 # endif
21720 # ifdef _SC_PAGESIZE
21721 # define getpagesize() sysconf(_SC_PAGESIZE)
21722 # else /* no _SC_PAGESIZE */
21723 # if HAVE_SYS_PARAM_H
21724 # include <sys/param.h>
21725 # ifdef EXEC_PAGESIZE
21726 # define getpagesize() EXEC_PAGESIZE
21727 # else /* no EXEC_PAGESIZE */
21728 # ifdef NBPG
21729 # define getpagesize() NBPG * CLSIZE
21730 # ifndef CLSIZE
21731 # define CLSIZE 1
21732 # endif /* no CLSIZE */
21733 # else /* no NBPG */
21734 # ifdef NBPC
21735 # define getpagesize() NBPC
21736 # else /* no NBPC */
21737 # ifdef PAGESIZE
21738 # define getpagesize() PAGESIZE
21739 # endif /* PAGESIZE */
21740 # endif /* no NBPC */
21741 # endif /* no NBPG */
21742 # endif /* no EXEC_PAGESIZE */
21743 # else /* no HAVE_SYS_PARAM_H */
21744 # define getpagesize() 8192 /* punt totally */
21745 # endif /* no HAVE_SYS_PARAM_H */
21746 # endif /* no _SC_PAGESIZE */
21748 #endif /* no HAVE_GETPAGESIZE */
21751 main ()
21753 char *data, *data2, *data3;
21754 int i, pagesize;
21755 int fd;
21757 pagesize = getpagesize ();
21759 /* First, make a file with some known garbage in it. */
21760 data = (char *) malloc (pagesize);
21761 if (!data)
21762 return 1;
21763 for (i = 0; i < pagesize; ++i)
21764 *(data + i) = rand ();
21765 umask (0);
21766 fd = creat ("conftest.mmap", 0600);
21767 if (fd < 0)
21768 return 1;
21769 if (write (fd, data, pagesize) != pagesize)
21770 return 1;
21771 close (fd);
21773 /* Next, try to mmap the file at a fixed address which already has
21774 something else allocated at it. If we can, also make sure that
21775 we see the same garbage. */
21776 fd = open ("conftest.mmap", O_RDWR);
21777 if (fd < 0)
21778 return 1;
21779 data2 = (char *) malloc (2 * pagesize);
21780 if (!data2)
21781 return 1;
21782 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21783 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21784 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21785 return 1;
21786 for (i = 0; i < pagesize; ++i)
21787 if (*(data + i) != *(data2 + i))
21788 return 1;
21790 /* Finally, make sure that changes to the mapped area do not
21791 percolate back to the file as seen by read(). (This is a bug on
21792 some variants of i386 svr4.0.) */
21793 for (i = 0; i < pagesize; ++i)
21794 *(data2 + i) = *(data2 + i) + 1;
21795 data3 = (char *) malloc (pagesize);
21796 if (!data3)
21797 return 1;
21798 if (read (fd, data3, pagesize) != pagesize)
21799 return 1;
21800 for (i = 0; i < pagesize; ++i)
21801 if (*(data + i) != *(data3 + i))
21802 return 1;
21803 close (fd);
21804 return 0;
21806 _ACEOF
21807 rm -f conftest$ac_exeext
21808 if { (ac_try="$ac_link"
21809 case "(($ac_try" in
21810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21811 *) ac_try_echo=$ac_try;;
21812 esac
21813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21814 (eval "$ac_link") 2>&5
21815 ac_status=$?
21816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21817 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21818 { (case "(($ac_try" in
21819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21820 *) ac_try_echo=$ac_try;;
21821 esac
21822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21823 (eval "$ac_try") 2>&5
21824 ac_status=$?
21825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21826 (exit $ac_status); }; }; then
21827 ac_cv_func_mmap_fixed_mapped=yes
21828 else
21829 echo "$as_me: program exited with status $ac_status" >&5
21830 echo "$as_me: failed program was:" >&5
21831 sed 's/^/| /' conftest.$ac_ext >&5
21833 ( exit $ac_status )
21834 ac_cv_func_mmap_fixed_mapped=no
21836 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21841 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21842 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
21843 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21845 cat >>confdefs.h <<\_ACEOF
21846 #define HAVE_MMAP 1
21847 _ACEOF
21850 rm -f conftest.mmap
21852 { echo "$as_me:$LINENO: checking for mmap of files" >&5
21853 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21854 if test "${ac_cv_func_mmap_file+set}" = set; then
21855 echo $ECHO_N "(cached) $ECHO_C" >&6
21856 else
21857 ac_ext=c
21858 ac_cpp='$CPP $CPPFLAGS'
21859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21863 if test "$cross_compiling" = yes; then
21864 ac_cv_func_mmap_file=no
21865 else
21866 cat >conftest.$ac_ext <<_ACEOF
21868 /* confdefs.h. */
21869 _ACEOF
21870 cat confdefs.h >>conftest.$ac_ext
21871 cat >>conftest.$ac_ext <<_ACEOF
21872 /* end confdefs.h. */
21874 #include <sys/types.h>
21875 #include <sys/mman.h>
21876 #include <fcntl.h>
21879 main ()
21882 int fd;
21883 fd = creat ("foo",0777);
21884 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21885 unlink ("foo");
21886 return (fd != (int) MAP_FAILED);
21888 return 0;
21890 _ACEOF
21891 rm -f conftest$ac_exeext
21892 if { (ac_try="$ac_link"
21893 case "(($ac_try" in
21894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21895 *) ac_try_echo=$ac_try;;
21896 esac
21897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21898 (eval "$ac_link") 2>&5
21899 ac_status=$?
21900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21901 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21902 { (case "(($ac_try" in
21903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21904 *) ac_try_echo=$ac_try;;
21905 esac
21906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21907 (eval "$ac_try") 2>&5
21908 ac_status=$?
21909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21910 (exit $ac_status); }; }; then
21911 ac_cv_func_mmap_file=yes
21912 else
21913 echo "$as_me: program exited with status $ac_status" >&5
21914 echo "$as_me: failed program was:" >&5
21915 sed 's/^/| /' conftest.$ac_ext >&5
21917 ( exit $ac_status )
21918 ac_cv_func_mmap_file=no
21920 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21924 ac_ext=c
21925 ac_cpp='$CPP $CPPFLAGS'
21926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21932 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21933 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
21934 if test "$ac_cv_func_mmap_file" = yes; then
21936 cat >>confdefs.h <<\_ACEOF
21937 #define HAVE_MMAP_FILE
21938 _ACEOF
21940 MMAP_FILE=yes
21944 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21945 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21946 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21947 echo $ECHO_N "(cached) $ECHO_C" >&6
21948 else
21949 if test "$llvm_cv_os_type" = "Interix" ; then
21950 ac_cv_need_dev_zero_for_mmap=yes
21951 else
21952 ac_cv_need_dev_zero_for_mmap=no
21956 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21957 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
21958 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21960 cat >>confdefs.h <<\_ACEOF
21961 #define NEED_DEV_ZERO_FOR_MMAP 1
21962 _ACEOF
21966 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21967 then
21968 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
21969 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
21971 if test "$ac_cv_func_mmap_file" = "no"
21972 then
21973 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21974 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
21978 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
21979 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
21980 ac_ext=cpp
21981 ac_cpp='$CXXCPP $CPPFLAGS'
21982 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21983 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21984 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21986 cat >conftest.$ac_ext <<_ACEOF
21987 /* confdefs.h. */
21988 _ACEOF
21989 cat confdefs.h >>conftest.$ac_ext
21990 cat >>conftest.$ac_ext <<_ACEOF
21991 /* end confdefs.h. */
21992 int main() {
21993 volatile unsigned long val = 1;
21994 __sync_synchronize();
21995 __sync_val_compare_and_swap(&val, 1, 0);
21996 __sync_add_and_fetch(&val, 1);
21997 __sync_sub_and_fetch(&val, 1);
21998 return 0;
22001 _ACEOF
22002 rm -f conftest.$ac_objext conftest$ac_exeext
22003 if { (ac_try="$ac_link"
22004 case "(($ac_try" in
22005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22006 *) ac_try_echo=$ac_try;;
22007 esac
22008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22009 (eval "$ac_link") 2>conftest.er1
22010 ac_status=$?
22011 grep -v '^ *+' conftest.er1 >conftest.err
22012 rm -f conftest.er1
22013 cat conftest.err >&5
22014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22015 (exit $ac_status); } &&
22016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22017 { (case "(($ac_try" in
22018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22019 *) ac_try_echo=$ac_try;;
22020 esac
22021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22022 (eval "$ac_try") 2>&5
22023 ac_status=$?
22024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22025 (exit $ac_status); }; } &&
22026 { ac_try='test -s conftest$ac_exeext'
22027 { (case "(($ac_try" in
22028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22029 *) ac_try_echo=$ac_try;;
22030 esac
22031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22032 (eval "$ac_try") 2>&5
22033 ac_status=$?
22034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22035 (exit $ac_status); }; }; then
22036 ac_ext=c
22037 ac_cpp='$CPP $CPPFLAGS'
22038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22042 { echo "$as_me:$LINENO: result: yes" >&5
22043 echo "${ECHO_T}yes" >&6; }
22045 cat >>confdefs.h <<\_ACEOF
22046 #define LLVM_MULTITHREADED 1
22047 _ACEOF
22049 else
22050 echo "$as_me: failed program was:" >&5
22051 sed 's/^/| /' conftest.$ac_ext >&5
22053 { echo "$as_me:$LINENO: result: no" >&5
22054 echo "${ECHO_T}no" >&6; }
22056 cat >>confdefs.h <<\_ACEOF
22057 #define LLVM_MULTITHREADED 0
22058 _ACEOF
22060 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
22061 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
22064 rm -f core conftest.err conftest.$ac_objext \
22065 conftest$ac_exeext conftest.$ac_ext
22068 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
22069 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
22070 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
22071 if test "${llvm_cv_linux_mixed+set}" = set; then
22072 echo $ECHO_N "(cached) $ECHO_C" >&6
22073 else
22074 ac_ext=c
22075 ac_cpp='$CPP $CPPFLAGS'
22076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22080 cat >conftest.$ac_ext <<_ACEOF
22081 /* confdefs.h. */
22082 _ACEOF
22083 cat confdefs.h >>conftest.$ac_ext
22084 cat >>conftest.$ac_ext <<_ACEOF
22085 /* end confdefs.h. */
22086 #ifndef __x86_64__
22087 error: Not x86-64 even if uname says so!
22088 #endif
22091 main ()
22095 return 0;
22097 _ACEOF
22098 rm -f conftest.$ac_objext
22099 if { (ac_try="$ac_compile"
22100 case "(($ac_try" in
22101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22102 *) ac_try_echo=$ac_try;;
22103 esac
22104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22105 (eval "$ac_compile") 2>conftest.er1
22106 ac_status=$?
22107 grep -v '^ *+' conftest.er1 >conftest.err
22108 rm -f conftest.er1
22109 cat conftest.err >&5
22110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22111 (exit $ac_status); } &&
22112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22113 { (case "(($ac_try" in
22114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22115 *) ac_try_echo=$ac_try;;
22116 esac
22117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22118 (eval "$ac_try") 2>&5
22119 ac_status=$?
22120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22121 (exit $ac_status); }; } &&
22122 { ac_try='test -s conftest.$ac_objext'
22123 { (case "(($ac_try" in
22124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22125 *) ac_try_echo=$ac_try;;
22126 esac
22127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22128 (eval "$ac_try") 2>&5
22129 ac_status=$?
22130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22131 (exit $ac_status); }; }; then
22132 llvm_cv_linux_mixed=no
22133 else
22134 echo "$as_me: failed program was:" >&5
22135 sed 's/^/| /' conftest.$ac_ext >&5
22137 llvm_cv_linux_mixed=yes
22140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22141 ac_ext=c
22142 ac_cpp='$CPP $CPPFLAGS'
22143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22149 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
22150 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
22152 if test "$llvm_cv_linux_mixed" = "yes"; then
22153 llvm_cv_target_arch="x86"
22154 ARCH="x86"
22159 for ac_func in __dso_handle
22161 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22162 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22163 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22164 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22165 echo $ECHO_N "(cached) $ECHO_C" >&6
22166 else
22167 cat >conftest.$ac_ext <<_ACEOF
22168 /* confdefs.h. */
22169 _ACEOF
22170 cat confdefs.h >>conftest.$ac_ext
22171 cat >>conftest.$ac_ext <<_ACEOF
22172 /* end confdefs.h. */
22173 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22174 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22175 #define $ac_func innocuous_$ac_func
22177 /* System header to define __stub macros and hopefully few prototypes,
22178 which can conflict with char $ac_func (); below.
22179 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22180 <limits.h> exists even on freestanding compilers. */
22182 #ifdef __STDC__
22183 # include <limits.h>
22184 #else
22185 # include <assert.h>
22186 #endif
22188 #undef $ac_func
22190 /* Override any GCC internal prototype to avoid an error.
22191 Use char because int might match the return type of a GCC
22192 builtin and then its argument prototype would still apply. */
22193 #ifdef __cplusplus
22194 extern "C"
22195 #endif
22196 char $ac_func ();
22197 /* The GNU C library defines this for functions which it implements
22198 to always fail with ENOSYS. Some functions are actually named
22199 something starting with __ and the normal name is an alias. */
22200 #if defined __stub_$ac_func || defined __stub___$ac_func
22201 choke me
22202 #endif
22205 main ()
22207 return $ac_func ();
22209 return 0;
22211 _ACEOF
22212 rm -f conftest.$ac_objext conftest$ac_exeext
22213 if { (ac_try="$ac_link"
22214 case "(($ac_try" in
22215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22216 *) ac_try_echo=$ac_try;;
22217 esac
22218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22219 (eval "$ac_link") 2>conftest.er1
22220 ac_status=$?
22221 grep -v '^ *+' conftest.er1 >conftest.err
22222 rm -f conftest.er1
22223 cat conftest.err >&5
22224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22225 (exit $ac_status); } &&
22226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22227 { (case "(($ac_try" in
22228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22229 *) ac_try_echo=$ac_try;;
22230 esac
22231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22232 (eval "$ac_try") 2>&5
22233 ac_status=$?
22234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22235 (exit $ac_status); }; } &&
22236 { ac_try='test -s conftest$ac_exeext'
22237 { (case "(($ac_try" in
22238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22239 *) ac_try_echo=$ac_try;;
22240 esac
22241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22242 (eval "$ac_try") 2>&5
22243 ac_status=$?
22244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22245 (exit $ac_status); }; }; then
22246 eval "$as_ac_var=yes"
22247 else
22248 echo "$as_me: failed program was:" >&5
22249 sed 's/^/| /' conftest.$ac_ext >&5
22251 eval "$as_ac_var=no"
22254 rm -f core conftest.err conftest.$ac_objext \
22255 conftest$ac_exeext conftest.$ac_ext
22257 ac_res=`eval echo '${'$as_ac_var'}'`
22258 { echo "$as_me:$LINENO: result: $ac_res" >&5
22259 echo "${ECHO_T}$ac_res" >&6; }
22260 if test `eval echo '${'$as_ac_var'}'` = yes; then
22261 cat >>confdefs.h <<_ACEOF
22262 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22263 _ACEOF
22266 done
22269 { echo "$as_me:$LINENO: checking whether llvm-gcc is dragonegg" >&5
22270 echo $ECHO_N "checking whether llvm-gcc is dragonegg... $ECHO_C" >&6; }
22271 if test "${llvm_cv_llvmgcc_dragonegg+set}" = set; then
22272 echo $ECHO_N "(cached) $ECHO_C" >&6
22273 else
22274 llvm_cv_llvmgcc_dragonegg="no"
22275 if test -n "$LLVMGCC" ; then
22276 cp /dev/null conftest.c
22277 $LLVMGCC -fplugin-arg-dragonegg-emit-ir -S -o - conftest.c > /dev/null 2>&1
22278 if test $? -eq 0 ; then
22279 llvm_cv_llvmgcc_dragonegg="yes"
22281 rm conftest.c
22284 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_dragonegg" >&5
22285 echo "${ECHO_T}$llvm_cv_llvmgcc_dragonegg" >&6; }
22287 if test "$llvm_cv_llvmgcc_dragonegg" = "yes" ; then
22288 LLVMCC_EMITIR_FLAG="-fplugin-arg-dragonegg-emit-ir"
22289 LLVMCC_DISABLEOPT_FLAGS="-fplugin-arg-dragonegg-llvm-ir-optimize=0"
22290 else
22291 LLVMCC_EMITIR_FLAG="-emit-llvm"
22292 LLVMCC_DISABLEOPT_FLAGS="-mllvm -disable-llvm-optzns"
22297 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
22298 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
22299 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
22300 echo $ECHO_N "(cached) $ECHO_C" >&6
22301 else
22302 llvm_cv_llvmgcc_sanity="no"
22303 if test -n "$LLVMGCC" ; then
22304 cp /dev/null conftest.c
22305 $LLVMGCC "$LLVMCC_EMITIR_FLAG" -S -o - conftest.c | \
22306 grep 'target datalayout =' > /dev/null 2>&1
22307 if test $? -eq 0 ; then
22308 llvm_cv_llvmgcc_sanity="yes"
22310 rm conftest.c
22313 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
22314 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
22316 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
22317 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
22318 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
22319 llvmcc1path=`$LLVMGCC --print-prog-name=cc1`
22320 LLVMCC1=$llvmcc1path
22322 llvmcc1pluspath=`$LLVMGCC --print-prog-name=cc1plus`
22323 LLVMCC1PLUS=$llvmcc1pluspath
22325 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
22326 LLVMGCCDIR=$llvmgccdir
22328 llvmgcclangs=`$LLVMGCC -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
22329 LLVMGCC_LANGS=$llvmgcclangs
22331 LLVMGCC_DRAGONEGG=$llvm_cv_llvmgcc_dragonegg
22334 { echo "$as_me:$LINENO: result: ok" >&5
22335 echo "${ECHO_T}ok" >&6; }
22338 SHLIBEXT=$libltdl_cv_shlibext
22341 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
22344 # Translate the various configuration directories and other basic
22345 # information into substitutions that will end up in Makefile.config.in
22346 # that these configured values can be used by the makefiles
22347 if test "${prefix}" = "NONE" ; then
22348 prefix="/usr/local"
22350 eval LLVM_PREFIX="${prefix}";
22351 eval LLVM_BINDIR="${prefix}/bin";
22352 eval LLVM_LIBDIR="${prefix}/lib";
22353 eval LLVM_DATADIR="${prefix}/share/llvm";
22354 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
22355 eval LLVM_ETCDIR="${prefix}/etc/llvm";
22356 eval LLVM_INCLUDEDIR="${prefix}/include";
22357 eval LLVM_INFODIR="${prefix}/info";
22358 eval LLVM_MANDIR="${prefix}/man";
22359 LLVM_CONFIGTIME=`date`
22371 # Place the various directores into the config.h file as #defines so that we
22372 # can know about the installation paths within LLVM.
22374 cat >>confdefs.h <<_ACEOF
22375 #define LLVM_PREFIX "$LLVM_PREFIX"
22376 _ACEOF
22379 cat >>confdefs.h <<_ACEOF
22380 #define LLVM_BINDIR "$LLVM_BINDIR"
22381 _ACEOF
22384 cat >>confdefs.h <<_ACEOF
22385 #define LLVM_LIBDIR "$LLVM_LIBDIR"
22386 _ACEOF
22389 cat >>confdefs.h <<_ACEOF
22390 #define LLVM_DATADIR "$LLVM_DATADIR"
22391 _ACEOF
22394 cat >>confdefs.h <<_ACEOF
22395 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
22396 _ACEOF
22399 cat >>confdefs.h <<_ACEOF
22400 #define LLVM_ETCDIR "$LLVM_ETCDIR"
22401 _ACEOF
22404 cat >>confdefs.h <<_ACEOF
22405 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
22406 _ACEOF
22409 cat >>confdefs.h <<_ACEOF
22410 #define LLVM_INFODIR "$LLVM_INFODIR"
22411 _ACEOF
22414 cat >>confdefs.h <<_ACEOF
22415 #define LLVM_MANDIR "$LLVM_MANDIR"
22416 _ACEOF
22419 cat >>confdefs.h <<_ACEOF
22420 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
22421 _ACEOF
22424 cat >>confdefs.h <<_ACEOF
22425 #define LLVM_HOSTTRIPLE "$host"
22426 _ACEOF
22429 # Determine which bindings to build.
22430 if test "$BINDINGS_TO_BUILD" = auto ; then
22431 BINDINGS_TO_BUILD=""
22432 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
22433 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
22436 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
22439 # This isn't really configurey, but it avoids having to repeat the list in
22440 # other files.
22441 ALL_BINDINGS=ocaml
22444 # Do any work necessary to ensure that bindings have what they need.
22445 binding_prereqs_failed=0
22446 for a_binding in $BINDINGS_TO_BUILD ; do
22447 case "$a_binding" in
22448 ocaml)
22449 if test "x$OCAMLC" = x ; then
22450 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
22451 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
22452 binding_prereqs_failed=1
22454 if test "x$OCAMLDEP" = x ; then
22455 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
22456 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
22457 binding_prereqs_failed=1
22459 if test "x$OCAMLOPT" = x ; then
22460 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
22461 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
22463 if test "x$with_ocaml_libdir" != xauto ; then
22464 OCAML_LIBDIR=$with_ocaml_libdir
22466 else
22467 ocaml_stdlib="`"$OCAMLC" -where`"
22468 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
22469 then
22470 # ocaml stdlib is beneath our prefix; use stdlib
22471 OCAML_LIBDIR=$ocaml_stdlib
22473 else
22474 # ocaml stdlib is outside our prefix; use libdir/ocaml
22475 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
22480 esac
22481 done
22482 if test "$binding_prereqs_failed" = 1 ; then
22483 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
22484 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
22485 { (exit 1); exit 1; }; }
22488 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
22489 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
22490 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
22491 echo $ECHO_N "(cached) $ECHO_C" >&6
22492 else
22493 ac_ext=cpp
22494 ac_cpp='$CXXCPP $CPPFLAGS'
22495 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22496 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22497 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22499 oldcxxflags="$CXXFLAGS"
22500 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
22501 cat >conftest.$ac_ext <<_ACEOF
22502 /* confdefs.h. */
22503 _ACEOF
22504 cat confdefs.h >>conftest.$ac_ext
22505 cat >>conftest.$ac_ext <<_ACEOF
22506 /* end confdefs.h. */
22509 main ()
22513 return 0;
22515 _ACEOF
22516 rm -f conftest.$ac_objext
22517 if { (ac_try="$ac_compile"
22518 case "(($ac_try" in
22519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22520 *) ac_try_echo=$ac_try;;
22521 esac
22522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22523 (eval "$ac_compile") 2>conftest.er1
22524 ac_status=$?
22525 grep -v '^ *+' conftest.er1 >conftest.err
22526 rm -f conftest.er1
22527 cat conftest.err >&5
22528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22529 (exit $ac_status); } &&
22530 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22531 { (case "(($ac_try" in
22532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22533 *) ac_try_echo=$ac_try;;
22534 esac
22535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22536 (eval "$ac_try") 2>&5
22537 ac_status=$?
22538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22539 (exit $ac_status); }; } &&
22540 { ac_try='test -s conftest.$ac_objext'
22541 { (case "(($ac_try" in
22542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22543 *) ac_try_echo=$ac_try;;
22544 esac
22545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22546 (eval "$ac_try") 2>&5
22547 ac_status=$?
22548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22549 (exit $ac_status); }; }; then
22550 llvm_cv_cxx_visibility_inlines_hidden=yes
22551 else
22552 echo "$as_me: failed program was:" >&5
22553 sed 's/^/| /' conftest.$ac_ext >&5
22555 llvm_cv_cxx_visibility_inlines_hidden=no
22558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22559 CXXFLAGS="$oldcxxflags"
22560 ac_ext=c
22561 ac_cpp='$CPP $CPPFLAGS'
22562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22568 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
22569 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
22570 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
22571 ENABLE_VISIBILITY_INLINES_HIDDEN=1
22573 else
22574 ENABLE_VISIBILITY_INLINES_HIDDEN=0
22579 if test "$llvm_cv_link_use_r" = "yes" ; then
22580 RPATH="-Wl,-R"
22581 else
22582 RPATH="-Wl,-rpath"
22586 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
22587 RDYNAMIC="-Wl,-export-dynamic"
22588 else
22589 RDYNAMIC=""
22594 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
22601 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
22603 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
22605 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
22607 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
22609 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
22612 ac_config_files="$ac_config_files Makefile.config"
22615 ac_config_files="$ac_config_files llvm.spec"
22618 ac_config_files="$ac_config_files docs/doxygen.cfg"
22620 if test -f ${srcdir}/tools/clang/README.txt; then
22621 ac_config_files="$ac_config_files tools/clang/docs/doxygen.cfg"
22625 ac_config_files="$ac_config_files tools/llvmc/src/Base.td"
22628 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
22631 ac_config_commands="$ac_config_commands setup"
22633 ac_config_commands="$ac_config_commands Makefile"
22636 ac_config_commands="$ac_config_commands Makefile.common"
22639 ac_config_commands="$ac_config_commands examples/Makefile"
22642 ac_config_commands="$ac_config_commands lib/Makefile"
22645 ac_config_commands="$ac_config_commands runtime/Makefile"
22648 ac_config_commands="$ac_config_commands test/Makefile"
22651 ac_config_commands="$ac_config_commands test/Makefile.tests"
22654 ac_config_commands="$ac_config_commands unittests/Makefile"
22657 ac_config_commands="$ac_config_commands tools/Makefile"
22660 ac_config_commands="$ac_config_commands utils/Makefile"
22663 ac_config_commands="$ac_config_commands projects/Makefile"
22666 ac_config_commands="$ac_config_commands bindings/Makefile"
22669 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22673 cat >confcache <<\_ACEOF
22674 # This file is a shell script that caches the results of configure
22675 # tests run on this system so they can be shared between configure
22676 # scripts and configure runs, see configure's option --config-cache.
22677 # It is not useful on other systems. If it contains results you don't
22678 # want to keep, you may remove or edit it.
22680 # config.status only pays attention to the cache file if you give it
22681 # the --recheck option to rerun configure.
22683 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22684 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22685 # following values.
22687 _ACEOF
22689 # The following way of writing the cache mishandles newlines in values,
22690 # but we know of no workaround that is simple, portable, and efficient.
22691 # So, we kill variables containing newlines.
22692 # Ultrix sh set writes to stderr and can't be redirected directly,
22693 # and sets the high bit in the cache file unless we assign to the vars.
22695 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22696 eval ac_val=\$$ac_var
22697 case $ac_val in #(
22698 *${as_nl}*)
22699 case $ac_var in #(
22700 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22701 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22702 esac
22703 case $ac_var in #(
22704 _ | IFS | as_nl) ;; #(
22705 *) $as_unset $ac_var ;;
22706 esac ;;
22707 esac
22708 done
22710 (set) 2>&1 |
22711 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22712 *${as_nl}ac_space=\ *)
22713 # `set' does not quote correctly, so add quotes (double-quote
22714 # substitution turns \\\\ into \\, and sed turns \\ into \).
22715 sed -n \
22716 "s/'/'\\\\''/g;
22717 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22718 ;; #(
22720 # `set' quotes correctly as required by POSIX, so do not add quotes.
22721 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22723 esac |
22724 sort
22726 sed '
22727 /^ac_cv_env_/b end
22728 t clear
22729 :clear
22730 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22731 t end
22732 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22733 :end' >>confcache
22734 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22735 if test -w "$cache_file"; then
22736 test "x$cache_file" != "x/dev/null" &&
22737 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22738 echo "$as_me: updating cache $cache_file" >&6;}
22739 cat confcache >$cache_file
22740 else
22741 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22742 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22745 rm -f confcache
22747 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22748 # Let make expand exec_prefix.
22749 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22751 DEFS=-DHAVE_CONFIG_H
22753 ac_libobjs=
22754 ac_ltlibobjs=
22755 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22756 # 1. Remove the extension, and $U if already installed.
22757 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22758 ac_i=`echo "$ac_i" | sed "$ac_script"`
22759 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22760 # will be set to the directory where LIBOBJS objects are built.
22761 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22762 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22763 done
22764 LIBOBJS=$ac_libobjs
22766 LTLIBOBJS=$ac_ltlibobjs
22769 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22770 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22771 Usually this means the macro was only invoked conditionally." >&5
22772 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22773 Usually this means the macro was only invoked conditionally." >&2;}
22774 { (exit 1); exit 1; }; }
22776 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22777 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22778 Usually this means the macro was only invoked conditionally." >&5
22779 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22780 Usually this means the macro was only invoked conditionally." >&2;}
22781 { (exit 1); exit 1; }; }
22784 : ${CONFIG_STATUS=./config.status}
22785 ac_clean_files_save=$ac_clean_files
22786 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22787 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22788 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22789 cat >$CONFIG_STATUS <<_ACEOF
22790 #! $SHELL
22791 # Generated by $as_me.
22792 # Run this file to recreate the current configuration.
22793 # Compiler output produced by configure, useful for debugging
22794 # configure, is in config.log if it exists.
22796 debug=false
22797 ac_cs_recheck=false
22798 ac_cs_silent=false
22799 SHELL=\${CONFIG_SHELL-$SHELL}
22800 _ACEOF
22802 cat >>$CONFIG_STATUS <<\_ACEOF
22803 ## --------------------- ##
22804 ## M4sh Initialization. ##
22805 ## --------------------- ##
22807 # Be Bourne compatible
22808 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22809 emulate sh
22810 NULLCMD=:
22811 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22812 # is contrary to our usage. Disable this feature.
22813 alias -g '${1+"$@"}'='"$@"'
22814 setopt NO_GLOB_SUBST
22815 else
22816 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22818 BIN_SH=xpg4; export BIN_SH # for Tru64
22819 DUALCASE=1; export DUALCASE # for MKS sh
22822 # PATH needs CR
22823 # Avoid depending upon Character Ranges.
22824 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22825 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22826 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22827 as_cr_digits='0123456789'
22828 as_cr_alnum=$as_cr_Letters$as_cr_digits
22830 # The user is always right.
22831 if test "${PATH_SEPARATOR+set}" != set; then
22832 echo "#! /bin/sh" >conf$$.sh
22833 echo "exit 0" >>conf$$.sh
22834 chmod +x conf$$.sh
22835 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22836 PATH_SEPARATOR=';'
22837 else
22838 PATH_SEPARATOR=:
22840 rm -f conf$$.sh
22843 # Support unset when possible.
22844 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22845 as_unset=unset
22846 else
22847 as_unset=false
22851 # IFS
22852 # We need space, tab and new line, in precisely that order. Quoting is
22853 # there to prevent editors from complaining about space-tab.
22854 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22855 # splitting by setting IFS to empty value.)
22856 as_nl='
22858 IFS=" "" $as_nl"
22860 # Find who we are. Look in the path if we contain no directory separator.
22861 case $0 in
22862 *[\\/]* ) as_myself=$0 ;;
22863 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22864 for as_dir in $PATH
22866 IFS=$as_save_IFS
22867 test -z "$as_dir" && as_dir=.
22868 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22869 done
22870 IFS=$as_save_IFS
22873 esac
22874 # We did not find ourselves, most probably we were run as `sh COMMAND'
22875 # in which case we are not to be found in the path.
22876 if test "x$as_myself" = x; then
22877 as_myself=$0
22879 if test ! -f "$as_myself"; then
22880 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22881 { (exit 1); exit 1; }
22884 # Work around bugs in pre-3.0 UWIN ksh.
22885 for as_var in ENV MAIL MAILPATH
22886 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22887 done
22888 PS1='$ '
22889 PS2='> '
22890 PS4='+ '
22892 # NLS nuisances.
22893 for as_var in \
22894 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22895 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22896 LC_TELEPHONE LC_TIME
22898 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22899 eval $as_var=C; export $as_var
22900 else
22901 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22903 done
22905 # Required to use basename.
22906 if expr a : '\(a\)' >/dev/null 2>&1 &&
22907 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22908 as_expr=expr
22909 else
22910 as_expr=false
22913 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22914 as_basename=basename
22915 else
22916 as_basename=false
22920 # Name of the executable.
22921 as_me=`$as_basename -- "$0" ||
22922 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22923 X"$0" : 'X\(//\)$' \| \
22924 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22925 echo X/"$0" |
22926 sed '/^.*\/\([^/][^/]*\)\/*$/{
22927 s//\1/
22930 /^X\/\(\/\/\)$/{
22931 s//\1/
22934 /^X\/\(\/\).*/{
22935 s//\1/
22938 s/.*/./; q'`
22940 # CDPATH.
22941 $as_unset CDPATH
22945 as_lineno_1=$LINENO
22946 as_lineno_2=$LINENO
22947 test "x$as_lineno_1" != "x$as_lineno_2" &&
22948 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22950 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22951 # uniformly replaced by the line number. The first 'sed' inserts a
22952 # line-number line after each line using $LINENO; the second 'sed'
22953 # does the real work. The second script uses 'N' to pair each
22954 # line-number line with the line containing $LINENO, and appends
22955 # trailing '-' during substitution so that $LINENO is not a special
22956 # case at line end.
22957 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22958 # scripts with optimization help from Paolo Bonzini. Blame Lee
22959 # E. McMahon (1931-1989) for sed's syntax. :-)
22960 sed -n '
22962 /[$]LINENO/=
22963 ' <$as_myself |
22964 sed '
22965 s/[$]LINENO.*/&-/
22966 t lineno
22968 :lineno
22970 :loop
22971 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22972 t loop
22973 s/-\n.*//
22974 ' >$as_me.lineno &&
22975 chmod +x "$as_me.lineno" ||
22976 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22977 { (exit 1); exit 1; }; }
22979 # Don't try to exec as it changes $[0], causing all sort of problems
22980 # (the dirname of $[0] is not the place where we might find the
22981 # original and so on. Autoconf is especially sensitive to this).
22982 . "./$as_me.lineno"
22983 # Exit status is that of the last command.
22984 exit
22988 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22989 as_dirname=dirname
22990 else
22991 as_dirname=false
22994 ECHO_C= ECHO_N= ECHO_T=
22995 case `echo -n x` in
22996 -n*)
22997 case `echo 'x\c'` in
22998 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22999 *) ECHO_C='\c';;
23000 esac;;
23002 ECHO_N='-n';;
23003 esac
23005 if expr a : '\(a\)' >/dev/null 2>&1 &&
23006 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23007 as_expr=expr
23008 else
23009 as_expr=false
23012 rm -f conf$$ conf$$.exe conf$$.file
23013 if test -d conf$$.dir; then
23014 rm -f conf$$.dir/conf$$.file
23015 else
23016 rm -f conf$$.dir
23017 mkdir conf$$.dir
23019 echo >conf$$.file
23020 if ln -s conf$$.file conf$$ 2>/dev/null; then
23021 as_ln_s='ln -s'
23022 # ... but there are two gotchas:
23023 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23024 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23025 # In both cases, we have to default to `cp -p'.
23026 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23027 as_ln_s='cp -p'
23028 elif ln conf$$.file conf$$ 2>/dev/null; then
23029 as_ln_s=ln
23030 else
23031 as_ln_s='cp -p'
23033 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23034 rmdir conf$$.dir 2>/dev/null
23036 if mkdir -p . 2>/dev/null; then
23037 as_mkdir_p=:
23038 else
23039 test -d ./-p && rmdir ./-p
23040 as_mkdir_p=false
23043 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
23044 # systems may use methods other than mode bits to determine executability.
23045 cat >conf$$.file <<_ASEOF
23046 #! /bin/sh
23047 exit 0
23048 _ASEOF
23049 chmod +x conf$$.file
23050 if test -x conf$$.file >/dev/null 2>&1; then
23051 as_executable_p="test -x"
23052 else
23053 as_executable_p=:
23055 rm -f conf$$.file
23057 # Sed expression to map a string onto a valid CPP name.
23058 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23060 # Sed expression to map a string onto a valid variable name.
23061 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23064 exec 6>&1
23066 # Save the log message, to keep $[0] and so on meaningful, and to
23067 # report actual input values of CONFIG_FILES etc. instead of their
23068 # values after options handling.
23069 ac_log="
23070 This file was extended by llvm $as_me 3.0svn, which was
23071 generated by GNU Autoconf 2.60. Invocation command line was
23073 CONFIG_FILES = $CONFIG_FILES
23074 CONFIG_HEADERS = $CONFIG_HEADERS
23075 CONFIG_LINKS = $CONFIG_LINKS
23076 CONFIG_COMMANDS = $CONFIG_COMMANDS
23077 $ $0 $@
23079 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23082 _ACEOF
23084 cat >>$CONFIG_STATUS <<_ACEOF
23085 # Files that config.status was made for.
23086 config_files="$ac_config_files"
23087 config_headers="$ac_config_headers"
23088 config_commands="$ac_config_commands"
23090 _ACEOF
23092 cat >>$CONFIG_STATUS <<\_ACEOF
23093 ac_cs_usage="\
23094 \`$as_me' instantiates files from templates according to the
23095 current configuration.
23097 Usage: $0 [OPTIONS] [FILE]...
23099 -h, --help print this help, then exit
23100 -V, --version print version number, then exit
23101 -q, --quiet do not print progress messages
23102 -d, --debug don't remove temporary files
23103 --recheck update $as_me by reconfiguring in the same conditions
23104 --file=FILE[:TEMPLATE]
23105 instantiate the configuration file FILE
23106 --header=FILE[:TEMPLATE]
23107 instantiate the configuration header FILE
23109 Configuration files:
23110 $config_files
23112 Configuration headers:
23113 $config_headers
23115 Configuration commands:
23116 $config_commands
23118 Report bugs to <bug-autoconf@gnu.org>."
23120 _ACEOF
23121 cat >>$CONFIG_STATUS <<_ACEOF
23122 ac_cs_version="\\
23123 llvm config.status 3.0svn
23124 configured by $0, generated by GNU Autoconf 2.60,
23125 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23127 Copyright (C) 2006 Free Software Foundation, Inc.
23128 This config.status script is free software; the Free Software Foundation
23129 gives unlimited permission to copy, distribute and modify it."
23131 ac_pwd='$ac_pwd'
23132 srcdir='$srcdir'
23133 INSTALL='$INSTALL'
23134 _ACEOF
23136 cat >>$CONFIG_STATUS <<\_ACEOF
23137 # If no file are specified by the user, then we need to provide default
23138 # value. By we need to know if files were specified by the user.
23139 ac_need_defaults=:
23140 while test $# != 0
23142 case $1 in
23143 --*=*)
23144 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23145 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23146 ac_shift=:
23149 ac_option=$1
23150 ac_optarg=$2
23151 ac_shift=shift
23153 esac
23155 case $ac_option in
23156 # Handling of the options.
23157 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23158 ac_cs_recheck=: ;;
23159 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23160 echo "$ac_cs_version"; exit ;;
23161 --debug | --debu | --deb | --de | --d | -d )
23162 debug=: ;;
23163 --file | --fil | --fi | --f )
23164 $ac_shift
23165 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23166 ac_need_defaults=false;;
23167 --header | --heade | --head | --hea )
23168 $ac_shift
23169 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23170 ac_need_defaults=false;;
23171 --he | --h)
23172 # Conflict between --help and --header
23173 { echo "$as_me: error: ambiguous option: $1
23174 Try \`$0 --help' for more information." >&2
23175 { (exit 1); exit 1; }; };;
23176 --help | --hel | -h )
23177 echo "$ac_cs_usage"; exit ;;
23178 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23179 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23180 ac_cs_silent=: ;;
23182 # This is an error.
23183 -*) { echo "$as_me: error: unrecognized option: $1
23184 Try \`$0 --help' for more information." >&2
23185 { (exit 1); exit 1; }; } ;;
23187 *) ac_config_targets="$ac_config_targets $1"
23188 ac_need_defaults=false ;;
23190 esac
23191 shift
23192 done
23194 ac_configure_extra_args=
23196 if $ac_cs_silent; then
23197 exec 6>/dev/null
23198 ac_configure_extra_args="$ac_configure_extra_args --silent"
23201 _ACEOF
23202 cat >>$CONFIG_STATUS <<_ACEOF
23203 if \$ac_cs_recheck; then
23204 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23205 CONFIG_SHELL=$SHELL
23206 export CONFIG_SHELL
23207 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23210 _ACEOF
23211 cat >>$CONFIG_STATUS <<\_ACEOF
23212 exec 5>>config.log
23214 echo
23215 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23216 ## Running $as_me. ##
23217 _ASBOX
23218 echo "$ac_log"
23219 } >&5
23221 _ACEOF
23222 cat >>$CONFIG_STATUS <<_ACEOF
23224 # INIT-COMMANDS
23226 llvm_src="${srcdir}"
23228 _ACEOF
23230 cat >>$CONFIG_STATUS <<\_ACEOF
23232 # Handling of arguments.
23233 for ac_config_target in $ac_config_targets
23235 case $ac_config_target in
23236 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
23237 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
23238 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
23239 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
23240 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
23241 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
23242 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
23243 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23244 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
23245 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
23246 "tools/clang/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;;
23247 "tools/llvmc/src/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/src/Base.td" ;;
23248 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
23249 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
23250 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23251 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23252 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
23253 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23254 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23255 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23256 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23257 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
23258 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23259 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23260 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23261 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
23262 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
23264 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23265 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23266 { (exit 1); exit 1; }; };;
23267 esac
23268 done
23271 # If the user did not use the arguments to specify the items to instantiate,
23272 # then the envvar interface is used. Set only those that are not.
23273 # We use the long form for the default assignment because of an extremely
23274 # bizarre bug on SunOS 4.1.3.
23275 if $ac_need_defaults; then
23276 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23277 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23278 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23281 # Have a temporary directory for convenience. Make it in the build tree
23282 # simply because there is no reason against having it here, and in addition,
23283 # creating and moving files from /tmp can sometimes cause problems.
23284 # Hook for its removal unless debugging.
23285 # Note that there is a small window in which the directory will not be cleaned:
23286 # after its creation but before its name has been assigned to `$tmp'.
23287 $debug ||
23289 tmp=
23290 trap 'exit_status=$?
23291 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23293 trap '{ (exit 1); exit 1; }' 1 2 13 15
23295 # Create a (secure) tmp directory for tmp files.
23298 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23299 test -n "$tmp" && test -d "$tmp"
23300 } ||
23302 tmp=./conf$$-$RANDOM
23303 (umask 077 && mkdir "$tmp")
23304 } ||
23306 echo "$me: cannot create a temporary directory in ." >&2
23307 { (exit 1); exit 1; }
23311 # Set up the sed scripts for CONFIG_FILES section.
23314 # No need to generate the scripts if there are no CONFIG_FILES.
23315 # This happens for instance when ./config.status config.h
23316 if test -n "$CONFIG_FILES"; then
23318 _ACEOF
23322 ac_delim='%!_!# '
23323 for ac_last_try in false false false false false :; do
23324 cat >conf$$subs.sed <<_ACEOF
23325 SHELL!$SHELL$ac_delim
23326 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23327 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23328 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23329 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23330 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23331 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23332 exec_prefix!$exec_prefix$ac_delim
23333 prefix!$prefix$ac_delim
23334 program_transform_name!$program_transform_name$ac_delim
23335 bindir!$bindir$ac_delim
23336 sbindir!$sbindir$ac_delim
23337 libexecdir!$libexecdir$ac_delim
23338 datarootdir!$datarootdir$ac_delim
23339 datadir!$datadir$ac_delim
23340 sysconfdir!$sysconfdir$ac_delim
23341 sharedstatedir!$sharedstatedir$ac_delim
23342 localstatedir!$localstatedir$ac_delim
23343 includedir!$includedir$ac_delim
23344 oldincludedir!$oldincludedir$ac_delim
23345 docdir!$docdir$ac_delim
23346 infodir!$infodir$ac_delim
23347 htmldir!$htmldir$ac_delim
23348 dvidir!$dvidir$ac_delim
23349 pdfdir!$pdfdir$ac_delim
23350 psdir!$psdir$ac_delim
23351 libdir!$libdir$ac_delim
23352 localedir!$localedir$ac_delim
23353 mandir!$mandir$ac_delim
23354 DEFS!$DEFS$ac_delim
23355 ECHO_C!$ECHO_C$ac_delim
23356 ECHO_N!$ECHO_N$ac_delim
23357 ECHO_T!$ECHO_T$ac_delim
23358 LIBS!$LIBS$ac_delim
23359 build_alias!$build_alias$ac_delim
23360 host_alias!$host_alias$ac_delim
23361 target_alias!$target_alias$ac_delim
23362 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
23363 subdirs!$subdirs$ac_delim
23364 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
23365 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
23366 build!$build$ac_delim
23367 build_cpu!$build_cpu$ac_delim
23368 build_vendor!$build_vendor$ac_delim
23369 build_os!$build_os$ac_delim
23370 host!$host$ac_delim
23371 host_cpu!$host_cpu$ac_delim
23372 host_vendor!$host_vendor$ac_delim
23373 host_os!$host_os$ac_delim
23374 target!$target$ac_delim
23375 target_cpu!$target_cpu$ac_delim
23376 target_vendor!$target_vendor$ac_delim
23377 target_os!$target_os$ac_delim
23378 OS!$OS$ac_delim
23379 HOST_OS!$HOST_OS$ac_delim
23380 TARGET_OS!$TARGET_OS$ac_delim
23381 LINKALL!$LINKALL$ac_delim
23382 NOLINKALL!$NOLINKALL$ac_delim
23383 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
23384 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
23385 ARCH!$ARCH$ac_delim
23386 ENDIAN!$ENDIAN$ac_delim
23387 CC!$CC$ac_delim
23388 CFLAGS!$CFLAGS$ac_delim
23389 LDFLAGS!$LDFLAGS$ac_delim
23390 CPPFLAGS!$CPPFLAGS$ac_delim
23391 ac_ct_CC!$ac_ct_CC$ac_delim
23392 EXEEXT!$EXEEXT$ac_delim
23393 OBJEXT!$OBJEXT$ac_delim
23394 CPP!$CPP$ac_delim
23395 GREP!$GREP$ac_delim
23396 EGREP!$EGREP$ac_delim
23397 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
23398 BUILD_CC!$BUILD_CC$ac_delim
23399 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
23400 BUILD_CXX!$BUILD_CXX$ac_delim
23401 CVSBUILD!$CVSBUILD$ac_delim
23402 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
23403 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
23404 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
23405 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
23406 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
23407 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
23408 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
23409 JIT!$JIT$ac_delim
23410 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
23411 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
23412 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
23413 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
23414 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
23415 ENABLE_PIC!$ENABLE_PIC$ac_delim
23416 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
23417 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
23418 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
23419 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
23420 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
23421 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
23422 _ACEOF
23424 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23425 break
23426 elif $ac_last_try; then
23427 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23428 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23429 { (exit 1); exit 1; }; }
23430 else
23431 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23433 done
23435 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23436 if test -n "$ac_eof"; then
23437 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23438 ac_eof=`expr $ac_eof + 1`
23441 cat >>$CONFIG_STATUS <<_ACEOF
23442 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23443 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23444 _ACEOF
23445 sed '
23446 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23447 s/^/s,@/; s/!/@,|#_!!_#|/
23450 s/'"$ac_delim"'$/,g/; t
23451 s/$/\\/; p
23452 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23453 ' >>$CONFIG_STATUS <conf$$subs.sed
23454 rm -f conf$$subs.sed
23455 cat >>$CONFIG_STATUS <<_ACEOF
23456 CEOF$ac_eof
23457 _ACEOF
23460 ac_delim='%!_!# '
23461 for ac_last_try in false false false false false :; do
23462 cat >conf$$subs.sed <<_ACEOF
23463 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
23464 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
23465 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
23466 CLANGPATH!$CLANGPATH$ac_delim
23467 CLANGXXPATH!$CLANGXXPATH$ac_delim
23468 ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
23469 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
23470 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
23471 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
23472 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
23473 CXX!$CXX$ac_delim
23474 CXXFLAGS!$CXXFLAGS$ac_delim
23475 ac_ct_CXX!$ac_ct_CXX$ac_delim
23476 NM!$NM$ac_delim
23477 ifGNUmake!$ifGNUmake$ac_delim
23478 LN_S!$LN_S$ac_delim
23479 CMP!$CMP$ac_delim
23480 CP!$CP$ac_delim
23481 DATE!$DATE$ac_delim
23482 FIND!$FIND$ac_delim
23483 MKDIR!$MKDIR$ac_delim
23484 MV!$MV$ac_delim
23485 RANLIB!$RANLIB$ac_delim
23486 AR!$AR$ac_delim
23487 RM!$RM$ac_delim
23488 SED!$SED$ac_delim
23489 TAR!$TAR$ac_delim
23490 BINPWD!$BINPWD$ac_delim
23491 GRAPHVIZ!$GRAPHVIZ$ac_delim
23492 DOT!$DOT$ac_delim
23493 FDP!$FDP$ac_delim
23494 NEATO!$NEATO$ac_delim
23495 TWOPI!$TWOPI$ac_delim
23496 CIRCO!$CIRCO$ac_delim
23497 GV!$GV$ac_delim
23498 DOTTY!$DOTTY$ac_delim
23499 XDOT_PY!$XDOT_PY$ac_delim
23500 PERL!$PERL$ac_delim
23501 HAVE_PERL!$HAVE_PERL$ac_delim
23502 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23503 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23504 INSTALL_DATA!$INSTALL_DATA$ac_delim
23505 BZIP2!$BZIP2$ac_delim
23506 CAT!$CAT$ac_delim
23507 DOXYGEN!$DOXYGEN$ac_delim
23508 GROFF!$GROFF$ac_delim
23509 GZIPBIN!$GZIPBIN$ac_delim
23510 POD2HTML!$POD2HTML$ac_delim
23511 POD2MAN!$POD2MAN$ac_delim
23512 PDFROFF!$PDFROFF$ac_delim
23513 RUNTEST!$RUNTEST$ac_delim
23514 TCLSH!$TCLSH$ac_delim
23515 ZIP!$ZIP$ac_delim
23516 OCAMLC!$OCAMLC$ac_delim
23517 OCAMLOPT!$OCAMLOPT$ac_delim
23518 OCAMLDEP!$OCAMLDEP$ac_delim
23519 OCAMLDOC!$OCAMLDOC$ac_delim
23520 GAS!$GAS$ac_delim
23521 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
23522 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23523 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23524 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23525 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23526 LIBADD_DL!$LIBADD_DL$ac_delim
23527 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
23528 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
23529 LLVMGCC!$LLVMGCC$ac_delim
23530 LLVMGXX!$LLVMGXX$ac_delim
23531 LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
23532 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
23533 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
23534 USE_UDIS86!$USE_UDIS86$ac_delim
23535 USE_OPROFILE!$USE_OPROFILE$ac_delim
23536 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
23537 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
23538 MMAP_FILE!$MMAP_FILE$ac_delim
23539 LLVMCC_EMITIR_FLAG!$LLVMCC_EMITIR_FLAG$ac_delim
23540 LLVMCC1!$LLVMCC1$ac_delim
23541 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
23542 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
23543 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
23544 LLVMGCC_DRAGONEGG!$LLVMGCC_DRAGONEGG$ac_delim
23545 LLVMCC_DISABLEOPT_FLAGS!$LLVMCC_DISABLEOPT_FLAGS$ac_delim
23546 SHLIBEXT!$SHLIBEXT$ac_delim
23547 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
23548 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
23549 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
23550 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
23551 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
23552 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
23553 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
23554 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
23555 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
23556 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
23557 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
23558 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
23559 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
23560 _ACEOF
23562 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23563 break
23564 elif $ac_last_try; then
23565 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23566 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23567 { (exit 1); exit 1; }; }
23568 else
23569 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23571 done
23573 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23574 if test -n "$ac_eof"; then
23575 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23576 ac_eof=`expr $ac_eof + 1`
23579 cat >>$CONFIG_STATUS <<_ACEOF
23580 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23581 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23582 _ACEOF
23583 sed '
23584 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23585 s/^/s,@/; s/!/@,|#_!!_#|/
23588 s/'"$ac_delim"'$/,g/; t
23589 s/$/\\/; p
23590 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23591 ' >>$CONFIG_STATUS <conf$$subs.sed
23592 rm -f conf$$subs.sed
23593 cat >>$CONFIG_STATUS <<_ACEOF
23594 CEOF$ac_eof
23595 _ACEOF
23598 ac_delim='%!_!# '
23599 for ac_last_try in false false false false false :; do
23600 cat >conf$$subs.sed <<_ACEOF
23601 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
23602 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
23603 RPATH!$RPATH$ac_delim
23604 RDYNAMIC!$RDYNAMIC$ac_delim
23605 LIBOBJS!$LIBOBJS$ac_delim
23606 LTLIBOBJS!$LTLIBOBJS$ac_delim
23607 _ACEOF
23609 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 6; then
23610 break
23611 elif $ac_last_try; then
23612 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23613 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23614 { (exit 1); exit 1; }; }
23615 else
23616 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23618 done
23620 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23621 if test -n "$ac_eof"; then
23622 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23623 ac_eof=`expr $ac_eof + 1`
23626 cat >>$CONFIG_STATUS <<_ACEOF
23627 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
23628 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23629 _ACEOF
23630 sed '
23631 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23632 s/^/s,@/; s/!/@,|#_!!_#|/
23635 s/'"$ac_delim"'$/,g/; t
23636 s/$/\\/; p
23637 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23638 ' >>$CONFIG_STATUS <conf$$subs.sed
23639 rm -f conf$$subs.sed
23640 cat >>$CONFIG_STATUS <<_ACEOF
23641 :end
23642 s/|#_!!_#|//g
23643 CEOF$ac_eof
23644 _ACEOF
23647 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23648 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23649 # trailing colons and then remove the whole line if VPATH becomes empty
23650 # (actually we leave an empty line to preserve line numbers).
23651 if test "x$srcdir" = x.; then
23652 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23653 s/:*\$(srcdir):*/:/
23654 s/:*\${srcdir}:*/:/
23655 s/:*@srcdir@:*/:/
23656 s/^\([^=]*=[ ]*\):*/\1/
23657 s/:*$//
23658 s/^[^=]*=[ ]*$//
23662 cat >>$CONFIG_STATUS <<\_ACEOF
23663 fi # test -n "$CONFIG_FILES"
23666 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
23668 case $ac_tag in
23669 :[FHLC]) ac_mode=$ac_tag; continue;;
23670 esac
23671 case $ac_mode$ac_tag in
23672 :[FHL]*:*);;
23673 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23674 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23675 { (exit 1); exit 1; }; };;
23676 :[FH]-) ac_tag=-:-;;
23677 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23678 esac
23679 ac_save_IFS=$IFS
23680 IFS=:
23681 set x $ac_tag
23682 IFS=$ac_save_IFS
23683 shift
23684 ac_file=$1
23685 shift
23687 case $ac_mode in
23688 :L) ac_source=$1;;
23689 :[FH])
23690 ac_file_inputs=
23691 for ac_f
23693 case $ac_f in
23694 -) ac_f="$tmp/stdin";;
23695 *) # Look for the file first in the build tree, then in the source tree
23696 # (if the path is not absolute). The absolute path cannot be DOS-style,
23697 # because $ac_f cannot contain `:'.
23698 test -f "$ac_f" ||
23699 case $ac_f in
23700 [\\/$]*) false;;
23701 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23702 esac ||
23703 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23704 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23705 { (exit 1); exit 1; }; };;
23706 esac
23707 ac_file_inputs="$ac_file_inputs $ac_f"
23708 done
23710 # Let's still pretend it is `configure' which instantiates (i.e., don't
23711 # use $as_me), people would be surprised to read:
23712 # /* config.h. Generated by config.status. */
23713 configure_input="Generated from "`IFS=:
23714 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23715 if test x"$ac_file" != x-; then
23716 configure_input="$ac_file. $configure_input"
23717 { echo "$as_me:$LINENO: creating $ac_file" >&5
23718 echo "$as_me: creating $ac_file" >&6;}
23721 case $ac_tag in
23722 *:-:* | *:-) cat >"$tmp/stdin";;
23723 esac
23725 esac
23727 ac_dir=`$as_dirname -- "$ac_file" ||
23728 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23729 X"$ac_file" : 'X\(//\)[^/]' \| \
23730 X"$ac_file" : 'X\(//\)$' \| \
23731 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23732 echo X"$ac_file" |
23733 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23734 s//\1/
23737 /^X\(\/\/\)[^/].*/{
23738 s//\1/
23741 /^X\(\/\/\)$/{
23742 s//\1/
23745 /^X\(\/\).*/{
23746 s//\1/
23749 s/.*/./; q'`
23750 { as_dir="$ac_dir"
23751 case $as_dir in #(
23752 -*) as_dir=./$as_dir;;
23753 esac
23754 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23755 as_dirs=
23756 while :; do
23757 case $as_dir in #(
23758 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23759 *) as_qdir=$as_dir;;
23760 esac
23761 as_dirs="'$as_qdir' $as_dirs"
23762 as_dir=`$as_dirname -- "$as_dir" ||
23763 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23764 X"$as_dir" : 'X\(//\)[^/]' \| \
23765 X"$as_dir" : 'X\(//\)$' \| \
23766 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23767 echo X"$as_dir" |
23768 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23769 s//\1/
23772 /^X\(\/\/\)[^/].*/{
23773 s//\1/
23776 /^X\(\/\/\)$/{
23777 s//\1/
23780 /^X\(\/\).*/{
23781 s//\1/
23784 s/.*/./; q'`
23785 test -d "$as_dir" && break
23786 done
23787 test -z "$as_dirs" || eval "mkdir $as_dirs"
23788 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23789 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23790 { (exit 1); exit 1; }; }; }
23791 ac_builddir=.
23793 case "$ac_dir" in
23794 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23796 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23797 # A ".." for each directory in $ac_dir_suffix.
23798 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23799 case $ac_top_builddir_sub in
23800 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23801 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23802 esac ;;
23803 esac
23804 ac_abs_top_builddir=$ac_pwd
23805 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23806 # for backward compatibility:
23807 ac_top_builddir=$ac_top_build_prefix
23809 case $srcdir in
23810 .) # We are building in place.
23811 ac_srcdir=.
23812 ac_top_srcdir=$ac_top_builddir_sub
23813 ac_abs_top_srcdir=$ac_pwd ;;
23814 [\\/]* | ?:[\\/]* ) # Absolute name.
23815 ac_srcdir=$srcdir$ac_dir_suffix;
23816 ac_top_srcdir=$srcdir
23817 ac_abs_top_srcdir=$srcdir ;;
23818 *) # Relative name.
23819 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23820 ac_top_srcdir=$ac_top_build_prefix$srcdir
23821 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23822 esac
23823 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23826 case $ac_mode in
23829 # CONFIG_FILE
23832 case $INSTALL in
23833 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23834 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23835 esac
23836 _ACEOF
23838 cat >>$CONFIG_STATUS <<\_ACEOF
23839 # If the template does not know about datarootdir, expand it.
23840 # FIXME: This hack should be removed a few years after 2.60.
23841 ac_datarootdir_hack=; ac_datarootdir_seen=
23843 case `sed -n '/datarootdir/ {
23847 /@datadir@/p
23848 /@docdir@/p
23849 /@infodir@/p
23850 /@localedir@/p
23851 /@mandir@/p
23852 ' $ac_file_inputs` in
23853 *datarootdir*) ac_datarootdir_seen=yes;;
23854 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23855 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23856 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23857 _ACEOF
23858 cat >>$CONFIG_STATUS <<_ACEOF
23859 ac_datarootdir_hack='
23860 s&@datadir@&$datadir&g
23861 s&@docdir@&$docdir&g
23862 s&@infodir@&$infodir&g
23863 s&@localedir@&$localedir&g
23864 s&@mandir@&$mandir&g
23865 s&\\\${datarootdir}&$datarootdir&g' ;;
23866 esac
23867 _ACEOF
23869 # Neutralize VPATH when `$srcdir' = `.'.
23870 # Shell code in configure.ac might set extrasub.
23871 # FIXME: do we really want to maintain this feature?
23872 cat >>$CONFIG_STATUS <<_ACEOF
23873 sed "$ac_vpsub
23874 $extrasub
23875 _ACEOF
23876 cat >>$CONFIG_STATUS <<\_ACEOF
23878 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23879 s&@configure_input@&$configure_input&;t t
23880 s&@top_builddir@&$ac_top_builddir_sub&;t t
23881 s&@srcdir@&$ac_srcdir&;t t
23882 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23883 s&@top_srcdir@&$ac_top_srcdir&;t t
23884 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23885 s&@builddir@&$ac_builddir&;t t
23886 s&@abs_builddir@&$ac_abs_builddir&;t t
23887 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23888 s&@INSTALL@&$ac_INSTALL&;t t
23889 $ac_datarootdir_hack
23890 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
23892 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23893 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23894 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23895 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23896 which seems to be undefined. Please make sure it is defined." >&5
23897 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23898 which seems to be undefined. Please make sure it is defined." >&2;}
23900 rm -f "$tmp/stdin"
23901 case $ac_file in
23902 -) cat "$tmp/out"; rm -f "$tmp/out";;
23903 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23904 esac
23908 # CONFIG_HEADER
23910 _ACEOF
23912 # Transform confdefs.h into a sed script `conftest.defines', that
23913 # substitutes the proper values into config.h.in to produce config.h.
23914 rm -f conftest.defines conftest.tail
23915 # First, append a space to every undef/define line, to ease matching.
23916 echo 's/$/ /' >conftest.defines
23917 # Then, protect against being on the right side of a sed subst, or in
23918 # an unquoted here document, in config.status. If some macros were
23919 # called several times there might be several #defines for the same
23920 # symbol, which is useless. But do not sort them, since the last
23921 # AC_DEFINE must be honored.
23922 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23923 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23924 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23925 # PARAMS is the parameter list in the macro definition--in most cases, it's
23926 # just an empty string.
23927 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23928 ac_dB='\\)[ (].*,\\1define\\2'
23929 ac_dC=' '
23930 ac_dD=' ,'
23932 uniq confdefs.h |
23933 sed -n '
23934 t rset
23935 :rset
23936 s/^[ ]*#[ ]*define[ ][ ]*//
23937 t ok
23940 s/[\\&,]/\\&/g
23941 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23942 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23943 ' >>conftest.defines
23945 # Remove the space that was appended to ease matching.
23946 # Then replace #undef with comments. This is necessary, for
23947 # example, in the case of _POSIX_SOURCE, which is predefined and required
23948 # on some systems where configure will not decide to define it.
23949 # (The regexp can be short, since the line contains either #define or #undef.)
23950 echo 's/ $//
23951 s,^[ #]*u.*,/* & */,' >>conftest.defines
23953 # Break up conftest.defines:
23954 ac_max_sed_lines=50
23956 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23957 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23958 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23959 # et cetera.
23960 ac_in='$ac_file_inputs'
23961 ac_out='"$tmp/out1"'
23962 ac_nxt='"$tmp/out2"'
23964 while :
23966 # Write a here document:
23967 cat >>$CONFIG_STATUS <<_ACEOF
23968 # First, check the format of the line:
23969 cat >"\$tmp/defines.sed" <<\\CEOF
23970 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23971 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23973 :def
23974 _ACEOF
23975 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23976 echo 'CEOF
23977 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23978 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23979 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23980 grep . conftest.tail >/dev/null || break
23981 rm -f conftest.defines
23982 mv conftest.tail conftest.defines
23983 done
23984 rm -f conftest.defines conftest.tail
23986 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23987 cat >>$CONFIG_STATUS <<\_ACEOF
23988 if test x"$ac_file" != x-; then
23989 echo "/* $configure_input */" >"$tmp/config.h"
23990 cat "$ac_result" >>"$tmp/config.h"
23991 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23992 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23993 echo "$as_me: $ac_file is unchanged" >&6;}
23994 else
23995 rm -f $ac_file
23996 mv "$tmp/config.h" $ac_file
23998 else
23999 echo "/* $configure_input */"
24000 cat "$ac_result"
24002 rm -f "$tmp/out12"
24005 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24006 echo "$as_me: executing $ac_file commands" >&6;}
24008 esac
24011 case $ac_file$ac_mode in
24012 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
24013 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
24014 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
24015 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
24016 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
24017 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
24018 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
24019 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
24020 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
24021 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
24022 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
24023 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
24024 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
24025 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
24026 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
24027 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
24028 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
24029 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
24030 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
24031 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
24032 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
24033 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
24034 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
24035 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
24036 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
24037 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
24039 esac
24040 done # for ac_tag
24043 { (exit 0); exit 0; }
24044 _ACEOF
24045 chmod +x $CONFIG_STATUS
24046 ac_clean_files=$ac_clean_files_save
24049 # configure is writing to config.log, and then calls config.status.
24050 # config.status does its own redirection, appending to config.log.
24051 # Unfortunately, on DOS this fails, as config.log is still kept open
24052 # by configure, so config.status won't be able to write to it; its
24053 # output is simply discarded. So we exec the FD to /dev/null,
24054 # effectively closing config.log, so it can be properly (re)opened and
24055 # appended to by config.status. When coming back to configure, we
24056 # need to make the FD available again.
24057 if test "$no_create" != yes; then
24058 ac_cs_success=:
24059 ac_config_status_args=
24060 test "$silent" = yes &&
24061 ac_config_status_args="$ac_config_status_args --quiet"
24062 exec 5>/dev/null
24063 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24064 exec 5>>config.log
24065 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24066 # would make configure fail if this is the last instruction.
24067 $ac_cs_success || { (exit 1); exit 1; }
24071 # CONFIG_SUBDIRS section.
24073 if test "$no_recursion" != yes; then
24075 # Remove --cache-file and --srcdir arguments so they do not pile up.
24076 ac_sub_configure_args=
24077 ac_prev=
24078 eval "set x $ac_configure_args"
24079 shift
24080 for ac_arg
24082 if test -n "$ac_prev"; then
24083 ac_prev=
24084 continue
24086 case $ac_arg in
24087 -cache-file | --cache-file | --cache-fil | --cache-fi \
24088 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24089 ac_prev=cache_file ;;
24090 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24091 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24092 | --c=*)
24094 --config-cache | -C)
24096 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24097 ac_prev=srcdir ;;
24098 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24100 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24101 ac_prev=prefix ;;
24102 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24105 case $ac_arg in
24106 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24107 esac
24108 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
24109 esac
24110 done
24112 # Always prepend --prefix to ensure using the same prefix
24113 # in subdir configurations.
24114 ac_arg="--prefix=$prefix"
24115 case $ac_arg in
24116 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24117 esac
24118 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
24120 ac_popdir=`pwd`
24121 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24123 # Do not complain, so a configure script can configure whichever
24124 # parts of a large source tree are present.
24125 test -d "$srcdir/$ac_dir" || continue
24127 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
24128 echo "$as_me:$LINENO: $ac_msg" >&5
24129 echo "$ac_msg" >&6
24130 { as_dir="$ac_dir"
24131 case $as_dir in #(
24132 -*) as_dir=./$as_dir;;
24133 esac
24134 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24135 as_dirs=
24136 while :; do
24137 case $as_dir in #(
24138 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24139 *) as_qdir=$as_dir;;
24140 esac
24141 as_dirs="'$as_qdir' $as_dirs"
24142 as_dir=`$as_dirname -- "$as_dir" ||
24143 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24144 X"$as_dir" : 'X\(//\)[^/]' \| \
24145 X"$as_dir" : 'X\(//\)$' \| \
24146 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24147 echo X"$as_dir" |
24148 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24149 s//\1/
24152 /^X\(\/\/\)[^/].*/{
24153 s//\1/
24156 /^X\(\/\/\)$/{
24157 s//\1/
24160 /^X\(\/\).*/{
24161 s//\1/
24164 s/.*/./; q'`
24165 test -d "$as_dir" && break
24166 done
24167 test -z "$as_dirs" || eval "mkdir $as_dirs"
24168 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24169 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24170 { (exit 1); exit 1; }; }; }
24171 ac_builddir=.
24173 case "$ac_dir" in
24174 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24176 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24177 # A ".." for each directory in $ac_dir_suffix.
24178 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24179 case $ac_top_builddir_sub in
24180 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24181 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24182 esac ;;
24183 esac
24184 ac_abs_top_builddir=$ac_pwd
24185 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24186 # for backward compatibility:
24187 ac_top_builddir=$ac_top_build_prefix
24189 case $srcdir in
24190 .) # We are building in place.
24191 ac_srcdir=.
24192 ac_top_srcdir=$ac_top_builddir_sub
24193 ac_abs_top_srcdir=$ac_pwd ;;
24194 [\\/]* | ?:[\\/]* ) # Absolute name.
24195 ac_srcdir=$srcdir$ac_dir_suffix;
24196 ac_top_srcdir=$srcdir
24197 ac_abs_top_srcdir=$srcdir ;;
24198 *) # Relative name.
24199 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24200 ac_top_srcdir=$ac_top_build_prefix$srcdir
24201 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24202 esac
24203 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24206 cd "$ac_dir"
24208 # Check for guested configure; otherwise get Cygnus style configure.
24209 if test -f "$ac_srcdir/configure.gnu"; then
24210 ac_sub_configure=$ac_srcdir/configure.gnu
24211 elif test -f "$ac_srcdir/configure"; then
24212 ac_sub_configure=$ac_srcdir/configure
24213 elif test -f "$ac_srcdir/configure.in"; then
24214 # This should be Cygnus configure.
24215 ac_sub_configure=$ac_aux_dir/configure
24216 else
24217 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24218 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24219 ac_sub_configure=
24222 # The recursion is here.
24223 if test -n "$ac_sub_configure"; then
24224 # Make the cache file name correct relative to the subdirectory.
24225 case $cache_file in
24226 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24227 *) # Relative name.
24228 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
24229 esac
24231 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24232 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24233 # The eval makes quoting arguments work.
24234 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
24235 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
24236 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24237 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24238 { (exit 1); exit 1; }; }
24241 cd "$ac_popdir"
24242 done